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

87 Posts

04-17-2021

Greece

62 Signins

395 Page Views

  • Posts: 87
  • Registered: ‎04-17-2021
  • Location: Greece
  • Views: 395
  • Message 11 of 78

Re:Linux S0ix support on AMD platforms

2021-09-13, 6:01 AM

@ osnix wrote:

 

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.

 

Is this delay bad for the nvme?

Reply
Options

13 Posts

11-29-2018

Germany

29 Signins

142 Page Views

  • Posts: 13
  • Registered: ‎11-29-2018
  • Location: Germany
  • Views: 142
  • Message 12 of 78

Re:Linux S0ix support on AMD platforms

2021-09-26, 11:25 AM
…or does "iommu=pt" have known side-effects to take into consideration?
Reply
Options

19 Posts

07-30-2021

Spain

40 Signins

295 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-27, 9:19 AM

The new 5.15 kernel brings optimized entry handling C3 power sleep for AMD CPUs. Would this improve anything for us? Anyone tested it yet?
https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-AMD

Reply
Options

26 Posts

08-20-2020

Estonia

27 Signins

180 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-27, 12:32 PM

@ jixbo wrote:

The new 5.15 kernel brings optimized entry handling C3 power sleep for AMD CPUs. Would this improve anything for us? Anyone tested it yet?
https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-AMD

it has nothing to do with power management, only performance when laptop comes out of C3, but only so briefly, that I think no-one will notice

Reply
Options

1361 Posts

05-14-2020

United States of America

579 Signins

7040 Page Views

  • Posts: 1361
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 7040
  • Message 15 of 78

Re:Linux S0ix support on AMD platforms

2021-09-28, 13:45 PM

Hello,

 

Hello,

 

I have an intel based Lenovo laptop.  I measured power consumption during suspend modes:

 

Mode:   Hibernate, aka suspend to disk, (is that ACPI mode S4?)   Battery drain essentially equal to powered off natural discharge.

(computer state is saved to disk, all power usage is stopped.)  Only way to wake up is by pressing power button.

 

Mode:  Suspend to RAM,  battery drain is about 1/2 watt per hour.   (computer state is placed into RAM, all power usage EXCEPT maintaining RAM and watching for wakeup signal is stopped.)  Is that ACPI mode S3 or Si0x?    I presume 4GB of RAM needs less watts per hour to maintain than 64GB of RAM.....

 

Mode "Standby" or "Suspend" or .....  Lots of different designations, I get really confused...:( )   ACPI mode S1, or S2, or LockScreen, or ????

Battery drain is maybe 10 or 20% less than full power operation.  so  5 watts per hour....

 

 

 

 

Reply
Options

67 Posts

01-27-2021

Netherlands

56 Signins

425 Page Views

  • Posts: 67
  • Registered: ‎01-27-2021
  • Location: Netherlands
  • Views: 425
  • Message 16 of 78

Re:Linux S0ix support on AMD platforms

2021-09-28, 14:29 PM

@ Usedtoberich :

This thread is actually about AMD models, but you may provide useful drain values. To know what kind of sleep state you are using, please let us know whether you use Windows or Linux (and then the kernel version) and what sleep mode (suspend to RAM) is configured in your BIOS, ‘Windows’ (=S0ix) or ‘Linux’ (=S3).

 

BTW: battery discharge is measured in (milli)Watts, not Watts/hour. Namely, it is the energy as number of W(att)h(ours) discharged divided by the duration (in hours) of discharge. If you are on Linux with systemd, you can use a script to log your discharge rates.

 

 

Reply
Options

1361 Posts

05-14-2020

United States of America

579 Signins

7040 Page Views

  • Posts: 1361
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 7040
  • Message 17 of 78

Re:Linux S0ix support on AMD platforms

2021-09-28, 15:37 PM

Hello,

 

Batteries are supplied with an electrical capacity to flow a number of amperes for an amount of time.  A simple number is multiplying these together to be "ampere-hours."

Watts is a measure of Volts times Amperes so a more practical battery performance number is Watt-hours.

1 Watt = 1000 milliwatts.

 

My Intel machine is an older Ideapad 330 with  8 GB ram, 30 Watt-Hour battery, running the latest production update of Fedora, so kernel 5.13 and S3 suspend to RAM mode.

I THINK it is DDR4 RAM.  Different kinds of RAM likely use different amounts of energy to maintain information.   (Using terminal command "systemdctl Sleep")

 

My main point, is within Suspend to RAM operating mode, a power consumption close to 1/2 watt per hour, (0.5 watts or 500 milliwatts) sounds like normal engineering performance for suspend to ram.....  the technical support engineers should provide that statistic if we ask them....

 

And running 1/2 watt per hour from 30 watt-hour capacity, results in 60 hours of endurance under suspend to ram for my Intel machine....  Your battery likely has different capacity in watt hours than mine....

 

I listen to the security experts, and run with Secure boot enabled.  Fedora invokes kernel lockdown mode that way, so I can't hibernate under Linux.  In Windows hibernate seems to be the same power consumption as "SHUTDOWN" mode....  Not very much.

 

Usedtoberich

Reply
Options

63 Posts

06-28-2012

Romania

116 Signins

516 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-28, 15:43 PM

Model:  T14s Gen 1 with AMD 4750U

OS: Windows 10

Standby setting: Linux/S3.  (Recognized by Windows. Confirmed with powercfg /a)

 

BIOS: 1.35

drain: 1,100 mW

 

Reply
Options

19 Posts

07-30-2021

Spain

40 Signins

295 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-28, 16:10 PM

I've been testing S0ix on my p14s gen 1 AMD and I'm getting pretty bad results, with "always on usb" disabled, "iommu=pt" parameter in the kernel, 5.14 and 5.15 (same performance for me) and bios 1.34.

I have two drives, Sandisk SN520 and Samsung 970 EVO.

From my last test:

Suspend duration: 01h 02m.
Discharge rate: .89311 W/h.

Any ideas?

Reply
Options

26 Posts

08-20-2020

Estonia

27 Signins

180 Page Views

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

Re:Linux S0ix support on AMD platforms

2021-09-28, 17:11 PM

@ jixbo wrote:

I've been testing S0ix on my p14s gen 1 AMD and I'm getting pretty bad results, with "always on usb" disabled, "iommu=pt" parameter in the kernel, 5.14 and 5.15 (same performance for me) and bios 1.34.

I have two drives, Sandisk SN520 and Samsung 970 EVO.

From my last test:

Suspend duration: 01h 02m.
Discharge rate: .89311 W/h.

Any ideas?

https://forums.lenovo.com/t5/Other-Linux-Discussions/T14-T14s-X13-G1-AMD-Linux-S3-standby-battery-drain-improvements/m-p/5098252?page=4#5435540

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