LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2008, 04:31 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 386

Rep: Reputation: 30
Wake on Lan & Sleep on lan?


I think wake-on-lan is a cool thing for the current economical situation.

I was playing around with it and made it work on my computer.
Is there a Sleep-on-lan where you send package to turn off or nicely shutdown the machine (similar to wake-on-lan package)?
 
Old 06-25-2008, 06:34 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The simple answer is no: wake-on-lan is a BIOS feature intended to solve the problem of powering up the machine without having to have the machine on to process network traffic.

But if you have terminal access to the machine then you can easily shut it down, to sleep, suspend or hibernate. The technology to do this is called ACPI.

To hybernate/suspend, try http://linux.about.com/od/commands/l/blcmdl1_apm.htm

To hybernate/suspend for a certain amount of time, try apmsleep: http://linux.about.com/library/cmd/blcmdl1_apmsleep.htm

Personally, I would create a user called acpi on the machine you want to control, and give that user permissions to run apm and apmsleep using sudo.

For example, to use one machine to tell another to standby, you could then use:
Code:
ssh -f acpi@host sudo apm -S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Small Linux Sever with Wake On Lan & Hibernation bbenn Linux - General 0 07-18-2007 09:34 AM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 04:57 PM
wake on lan?? alaios Linux - Hardware 2 08-10-2004 02:04 PM
Wake-on-LAN dARkHunTEr Linux - Hardware 0 11-04-2003 05:17 PM
wake-on-lan PlatinumRik Linux - Hardware 1 04-09-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration