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

104 Posts

02-14-2021

Ukraine

139 Signins

665 Page Views

  • Posts: 104
  • Registered: ‎02-14-2021
  • Location: Ukraine
  • Views: 665
  • Message 711 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-28, 5:54 AM

lol, you want someone to test if they brick your decide or not? 

 

https://github.com/fwupd/firmware-lenovo-thinkpad/issues/129

Reply
Options

6 Posts

07-26-2021

Switzerland

12 Signins

55 Page Views

  • Posts: 6
  • Registered: ‎07-26-2021
  • Location: Switzerland
  • Views: 55
  • Message 712 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-28, 8:55 AM

1.34 via lvfs worked without a problem on my P14s.

Reply
Options

10 Posts

06-04-2021

Germany

18 Signins

200 Page Views

  • Posts: 10
  • Registered: ‎06-04-2021
  • Location: Germany
  • Views: 200
  • Message 713 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-28, 9:16 AM

it works perfectly fine, I am just confused that there is no documentation available for 1.34 yet.

 

Edit: I just got this from LVFS:

 

This stable release fixes the following issues:

  • Included a security issue update.
  • Change the processing order of the Block SID commands.
  • Fixed an issue that Linux Fn+H/M/L keep input and touchpad hang problem.
  • Fixed an issue that No action respond after click the option by finger in BIOS/Boot menu with Touch panel SKU.
  • Fixed an issue that Enhanced Bottom Access Tamper Detection issue.

Some new functionality has also been added:

  • Add Support Shutdown Notification for NVMe SSD during BIOS update.
  • Add back flash prevention that can't rollback to older BIOS version.
Reply
Options

11 Posts

11-29-2018

Germany

24 Signins

132 Page Views

  • Posts: 11
  • Registered: ‎11-29-2018
  • Location: Germany
  • Views: 132
  • Message 714 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-28, 14:07 PM

Status on Arch default kernel on my T14s:

 

$ uname -a

Linux tim 5.13.5-arch1-1 #1 SMP PREEMPT Sun, 25 Jul 2021 18:02:58 +0000 x86_64 GNU/Linux

 

$ zgrep -Ei "CONFIG_AMD_PMC|CONFIG_I2C_HID_ACPI|CONFIG_HSA_AMD" /proc/config.gz

CONFIG_HSA_AMD=y

CONFIG_I2C_HID_ACPI=m

CONFIG_AMD_PMC=m

 

Using fwupdmgr I hit a known bug trying to update from 0.1.32 to 0.1.34 but succeeded when following the workaround described for my arch setup. Strange that 0.1.34 is currently not available on the driver download page for T14s. After downloading the EFI image and booting as suggested, the machine needed several reboots to do all stuff, including a slightly irritating "BIOS Self Healing Backup prograssing" (after which 0.1.34 was booted). I use a minimal setup without Boot Manager – just UEFI (set up using efibootmgr) and the kernels' self-boot feature. That way, boot manager cannot break ;)

 

Yet the FW-Upgrade to 0.1.34 seems unrelated to the drain issue.

Reply
Options

83 Posts

04-17-2021

Greece

59 Signins

380 Page Views

  • Posts: 83
  • Registered: ‎04-17-2021
  • Location: Greece
  • Views: 380
  • Message 715 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-28, 14:49 PM

I would use the live usb method. It seem a safer option than LVFS.

Reply
Options

23 Posts

03-01-2021

Singapore

19 Signins

115 Page Views

  • Posts: 23
  • Registered: ‎03-01-2021
  • Location: Singapore
  • Views: 115
  • Message 716 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-29, 8:08 AM

So I spent some time reading this thread, and I'm using a kind of weird setup.
I'm on Void Linux (no systemd, I read something about systemd causing some confusion or something?).

My T14 Gen 1 has a:

  • Ryzen 7 Pro 4750U
  • 48GB RAM (16GB soldered + 32GB stick)
  • SK Hynix PC611 512GB (came with laptop, planning to swap to a SN550 1TB I got for Prime Day)
  • WD SN520 2242 512GB in WWAN slot
  • X1 Extreme glass trackpad (Russian roulette on whether it stops working if I shut down fully and then power on while plugged in)

I am also using the Xanmod kernel as I tend to use it on charger/plugged in much more than battery but it's unpractical to bring a desktop to school, and Xanmod Cacule seems to improve responsiveness when my laptop is at/near 100% CPU usage (I study cybersecurity and use VMware Workstation on Linux because that's our syllabus & lab test hypervisor).

 

First, could the additional parts like the mismatched channels of memory and the 2nd SSD cause more power drain in sleep (S0ix or S3)? 

 

Secondly, I gather that the best setup for lowest sleep power drain is:

  • osnix's S0ix patches, either on Fedora/Ubuntu repo kernels, or self compile kernel (I'll attempt to compile latest Xanmod Cacule 5.13.4 with the S0ix patches later, because why not :p)
  • Kernel config must have 

    CONFIG_AMD_PMC=y

    CONFIG_I2C_HID_ACPI=m

    Comment out/unset any AMD HSA (can I just disable it completely?)

  • BIOS (S0ix, lid sensor on, USB always on disabled, don't disable additional devices? what should I put for UEFI network boot stack? anything else?)
  • Disable TLP & system76-power, manually tune with PowerTop if needed (I do rely on TLP for switching stuff like Bluetooth and CPU governors automatically, how much of a difference does it make?)
  • Add "iommu=pt tsc=nowatchdog acpi_osi=Linux" to Kernel Command Line options in bootloader

Is there anything else that I missed? I'd also appreciate if my questions in between can be answered.

 

I wanted to ask so I can try it out myself with the right setup, and also to serve as a tl;dr update for others reading, as I did have to read for around 30 mins between pages of this thread to gather and verify the correctness of the info above.

Reply
Options

390 Posts

03-06-2021

Germany

221 Signins

2355 Page Views

  • Posts: 390
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 717 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-29, 9:15 AM

@ JJGadgets wrote:

So I spent some time reading this thread, and I'm using a kind of weird setup.
I'm on Void Linux (no systemd, I read something about systemd causing some confusion or something?).

My T14 Gen 1 has a:

  • Ryzen 7 Pro 4750U
  • 48GB RAM (16GB soldered + 32GB stick)
  • SK Hynix PC611 512GB (came with laptop, planning to swap to a SN550 1TB I got for Prime Day)
  • WD SN520 2242 512GB in WWAN slot
  • X1 Extreme glass trackpad (Russian roulette on whether it stops working if I shut down fully and then power on while plugged in)

I am also using the Xanmod kernel as I tend to use it on charger/plugged in much more than battery but it's unpractical to bring a desktop to school, and Xanmod Cacule seems to improve responsiveness when my laptop is at/near 100% CPU usage (I study cybersecurity and use VMware Workstation on Linux because that's our syllabus & lab test hypervisor).

 

First, could the additional parts like the mismatched channels of memory and the 2nd SSD cause more power drain in sleep (S0ix or S3)? 

 

Secondly, I gather that the best setup for lowest sleep power drain is:

  • osnix's S0ix patches, either on Fedora/Ubuntu repo kernels, or self compile kernel (I'll attempt to compile latest Xanmod Cacule 5.13.4 with the S0ix patches later, because why not :p)
  • Kernel config must have 

    CONFIG_AMD_PMC=y

    CONFIG_I2C_HID_ACPI=m

    Comment out/unset any AMD HSA (can I just disable it completely?)

  • BIOS (S0ix, lid sensor on, USB always on disabled, don't disable additional devices? what should I put for UEFI network boot stack? anything else?)
  • Disable TLP & system76-power, manually tune with PowerTop if needed (I do rely on TLP for switching stuff like Bluetooth and CPU governors automatically, how much of a difference does it make?)
  • Add "iommu=pt tsc=nowatchdog acpi_osi=Linux" to Kernel Command Line options in bootloader

Is there anything else that I missed? I'd also appreciate if my questions in between can be answered.

 

I wanted to ask so I can try it out myself with the right setup, and also to serve as a tl;dr update for others reading, as I did have to read for around 30 mins between pages of this thread to gather and verify the correctness of the info above.

 

I don't have an SSD in the WWAN slot but it should not make a too big difference. 

 

Network stack either disable all if you don't need something from there, but if you do

enable ipv4 & ipv6.

 

If your T14 has DASH and/or TSME options disable both.

 

Regarding power-saving SW,  just disable it while you testing that, it is still a big experiment.

Just disable all, reboot, and use powertop--auto-tune + disable WOL.

I don't have a T14{s} machine, but users who tested saw a benefit of around 0.06W/h, eg: from 0.48 Wh down to 0.42 W/h.

It may sound to me not much but if you put your machine to sleep over the weekend it is a lot.

However, that is again something to experiment with.

 

Also in general T14 seems to eat more energy.

I got my P14s down to 0.31 W/h in S0ix and S3 to 0.62 W/h ( which is a joke, still, but it was over ~1.86 W/h at some point )

 

Short suspends eat a bit more energy, so to test your setup suspends >=2h first.

Also if you don't see any difference to S3 you may need to either try a reset sequence from that hole of the back of your machine

or shut down the battery from BIOS once.

 

Gabriel

Reply
Options

23 Posts

03-01-2021

Singapore

19 Signins

115 Page Views

  • Posts: 23
  • Registered: ‎03-01-2021
  • Location: Singapore
  • Views: 115
  • Message 718 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-29, 11:01 AM

It’s weird that T14/s uses more energy than P14s, isn’t it just the GPU driver + some physical materials that are different?

 

Unfortunate about TSME, I’m currently using that + zram for fully encrypted RAM + swap (I use encrypted ZFS for /home and plan to switch my OS install to ZFS root too). I’ll test it myself if it makes a big enough difference.

 

Thanks for the reply, seems I captured majority of the important stuff. Time to compile a S0ix Xanmod kernel ;)

 

 

Reply
Options

22 Posts

08-20-2020

Estonia

22 Signins

165 Page Views

  • Posts: 22
  • Registered: ‎08-20-2020
  • Location: Estonia
  • Views: 165
  • Message 719 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-29, 11:42 AM

5.14 has those patches mainlined

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/platform/x86/amd-pmc.c

Reply
Options

390 Posts

03-06-2021

Germany

221 Signins

2355 Page Views

  • Posts: 390
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2355
  • Message 720 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-29, 12:36 PM

@ mikk150 wrote:

5.14 has those patches mainlined

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/platform/x86/amd-pmc.c

 

5.14-rc4 will have all PMC patches, yes.

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