s0ix sleep state not working

lnewsam

New Member
Joined
Feb 13, 2023
Messages
1
Reaction score
0
Credits
18
Ubuntu Version: Ubuntu 22.04.1 LTS
Laptop: ThinkPad X1 Carbon Gen 9

When I have my laptop in Sleep State "Window & Linux" it heats up, revs the fans, and drains the battery when I shut the laptop screen and supposedly put it to sleep.

I used the tool: "./s0ix-selftest-tool.sh -s" from https://github.com/intel/S0ixSelftestTool

This is the text I get when I run it:

Code:
---Check S2idle path S0ix Residency---:

The system OS Kernel version is:
Linux liam-ThinkPad-X1-Carbon-Gen-9 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

---Check whether your system supports S0ix or not---:

Low Power S0 Idle is:1
Your system supports low power S0 idle capability.



---Check whether intel_pmc_core sysfs files exit---:

The pmc_core debug sysfs files are OK on your system.



---Judge PC10, S0ix residency available status---:

Test system supports S0ix.y substate

S0ix substate before S2idle:
  S0i2.0 S0i3.0

S0ix substate residency before S2idle:
  0 0

Turbostat output:
15.334261 sec
CPU%c1    CPU%c6    CPU%c7    GFX%rc6    SYS%LPI
13.52    0.00    0.00    463.97    0.00
13.88    0.00    0.00    463.97    0.00
13.66
12.87    0.00    0.00
13.70
12.72    0.00    0.00
13.75
13.79    0.00    0.00
13.77

CPU Core C7 residency after S2idle is: 0.00
GFX RC6 residency after S2idle is: 463.97
CPU Package C-state 2 residency after S2idle is:
CPU Package C-state 3 residency after S2idle is:
CPU Package C-state 8 residency after S2idle is:
CPU Package C-state 9 residency after S2idle is:
CPU Package C-state 10 residency after S2idle is:
S0ix residency after S2idle is:
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error

Your system did not achieve PC2 state or PC2 residency is low:     


---Debug no PC2 residency scenario---:
modprobe cpufreq_stats failedLoaded 0 prior measurements
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
glob returned GLOB_ABORTED
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only
Leaving PowerTOP
Turbostat output:
16.086051 sec
CPU%c1    CPU%c6    CPU%c7    GFX%rc6
12.65    0.00    0.00    583.39
11.97    0.00    0.00    583.39
12.78
12.03    0.00    0.00
12.97
12.75    0.00    0.00
13.00
12.97    0.00    0.00
12.77

CPU Core c6:0.00
GFX rc6:583.39

Your CPU Core C6 residency is not available, need to check which CPU idle driver is in use:
acpi_idle

Check what's the CPU idle driver status:
/sys/devices/system/cpu/cpu0/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu0/cpuidle/state0/below:117096
/sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu0/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu0/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu0/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu0/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu0/cpuidle/state0/time:29132658
/sys/devices/system/cpu/cpu0/cpuidle/state0/usage:117096
/sys/devices/system/cpu/cpu0/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu0/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu0/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu0/cpuidle/state1/time:49305403
/sys/devices/system/cpu/cpu0/cpuidle/state1/usage:59216
/sys/devices/system/cpu/cpu1/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu1/cpuidle/state0/below:116791
/sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu1/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu1/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu1/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu1/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu1/cpuidle/state0/time:28998992
/sys/devices/system/cpu/cpu1/cpuidle/state0/usage:116791
/sys/devices/system/cpu/cpu1/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu1/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu1/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu1/cpuidle/state1/time:48209763
/sys/devices/system/cpu/cpu1/cpuidle/state1/usage:58096
/sys/devices/system/cpu/cpu2/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu2/cpuidle/state0/below:117090
/sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu2/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu2/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu2/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu2/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu2/cpuidle/state0/time:29194030
/sys/devices/system/cpu/cpu2/cpuidle/state0/usage:117090
/sys/devices/system/cpu/cpu2/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu2/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu2/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu2/cpuidle/state1/time:47987281
/sys/devices/system/cpu/cpu2/cpuidle/state1/usage:54515
/sys/devices/system/cpu/cpu3/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu3/cpuidle/state0/below:117067
/sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu3/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu3/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu3/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu3/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu3/cpuidle/state0/time:29254357
/sys/devices/system/cpu/cpu3/cpuidle/state0/usage:117067
/sys/devices/system/cpu/cpu3/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu3/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu3/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu3/cpuidle/state1/time:48608050
/sys/devices/system/cpu/cpu3/cpuidle/state1/usage:59075
/sys/devices/system/cpu/cpu4/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu4/cpuidle/state0/below:117301
/sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu4/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu4/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu4/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu4/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu4/cpuidle/state0/time:29231349
/sys/devices/system/cpu/cpu4/cpuidle/state0/usage:117301
/sys/devices/system/cpu/cpu4/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu4/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu4/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu4/cpuidle/state1/time:49057339
/sys/devices/system/cpu/cpu4/cpuidle/state1/usage:62557
/sys/devices/system/cpu/cpu5/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu5/cpuidle/state0/below:117909
/sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu5/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu5/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu5/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu5/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu5/cpuidle/state0/time:29271787
/sys/devices/system/cpu/cpu5/cpuidle/state0/usage:117909
/sys/devices/system/cpu/cpu5/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu5/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu5/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu5/cpuidle/state1/time:48621476
/sys/devices/system/cpu/cpu5/cpuidle/state1/usage:57638
/sys/devices/system/cpu/cpu6/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu6/cpuidle/state0/below:115944
/sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu6/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu6/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu6/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu6/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu6/cpuidle/state0/time:29000254
/sys/devices/system/cpu/cpu6/cpuidle/state0/usage:115944
/sys/devices/system/cpu/cpu6/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu6/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu6/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu6/cpuidle/state1/time:49311047
/sys/devices/system/cpu/cpu6/cpuidle/state1/usage:73461
/sys/devices/system/cpu/cpu7/cpuidle/state0/above:0
/sys/devices/system/cpu/cpu7/cpuidle/state0/below:117336
/sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled
/sys/devices/system/cpu/cpu7/cpuidle/state0/desc:CPUIDLE CORE POLL IDLE
/sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0
/sys/devices/system/cpu/cpu7/cpuidle/state0/latency:0
/sys/devices/system/cpu/cpu7/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295
/sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0
/sys/devices/system/cpu/cpu7/cpuidle/state0/residency:0
/sys/devices/system/cpu/cpu7/cpuidle/state0/time:29141440
/sys/devices/system/cpu/cpu7/cpuidle/state0/usage:117336
/sys/devices/system/cpu/cpu7/cpuidle/state1/above:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/below:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled
/sys/devices/system/cpu/cpu7/cpuidle/state1/desc:ACPI HLT
/sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/latency:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu7/cpuidle/state1/power:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/residency:0
/sys/devices/system/cpu/cpu7/cpuidle/state1/time:48244298
/sys/devices/system/cpu/cpu7/cpuidle/state1/usage:60616


I've been trying to dissect this to try and understand why my laptop won't successfully go to sleep, but I'm such a beginner that it all is just nonsense:
  1. Why are there a ton of syntax errors at the part where it shows "CPU Package C-state 2 residency after S2idle is:"?
  2. Why does it fail to achieve PC2 state? "Your system did not achieve PC2 state or PC2 residency is low:"
  3. Why can't it load /var/cache/powertop/saved_parameters.powertop and various other files?
  4. Why is CPU Core C6 residency not available?
Ultimately, I just want to successfully achieve a sleep state that won't overheat my laptop and drain its battery. How do I fix this?
 

Members online


Top