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).
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.)