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've experiences some configuration "resets" after ubuntu crashes:

  • Display configuration changed (I'd changing through /usr/bin/nvidia-settings)
  • Hibernation/Suspension turned on again (I'd disabled it)

In order to prevent those, I would like to know how exactly ubuntu recovers from crashes.

Background: I'm particulary intereseted in this topic because I've ubuntu connected to displays showing information across a public building. And it's pretty embarassing when the display config is all messed up and sometimes going all black (resolution not supported).

share|improve this question
1  
You might wanna track down the problem which crashes the system instead of finding away around recovering methods. If the system is constantly crashing every few hours, I'd suspect a hardware problem or a problem with the used software. Does dmesg output anything of interest, or maybe ~/.xsession-errors? –  Bobby Oct 21 '10 at 20:27
    
Sadly, some crashes are inevitable. e.g.: the cleaning personal ungplugs the machine to plug the vacuum cleaner; blackouts; ... I want to be covered even in those cases. –  Toto Oct 22 '10 at 15:15
1  
Ubuntu should recover from those 'sudden' shutoffs without any complications, at least Lucid did. So if your X-Settings are getting reset, it's most likely a problem with the driver or with the XServer itself, only in that case Bulletproof-X should jump in and revert the settings. –  Bobby Oct 22 '10 at 16:45
    
+1 @Bobby, good points. –  Toto Oct 23 '10 at 22:15
    
hatou saved your settings to the xorg.conf file? –  RolandiXor Oct 30 '10 at 3:37
add comment

1 Answer

up vote 4 down vote accepted

Ubuntu does nothing beyond normal filesystem checks when recovering from a crash. If you're seeing changes to configurations, perhaps the filesystem is not handling crashes very well (on a crash, it will just run a standard fsck). Try identifying which files are changing that are causing you the problem. (What commands do you run to save the settings, etc?)

If this is a public display system, you may want to investigate replacement hardware (crashing every few hours sounds like a more serious problem), or checking to see if whatever you're displaying is not leaking memory and triggering the Out-Of-Memory killer. (Keep an eye on the output of free between reboot and the crash.)

share|improve this answer
    
Thanks @Kees-Cook. The system is not crashing every few hours, I didn't mean that. My bad, I've just edited that –  Toto Nov 1 '10 at 22:43
add comment

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.