PDA

View Full Version : "Sleep" on Lan.


thejinx0r
April 12th, 2008, 05:58 PM
Hey Guys

I need some help for Wake on Lan.

I want to save a little on my "electric bill".
What I want to do is to have my server on only when my laptop is on.

I've managed to configure my laptop to turn on my computer when it connects to the same router.

But, I'm trying to write a script so that if it cannot ping my laptop for more than a minute, it would shut down.

I haven't done any advance programming / bash scripting, so I'm not sure how to write it. I was thinking that if there was a 100% packet loss after 50 ping attempts, it would shut down.

Anyways,
Thanks if you guys can help me.

kyphi
April 13th, 2008, 12:50 AM
The "wake on LAN" settings are in your BIOS.

volkswagner
April 13th, 2008, 09:38 AM
You may want to check out the ACPI wake for mythtv. You can set it to shutdown when no pc'c or users are logged on. Not sure if you need a GUI or not. Just a thought.