Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

14 Posts

04-09-2018

United Kingdom of Great Britain and Northern Ireland

38 Signins

359 Page Views

  • Posts: 14
  • Registered: ‎04-09-2018
  • Location: United Kingdom of Great Britain and Northern Ireland
  • Views: 359
  • Message 211 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 12:37 PM

I don't know how to measure my power loss, but I left the laptop at 100%, closed the lid, went to bed, and 8 hours later it was empty (critical battery) when trying to resume, had to plug in the charger and boot from off.

 

I _do_ have the acpi.no_ec_wakeup=1 parameter.

 

I attemped the DSDT table patch, everything _seemed_ to work (no problem decompiling, applying patch, recompiling, editing grub config etc etc) and yet, after a reboot, dmsg still does not include s3 as a listed suspend state.

 

I'm kind of at a loss here. My x270 running exactly the same 18.04 pop_os install (basically ubuntu 18.04) can be left lid closed for DAYS and resume with barely a few percent lost. The x1c6, not so much (yet.)

 

I'd love to get the DSDT patch working, but I don't know where to start figuring out what is even going on there.

 

I have the Thunderbolt bios setting enabled, no SD card rider in my machine (that I can see).

 

It's a real shame, 'cos it's a pretty good piece of kit (loose enter key, loose trackpoint left button, bit shoddy on the QC lenovo!)

Reply
Options

2 Posts

08-16-2018

United Kingdom of Great Britain and Northern Ireland

3 Signins

79 Page Views

  • Posts: 2
  • Registered: ‎08-16-2018
  • Location: United Kingdom of Great Britain and Northern Ireland
  • Views: 79
  • Message 212 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 12:51 PM

Hello all,

 

Thanks to everyone for their help in solving this. 
I had this all working until this morning when my X1 updated to 4.15.0-32-generic.
From that point on suspend stopped working. 
Now it starts the suspend process but the simply wakes up within a sec or so.

This is my syslog log:

 

Aug 16 13:38:53 Ulysses systemd[1]: Started Run anacron jobs.
Aug 16 13:38:53 Ulysses anacron[10574]: Anacron 2.3 started on 2018-08-16
Aug 16 13:38:53 Ulysses anacron[10574]: Normal exit (0 jobs run)
Aug 16 13:38:53 Ulysses kernel: [ 1399.029375] PM: suspend entry (s2idle)
Aug 16 13:38:53 Ulysses kernel: [ 1399.029376] PM: Syncing filesystems ... done.
Aug 16 13:38:55 Ulysses kernel: [ 1399.297198] Freezing user space processes ... (elapsed 0.003 seconds) done.
Aug 16 13:38:55 Ulysses kernel: [ 1399.301012] OOM killer disabled.
Aug 16 13:38:55 Ulysses kernel: [ 1399.301013] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 16 13:38:55 Ulysses kernel: [ 1399.302927] Suspending console(s) (use no_console_suspend to debug)
Aug 16 13:38:55 Ulysses kernel: [ 1399.303705] wlp2s0: deauthenticating from 98:fc:11:b1:05:16 by local choice (Reason: 3=DEAUTH_LEAVING)
Aug 16 13:38:55 Ulysses kernel: [ 1399.436126] e1000e: EEE TX LPI TIMER: 00000011
Aug 16 13:38:55 Ulysses kernel: [ 1399.744061] acpi INT3400:00: Unsupported event [0x86]
Aug 16 13:38:55 Ulysses kernel: [ 1399.751276] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
Aug 16 13:38:55 Ulysses kernel: [ 1399.751278] thinkpad_acpi: unhandled HKEY event 0x6032
Aug 16 13:38:55 Ulysses kernel: [ 1399.751279] thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@lists.sourceforge.net
Aug 16 13:38:55 Ulysses kernel: [ 1399.893094] acpi INT3400:00: Unsupported event [0x86]
Aug 16 13:38:55 Ulysses kernel: [ 1400.116511] nvme nvme0: Shutdown timeout set to 8 seconds
Aug 16 13:38:55 Ulysses kernel: [ 1400.694990] [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.
Aug 16 13:38:55 Ulysses kernel: [ 1400.734012] OOM killer enabled.
Aug 16 13:38:55 Ulysses kernel: [ 1400.734012] Restarting tasks ... 
Aug 16 13:38:55 Ulysses kernel: [ 1400.737165] [drm] RC6 on
Aug 16 13:38:55 Ulysses wpa_supplicant[1103]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=0 noise=9999 txrate=0
Aug 16 13:38:55 Ulysses wpa_supplicant[1103]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=98:fc:11:b1:05:16 reason=3 locally_generated=1
Aug 16 13:38:55 Ulysses kernel: [ 1400.738855] done.
Aug 16 13:38:55 Ulysses NetworkManager[1096]: <warn>  [1534423135.2286] sup-iface[0x558ae0278650,wlp2s0]: connection disconnected (reason -3)
Aug 16 13:38:55 Ulysses NetworkManager[1096]: <info>  [1534423135.2342] device (wlp2s0): supplicant interface state: completed -> disconnected
Aug 16 13:38:55 Ulysses kernel: [ 1400.758402] PM: suspend exit
Aug 16 13:38:55 Ulysses systemd[1]: Started Run anacron jobs.
Aug 16 13:38:55 Ulysses anacron[10929]: Anacron 2.3 started on 2018-08-16
Aug 16 13:38:55 Ulysses anacron[10929]: Normal exit (0 jobs run)

 

Not sure if this is related to the X1 or the new kernel.

Any advice would be most welcomed

 

/G

Reply
Options

8 Posts

04-12-2018

Austria

17 Signins

122 Page Views

  • Posts: 8
  • Registered: ‎04-12-2018
  • Location: Austria
  • Views: 122
  • Message 213 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 13:11 PM

 wrote:

I don't know how to measure my power loss, but I left the laptop at 100%, closed the lid, went to bed, and 8 hours later it was empty (critical battery) when trying to resume, had to plug in the charger and boot from off.

 

I _do_ have the acpi.no_ec_wakeup=1 parameter.

 

I attemped the DSDT table patch, everything _seemed_ to work (no problem decompiling, applying patch, recompiling, editing grub config etc etc) and yet, after a reboot, dmsg still does not include s3 as a listed suspend state.

 

I'm kind of at a loss here. My x270 running exactly the same 18.04 pop_os install (basically ubuntu 18.04) can be left lid closed for DAYS and resume with barely a few percent lost. The x1c6, not so much (yet.)

 

I'd love to get the DSDT patch working, but I don't know where to start figuring out what is even going on there.

 

I have the Thunderbolt bios setting enabled, no SD card rider in my machine (that I can see).

 

It's a real shame, 'cos it's a pretty good piece of kit (loose enter key, loose trackpoint left button, bit shoddy on the QC lenovo!)


Did you forget to 'update-grub' after altering the /etc/default/grub? Did you add /boot/acpi_override in /boot/grub/grub.cfg after using 'update-grub'?

This was what I messed up the first time, maybe it helps ;P

Reply
Options

14 Posts

04-09-2018

United Kingdom of Great Britain and Northern Ireland

38 Signins

359 Page Views

  • Posts: 14
  • Registered: ‎04-09-2018
  • Location: United Kingdom of Great Britain and Northern Ireland
  • Views: 359
  • Message 214 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 14:09 PM

Thanks for the reply, I did update-grub, and I checked manually that the /boot/grub/grub/cfg did indeed contain the /boot/acpi_override text. 

 

I'm skeptical though, because on my first attempt I typo'd override as overide and the machine booted without complaint. I guess that despite editting both the template, and checking /boot/grub/grub/cfg, that config is maybe not being used? Is there a way to tell?

Reply
Options

8 Posts

05-10-2018

Canada

19 Signins

214 Page Views

  • Posts: 8
  • Registered: ‎05-10-2018
  • Location: Canada
  • Views: 214
  • Message 215 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 15:33 PM

On the grub menu, highlight the entry you want to boot and hit E to view the content. Make sure it has the acpi_override snippet in the initrd line.

Reply
Options

14 Posts

04-09-2018

United Kingdom of Great Britain and Northern Ireland

38 Signins

359 Page Views

  • Posts: 14
  • Registered: ‎04-09-2018
  • Location: United Kingdom of Great Britain and Northern Ireland
  • Views: 359
  • Message 216 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 21:08 PM
I don't even get a grub menu when I boot. How can I enable/force that, do you know?
Reply
Options

8 Posts

05-10-2018

Canada

19 Signins

214 Page Views

  • Posts: 8
  • Registered: ‎05-10-2018
  • Location: Canada
  • Views: 214
  • Message 217 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-16, 21:42 PM
It all depends on how Grub was configured. Give /etc/default/grub a look to see how yours look. Sometimes there's a "hidden timeout" and you have to press Esc to get the menu. Sometimes the menu is totally disabled and the system boots straight to the first option. If your case is the second one, you'll have to change some setting to actually see the menu.
Reply
Options

8 Posts

05-10-2018

Canada

19 Signins

214 Page Views

  • Posts: 8
  • Registered: ‎05-10-2018
  • Location: Canada
  • Views: 214
  • Message 218 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-17, 3:09 AM
Ok, I just tried Pop OS 18.04 in a VM and all you need to do is, in /etc/default/grub, comment out the line that says GRUB_TIMEOUT_STYLE=hidden.

So, the steps would be:

1. Comment out or delete the line GRUB_TIMEOUT_STYLE=hidden
2. Run sudo update-grub
3. Edit /boot/grub/grub.cfg (which gets overwritten by update-grub) and add the acpi_override thing.
4. Reboot.
Reply
Options

8 Posts

05-10-2018

Canada

19 Signins

214 Page Views

  • Posts: 8
  • Registered: ‎05-10-2018
  • Location: Canada
  • Views: 214
  • Message 219 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-17, 3:14 AM

Also, for Debian derivatives, like Ubuntu & Pop OS, refer to my post in page 11 to get the /boot/acpi_override added automatically to your initrd after every kernel upgrade.

 

https://forums.lenovo.com/t5/Linux-Discussion/X1-Carbon-Gen-6-cannot-enter-deep-sleep-S3-state-aka-Suspend-to/m-p/4071927/highlight/true#M10957

 

 

Reply
Options

14 Posts

04-09-2018

United Kingdom of Great Britain and Northern Ireland

38 Signins

359 Page Views

  • Posts: 14
  • Registered: ‎04-09-2018
  • Location: United Kingdom of Great Britain and Northern Ireland
  • Views: 359
  • Message 220 of 313

Re: X1 Carbon Gen 6 cannot enter deep sleep (S3 state aka Suspend-to-RAM) on Linux

2018-08-17, 6:47 AM
I really appreciate the direct help, but commenting out GRUB_TIMOUT_STYLE and running update-grub changed nothing.

I looked in /boot/grub/grub.cfg and ever initrd line includes /boot/acpi_override, but I still don't see the grub menu.

I'll keep trying things, thanks again for the help.
Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms