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

61 Posts

12-04-2020

Portugal

64 Signins

360 Page Views

  • Posts: 61
  • Registered: ‎12-04-2020
  • Location: Portugal
  • Views: 360
  • Message 741 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-01, 11:22 AM
@osnix What distro are you using? Have you tried running 5.14 rc3 kernel default for your distro instead of compiling against your patches?
Reply
Options

389 Posts

03-06-2021

Germany

219 Signins

2345 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2345
  • Message 742 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-01, 11:35 AM

@ linuxmad wrote:

@osnixWhat distro are you using? Have you tried running 5.14 rc3 kernel default for your distro instead of compiling against your patches?

 

My own distro.

 

rc3 is missing patches, rc4 will have 99% in. There is nothing about the distribution, it may be something about kernel options and or

*different* revision of the laptop.

 

Like you see I have a 0.11 W/h advantage over your same ( on paper ) P14s S0ix, and about 0.19 W/h disadvantage on S3. 

Also on the same setup, there is no way out of the sudden the consummation to drop in half, and then never reproducible again.

 

Those are BIOS bugs. FYI, I informed Mark about my findings and he found out similar things.

Reply
Options

61 Posts

12-04-2020

Portugal

64 Signins

360 Page Views

  • Posts: 61
  • Registered: ‎12-04-2020
  • Location: Portugal
  • Views: 360
  • Message 743 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-01, 11:41 AM

So... I guess the best choice is and was always the same... The BIOS should work out of the box...

You have already pointed several programming errors found on the Bios.... Not sure how this embarrassment is accepted by a multi million company ??

 

Reply
Options

389 Posts

03-06-2021

Germany

219 Signins

2345 Page Views

  • Posts: 389
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2345
  • Message 744 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-01, 12:30 PM

@ linuxmad wrote:

So... I guess the best choice is and was always the same... The BIOS should work out of the box...

You have already pointed several programming errors found on the Bios.... Not sure how this embarrassment is accepted by a multi million company ??

 

 

Some developers may care since they interact with customers, but Lenovo as the company only cares about $$.

This is the sad reality and is not limited to Lenovo, it is how the closed source world works.

Simply put, company X pays for BIOS Y licenses, and will keep it as long they can ducktape it and still make a profit.

To make it worse, CPU vendors provide their code as blob too, which then the BIOS makers integrates on TOP of the Bios

blob. And now to make the matter even worse, HW makes provides their firmware as a blob too.

 

Sure, BIOS integrators get docs, etc but that is always combined with signing NDA's.

 

The BIOS problem regarding Linux, in general, is simple too. No vendor is willing to write the code specific

to Linux. However, Linux itself implements ACPI/PCI/USB etc by *spec* and this is why everything following specs is working.

But BIOS makers are not even willing to do that, or let's say, is complicated. For decades, the supported OS pushed workarounds

down to BIOS makers to work around their own code mistakes.

 

A simple example.. Linux ignores an OSI call to itself since Linux 2.x , bc that is simple a BUG in firmware.

Why? Well if the OS isn't compliant with specs, it has to implement something to work around whatever is wrong,

not the BIOS. Linux version is now 5.x, and yet no BIOS vendors cared to stop doing that.

 

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 745 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 2:26 AM

I'm not sure how, but somehow I managed to get my laptop to drain completely to 0% from 60% (threshold) in just about 6 hours of S0ix sleep.  Woke up to the BIOS low battery message. I had closed most apps I thought would wake the laptop, like VMs, Discord, NoMachine etc, Wake on LAN was disabled, but I think WiFi wasn't switched off, if that makes a difference. Will post S0ix stats once I get it charged and booted.

Reply
Options

83 Posts

04-17-2021

Greece

59 Signins

380 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 5:53 AM

@ JJGadgets wrote:

I'm not sure how, but somehow I managed to get my laptop to drain completely to 0% from 60% (threshold) in just about 6 hours of S0ix sleep.  Woke up to the BIOS low battery message. I had closed most apps I thought would wake the laptop, like VMs, Discord, NoMachine etc, Wake on LAN was disabled, but I think WiFi wasn't switched off, if that makes a difference. Will post S0ix stats once I get it charged and booted.

 

Was the power LED fading on and of? Some times laptops just fail to enter sleep mode.

Reply
Options

61 Posts

12-04-2020

Portugal

64 Signins

360 Page Views

  • Posts: 61
  • Registered: ‎12-04-2020
  • Location: Portugal
  • Views: 360
  • Message 747 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 10:23 AM

Using TLPUI to tweak here and there and got my best result yet under S3:

 

ago 02 08:52:48 pop-os systemd-sleep[11124]: Suspend duration: 12h 20m.
ago 02 08:52:48 pop-os systemd-sleep[11079]: Discharge rate: .41836 W/h.
ago 02 08:52:49 pop-os rfkill[11166]: block set for type bluetooth
ago 02 08:52:49 pop-os systemd[1]: systemd-suspend.service: Succeeded.
ago 02 08:52:49 pop-os systemd[1]: Finished Suspend.

Reply
Options

61 Posts

12-04-2020

Portugal

64 Signins

360 Page Views

  • Posts: 61
  • Registered: ‎12-04-2020
  • Location: Portugal
  • Views: 360
  • Message 748 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 10:39 AM

Meanwhile.... Rc4 is out... on Ubuntu mainline.

Will install and test both S3 and S0ix

see Attached file for changes in Rc4

Reply
Options

23 Posts

03-01-2021

Singapore

19 Signins

115 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 12:39 PM
Yep, for sure the light was blinking. And the failed to suspend was what made me reluctant to try S0ix, I’ve never had this issue on S3, but I kind of expected a sleep mode that potentially wakes devices would have a possibility that it’ll just either drain in sleep or fail to sleep.
Reply
Options

23 Posts

03-01-2021

Singapore

19 Signins

115 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-08-02, 12:43 PM

I also have a few graded projects due in 2 weeks so I won’t be doing the 1.29 to 1.34 BIOS upgrade until I’m clear for schoolwork, I don’t have my desktop set up for my programming and VMs (it’s for gaming strictly). Other than that I’ll monitor S0ix stats for whenever I do sleep (sometimes).

 

Graded projects make me wish I could

echo mem | sudo tee /sys/power/state

but alas I feel like I drain more energy when I sleep than a T14 in S3.

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