Re: [Apcupsd-users] status not reset on return from hibernate
Brought to you by:
adk0212
|
From: Ian S. W. <ian...@us...> - 2013-11-30 12:51:52
|
Thanks Ted. It is connected via USB, yes. And now you mention it, there's a mysterious message on the console during hibernation: usbhid suspend error -5 Sounds like this may have something to do with it? This is on a Haswell mobo which may (or may not) have the broken C1 stepping PCH affecting USB enumeration on return from S3. Hibernate is S0 though, isn't it? Any chance this could still be related? Is a loop likely? If I /don't/ restart the daemon it does stay at SHUTTING DOWN which doesn't loop, but does cause it to ignore future triggers. i ------ Original Message ------ Received: 12:53 AM COT, 11/30/2013 From: Ted Mittelstaedt <te...@mi...> To: apc...@li... Subject: Re: [Apcupsd-users] status not reset on return from hibernate > > UPS connected via USB, right? Many USB hardware drivers out there have > brokenness when coming back off hibernation. There are no deleterious > effects to restarting apcupsd, other than if the USB port doesn't reset > and the status stays at SHUTTING DOWN then you might end up creating a > loop. > > Ted > > On 11/29/2013 8:46 AM, Ian S. Worthington wrote: > > Hi. > > > > I've configured my doshutdown script to hibernate my system using pm-hibernate > > (script below). This seems to work fine except that after returning from > > hibernation the UPS STATUS remains as SHUTTING DOWN (iirc?), which seems to > > prevent subsequent triggers from being actioned. > > > > In order to reset it I've added a "apcupsd restart" to the script, which seems > > to work, but I'm not sure if it has any deleterious effects. Is there a > > better way? > > > > i > > > > > > cat /etc/apcupsd/doshutdown > > #!/bin/bash > > > > echo "" | mailx -s "$HOSTNAME hibernating" root > > /usr/sbin/pm-hibernate > > > > # At this point system should be hibernated - when it comes back, we resume > > this script here > > > > echo "" | mailx -s "$HOSTNAME back from hibernation" root > > > > service apcupsd restart > > > > # On resume, tell controlling script (/etc/apcupsd/apccontrol) NOT to continue > > with default action (i.e. shutdown). > > > > exit 99 > > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET,& PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > _______________________________________________ > > Apcupsd-users mailing list > > Apc...@li... > > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users |