Comment 33 for bug 35213

Revision history for this message
Open Sense Solutions (opensense) wrote :

Here is a new easier workaround without removing all those packages (or using dpkg --force-all -r laptop-mode-tools, which will cause dependency problems later):

sudo mv /usr/sbin/laptop_mode /usr/sbin/laptop_mode.disabled

(of course upgrading to a new laptop-mode-tools package will put that file back into place, but hopefully it contains a fix for this by then)

Looking at that script, even when laptop mode is turned off in the config files it still writes some information to /proc/sys/... to shut laptop mode off, and I suspect that somehow that is screwing up the kernel/hard drive during hibernation writing.

So, we have two problems here:
problem #1-- laptop mode screws things up even when it is completely "disabled" in config files or "stopped" . A quick fix for this would be to check if laptop-mode was never enabled and if not, do nothing for the "stop" action instead of "Adjusting 2.6 kernel parameters to disable laptop mode." (line 1038)
problem #2-- enabling laptop mode causes extremely slow hard drive writing during battery powered hibernation. This sounds like it could be a lot harder to fix.

I won't be delving into this any further for a while, but I'd be happy to do more testing if there is a fix.