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

66 Posts

08-25-2017

Norway

65 Signins

579 Page Views

  • Posts: 66
  • Registered: ‎08-25-2017
  • Location: Norway
  • Views: 579
  • Message 201 of 313

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

2018-08-03, 12:40 PM

Please note that the firmware update you describe has nothing to do with Ubuntu and is completely separate from the Ubuntu package repositories. It's part of the Linux Vendor Firmware Service (or LVFS). It's an awesome project that aims to provide pain free installation of firmware updates through a centralized repository. Dell has long been the only major OEM to support it but we've known for a while that Lenovo has been testing it too. The official vendor support page now lists Lenovo has having hopped onboard and uploading firmware with certain models supported. This is fantastic news! Unfortunately it seems like they're only offering BIOS updates through it for now but it's still a lot less hassle than booting into a Windows environment or flashing a USB stick every time a new BIOS update comes out. BIOS updates these days tend to contain important security fixes which makes it important to stay up to date.

 

I have the X1 Carbon Gen 5 and I'm seeing BIOS updates too through LVFS. Here is a quick CLI guide:

 

To list all LVFS supported devices: 

 

fwupdmgr get-devices

 

To see all available firmware updates

 

fwupdmgr get-updates

 

To install all available updates

 

fwupdmgr update 

 

Reply
Options

66 Posts

08-25-2017

Norway

65 Signins

579 Page Views

  • Posts: 66
  • Registered: ‎08-25-2017
  • Location: Norway
  • Views: 579
  • Message 202 of 313

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

2018-08-03, 13:04 PM

The firmware update provided by LVFS has been uploaded by Lenovo directly so it should be pretty "official". I installed the 1.34 BIOS Update for my X1C5 using fwupdmgr and it worked flawlessly. A really smooth experience.

Reply
Options

35 Posts

04-08-2018

Germany

99 Signins

771 Page Views

  • Posts: 35
  • Registered: ‎04-08-2018
  • Location: Germany
  • Views: 771
  • Message 203 of 313

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

2018-08-05, 8:40 AM
Setting acpi.ec_no_wakeup=1 doesn't seem to work on my X1C with Ubuntu 18.04. It tries to go to S2 (not S3) according to syslog:
`systemd[1]: Starting Suspend...
systemd-sleep[7271]: Suspending system...
kernel: [ 1609.820560] PM: suspend entry (s2idle)
`
... then after a few minutes something causes it to wake up again
Reply
Options

8 Posts

03-02-2018

United States of America

50 Signins

387 Page Views

  • Posts: 8
  • Registered: ‎03-02-2018
  • Location: United States of America
  • Views: 387
  • Message 204 of 313

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

2018-08-05, 11:24 AM

s2idle isn’t the S2 state, and acpi.ec_no_wakeup=1 isn’t intended to allow the machine to go into S3. The kernel param is for reducing wake ups during low power states (e.g. S0i3)

Reply
Options

35 Posts

04-08-2018

Germany

99 Signins

771 Page Views

  • Posts: 35
  • Registered: ‎04-08-2018
  • Location: Germany
  • Views: 771
  • Message 205 of 313

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

2018-08-05, 11:54 AM

oh, I see. thank you. the s2idle in the syslog got me confused. however, in my case, the kernel param doesn't seem to improve the situation. maybe it only works with kernel 4.17?

Reply
Options

8 Posts

03-02-2018

United States of America

50 Signins

387 Page Views

  • Posts: 8
  • Registered: ‎03-02-2018
  • Location: United States of America
  • Views: 387
  • Message 206 of 313

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

2018-08-05, 12:52 PM

It was added in 4.15, and this patch https://patchwork.kernel.org/patch/10470935/ should eventually make that happen by default for the X1C6. 

 

If you haven’t applied the DSDT patch to enable S3, use powertop to tune all the available settings to enable power management on as many devices as possible, and then you can see how much time is spent into Package C-State 10 (pc10) during suspend.

 

I’m seeing about .2W during suspend (s2idle), and with S3, I see about 0.08W. I could probably get s2idle even lower if I disabled WiFi. 

 

Separately, while running I’ve seen big battery improvements adding the kernel parameter i915.enable_psr=1 and a few other i915-related parameters. The machine goes into pc10 even while running if the display doesn’t change. Also, I noticed that even with Bluetooth “disabled”, the btusb kernel module stays loaded, and even though it supports a low power mode during suspend, when not in suspend, that module causes some energy usage, so I remove that module (rmmod btusb). 

Reply
Options

11 Posts

07-13-2011

Bremen, Germany

54 Signins

404 Page Views

  • Posts: 11
  • Registered: ‎07-13-2011
  • Location: Bremen, Germany
  • Views: 404
  • Message 207 of 313

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

2018-08-06, 12:47 PM

Hi guys,

 

I just want to confirm that updating the BIOS on my X1C6 via the `fwupdmgr` cli-commands as described by @ardevd  earlier here worked flawlessly. I admit I was a bit nervous and it took some stealth patience, as after the initial reboot, I was staring at a complete black screen for maybe a minute. I checked if the power was on (yes it was, the power button was lit) and I had to tell myself twice not to turn the power off and on again, as it seemed that nothing was happening. My patience had paid off and after the said minute of complete darkness, I finally got a splashscreen with a progress bar.

 

PS: @ardevd started a new thread for the LVFS topic, which seems more appropriate than cluttering this here S3 sleep thread, but I thought I'd let you guys know here anyway, as many of you are probably considering updating your BIOS (which is totally advisable from a security point of view!).

Reply
Options

5 Posts

03-04-2018

Canada

22 Signins

248 Page Views

  • Posts: 5
  • Registered: ‎03-04-2018
  • Location: Canada
  • Views: 248
  • Message 208 of 313

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

2018-08-06, 14:03 PM

j6m6 wrote: 

... 

Separately, while running I’ve seen big battery improvements adding the kernel parameter i915.enable_psr=1 and a few other i915-related parameters. 


Please share! :) There are so many parameters and it's difficult to figure out which ones are actually necessary (especially since many of them are already default-on).

Reply
Options

3 Posts

05-14-2013

Denmark

6 Signins

119 Page Views

  • Posts: 3
  • Registered: ‎05-14-2013
  • Location: Denmark
  • Views: 119
  • Message 209 of 313

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

2018-08-08, 9:41 AM

Hi Lenovo, I just ended here in frustration after searching the net about why my machine can't keep battery during sleep. I 'm another customer of yours, using linux exclusively on X1C6, and don't get me wrong, this is an impressive machine. Please fix these issues, I would like to keep using thinkpads. Please keep the thinkpad brand linux friendly.

 

It is one thing that our community can put together patches/hacks, but if Lenovo introduces new features that favor Windows and that at the same time make the user experience on Linux worse then that is not good. Especially if the machines are certified for linux (Ubuntu).

 

Would you consider giving a selection in an upcoming bios release, something like 'use legacy s3 sleep'? Calling it legacy might make this addition easier to swallow for lobbyists trying to push the Windows OS ;)

 

Rumors in this thread say it's already happening, just wanted to give my vote on this.

Reply
Options

3 Posts

05-14-2013

Denmark

6 Signins

119 Page Views

  • Posts: 3
  • Registered: ‎05-14-2013
  • Location: Denmark
  • Views: 119
  • Message 210 of 313

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

2018-08-09, 11:01 AM

I can confirm that passing kernel parameter `acpi.ec_no_wakeup=1` resolves this issue for the most part in my case. I'm running kernel 4.17.12 (Arch linux) and did not override DSDT tables, nor disable the card reader or anything else than passing this kernel parameter.

 

I'm measuring a battery loss of about 0.75% per hour now when in suspend mode, which is perfectly fine for me.

 

I don't see having to press the power button in order to resume the machine as being too much of an annoyance.

 

So this doesn't introduce S3 state, but makes for a usable solution as far as I'm concerned.

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