Conversation
…emd installation and README Co-authored-by: Antigravity <antigravity@google.com>
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.
Resumo das Mudanças
Refatoração completa do script de monitoramento para water coolers Rise Mode Aura Ice, eliminando a obrigatoriedade do pacote
lm-sensors, reduzindo o consumo de recursos para zero forks no loop contínuo e aprimorando a usabilidade via CLI e gerenciamento do serviço systemd.Co-authored-by: Antigravity antigravity@google.com
Principais Modificações
1. Script Principal (
risemode.sh)dump) e encerra.-d/--daemonpara inicializar o loop de atualização contínua.-r/--reset [NUM]para enviar valores numéricos arbitrários (padrão:0) para o display e finalizar.-h/--help./sys/class/hwmon(Intelcoretemp, AMDk10temp/zenpower) e fallback para/sys/class/thermal.lm-sensorsfoi mantido exclusivamente como último recurso para hardware legado ou módulos proprietários./sys/class/hidraw/*/device/uevent, eliminando processos externos (grep,cat).printf -v, zerando o overhead de CPU/subshells no ciclo de 2.1s.echo -eporprintf "\\x${HEX}\\x00", eliminando a injeção espúria do caractere de quebra de linha (0x0A/10) e respeitando o buffer esperado pelo firmware.trap 'exit 0' SIGINT SIGTERMpara encerramento gracioso via systemd ouCtrl+C.2. Serviço Systemd (
risemode.service)ExecStartatualizado para/usr/bin/risemode -d, alinhando-se ao novo modo daemon.multi-user.target.3. Instalação e Desinstalação (
install.sh/uninstall.sh)${BASH_SOURCE[0]}, permitindo execução fora do diretório local./etc/systemd/system/(diretório padrão de administração).755no executável e644na unit).systemctl daemon-reloadna instalação e desinstalação.uninstall.sh(substituindo o antigoremove.sh).4. Documentação (
README.md)lm-sensorsagora é estritamente opcional.