PDA

View Full Version : Wake On LAN before alarm occurs



Philip Meyer
2008-04-26, 14:36
I've got WOL working, in so much as I can leave my PC in Sleep mode and pressing power on a SqueezeBox will wake the server up.

However, I'm wondering if there is anything I can do to wake my PC up when the alarm time is reached (or slightly before). Eg. is it possible for the SB firmware to send a WOL magic packet a minute before the alarm time?

Alternatively, I may be able to set something in my BIOS to wake the PC up at a specified time, but this isn't a great solution when a different time is required for different days of the week, as I'd have to remember to reboot to edit the BIOS each night.

Phil

Mnyb
2008-04-26, 15:00
Well isn't the clock on the server ? no server no clock no alarm ?

Wake up by SqueezeNetwork then ? but who knows when SN or the Internet connection goes down.

Well maybe the new Controller could be used for this as it is more intelligent (I see an enhancement request coming up )

Philip Meyer
2008-04-27, 04:56
At the moment I leave my server on all night, so that the SB3 in the bedroom can wake me up in the morning. I'd love to help save the environment by putting my server to sleep overnight.

I don't like using SN as an alarm clock - I prefer to wake up to music in my local lbrary.

It would be nice if a SB could be configured to automatically switch to SN when the local server goes down, and use the internet time to send a WOL packet locally a minute or so before the alarm time is met. eg. provide a menu "SqueezeCenter Sleep" that would connect to SqueezeNetwork, passing the time that the SqueezeCenter server should be reconnected to, and then send the local server to sleep.

Phil

Mnyb
2008-04-27, 05:56
My via mother board offers some crude scheduling in bios, so that i can booth my server for example every morning ?
(I think its even possible to schedule shutdown )

Would it matter of the server is on half an hour before wakeup time ?
You could set the server to wake at the same time every day, and then use the alarm function's i SC to a more fine schedule.

i would use 1/2 hour instead of one minute because my Linux server might want to run a disc check on my 1TB drive its scheduled ever 50 boot and my system drive is scheduled for check every 25 boot (it's much smaller would be muck quicker).

I second your wish for a more intelligent SC/SN behavior, this could be improved in many other aspects.

vrobin
2008-04-29, 03:36
With the SB architecture, there's not much you can wait from the SB. But if I were you, I would look at the tools you can find for your bios configuration.

A lot of motherboards have "clock wake up" capability in the bios. And I know too that tools exists to program this bios parameter from the computer (linux mostly, but it should exist in windows). So the only solution I can imagine would be to create a plugin that set the "wake up clock" of the bios each time it sends the computer to sleep, just before issuing the sleep or shutdown command.

jeremy
2008-04-29, 06:15
I use 2 small XP utilities to hibernate and wake my PC each day.

WinOFF - http://www.ampsoft.net/utilities/WinOFF.php - sends it to hibernate at a set time each night and Wakeuponstandby - http://www.dennisbabkin.com/php/download.php?what=WOSB - wakes it in the morning

I save 8 hours power per day and seems pretty reliable although I do a full reboot every now and then to pick up windows updates etc

HTH

Jeremy

gwnzen
2008-04-29, 10:47
I use 2 small XP utilities to hibernate and wake my PC each day.

WinOFF - http://www.ampsoft.net/utilities/WinOFF.php - sends it to hibernate at a set time each night and Wakeuponstandby - http://www.dennisbabkin.com/php/download.php?what=WOSB - wakes it in the morning

I save 8 hours power per day and seems pretty reliable although I do a full reboot every now and then to pick up windows updates etc

HTH

Jeremy

I use WIndows Power management to hibernate my pc when idle for 10 minutes, so at night when i finish listening,(e.g sb3 sleep after 60 minutes) 10 minutes later my pc automaticly hibernate while i'm on slumberland. In the morning my windows' scheduled task run spidersolitaire (any program will do) with 'wake the computer to run this task' ticked which wake my pc a minute before sb3 alarm me. I also ticked 'stop the task if the computer ceases to be idle' and 'stop the task if it runs for 1 minute', to decaf the computer so it can hibernate again after running the task and after the sb3 sleep.
hope this help
cheers,
wuntoro nitiatmodjo

Philip Meyer
2008-04-29, 23:44
>WinOFF - http://www.ampsoft.net/utilities/WinOFF.php - sends it to
>hibernate at a set time each night and Wakeuponstandby -
>http://www.dennisbabkin.com/php/download.php?what=WOSB - wakes it in
>the morning
>
Thanks for those links. I tried Wakeuponstandby and that's working great.

I currently hit my Sleep button on the keyboard when I'm done with the box.

What I'd really like though is to send the server into standby from a SqueezeBox.

Phil

gharris999
2008-04-30, 07:25
I've tried and tried to modify the PowerCtrl plugin to allow standby or hibernation on windows systems..all to no avail so far. I do hope to revisit this sometime soon. Absent that, if your bios supports rtc (real-time clock) wake-up, program the bios to wake the server at a pre-determined time, say 5:30 am. You could then use the PowerCtrl plugin to shut down the server via the SB's remote in the evening. This is the setup I'm using.