Ubuntu – Kernel panic 1/10 times after resume from suspend

15.04hpkernelpower-managementsuspend

I have a HP Notebook 15 running Lubuntu 15.04.

On occasion after closing the lid and having my laptop suspend, I get kernel panic when I resume. Caps lock is blinking, and the screen locks – I have to force shut down on the power button as nothing is responsive. Every time this happens, /sys/var/kern.log prints out ################# characters.

Here is an example from just an hour ago. My log has a few of these entries. It happens 10% of the time resuming form suspend:

Sep 25 14:34:38 dalsgaard-HP-15-Notebook-PC kernel: [15374.532010] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready  
Sep 25 14:34:39 dalsgaard-HP-15-Notebook-PC kernel: [15374.621505] PM: Syncing filesystems ...   
Sep 25 14:34:39 dalsgaard-HP-15-Notebook-PC kernel: [15374.663345] userif-3: sent link down event.   
Sep 25 14:34:39 dalsgaard-HP-15-Notebook-PC kernel: [15374.663360] userif-3: sent link up event.   
##################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Sep 25 15:43:20 dalsgaard-HP-15-Notebook-PC kernel: [    0.000000] Initializing cgroup subsys cpuset  

The problem has been impossible to replicate so far, and seems independent of what applications I am running. I have yet to find any pattern.

UPDATE 2015-10-05:

I may have found a temporary work-around. 7 days ago I realized a pattern: Kernel panic would only happen after I had seen the login screen and entered my password. I decided to deactivate password request upon suspend resume, and since then I have not encountered any problems.

I think it may have fixed it. It would seem that the problem lies somewhere between logging in after resuming from suspend and reaching the desktop. Having no password on resume is not a good solution, but it looks like it is a temporary work-around.

Best Answer

This maybe answered here:

TuxOnIce provides the best way of enabling hibernation when the standard Ubuntu hibernation fails.

sudo apt-get install hibernate
sudo apt-get install tuxonice-userui
Related Question