Pronto o ACPI para desligar a placa mãe, estou tentando fazer que o nobreak, atreavés da porta serial avise ao sistema operacional (BFW) que acabou a luz e o mesmo se desligue. Ainda quero fazer com que o BFW mande um aviso pela rede para que os outros computadores do rack (servidor de arquivos, banco de dados...) com Windows também se desliguem.
O primeiro passo já foi dado compilando o powerd (http://power.sourceforge.net/), porém ainda não obtive sucesso.
A ferramenta não consegue detectar o nobreak.
- Código: Selecionar todos
#detectups /dev/ttyS0
Okay, With the system not plugged into the UPS (in case the UPS doesnt work,
you dont want to lose power to the machine..) pull the power cord from the
wall. I shall attempt to find out what you need to change. Heres what you need
to look out for:
Make sure that when I say "POWER IS OUT" that it happens at the same time you
pull the power cord, if I say it after, then we have problems. And if I dont
say it at the same time, or ever at all, then we also have problems, and I would
like for you to email me for help and so I can add your UPS to my program
Okay, having read all that, I am ready when you are. Ill announce when the
power is out, and when it is back. Make sure this happens when you actually
remove and restore power.
You may pull when ready.
Como não sei se o problema é o nobreak ou a porta serial do computador e estarei apartir de amanhã de férias, sem estrutura para testes, se alguma alma caridosa tiver um nobreak e puder colaborar, basta instalar o addon, ligar o nobreak na porta serial (não esquecer de habilitar no setup) e testar com o comando:
#detectups /dev/ttyS0
Acredito que os nobreaks com porta USB devam funcionar com o usbserial.tgz, o mesmo usado para o Vivo Zap, com uma simple modificação no USB-ID.
Addon: http://www.brazilfw.com.br/users/Bender/addons/ups/ups.tgz