Repository navigation
Tela ligada na placa: opção KIOSK (painel em tela cheia no boot) - #48
Merged
Merged
Conversation
O install.sh cria o serviço mineracao-kiosk desligado (cage + Chromium na tela 1, no lugar do login de texto). Ao ligar a opção em Configurações → Fazenda, o painel instala o cage e o Chromium pelo apt em segundo plano na primeira vez e liga o serviço; ao desligar, desliga. A opção some onde não há systemd (Docker) e a tela de configurações mostra instalando / erro / sem tela no HDMI. KIOSK_FLAGS acrescenta opções ao Chromium (ex.: --disable-gpu). Claude-Session: https://claude.ai/code/session_01XjfaWQbpm2Tv3YnJgEKrFs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opção nova Tela ligada nesta placa (quiosque) em ⚙️ Configurações → Fazenda (
KIOSK=1): o painel abre sozinho em tela cheia na tela do HDMI, em todo boot, sem área de trabalho.Como funciona
install.shcria o serviçomineracao-kioskdesligado:cage(quiosque Wayland mínimo) + Chromium emhttp://127.0.0.1:PORT/?kiosk, na tty1 no lugar do login de texto (Ctrl+Alt+F2 ainda dá terminal).src/kiosk.shespera o painel responder e limpa o aviso de "não foi fechado corretamente".src/kiosk.jsinstalacage chromium fonts-noto-color-emojipelo apt em segundo plano na primeira vez (log emDATA_DIR/kiosk-install.log) e liga o serviço; desligar desliga./sys/class/drm).--autoplay-policy=no-user-gesture-required).KIOSK_FLAGSacrescenta opções (ex.:--disable-gpuse a tela piscar).Não testado em hardware — falta conferir na Odroid-C2 com a tela de 7".
tests/kiosk.test.jscobre Docker, instalação, desligar e detecção da tela com systemctl/apt falsos.npm test: 196 ok.Generated by Claude Code