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

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-29, 22:44 PM

@ mikk150 wrote:

@ MarkRHPearson wrote:

...If someone happens to have links to the key posts with details on enabling S0ix optimally please let me know and I think I can add them to my initial post at the top of this forum (or I'll figure out something smarter)...


I do not think there is one definite post that describes how to do it

1.  UEFI reset - reboot to UEFI
2. do your modifications in UEFI you need
3. disable LAN port - reboot to UEFI
4. enable LAN port - enjoy

 

It is not about the LAN port. Some machines are stuck with something in

the main power line, like mine was and some T14* machines.

 

In this case one has to disconnect the battery, reset BIOS ( twice sometimes ),

before doing anything else.

Reply
Options

860 Posts

07-22-2019

Canada

532 Signins

6451 Page Views

  • Posts: 860
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 6451
  • Message 42 of 78

Re:Linux S0ix support on AMD platforms

2021-09-30, 0:40 AM

Note - all credit for the below go to the AMD team. I don't have the L-series AMD HW. They have an awesome new Linux team :)

 

This patch fixes the IRQ issue on L14 AMD and should be on L15 AMD too I believe. We are hoping to get out an updated BIOS out for this but it's not confirmed yet (the platform isn't in the Linux program unfortunately)

 

But it doesn't completely fix S0ix - there's still another issue where power button/keyboard/lid don't work - and the issue seems to be EC related. I think we're going to struggle to get traction on that as it requires deeper investigation. I've been told you can wake up the system with a USB keyboard....

 

--- SSDT13.dsl.old      2021-09-23 10:18:11.830000000 -0500
+++ SSDT13.dsl  2021-09-23 10:18:14.990000000 -0500
@@ -219,12 +219,6 @@
                     \\_SB.GPIO, 0x00, ResourceConsumer, ,
                     )
                     {   // Pin list
-                        0x0012
-                    }
-                GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
-                    \\_SB.GPIO, 0x00, ResourceConsumer, ,
-                    )
-                    {   // Pin list
                         0x0018
                     }
             })

 

Thanks to everyone to the pointers and recap too - very much appreciated.

Reply
Options

407 Posts

03-06-2021

Germany

227 Signins

2420 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-30, 1:03 AM

@ MarkRHPearson wrote:

Note - all credit for the below go to the AMD team. I don't have the L-series AMD HW. They have an awesome new Linux team :)

 

This patch fixes the IRQ issue on L14 AMD and should be on L15 AMD too I believe. We are hoping to get out an updated BIOS out for this but it's not confirmed yet (the platform isn't in the Linux program unfortunately)

 

But it doesn't completely fix S0ix - there's still another issue where power button/keyboard/lid don't work - and the issue seems to be EC related. I think we're going to struggle to get traction on that as it requires deeper investigation. I've been told you can wake up the system with a USB keyboard....

 

--- SSDT13.dsl.old      2021-09-23 10:18:11.830000000 -0500
+++ SSDT13.dsl  2021-09-23 10:18:14.990000000 -0500
@@ -219,12 +219,6 @@
                     \\_SB.GPIO, 0x00, ResourceConsumer, ,
                     )
                     {   // Pin list
-                        0x0012
-                    }
-                GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
-                    \\_SB.GPIO, 0x00, ResourceConsumer, ,
-                    )
-                    {   // Pin list
                         0x0018
                     }
             })

 

Thanks to everyone to the pointers and recap too - very much appreciated.

 

So same situation like for P/T series early days of SOix. A USB mouse should work too for waking up the system.

Reply
Options

19 Posts

07-30-2021

Spain

40 Signins

295 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-30, 7:07 AM

How did you reset the BIOS?

Reply
Options

63 Posts

06-28-2012

Romania

116 Signins

516 Page Views

  • Posts: 63
  • Registered: ‎06-28-2012
  • Location: Romania
  • Views: 516
  • Message 45 of 78

Re:Linux S0ix support on AMD platforms

2021-09-30, 7:57 AM

@ osnix wrote:

@ vicentiu wrote:

FYI

 

If anyone has a thermal camera and wants to compare notes....

 

I looked at the components that stay warm in S3 on Windows.

 

Maybe someone can identify something that is powered up that shouldn't be.

 

Link to pictures.

 

The images are for 1100 mW drain. It would be nice if someone with a drain of 300-500 mW can take some thermals.

 

Unfortunately, I don't have any thermal camera in this place, but Windows is irrelevant here, the drain there is even more ridiculous.

Windoze S0ix is around 1.23 W/h, while I get in Linux 0.32 W/h drain. S3 is unsupported by Lenovo in Windoze anyway.

 

Please do your testing with Linux :).

 

Can I use a live USB? The laptop is from work.

Which distribution do you recommend that has best S3 support?

 

(PS. Raspuns in PM)

Reply
Options

19 Posts

07-30-2021

Spain

40 Signins

295 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-30, 8:08 AM
I guess you could use a live usb, but you'd have to find a distro that ships with kernel 5.14, and I don't think there's any yet. You can install something like Ubuntu in a pendrive, and install a newer kernel. Ping me if you need help.
Reply
Options

1357 Posts

05-14-2020

United States of America

576 Signins

7005 Page Views

  • Posts: 1357
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 7005
  • Message 47 of 78

Re:Linux S0ix support on AMD platforms

2021-09-30, 16:26 PM

Hello,

 

@osnix   Here is my booted dmesg file:

Reply
Options

1357 Posts

05-14-2020

United States of America

576 Signins

7005 Page Views

  • Posts: 1357
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 7005
  • Message 48 of 78

Re:Linux S0ix support on AMD platforms

2021-09-30, 16:32 PM

Hello,

 

@osnix   Here is my resumed dmesg file:

 

System, is L15 gen2 AMD with 64GB RAM and SSD.

Dual booting with Windows Pro

Fedora 34 distribution, 5.14 "fedora testing" kernel

Gnome 40 desktop, Wayland mode, mutter compositor

Latest BIOS ,   Bios in factory defaults.  {BIOS version shown on a previous post in this thread...}

{Secure boot enabled.  Kernel Lockdown mode active. (This should be listed within dmesg too...)

 

For suspend I clicked "Suspend" word on power menu dropdown.

To resume clicked space bar on external wired USB keyboard.

 

THANKYOU THANKYOU for investigating this!

 

Usedtoberich

Reply
Options

26 Posts

08-20-2020

Estonia

27 Signins

180 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-30, 16:37 PM

@ osnix wrote:

 

 

It is not about the LAN port. Some machines are stuck with something in

the main power line, like mine was and some T14* machines.

 

In this case one has to disconnect the battery, reset BIOS ( twice sometimes ),

before doing anything else.


I tried the battery disconnect - did not do anything (even physically)
plain basic BIOS reset - did not do anything

the way I did it on my machine - 100% success rate getting 0.5W power draw on S0ix (at least on my unit)

Reply
Options

1357 Posts

05-14-2020

United States of America

576 Signins

7005 Page Views

  • Posts: 1357
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 7005
  • Message 50 of 78

Re:Linux S0ix support on AMD platforms

2021-10-03, 12:35 PM

Hello,

 

@osnix  and Mark Pearson....

 

I have attempted making changes to DSDT tables using the provided patch.

System L15 gen2 AMD running latest BIOS (ver 1.17) and testing kernel from fedora, 5.14

 

I used this method to load modified DSDT table into /boot and use it instead of unmodified standard table within /sys/firmware/tables  https://gist.github.com/mr-sour/e6e4f462dff2334aad84b6edd5181c09  the mkgrub-config operation showed recognition of alternative dsdt table.

 

I edit the text file by hand.  The supplied patch targets changing line 216.  The code I thought matched was on line 15163 in my decompiled textfile.

 

Booting up and checking dmesg for the DSDT table, I did not notice a change in file identification text from the standard one, so I am not certain the altered version is being used.  I did change the serial number in the first noncommented line of my changed dsdt.dsl file.

 

Even with sudo, I could not cp or cat my changed dsdt.aml into the /sys/firmware/tables directory.

 

At GNOME Terminal window typing systemctl  VERB has following:

VERB:  suspend  [attempt to enter low power state, but immediate reboot into grub menu.]

VERB:  hibernate  [system message hibernate blocked by kernel lockdown.  I like this...]

VERB: hybrid-sleep  [system message this is not supported]

VERB: suspend-then-hibernate [system message that hybrid-sleep is not supported]

 

Thanks for the support!!

Usedtoberich

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