English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

3 Posts

03-23-2018

US

4 Signins

50 Page Views

  • Posts: 3
  • Registered: ‎03-23-2018
  • Location: US
  • Views: 50
  • Message 81 of 313

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

2018-04-19, 17:59 PM

I'm using the "acpi.ec_no_wakeup=1" under fedora workstation 27 and it is working pretty well. Besides having to push the power button to wake it I have not had any issues. It sleeps right away after closing the lid. The keyboard/trackpad works right away. I do reboot the system once a week after kernel/software updates. It has never crashed. I'm using the default fedora workstation 27 with wayland/GNOME. 

Reply
Options

5 Posts

04-12-2018

CH

9 Signins

143 Page Views

  • Posts: 5
  • Registered: ‎04-12-2018
  • Location: CH
  • Views: 143
  • Message 82 of 313

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

2018-04-19, 20:47 PM

Was/is there an official Lenovo statement? For me (and lots of my colleagues!!) this machine is useless - please Lenovo give us at least a message about the timeline/fact that you are working on this huge bug...

Reply
Options

14 Posts

03-05-2018

AU

27 Signins

410 Page Views

  • Posts: 14
  • Registered: ‎03-05-2018
  • Location: AU
  • Views: 410
  • Message 83 of 313

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

2018-04-19, 22:28 PM

test post, (sorry my reply wasn't working before for some reason)

Edit: Why does my post keep disappearing?!?!, Here it is:

wrote:

Did someone managed to get a reliabe suspend/resume working? I tried arch linux/ubuntu 18.04 both with 4.15.x, ubuntu 18.04 with 4.16.2 and 4.17 rc1. With and without acpi.ec_no_wakeup=1 and with and without the dsdt patch.

Every combination has its flaws... Sometimes the touchpad, keyboard or both are not working after resume. Sometimes everything crashes and i lose my complete session.

touchpad at least can be reactivated with sudo modprobe -r psmouse sudo modprobe psmouse and I am sure the same can be done for the keyboard but try tipping without keyboard...

So if someone achived a working suspend/resume plz tell me your kernel version and maybe systemd version. Thanks a lot!

ps. lenovo plz do something!

Yes! I have suspend/resume working pretty much flawlessly in Fedora27 with only the DSDT patch (0.2w power draw, closing and opening the lid works, all devices like the touchpad and keyboard always work after resume, everything you would expect).

The only annoyance is needing to update /boot/efi/EFI/fedora/grub.cfg every time a new kernel version comes out.

 

I'm running the latest kernel 4.15.16-300.fc27.x86_64.

 

I followed this guide https://delta-xi.net/#056, there were a few differences which I'll list below:

 

At step 5 I did have to do the patch manually, as it states here:

Plan B: If this does not work (patch is rejected): It has been the case, that certain UEFI settings may lead to different DSDT images. This means that it may be possible that the above patch doesn't work at all with your decompiled DSL. If that is the case, don't worry: Go through the .patch file in your editor, and change your dsdt.dsl by hand. This means locating the lines which are removed in the patch and removing them in your dsl. The patch contains only one section at the end which adds a few lines - these are important and make the sleep magic happen. 

At step 9, I had find the equivalent grub.cfg to edit in Fedora:

/boot/efi/EFI/fedora/grub.cfg

instead of 

/boot/grub/grub.cfg

 

At step 10, when updating /etc/default/grub, mine looked like this:

GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.luks.uuid=luks-af878c99-1220-4ad5-abbe-aba5be757c69 rd.lvm.lv=fedora/swap rhgb quiet mem_sleep_default=deep"

instead of 

GRUB_CMDLINE_LINUX_DEFAULT="quiet mem_sleep_default=deep"

  

There could be a few smaller differences I've forgotten about as I did it a while ago. I don't see why this wouldn't work in Ubuntu as well.

Good luck!

 

Reply
Options

7945 Posts

09-04-2014

SK

32485 Signins

1199015 Page Views

  • Posts: 7945
  • Registered: ‎09-04-2014
  • Location: SK
  • Views: 1199015
  • Message 84 of 313

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

2018-04-19, 22:27 PM
 

Andy

 

English Community Administrator
Lenovo eServices

Please remember to come back and mark the post that you feel answered your question as the solution. 
Did you find a post helpfull? You can thank the member by awarding them a Thumbs Up
 

Please don't ask me questions by Personal Message; questions belong in the forums.
Using Browser Search to find your answers in Lenovo and Moto Community

Reply
Options

7945 Posts

09-04-2014

SK

32485 Signins

1199015 Page Views

  • Posts: 7945
  • Registered: ‎09-04-2014
  • Location: SK
  • Views: 1199015
  • Message 85 of 313

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

2018-04-19, 22:29 PM
 

Andy

 

English Community Administrator
Lenovo eServices

Please remember to come back and mark the post that you feel answered your question as the solution. 
Did you find a post helpfull? You can thank the member by awarding them a Thumbs Up
 

Please don't ask me questions by Personal Message; questions belong in the forums.
Using Browser Search to find your answers in Lenovo and Moto Community

Reply
Options

7945 Posts

09-04-2014

SK

32485 Signins

1199015 Page Views

  • Posts: 7945
  • Registered: ‎09-04-2014
  • Location: SK
  • Views: 1199015
  • Message 86 of 313

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

2018-04-19, 21:44 PM
 

Andy

 

English Community Administrator
Lenovo eServices

Please remember to come back and mark the post that you feel answered your question as the solution. 
Did you find a post helpfull? You can thank the member by awarding them a Thumbs Up
 

Please don't ask me questions by Personal Message; questions belong in the forums.
Using Browser Search to find your answers in Lenovo and Moto Community

Reply
Options

7945 Posts

09-04-2014

SK

32485 Signins

1199015 Page Views

  • Posts: 7945
  • Registered: ‎09-04-2014
  • Location: SK
  • Views: 1199015
  • Message 87 of 313

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

2018-04-19, 21:48 PM
 

Andy

 

English Community Administrator
Lenovo eServices

Please remember to come back and mark the post that you feel answered your question as the solution. 
Did you find a post helpfull? You can thank the member by awarding them a Thumbs Up
 

Please don't ask me questions by Personal Message; questions belong in the forums.
Using Browser Search to find your answers in Lenovo and Moto Community

Reply
Options

11 Posts

03-03-2018

US

47 Signins

598 Page Views

  • Posts: 11
  • Registered: ‎03-03-2018
  • Location: US
  • Views: 598
  • Message 88 of 313

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

2018-04-21, 16:42 PM

Same as JeremyS, I have deep sleep working perfectly on Fedora 27.

 

I think everything JeremyS said applies to me as well, except that each time a new kernel update occurs, I instead edit /etc/grub2-efi.cfg to add /acpi_override before the new .img file.

 

For example, the line:

initrdefi /initramfs-4.15.16-300.fc27.x86_64.img

Becomes:

initrdefi /acpi_override /initramfs-4.15.16-300.fc27.x86_64.img

This is a bit annoying, but not too bad.

Reply
Options

3 Posts

02-26-2015

FR

10 Signins

81 Page Views

  • Posts: 3
  • Registered: ‎02-26-2015
  • Location: FR
  • Views: 81
  • Message 89 of 313

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

2018-04-22, 18:10 PM

Discalimer: This post does not fix the problem, I'm just describing my attempt to find a solution. If you are not into Linux, please ignore it.

 

Related to this, in order to add automatically "/acpi_override" before the initramfs, I tried to modify the script /etc/grub.d/10_linux that seems to be the responsible to generate all the "menuentry" entries in the grub.cfg (in my case, /boot/efi/EFI/fedora/grub.cfg). In particular, I've modified it as it follows:

--- 10_linux.orig	2018-04-12 22:27:34.975272883 +0200
+++ /etc/grub.d/10_linux	2018-04-16 15:02:59.810503865 +0200
@@ -184,11 +184,11 @@
   if test -n "${initrd}" ; then
     if [ -d /sys/firmware/efi ]; then
       sed "s/^/$submenu_indentation/" << EOF
-	${initrdefi} ${rel_dirname}/${initrd}
+	${initrdefi} ${rel_dirname}/acpi_override ${rel_dirname}/${initrd}
 EOF
     else
       sed "s/^/$submenu_indentation/" << EOF
-	initrd${sixteenbit} ${rel_dirname}/${initrd}
+	initrd${sixteenbit} ${rel_dirname}/acpi_override ${rel_dirname}/${initrd}
 EOF
     fi
   fi

Indeed, when I run

grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

the script works well and adds "/acpi_override" where it should.

 

I though this script (grub2-mkconfig + 10_linux) was used at every kernel upgrade, but I was wrong. In fact, when upgrading the kernel in my Fedora, such a script is apparently not used, and the new "menuentry" for the new kernel is generated via other means. Of course, running the grub2-mkconfig command after every kernel upgrade fixes the problem (i.e., "/acpi_override" is added to all the menuentries), but it is still a silly thing to do...

 

As some of you, I'm using Fedora Workstation 27.

Reply
Options

33 Posts

03-11-2018

DE

51 Signins

731 Page Views

  • Posts: 33
  • Registered: ‎03-11-2018
  • Location: DE
  • Views: 731
  • Message 90 of 313

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

2018-04-24, 12:24 PM

hi, thanks for the answers. However, i have no problems applying the dsdt patch or adding kernel parameters. The power consumption is also fixed by it. It's just that almost every suspend/resume cycle breaks something :/  So suspend/resume is like russian roulette...

 

I have now also tested 4.17 rc2 but it doesnt fix the problems. Maybe i also have to test fedora even it is also using kernel 4.15

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete