Lenovo X1 Carbon with Ubuntu 14.04 wakes from suspend by itself after 3 hours

Solution 1:

Just to complete the solution:

To disable the deep sleep in the X1's BIOS,

  • reboot your X1
  • press F12 immediately after startup to enter BIOS
  • press Tab to select "App Menu"
  • press Enter to enter "Setup"
  • press to select the "Config"
  • press until you get to "Power", then ENTER
  • press until you get to "Intel (R) Rapid Start Technology"
  • press Enter to switch it to "Disabled"
  • finally, tap F10 to Save and Exit

Solution 2:

Solution!

I found a description of someone experiencing something similar. It was due to the fact that the machine goes into 'deep-sleep' mode after exactly 3 hours.

And while it had done this sometimes, for which I was glad, it sometimes somehow did not manage to 'deep-sleep' correctly.

I disabled this function entirely in the BIOS, and initial empirical analysis shows that it works :)

Quote from http://forums.lenovo.com:

As for the Intel hibernation scheme, as you noted, it requires a dedicated partition on your SSD that can't be used for any other purpose. The only setting in Windows is inside the Lenovo Settings application, in the Power section. Lenovo calls this feature "30 day standby". The only thing you can do is turn it on or off. Here's how "30 day standby" works:

  1. when you close the lid or otherwise put the system into sleep mode, the system sleeps for 3 hours.

  2. after 3 hours, the system will wake and check some things, such as AC not attached, wake-on-LAN not enabled, USB device not attached, etc. If the conditions allow, then the system will enter the 30-day standby state e.g. deep sleep. Otherwise the system goes back into normal sleep mode.

  3. Deep sleep means that the contents of memory are written to the special hibernation partition on the SSD. it is very similar to traditional hibernation except that it happens faster by using BIOS methods instead of Windows methods. But it's not anywhere near as fast as normal sleep/resume.

  4. The system comes out of deep sleep mode when the lid is opened, or when the power button is pressed.

You found the BIOS settings but actually they are ignored whenever Lenovo Settings (and Lenovo Settings Dependency Package) are installed on the system. I really don't know why this design choice was made.

Personally I don't see value in 30 day standby, at least not enough value to want to give up 8GB of my expensive SSD. I use sleep/resume exclusively. The battery will last several days. And if I'm going to be away from the computer for an extended time then I'll just shut it down.