gharris999;245133 Wrote: > You know, I originally had added a sleep option yesterday when I was > working on this. But I couldn't make it work on my machine. It would > appear to go into to a "lite" sleep (a trance?) for only a second and > then it would snap back awake. It wasn't at all obvious to me why it > was doing this. > > You can easily experiment to see if it would work for you, though. > Just open the PowerCtrl Plugin.pm file in WordPad, navigate to the > bottom of the file, and change the line that reads: > > SetSuspendState(1,1,0); > > > -- to -- > > SetSuspendState(0,1,0); > > Then, restart SqueezeCenter, attempt a "hibernation" and see if it > works. That code change opts for "sleep" rather than hibernation. > > Give it a try. If that works for you, then the only other thing you > might want to do is clean up the "cosmetics" of the plugin: edit the > strings.txt file and replace the references to "hibernating" with > "sleep" and you'll be good to go.
I made the change to SetSuspendState(0,1,0) and it worked in my computer (My server is a laptop with APM). I get enough time in my SB3 to switch to the Squeezenetwork before the server goes into "sleep" mode. A couple "possible" reasons your server goes into "lite" sleep could be that the "hibernate" option in your server is enabled or that your server is setup for WOL and you do not switch the SqueezeBox to connect to the SqueezeNetwork. (If WOL is enabled the SB continually tries to reconnect to server and wakes it up right after it falls to sleep). The other suggestion I have is to add a yes/no option (confirmation message) before the Shutdown/Restart/Hibernate/Sleep begins. Once you press the right arrow there is no going back. Thanks -- tamanaco ------------------------------------------------------------------------ tamanaco's Profile: http://forums.slimdevices.com/member.php?userid=4620 View this thread: http://forums.slimdevices.com/showthread.php?t=39154 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/beta
