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

19 Posts

07-30-2021

Spain

40 Signins

295 Page Views

  • Posts: 19
  • Registered: ‎07-30-2021
  • Location: Spain
  • Views: 295
  • Message 811 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-14, 11:44 AM

I have been testing the kernel 5.14 rc5 in Ubuntu (downloaded package from https://kernel.ubuntu.com/~kernel-ppa/mainline/) , and it looks like it has improved. How can I measure the power consumption?
With this kernel, everytime a shut down the laptop (P14s gen1), it reboots. Not a big deal, but does not happen with 5.11 nor 5.13.
Anyone else having this issue?

Reply
Options

26 Posts

08-20-2020

Estonia

27 Signins

180 Page Views

  • Posts: 26
  • Registered: ‎08-20-2020
  • Location: Estonia
  • Views: 180
  • Message 812 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-14, 12:02 PM

@ jixbo wrote:

I have been testing the kernel 5.14 rc5 in Ubuntu (downloaded package from https://kernel.ubuntu.com/~kernel-ppa/mainline/) , and it looks like it has improved. How can I measure the power consumption?
With this kernel, everytime a shut down the laptop (P14s gen1), it reboots. Not a big deal, but does not happen with 5.11 nor 5.13.
Anyone else having this issue?

I am also on 5.14 rc5 and if I shut down, my laptop will just does reboot.

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 813 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-14, 12:21 PM

@ mikk150 wrote:

@ jixbo wrote:

I have been testing the kernel 5.14 rc5 in Ubuntu (downloaded package from https://kernel.ubuntu.com/~kernel-ppa/mainline/) , and it looks like it has improved. How can I measure the power consumption?
With this kernel, everytime a shut down the laptop (P14s gen1), it reboots. Not a big deal, but does not happen with 5.11 nor 5.13.
Anyone else having this issue?

I am also on 5.14 rc5 and if I shut down, my laptop will just does reboot.

 

Guys, either you follow the thread or not. Asking the same questions or complaining about things are

already explained or have a fix already doesn't help anyone.

 

https://forums.lenovo.com/t5/Other-Linux-Discussions/T14-AMD-battery-drain-in-standby-Linux/m-p/5037674?page=76#5392232

Reply
Options

31 Posts

05-16-2015

Schweiz

32 Signins

374 Page Views

  • Posts: 31
  • Registered: ‎05-16-2015
  • Location: Schweiz
  • Views: 374
  • Message 814 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-16, 18:08 PM

This is fixed in 5.14.0-rc6 (https://github.com/torvalds/linux/commit/c4b68e513953c3370ce02c3208c1c628c0b86fd3)

Reply
Options

4 Posts

07-16-2021

Montenegro

11 Signins

75 Page Views

  • Posts: 4
  • Registered: ‎07-16-2021
  • Location: Montenegro
  • Views: 75
  • Message 815 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-17, 15:10 PM

Hi guys, Ill share my observations...

I have a Tninkpad x13 gen1 / AMD Ryzen 7 PRO / kernel 5.14-rc3 / bios v1.32 and v1.34
Debian 10 and 11 without DE only X and i3

I had 2 problems.

1. Without any manipulation, I had a battery drain in standby above 1.xx W/h.

2. Trackpoint cursor jumps to the edges of the screen all the time.


1. After reading here I build 5.14-rc3 kernel with these options:
CONFIG_AMD_PMC=y
CONFIG_I2C_HID_ACPI=m

2. I found a fix for the Trackpoint  (https://bugzilla.kernel.org/show_bug.cgi?id=209167)
drivers/input/mouse/elantech.c
523             if (etd->info.fw_version == 0x7f3001 &&
524                 (packet[4] == 0x80 || packet[5] == 0x80 ||
525                  packet[1] >> 7 == packet[4] >> 7 ||
526                  packet[2] >> 7 == packet[5] >> 7)) {
527                 elantech_debug("discarding packet [%6ph]\n", packet);
528                 break;
529             }

and that's it with the kernel.

I got results. Discharge rate: 0.60 - 0.80 W/h and in S3 and in S0ix.

After I went to the BIOS to play with the settings and found that if I finish the BIOS setup by turning Ethernet LAN by Disabled or Enabled - Discharge rate will be about 0.30 -0.33 W/h.
If I change something else, the discharge rate will be 0.60 - 0.80 W/h again.

Now my Ethernet LAN, Smart Card slot and Fingerprint are off and i have discharge rate about 0.3x W/h. with S0ix.
Trackpoint cursor not jumps


P.S.: I also tested ssd from lenovo, which was inside Micron 512GB MTFDHBA512TDV-1AZ15ABLA and Samsung 970EVOPlus 1TB MZ-V7S1T0

With stock Micron ssd I achieved ~0.30 W/h. at both S3 and S0ix
With Samsung ~0.60 W/h. S3 and ~0.30 W/h. S0ix.

Maybe it will help someone.

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

  • Posts: 407
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2420
  • Message 816 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-17, 15:58 PM

@ TZet wrote:

Hi guys, Ill share my observations...

I have a Tninkpad x13 AMD Ryzen 7 PRO. kernel 5.14-rc3 / bios v1.32 and v1.34
Debian 10 and 11 without DE only X and i3

I had 2 problems.

1. Without any manipulation, I had a battery drain in standby above 1.xx W/h.

2. Trackpoint cursor jumps to the edges of the screen all the time.


1. After reading here I build 5.14-rc3 kernel with these options:
CONFIG_AMD_PMC=y
CONFIG_I2C_HID_ACPI=m

2. I found a fix for the cursor (https://bugzilla.kernel.org/show_bug.cgi?id=209167)
drivers/input/mouse/elantech.c
523             if (etd->info.fw_version == 0x7f3001 &&
524                 (packet[4] == 0x80 || packet[5] == 0x80 ||
525                  packet[1] >> 7 == packet[4] >> 7 ||
526                  packet[2] >> 7 == packet[5] >> 7)) {
527                 elantech_debug("discarding packet [%6ph]\n", packet);
528                 break;
529             }

and that's it with the kernel.

I got results. Discharge rate: 0.60 - 0.80 W/h and in S3 and in S0ix.

After I went to the BIOS to play with the settings and found that if I finish the BIOS setup by turning Ethernet LAN by Disabled or Enabled - Discharge rate will be about 0.30 -0.33 W/h.
If I change something else, the discharge rate will be 0.60 - 0.80 W/h again.

Now my Ethernet LAN, Smart Card slot and Fingerprint are off and i have discharge rate about 0.3x W/h.
Trackpoint cursor not jumps


P.S.: I also tested ssd from lenovo, which was inside Micron 512GB MTFDHBA512TDV-1AZ15ABLA and Samsung 970EVOPlus 1TB MZ-V7S1T0

With stock Micron memory I achieved ~0.30 W/h. at both S3 and S0ix
With Samsung ~0.60 W/h. S3 and ~0.30 W/h. S0ix.

Maybe it will help someone.

 

Thx but you may want to add your exact model here.

 

We know about that already for a long time. Enabling/disabling devices or options in BIOS

has an impact on the drain. But there is a big BUT :).. Even on the same machine, eg: a different X13,

you can and will see different behavior, even on the same distro, same, kernel and the same BIOS settings.

 

It is a matter of the revision of the machine and the exact model, eg: campus vs normal and whatever else.

This is true for P/T/X series gen1 models. ( probably even gen2 ).

 

As an example, if I do that on the P14s S3 will jump from ~0.6 to about ~0.9 W/h.. While S0ix will have a much smaller impact,

from about ~0.31 to about ~0.35 W/h. 

 

Gabriel

Reply
Options

4 Posts

07-16-2021

Montenegro

11 Signins

75 Page Views

  • Posts: 4
  • Registered: ‎07-16-2021
  • Location: Montenegro
  • Views: 75
  • Message 817 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-17, 17:39 PM

Sorry forgot, this is gen1. 20UF-000RRT

Yes, I read about disabling devices in BIOS, but I noticed that whenever I finish setting up my BIOS with the network lan option, the discharge rate becomes 0.3x from 0.6x

Reply
Options

71 Posts

03-29-2021

Germany

112 Signins

2250 Page Views

  • Posts: 71
  • Registered: ‎03-29-2021
  • Location: Germany
  • Views: 2250
  • Message 818 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-18, 8:25 AM

My previous tests showed a high discharge in the beginning and a decrease over time. Now I am observing a constant drain of 0.4 W/h with S3, regardless of the suspend duration, be it 4m or 8h, after updating to 5.14.0-rc6. At the same time I did a BIOS reset and disabled several devices in the BIOS, so I am not entirely sure what caused it.

Reply
Options

38 Posts

05-06-2021

India

66 Signins

620 Page Views

  • Posts: 38
  • Registered: ‎05-06-2021
  • Location: India
  • Views: 620
  • Message 819 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-19, 14:40 PM

if possible can anyone please relink the script for measuring the drain in suspend?

Reply
Options

31 Posts

05-16-2015

Schweiz

32 Signins

374 Page Views

  • Posts: 31
  • Registered: ‎05-16-2015
  • Location: Schweiz
  • Views: 374
  • Message 820 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-19, 15:26 PM

https://github.com/oliver-machacik/batdistrack

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