I'm running Ubuntu 12.04, and my laptop* won't wake from sleep/suspend/hibernate. (Is sleep the same thing as suspend?) I'm not even sure which of these things it's doing. When I am done working for the day, I lock my screen (Control-Alt-L). When I come back the next day, the screen is in power saving mode, and no amount of typing or clicking (on the usb keyboard/mouse or the builtin keyboard/trackpad) nor tapping the power button will bring it back to life.
The only way I can get my machine to work is to hold down the power button until it shuts off, then press the power button again to turn it back on. Obviously, anything I had open from the previous day is pretty much gone -- in particular, my VMs all get rudely shut down without any warning.
This is driving me INSANE. I spend the first hour of every work day trying to figure out how to get my computer to stop locking up over night.
What I've tried:
- Editing the org.freedesktop.upower.policy to disable suspend and hibernate.
- Setting power management options in "Power" section of "System Settings".
- Looking at all power management options in the BIOS (none appear to be relevant to sleep/suspend/hibernate).
- Reading every forum post/askubuntu post that I can find that's even tangentially related to the subject.
- Add acpi=off to kernel args. (Results in USB keyboard and mouse not working, so I didn't wait to see if it fixes the suspend.)
- Add apm=off to kernel args.
My question: how to disable the automatic sleep and/or hibernate (and/or anything similar) in Ubuntu 12.04. I don't care if it's still possible to sleep/suspend/hibernate/whatever by pushing buttons or running some command or reciting led zeppelin lyrics backwards. I just want my laptop to be ready for work in the morning.
*The laptop is a Dell Latitude something or other. I don't want to get too specific because I've seen a lot of similar questions get closed for being too specific. I think my question is generic enough to stand -- it's a question about the latest, stable version of Ubuntu.
Link to dmesg
Link to /var/log/kern.log
Nothing I've tried so far has prevented Ubuntu from sleeping at night, and when it does sleep, nothing I have tried can reliably get it to wake back up. I've seen a few posts that say buggy video drivers can cause problems with waking.
Last night, on a hunch, I tried switching to console (ctrl+alt+1) before leaving work, just to see what would happen. This morning when I woke up the computer, it instantly woke up back to the console. I switched over to Gnome (ctrl+alt+7) and although the screen looked frozen, I typed my password, pressed enter, and made some coffee. When I got back a few minutes later, my desktop was ready, just like I left it last night.
I'm going to keep trying this to see if this is a reliable solution.
No dice. Switching to the console after logging out does nothing for me... still have to reboot my computer each morning. It's driving me nuts... I can't believe how erratic suspend is on Ubuntu. Or the fact that it can't simply be disabled.