Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When my system sits idle for about 10 minutes, the screen blanks out and my web server is not accessable. I have read numerous theads that indicate xset and setterm commands, such as: xset s off, setterm s noblank s 0, I've even tried staying in text mode rather than enter kdm, yet nothing does the trick. Help
There's gotta be something simple that I'm missing?
I've tryed the above settings but still the blank sleep mode. I also tried disabling the dpms (power settings). Any ideas, could it be a video card setting?
Looking a the xset info: blanking is set to no, timout is 0, cycle is 0, and allow exposures is set to no (I tried yes too). I also tried with the screen saver turned both on and off.
This sounds like a bigger problem than setterm that just deals with output to your monitor, this seems like you have apmd set to put your whole machine to sleep after a certain idle time. Does this only happen to the webserver, or do all other daemon services cack out too? Also, what distro?
Its got to be something having to do with putting your machine to sleep. My guess is apmd, but I don't know much about these daemons as I've never had a problem with them.
If you:
ps aux | grep apmd
and then kill the Pid of that bugger (assuming it doesn't restart... RH does wiggy things), and the machine makes it past 10 minutes at idle then that was it.
Although, honestly I never usually suggest this, but there's probably some cute gui tool in whatever X desktop you're using that could stop it... or:
Reboot the machine, go into BIOS and disable all the cute power management feature that might be it.
Another way you can disable APM is in the kernel itself... if you have the kernel sources installed and run a configure on them it asks about power management and whether to enable it or disable it... (at least under slack...), and that should REALLY do the trick if nothing else works...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.