Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am getting a web server setup at home on an older AMD 2400+ desktop. I have Ubuntu 11.04 installed and running however, after a time, I can no longer browse to the server. When I go to the keyboard and press a key, everything magically works again.

I have looked through the BIOS and I am not seeing any power saving features enabled. Is there anything like that in Ubuntu? Can it be disabled?

I don't have any GUI installed. This is console only.

share|improve this question

5 Answers 5

GUI

Have you looked at:

System -> Preferences -> Power Management

On AC Power Tab, Put computer to sleep when inactive for: "Never"

Terminal

Can you open up "gconf-editor"?

Look in: /apps/gnome-power-manager/timeout

Try setting sleep_computer_ac to 0

I'm not positive if anything else needs to be changed as well.

share|improve this answer
    
How do I do that on the console? I don't have a gui installed. –  Mike Wills Jun 6 '11 at 20:17
    
@Mike Wills Updated since you have no gui –  Jason Iverson Jun 6 '11 at 20:41
1  
Again, I don't have gnome or any of that installed. It is a pure console. –  Mike Wills Jun 7 '11 at 1:47
2  
WTF is /apps??? –  mehaase Jun 28 '12 at 13:41

Please try looking into these links - cyberciti.biz and Arch forums

This is an excerpt from the cyberciti.biz link:

By default, the Linux kernel will use screen-save option to disable it you need to type this command (it turns off monitor VESA powersaving features):

$ setterm -powersave off -blank 0

If it dumps back you with an error that read as follows: cannot (un)set powersave mode

You need to shutdown X window system and rerun the above command. Better, add following two commands to your ~/.xinitrc file:

setterm -blank 0 -powersave off -powerdown 0
xset s off
share|improve this answer
up vote 1 down vote accepted

The right answer for this located here

share|improve this answer
2  
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Eliah Kagan Feb 1 '13 at 13:26

I think you might want to turn both suspend and screen lock off. Here are a few screenshots that might help you navigate which settings I modified to make my ubuntu virtualbox never sleep.

enter image description here

enter image description here

enter image description here

share|improve this answer

Add the following line to the end of your kernel parms in /boot/grub/grub.conf:

consoleblank=0
share|improve this answer
1  
I suppose this is for the console going blank, doubt it will stop sleeping –  Nanne Feb 1 '13 at 12:03
    
And considering that I already have a working answer, there really isn't a need for another answer. –  Mike Wills Feb 1 '13 at 14:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.