We help IT Professionals succeed at work.

How come network is down when Linux suspend?

kslzzg
kslzzg asked
on
I am wondering how come my network is down when Linux machine suspended.  Only after I pressed any key to activate the Linux, then the network becomes available.
Comment
Watch Question

Top Expert 2005

Commented:
I guess I'd have thought that would have been obvious, but...

When Linux is suspended the OS, in effect stops all processing and waits to be 'woken up' by a keypress. This, of course, means that the OS is no longer looking at packets arriving at the network interface, thus no network connectivity.

Author

Commented:
How can I prevent this? Should I take out apmd? How?
Top Expert 2005

Commented:
If you need your Linux box to respond to network activity, then you can't have it go into suspend state. That, as you've surmised, is controlled by apmd and that service can be stopped by turning apmd off. You can disable the service with 'checkconfig --level 2345 apmd off', followed by '/etc/init.d/apmd stop'. Or you could use your favorite GUI config tool (linuxconf, webmin, etc.) to disable the service.

Author

Commented:
Besides apmd, are there any other daemons that can also suspend the system?  I found that Linux's network connection is still suspended even after I have stopped apmd and run 'checkconfig --level 2345 apmd off', and the clock is also suspended.
Top Expert 2005
Commented:
So far as I know only apmd deals with power management. However, disabling apmd won't stop the system BIOS from taking its own actions with respect to power managemant. To get the complete fix you'll probably need to disable power management in the system BIOS. That should keep everyting active all the time.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.