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

687 Posts

07-22-2019

Canada

477 Signins

5456 Page Views

  • Posts: 687
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5456
  • Message 1 of 11

Linux S0ix support on AMD platforms

2021-09-08, 15:08 PM

Creating this thread for discussion on S0ix support for AMD platforms as part of my clean-up of the AMD power related discussions.

 

Some notes

- AMD have delivered S0ix support upstream in the 5.14 kernel, but it is not officially supported in the G1 and G2 platforms. On these platforms Lenovo is still supporting and recommend using S3 - we have not certified or internally tested S0i support

- Intial testing has shown that it works well and can give improved battery performance. I'll aim to link to some of the more useful posts in the https://forums.lenovo.com/t5/Other-Linux-Discussions/T14-AMD-battery-drain-in-standby-Linux/m-p/5037674 thread for users interested in trying it.

 

 

 

 

Reply
Options

83 Posts

04-17-2021

Greece

59 Signins

380 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-10, 12:55 PM

5.14.2 is in the core repo of ArchLinux. Anyone tested?

Reply
Options

3 Posts

09-10-2021

China

2 Signins

15 Page Views

  • Posts: 3
  • Registered: ‎09-10-2021
  • Location: China
  • Views: 15
  • Message 3 of 11

Re:Linux S0ix support on AMD platforms

2021-09-10, 13:23 PM

Hey there, i used poor english. 
i'm installed 5.14.2 kernel few min ago on my Arch, and updated BIOS version to 1.35.
i will suspent in S3 tonight test battery consume.
my laptop is Thinkpad X13 amd gen1 4750U.

Reply
Options

3 Posts

09-10-2021

China

2 Signins

15 Page Views

  • Posts: 3
  • Registered: ‎09-10-2021
  • Location: China
  • Views: 15
  • Message 4 of 11

Re:Linux S0ix support on AMD platforms

2021-09-11, 6:45 AM

Linux ***** 5.14.2-arch1-2 #1 SMP PREEMPT Thu, 09 Sep 2021 09:42:35 +0000 x86_64 GNU/Linux

BIOS version 1.35

 

-- Boot 1a74d1217e0f44a99819cc1034129af8 --
9月 10 22:03:52 x13 systemd[1]: Starting System Suspend...
9月 10 22:03:52 x13 systemd-sleep[4102]: Saving time and charge.
9月 10 22:03:53 x13 systemd-sleep[4100]: Entering sleep state 'suspend'...
9月 11 14:41:11 x13 systemd-sleep[4100]: System returned from sleep state.
9月 11 14:41:11 x13 systemd-sleep[4404]: Suspend duration: 16h 37m.
9月 11 14:41:11 x13 systemd-sleep[4385]: Discharge rate: .62026 W/h.
9月 11 14:41:12 x13 systemd[1]: systemd-suspend.service: Deactivated successfully.
9月 11 14:41:12 x13 systemd[1]: Finished System Suspend.
9月 11 14:41:12 x13 systemd[1]: systemd-suspend.service: Consumed 1.480s CPU time.

 

Doesn't seem to change, Battery consumption is still maintained at 0.6wh.

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-11, 12:54 PM

@ HentaiGentle wrote:

Linux ***** 5.14.2-arch1-2 #1 SMP PREEMPT Thu, 09 Sep 2021 09:42:35 +0000 x86_64 GNU/Linux

BIOS version 1.35

 

-- Boot 1a74d1217e0f44a99819cc1034129af8 --
9月 10 22:03:52 x13 systemd[1]: Starting System Suspend...
9月 10 22:03:52 x13 systemd-sleep[4102]: Saving time and charge.
9月 10 22:03:53 x13 systemd-sleep[4100]: Entering sleep state 'suspend'...
9月 11 14:41:11 x13 systemd-sleep[4100]: System returned from sleep state.
9月 11 14:41:11 x13 systemd-sleep[4404]: Suspend duration: 16h 37m.
9月 11 14:41:11 x13 systemd-sleep[4385]: Discharge rate: .62026 W/h.
9月 11 14:41:12 x13 systemd[1]: systemd-suspend.service: Deactivated successfully.
9月 11 14:41:12 x13 systemd[1]: Finished System Suspend.
9月 11 14:41:12 x13 systemd[1]: systemd-suspend.service: Consumed 1.480s CPU time.

 

Doesn't seem to change, Battery consumption is still maintained at 0.6wh.

 

That's because S0ix is NOT S3, IOW you need to change power in BIOS from Linux to Windows 10.

 

On the kernel command line, you'll need at least iommu=pt to fix the slow resume caused by the NVME.

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-11, 12:57 PM

@ alexkal wrote:

5.14.2 is in the core repo of ArchLinux. Anyone tested?

 

No, but 5.14 has 98% of stuff pushed out regarding S0ix, and probably some 5.14.X will get the rest once

pushed out to 5.15-rc.  So the distribution should not matter to test S0ix, as long you use a 5.14.X kernel.

Reply
Options

6 Posts

06-27-2021

Canada

15 Signins

30 Page Views

  • Posts: 6
  • Registered: ‎06-27-2021
  • Location: Canada
  • Views: 30
  • Message 7 of 11

Re:Linux S0ix support on AMD platforms

2021-09-12, 5:22 AM

Prior to the 5.14 kernel, @osnix and the AMD team advised to set/unset three build parameters in the kernel config or the energy savings wouldn't materialize. Are those still necessary for 5.14?

Reply
Options

83 Posts

04-17-2021

Greece

59 Signins

380 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-12, 14:26 PM

Linux 5.14.2, FW 1.35 0,44 W/h and S0ix with a significant time delay when waking.

 

0,74 W/h with S3.

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-12, 21:52 PM

@ alexkal wrote:

Linux 5.14.2, FW 1.35 0,44 W/h and S0ix with a significant time delay when waking.

 

0,74 W/h with S3.

 

You still need iommu=pt for S0ix, no way around that unless Lenovo fixes their BIOS or someone finds another workaround on top of the two existing ones for AMD VI and nvme storage.

Reply
Options

389 Posts

03-06-2021

Germany

220 Signins

2355 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-12, 21:55 PM

@ ajake wrote:

Prior to the 5.14 kernel, @osnix and the AMD team advised to set/unset three build parameters in the kernel config or the energy savings wouldn't materialize. Are those still necessary for 5.14?

 

It depends. Try with and without and if the differece of the drain is acceptable for you don't change anything. Besides distro maintainers probably realized to set at least a part of these right.

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

Most Liked Authors

(Last 7 days)

View All