PDA

View Full Version : Power control not working



cjn
10-07-2009, 08:36 AM
I have VortexBox 0.9 with the latest SqueezeCenter 7.4 update, installed on a Dell Optiplex GX620.


All works OK, except that I can't persuade the server to shut down the hardware automatically when it goes idle. I know this was working one or two updates ago (the PC is hidden away so I'm not exactly sure when) but it's now powered up all the time unless I shut it down though the VB web interface.


Could somebody please walk me through what I need to set up in VB and/or SC. I know how to log on to Linux but please spell out exactly what commands I need to use.

uncle bob
10-25-2009, 11:32 AM
I have the same (or a similar issue) here. After an update to latest VB software, power control no longer functions properly.




Actually, selecting 'shutdown' from the squeezebox remote seems to shutdown the squeezeboxserver process but the pc it's running on doesn't power off.


I remember I had to play around with the plugin with some additional or alternate command lines but my memory of precisely what I had setup is a little vague, partly because I was also trying to get WOL to work as well (but I never did get that to work on my hardware)


Unfortunately, the link I believe I got the info from

http://www.xmarks.com/site/peo.....d-try.html (http://www.xmarks.com/site/people.freedesktop.org/~hughsient/quirk/quirk-suspend-try.html)

no longer works.

Also

http://forums.slimdevices.com/.....hp?t=48521 (http://forums.slimdevices.com/showthread.php?t=48521)

suggests that there is a new version of the SvrPowerCtrl plugin
"that 'plays nicer' with this version" (7.4)

I wonder whether this new plug in was added to the VB update?

Delennyk
10-26-2009, 10:05 AM
Hi Guys


I also have the same issue after the last update.




WOL is working fine on the Squeezebox remote and Ipeng,but the shutdown is not.




I hope someone can give us a few tips to get this up and running again!!!.

andrew
10-26-2009, 06:13 PM
We have the latest srvrpowerctr as part of VortexBox. You can load the latest BETA if you want. But I don't know what other problems this might cause.




http://vortexbox.org/forum/bet.....trl/#p2210 (http://vortexbox.org/forum/beta/beta-of-new-squeezecenter-srvrpowerctrl/#p2210)

cjn
11-05-2009, 06:18 AM
Well, I'm pleased to say that it now seems to be working OK.




I did an update today, via the VB UI, and I'm now running:


Squeezebox Server Version 7.4.1 - r28947 @ Tue Oct 20 07:59:38 PDT 2009

and

Server Power Control v20091031.005505

The idle timeout is now functioning as before in 7.3. WOL only works if I change the Suspend/Hibernate settings to Power off (use "shutdown -P now" rather than -h or -H). This may just be a particular requirement for my Dell PC.

uncle bob
11-05-2009, 12:29 PM
Thanks for the update Chris, although that didn't work for me your post did motivate me to look at this problem again. My personal circumstances mean that the ability to remotely power off the vortexbox is essential so for the past couple of weeks I've had to go back to playing CD's !




Anyway, I found a solution to my problem which might help others;




In my case, the fix was to edit /etc/sudoers


and add these lines to the end of the /etc/sudoers file:
----------------------------------------------------------------------------------
## Allows members of the squeezecenter group to shutdown this system
%squeezeboxserver ALL=NOPASSWD:/sbin/shutdown
%squeezeboxserver ALL=NOPASSWD:/usr/sbin/pm-suspend
%squeezeboxserver ALL=NOPASSWD:/usr/sbin/pm-hibernate
%squeezeboxserver ALL=NOPASSWD:/usr/local/sbin/spc-restart.sh
%squeezeboxserver ALL=NOPASSWD:/usr/local/sbin/spc-wakeup.sh




Although I've done an update today, I'm still using the same version of powercontrol


(v20090615.00) as before even though the VB update log suggests that an update was installed???


But as it's working now, I'm happy http://vortexbox.org/wp-content/forum-smileys/sf-laugh.gif

andrew
11-05-2009, 05:58 PM
O nce you have the update you won't have to go to command line.




uncle bob , looks like you didn't get the update for some reason. Your still running on old version. Try running an upgrade from the GUI.