LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-21-2008, 11:10 AM   #1
libin88
LQ Newbie
 
Registered: Jul 2005
Posts: 20

Rep: Reputation: 0
how to disable sleep/hibernate mode in runlevel 3 mode


My machine installed FC8, when it runs in runlevel 3, its conosle always went to sleep or hibernate mode in every 10 minutes, I have to press keyboard from time to time to keep it active. Do you know how to disable it?

Thanks
 
Old 11-23-2008, 04:54 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Does the computer actually go into hibernate (which takes a while to shutdown and start backup and results in the computer actually being turned off) or does the screen just go blank? If it is the latter, try the following command after logging in at the console:

Code:
setterm -powersave off -blank 0
If this takes care of you problem, you can add it to your ~/.bash_profile or /etc/profile file so that it runs automaticly each time you log in (so you don't have to type it). The tilde (~) in ~/.bash_profile just means your home directory. (This will apply the command only to users who have added it to their own .bash_profile directory. The /etc/profile file will automatically apply it to all users.) You can use your favorite text editor, but be aware that the leading dot in the name of .bash_profile makes it a "hidden file" so it doesn't show up with ls command unless you use the -A or -a option (or you specify the file by name). If you wish to modify /etc/profile you will have to do so as root.

If your screen is going blank before you log in and this is a problem for you, then you will need to alter a different configuration file and I am not familiar with Fedora so I cannot help you with that.

Be aware that the command above is turning off a power saving feature. You might want to consider whether you really want to do that. Perhaps you would wish simply to extend the period before it blanks the screen. You can check out the man page for the setterm command for an explanation of all the options available to you. To read the man page, just type:

Code:
man setterm
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable sleep mode, away mode standby, etc. ZiGz Linux - General 3 02-04-2008 12:32 AM
hibernate mode merlin23 Linux - Laptop and Netbook 1 12-02-2004 03:39 AM
Where's sleep mode in RH 8.0? bobterri Linux - Distributions 4 11-26-2002 11:13 PM
Sleep mode mrsolo Linux - Hardware 4 11-26-2002 08:05 PM
sleep mode mr.moto Linux - General 2 12-29-2001 09:43 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration