Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am running a web server at home using Ubuntu 11.4 (maybe? I can't 100% recall) on an older AMD 2400+ desktop with 1 or 2 GB of RAM. Sorry I can't recall the details 100%.

Anyway, I have a KVM hooked up to a monitor and PS2 keyboard that I use to switch between the server and my iMac (The keyboard is only hooked up so I can switch between the two easily. Many times a week, Pingdom will tell me the server is down and I can't hit the server. When I get home (it rarely happens when I am home), I hit the Ctrl key twice to switch to the server, hit the space bar and everything is now up and running again. I need to look again, but I don't believe there is any power saving features turned on in the BIOS.

Does anyone have any other suggestions of what I may have going on? I have my uncle's website running on it now and I really would like to have a better up-time than 95%

As a note, I do not have any GUI installed so everything has to be done on the console (or through WebMin) and I know my way around, but I am by no means experienced.

share|improve this question
    
Does anything appear in system logs (files under /var/log)? –  Gilles Nov 22 '11 at 23:34
    
Any logs I should look at in particular? –  Mike Wills Nov 23 '11 at 4:06
    
I don't know, look for log entries in any file (probably kern.log, but possibly others) created around the time the computer went to sleep. –  Gilles Nov 23 '11 at 8:28

2 Answers 2

up vote 13 down vote accepted

Have you tried adding the kernel options "acpi=off apm=off" to the GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub?

Then run sudo update-grub and reboot your computer.

share|improve this answer
    
Nope, I'll try that. –  Mike Wills Nov 22 '11 at 20:10
    
Well... I made the change. Only time will tell if it works. –  Mike Wills Nov 23 '11 at 4:04
    
I need to figure out why yet, but the server just "went down" again. –  Mike Wills Nov 23 '11 at 16:31
1  
Those kernel options should have completely disabled automatic power management. Did you rebuild grub with the update-grub command? –  JamesA Nov 23 '11 at 16:35
    
Nope... I was wondering if there was a step two. :-( –  Mike Wills Nov 23 '11 at 16:58

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

consoleblank=0
share|improve this answer

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.