Created attachment 598340 [details]
/var/log/messages about this period of time
Description of problem:
While the UPS is running on batteries, and apcupsd tells the computer to poweroff, you can see only a halt procedure, but the computer is still turned on, so it does not poweroff.
Version-Release number of selected component (if applicable):
Version : 3.14.10
Rilase : 4.fc17
Steps to Reproduce:
1. edit the /etc/apc/apcupsd.conf
2. look for "TIMEOUT" and put 15 as value
3. save, then on bash do: systemctl restart apcupsd.service
4. unplug power cable and wait for computer auto power off
the computer completes the halt procedure doing all umount, etc. but does not poweroff
switch off computer power at the end of halting process
kernel 3.4.4-5.fc17.x86_64 (but this info is useless since I remember this happening by years)
do you have selinux enabled?
Yes I have SELinux enabled
I tried to reproduce this, but it was working fine. After unplugging the cable (and configured time) apcupsd reported power failure. After next 15 seconds configured in TIMEOUT, it started power down. System terminated after about 4 seconds and 30 seconds later, ups turned power off. It was working with both selinux disabled and enabled.
If it still does not work for you, try to reproduce this with selinux in permissive mode - execute
as root (the change is only temporal - until reboot).
If you see "system halted" in console and no apcupsd error (it won't be in log, because logging is already stopped), then you ups got its power off command.
Check if your ups works correctly with:
It'll power off yor ups, so close all applications before executing this command.
Unfortunately the BR800I has broken, so it is no longer possible to test this problem with the old UPS.
Now I have a BR900GI and, after 15 seconds on battery mode, the computer starts the halt procedure till the moment you can see "system halted" on the screen, then the UPS switches off the power. So everything is okay.
My question is: why the computer does not poweroffs itself and it must be the UPS to switch off the power? Shouldn't be something like: system poweroffs and then the UPS poweroffs too? I remember APC powerchute on Windows let the computer poweroff
(In reply to comment #4)
> My question is: why the computer does not poweroffs itself and it must be
> the UPS to switch off the power? Shouldn't be something like: system
> poweroffs and then the UPS poweroffs too? I remember APC powerchute on
> Windows let the computer poweroff
It's because you want to power on the computer once power outage is over. Usually you have set "keep last state" in your BIOS, which means that when you power off your computer, it won't power on automatically later. You need your computer to have lost power by turning the ups off.
> Now I have a BR900GI and, after 15 seconds on battery mode, the computer
> starts the halt procedure till the moment you can see "system halted" on the
> screen, then the UPS switches off the power. So everything is okay.
OK, closing this bug. If someone still has this problem, feel free to reopen.
Thank you for the explanation