Operating System - Linux
1748011 Members
5117 Online
108757 Solutions
New Discussion юеВ

What suspended the network connection?

 
zhaogui
Super Advisor

What suspended the network connection?

Anybody knows how come my network connection was suspendeded after a few minutes of inactivity. It will resume only after I press any key on my Linux machine. I suspect apmd may be involved but it still remains the same after I stoped it using "/etc/rc.d/init.d/apmd stop" and "chkconfig --level 23456 apmd off". Anybody got an idea?

Thanks,
7 REPLIES 7
I_M
Honored Contributor

Re: What suspended the network connection?

Hi

Add
append="apm=off"
in /etc/lilo.conf then do /sbin/lilo.

masanari iida
zhaogui
Super Advisor

Re: What suspended the network connection?

But after I pressed any key to activate the Linux, I noticed that there is no apmd process running if I typed "ps -ef|grep apm". There is only one process called "[kapm-idled]", what is that? Besides apmd, Is there any other daemons that can also disrupt the network connection? How come it resumed after I press any key on its keyboard just like the way Screen Saver works.
Eugen Cocalea
Respected Contributor

Re: What suspended the network connection?

Hi,

setterm -blank

or

setterm -blank 0

this will cause your virtual not to turn off if you are inactive.

(man setterm)

E.
To Live Is To Learn
Eugen Cocalea
Respected Contributor

Re: What suspended the network connection?

hrm, read 'virtual' as 'virtual terminal'

E.
To Live Is To Learn
zhaogui
Super Advisor

Re: What suspended the network connection?

It still cannot work even though I have run "setterm -blank". The output of ps -ef|grep apm is shown as below,
root 3 1 0 16:56 ? 00:00:00 [kapm-idled]
root 1230 1184 0 17:54 pts/4 00:00:00 grep apm

Do you think kapm-idled has anything to do with this problem? Where does it come from?
Eugen Cocalea
Respected Contributor

Re: What suspended the network connection?

Hi,

See the manpage of apmd (man apmd).

kapm-idled is a daemon that should take control of the cpu cycles when nothing else consumes cpu power on the machine.

excerpt:
"The "kapm-idled" is only active if the system is not utilized and sends "HLT" commands to the CPU. Thereby the processor needs less power."
taken from: http://sdb.suse.de/en/sdb/html/tami_kapm-idled.html

See this link about kapm as well:
http://lists.debian.org/debian-user/2001/debian-user-200109/msg00343.html

E.
To Live Is To Learn
zhaogui
Super Advisor

Re: What suspended the network connection?

Can you imagine what is the root cause? It is very simple. It is because of the Power Saving feature configured in BIOS.
Thank you all for your help and advices.