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

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-22, 22:27 PM

@ linuxmad wrote:

I am hitting the wall :)

getting this error:

make[2]: *** [debian/rules:7: build-arch] Erro 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Erro 2
make: *** [Makefile:1570: deb-pkg] Erro 2

Using 5.13.4 from kernel.org

Applied patch like this patch p1 < amd.patch

Altered .config to the settings @osnix pointed...

but POP! is not loving me :)

 

 

Sorry, no idea about Debian/Ubuntu build system but see PM for a howto without it.

Reply
Options

104 Posts

02-14-2021

Ukraine

139 Signins

665 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 5:47 AM

> 5.14rc2 still needs patches, I think the patch I posted for rc1 should still work.

it does work.

Reply
Options

695 Posts

07-22-2019

Canada

478 Signins

5506 Page Views

  • Posts: 695
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5506
  • Message 653 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 14:25 PM

FYI:

 - the patches have been merged into the Fedora 5.13 kernel which will be releasing soon (https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1196)

 - Canonical are backporting the patches into their OEM 5.13 stream and I believe also their OEM 5.10 stream. I'm not sure exactly when that will be ready to be picked up - but hopefully not in the not too distant future.

I need to test these myself, haven't had time yet, but looks promising. Note - S0ix is *not officially supported* on the Renoir platforms; but as we're all seeing it works well and I think we'll get help from AMD if there are issues.

 

The FW team are still looking at this issue and what we can do to improve S3 - I have nothing interesting or useful to share there, but they're still talking to me. I have a couple of other things simmering but nothing useful to share at this point.

 

Mark

Reply
Options

37 Posts

05-06-2021

India

59 Signins

585 Page Views

  • Posts: 37
  • Registered: ‎05-06-2021
  • Location: India
  • Views: 585
  • Message 654 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 14:36 PM
I wonder would these patches also come on Arch or I would have to wait for kernel 5.14?
Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 14:50 PM

@ MarkRHPearson wrote:

FYI:

 - the patches have been merged into the Fedora 5.13 kernel which will be releasing soon (https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1196)

 - Canonical are backporting the patches into their OEM 5.13 stream and I believe also their OEM 5.10 stream. I'm not sure exactly when that will be ready to be picked up - but hopefully not in the not too distant future.

I need to test these myself, haven't had time yet, but looks promising. Note - S0ix is *not officially supported* on the Renoir platforms; but as we're all seeing it works well and I think we'll get help from AMD if there are issues.

 

The FW team are still looking at this issue and what we can do to improve S3 - I have nothing interesting or useful to share there, but they're still talking to me. I have a couple of other things simmering but nothing useful to share at this point.

 

Mark

 

Ok, it is not officially supported, but doesn't Lenovo support S0ix on Windows?

Meaning you support already an unsupported platform with this feature, no?

 

I don't see the problem to support the unsupported platform, you already support while unsupported by AMD on the other OS in Linux too.

 

I mean the BIOS team is already having 2 sets of ACPI tables & partially firmware just bc that.

 

Solution 1:

 

Do not support S0ix on Linux, but then please clean up the BIOS and remove all the Windoze stuff when power is set to Linux.

Inclusive the weird and ancient _OSI calls.

 

Solution 2:

 

Support S0ix on Linux the same 'unsupported by AMD' way it is done for Windows.

 

Solution 3:

 

Let Linux with S3, pretend officially unsupported S0ix, and improve at least common pieces in the S0ix BIOS

so it can work nicely with both.

 

Solution 4:

1 and fix the power drain :)

 

( With solution 2 the FW Team has less work in general )

 

Gabriel

 

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 15:06 PM

Just a remark.

 

Some users of this forum seem to believe, I somehow work for Lenovo. 

To be clear I do NOT. I am a user in this forum like you, not more, not less.

 

So please, do NOT PM me regarding hardware replacement, or any services questions,

because I can't help you with any of this.

 

Please contact the Lenovo support for your region or Lenovo staff member in this forum.

 

Gabriel

Reply
Options

695 Posts

07-22-2019

Canada

478 Signins

5506 Page Views

  • Posts: 695
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5506
  • Message 657 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 15:34 PM

AMD are not officially supporting S0ix for Linux on this generation of platforms. Obviously it's supported for Windows - it's what we ship with there...

 

 

 

Reply
Options

61 Posts

12-04-2020

Portugal

64 Signins

360 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 15:37 PM

Just to clarify my doubts:

If this is being backported by Fedora and Canonical (all ubuntu derivatives), does it mean that by simply installing the updated distro kernel we all will be able to use S0ix under linux without messing arround with kernel and selecting S0ix in Bios (Windows stanby)??

Thanks

Reply
Options

695 Posts

07-22-2019

Canada

478 Signins

5506 Page Views

  • Posts: 695
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5506
  • Message 659 of 841

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 15:38 PM

Yes

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:T14 AMD battery drain in standby (Linux)

2021-07-23, 16:12 PM

@ MarkRHPearson wrote:

AMD are not officially supporting S0ix for Linux on this generation of platforms. Obviously it's supported for Windows - it's what we ship with there...

 

Ok, so the old issue, seen 1000 times already :).

 

Nothing to do with unsupported, that is unsupported to not force HW/BIOS makers to adapt,

that is all about it. ( Just see the nvme workarounds commit logs ).

 

A note for you if you are going to test this on T/P/X series, you need iommu=pt, to fix

the VI fault on nvme device & the long timeout before resume.

 

We may have to ask the AMD maintainers to add a dev_info() for S0ix on RN, to mark it

experimental or something, because as is, the code is 'supported' :)

 

Gabriel

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