|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
power shutdown doesn't workinstalled 3.14.4 Mac OS X binary package.
apcaccess works, and I can see the STATUS change to ONBATT when i pull the plug of the UPS, I changed TIMEOUT 0 to TIMEOUT 30 to test the automatic shutdown, but the shutdown never happens. if I check the system.log when I was using the safe.apccontrol it logged the system shutdown Jun 28 23:01:39 mira-hans-computer apcupsd[258]: Power failure. Jun 28 23:01:45 mira-hans-computer apcupsd[258]: Running on UPS batteries. Jun 28 23:02:16 mira-hans-computer apcupsd[258]: Reached run time limit on batteries. Jun 28 23:02:16 mira-hans-computer apcupsd[258]: Initiating system shutdown! Jun 28 23:02:16 mira-hans-computer apcupsd[258]: User logins prohibited Jun 28 23:04:45 mira-hans-computer apcupsd[258]: Mains returned. No longer on UPS batteries. Jun 28 23:04:45 mira-hans-computer apcupsd[258]: Power is back. UPS running on mains. but when I went back to the original apccontrol it never even saw a system shutdown Jun 28 23:07:29 mira-hans-computer apcupsd[258]: Power failure. Jun 28 23:07:35 mira-hans-computer apcupsd[258]: Running on UPS batteries. Jun 28 23:11:27 mira-hans-computer apcupsd[258]: Mains returned. No longer on UPS batteries. Jun 28 23:11:27 mira-hans-computer apcupsd[258]: Power is back. UPS running on mains. and if I do a killpower it's reports error. Jun 28 23:50:41 mira-hans-computer sudo: mirahan : TTY=ttyp1 ; PWD=/private/tmp ; USER=root ; COMMAND=/etc/apcupsd/apccontrol killpower Jun 28 23:50:51 mira-hans-computer apcupsd[446]: apcupsd FATAL ERROR in generic-usb.c at line 636\nCannot find UPS device --\nFor a link to detailed USB trouble shooting information,\nplease see <http://www.apcupsd.com/support.html>.\n Jun 28 23:50:51 mira-hans-computer apcupsd[446]: apcupsd error shutdown completed how can I get it to work? thanks Mira ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: power shutdown doesn't workmiraceti wrote:
> installed 3.14.4 Mac OS X binary package. > > apcaccess works, > and I can see the STATUS change to ONBATT when i pull the plug of > the UPS, I changed TIMEOUT 0 to TIMEOUT 30 to test the automatic > shutdown, > but the shutdown never happens. > > if I check the system.log > > when I was using the safe.apccontrol it logged the system shutdown > Jun 28 23:01:39 mira-hans-computer apcupsd[258]: Power failure. > Jun 28 23:01:45 mira-hans-computer apcupsd[258]: Running on UPS > batteries. Jun 28 23:02:16 mira-hans-computer apcupsd[258]: Reached > run time limit on batteries. > Jun 28 23:02:16 mira-hans-computer apcupsd[258]: Initiating system > shutdown! > Jun 28 23:02:16 mira-hans-computer apcupsd[258]: User logins > prohibited > Jun 28 23:04:45 mira-hans-computer apcupsd[258]: Mains returned. No > longer on UPS batteries. > Jun 28 23:04:45 mira-hans-computer apcupsd[258]: Power is back. UPS > running on mains. > > but when I went back to the original apccontrol > it never even saw a system shutdown > Jun 28 23:07:29 mira-hans-computer apcupsd[258]: Power failure. > Jun 28 23:07:35 mira-hans-computer apcupsd[258]: Running on UPS > batteries. Jun 28 23:11:27 mira-hans-computer apcupsd[258]: Mains > returned. No longer on UPS batteries. > Jun 28 23:11:27 mira-hans-computer apcupsd[258]: Power is back. UPS > running on mains. The apccontrol script has no control over what is logged to system.log, so this change in behavior was not due to switching from safe.apccontrol to normal apccontrol. Rather, I would guess you changed apcupsd.conf TIMEOUT back to 0 by mistake. > and if I do a killpower it's reports error. > Jun 28 23:50:41 mira-hans-computer sudo: mirahan : TTY=ttyp1 ; > PWD=/private/tmp ; USER=root ; COMMAND=/etc/apcupsd/apccontrol > killpower Jun 28 23:50:51 mira-hans-computer apcupsd[446]: apcupsd > FATAL ERROR in generic-usb.c at line 636\nCannot find UPS device > --\nFor a link to detailed USB trouble shooting information,\nplease > see < http://www.apcupsd.com/support.html>.\n > Jun 28 23:50:51 mira-hans-computer apcupsd[446]: apcupsd error > shutdown completed > > how can I get it to work? Use apctest (shut down apcupsd first) to test killpower. Do not try to do it by hand. --Adam ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
|
| Free Forum Powered by Nabble | Forum Help |