Abnormal battery drain during suspend (s2idle) on Dell Latitude 7430

Hmm, seems like rebinding devices 15.* is not sufficient to reach C10/s0i3 more than 2 sec :confused:

script output post 120
XHC
LID0
/sys/bus/pci/devices/0000:00:15.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.0/i2c_designware.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/i2c_designware.1/power/runtime_status:suspended
Package C2 : 14931617
Package C3 : 3567311
Package C6 : 8640917
Package C7 : 0
Package C8 : 69858685
Package C9 : 0
Package C10 : 0
pmc0   Substate       Residency
         S0i2.0               0
         S0i3.0               0
rtcwake : on considère que l'horloge matérielle utilise l'échelle UTC…
rtcwake : « wakeup » (réveil) depuis « freeze » avec /dev/rtc0 à Wed Nov  4 13:34:37 2026
Package C2 : 15409125
Package C3 : 5575895
Package C6 : 8640917
Package C7 : 0
Package C8 : 69958120
Package C9 : 0
Package C10 : 13052950
pmc0   Substate       Residency
         S0i2.0               0
         S0i3.0        13039756
/sys/bus/pci/devices/0000:00:15.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/power/runtime_status:active
/sys/bus/pci/devices/0000:00:15.0/i2c_designware.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/i2c_designware.1/power/runtime_status:active
0000:00:15.0
0000:00:15.1
0000:00:15.0
0000:00:15.1
/sys/bus/pci/devices/0000:00:15.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.0/i2c_designware.0/power/runtime_status:suspended
/sys/bus/pci/devices/0000:00:15.1/i2c_designware.1/power/runtime_status:suspended
Package C2 : 17082531
Package C3 : 5802257
Package C6 : 9421005
Package C7 : 0
Package C8 : 71310215
Package C9 : 0
Package C10 : 13052950
pmc0   Substate       Residency
         S0i2.0               0
         S0i3.0        13039756
rtcwake : on considère que l'horloge matérielle utilise l'échelle UTC…
rtcwake : « wakeup » (réveil) depuis « freeze » avec /dev/rtc0 à Wed Nov  4 13:34:59 2026
Package C2 : 17454046
Package C3 : 19414698
Package C6 : 9587598
Package C7 : 0
Package C8 : 71409765
Package C9 : 0
Package C10 : 14829616
pmc0   Substate       Residency
         S0i2.0           11925
         S0i3.0        14234807

I also checked the logs, and unbinding or probing i2c produced the same error as we already encountered:

i2c error
[  170.818931] sysfs: cannot create duplicate filename '/kernel/software_nodes/node1/i2c-0'
[  170.818942] CPU: 2 UID: 0 PID: 5470 Comm: tee Not tainted 7.3.0-10-generic #10-Ubuntu PREEMPT(lazy) 
[  170.818947] Hardware name: Dell Inc. Latitude 7430/0NMM73, BIOS 1.43.0 08/27/2026
[  170.818949] Call Trace:
[  170.818952]  <TASK>
[  170.818959]  show_stack+0x49/0x60
[  170.818970]  dump_stack_lvl+0x5f/0x90
[  170.818976]  dump_stack+0x10/0x18
[  170.818979]  sysfs_warn_dup.cold+0x17/0x34
[  170.818983]  sysfs_do_create_link_sd+0xe7/0xf0
[  170.818988]  sysfs_create_link+0x21/0x50
[  170.818991]  software_node_notify+0xb4/0xd0
[  170.818996]  device_add+0xf6/0x6f0
[  170.819001]  ? idr_replace+0xa9/0xb0
[  170.819008]  i2c_register_adapter+0x29e/0x4a0
[  170.819014]  i2c_add_numbered_adapter+0xe/0x20
[  170.819019]  i2c_dw_probe+0x2df/0x3c0
[  170.819024]  dw_i2c_plat_probe+0x34a/0x3e0
[  170.819029]  platform_probe+0x42/0xc0
[  170.819035]  call_driver_probe+0x2b/0x150
[  170.819038]  ? driver_sysfs_add+0x63/0xd0
[  170.819041]  really_probe+0xe7/0x2f0
[  170.819044]  ? __pfx___device_attach_driver+0x10/0x10
[  170.819048]  __driver_probe_device+0xa2/0x1c0
[  170.819052]  ? __pfx___device_attach_driver+0x10/0x10
[  170.819055]  driver_probe_device+0x24/0xb0
[  170.819058]  __device_attach_driver+0xc5/0x170
[  170.819062]  bus_for_each_drv+0x94/0xf0
[  170.819068]  __device_attach+0xb1/0x1f0
[  170.819072]  device_initial_probe+0x57/0x60
[  170.819075]  bus_probe_device+0x2e/0x90
[  170.819078]  device_add+0x538/0x6f0
[  170.819083]  platform_device_add+0xf8/0x270
[  170.819089]  mfd_add_device+0x366/0x3e0
[  170.819095]  mfd_add_devices+0x6f/0xe0
[  170.819103]  intel_lpss_probe.part.0+0x2f0/0x450 [intel_lpss]
[  170.819110]  intel_lpss_probe+0x20/0x50 [intel_lpss]
[  170.819114]  intel_lpss_pci_probe+0xe2/0x130 [intel_lpss_pci]
[  170.819117]  local_pci_probe+0x43/0xa0
[  170.819123]  pci_call_probe+0x5a/0x190
[  170.819129]  pci_device_probe+0xd9/0x160
[  170.819134]  call_driver_probe+0x2b/0x150
[  170.819136]  ? driver_sysfs_add+0x63/0xd0
[  170.819139]  really_probe+0xe7/0x2f0
[  170.819142]  ? __pfx___device_attach_driver+0x10/0x10
[  170.819146]  __driver_probe_device+0xa2/0x1c0
[  170.819149]  ? __pfx___device_attach_driver+0x10/0x10
[  170.819152]  driver_probe_device+0x24/0xb0
[  170.819156]  __device_attach_driver+0xc5/0x170
[  170.819159]  bus_for_each_drv+0x94/0xf0
[  170.819165]  __device_attach+0xb1/0x1f0
[  170.819169]  device_attach+0x10/0x20
[  170.819172]  bus_rescan_devices_helper+0x50/0xd0
[  170.819177]  drivers_probe_store+0x35/0x70
[  170.819183]  bus_attr_store+0x24/0x50
[  170.819187]  sysfs_kf_write+0x74/0x90
[  170.819190]  kernfs_fop_write_iter+0x162/0x1f0
[  170.819196]  iter_file_splice_write+0x384/0x5d0
[  170.819206]  do_splice+0x1ad/0x4e0
[  170.819209]  __do_splice+0x21b/0x230
[  170.819212]  __x64_sys_splice+0x8d/0x130
[  170.819215]  x64_sys_call+0x1fde/0x23d0
[  170.819220]  do_syscall_64+0xba/0x480
[  170.819226]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xc0
[  170.819230]  ? do_syscall_64+0xf6/0x480
[  170.819235]  ? __do_splice+0xb6/0x230
[  170.819238]  ? __x64_sys_splice+0x8d/0x130
[  170.819241]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xc0
[  170.819245]  ? do_syscall_64+0xf6/0x480
[  170.819250]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[  170.819257]  ? irqentry_exit+0x3c/0x770
[  170.819260]  ? exc_page_fault+0x94/0x1c0
[  170.819266]  ? do_syscall_64+0x33/0x480
[  170.819271]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[  170.819274] RIP: 0033:0x7e13ae93c157
[  170.819305] Code: f9 08 74 43 ba 04 00 00 00 48 8b 05 ab bc 0d 00 64 89 10 48 c7 c2 ff ff ff ff c9 48 89 d0 c3 0f 1f 40 00 b8 13 01 00 00 0f 05 <48> 89 c2 48 3d 00 f0 ff ff 77 0e c9 48 89 d0 c3 66 0f 1f 84 00 00
[  170.819308] RSP: 002b:00007fffb01b3c20 EFLAGS: 00000202 ORIG_RAX: 0000000000000113
[  170.819313] RAX: ffffffffffffffda RBX: 00007fffb01b3c70 RCX: 00007e13ae93c157
[  170.819316] RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000004
[  170.819317] RBP: 00007fffb01b3c30 R08: 000000000000000d R09: 0000000000000000
[  170.819319] R10: 0000000000000000 R11: 0000000000000202 R12: 00005b34f23c6ae0
[  170.819320] R13: 00007fffb01b3c70 R14: 0000000000000000 R15: 00007fffb01b3d70
[  170.819324]  </TASK>
[  170.847829] idma64 idma64.1: Found Intel integrated DMA 64-bit
[  170.870679] sysfs: cannot create duplicate filename '/kernel/software_nodes/node1/i2c-1'
[  170.870689] CPU: 2 UID: 0 PID: 5475 Comm: tee Not tainted 7.3.0-10-generic #10-Ubuntu PREEMPT(lazy) 
[  170.870694] Hardware name: Dell Inc. Latitude 7430/0NMM73, BIOS 1.43.0 08/27/2026
[  170.870696] Call Trace:
[  170.870698]  <TASK>
[  170.870703]  show_stack+0x49/0x60
[  170.870713]  dump_stack_lvl+0x5f/0x90
[  170.870718]  dump_stack+0x10/0x18
[  170.870721]  sysfs_warn_dup.cold+0x17/0x34
[  170.870724]  sysfs_do_create_link_sd+0xe7/0xf0
[  170.870729]  sysfs_create_link+0x21/0x50
[  170.870731]  software_node_notify+0xb4/0xd0
[  170.870736]  device_add+0xf6/0x6f0
[  170.870740]  ? idr_replace+0xa9/0xb0
[  170.870747]  i2c_register_adapter+0x29e/0x4a0
[  170.870753]  i2c_add_numbered_adapter+0xe/0x20
[  170.870756]  i2c_dw_probe+0x2df/0x3c0
[  170.870761]  dw_i2c_plat_probe+0x34a/0x3e0
[  170.870766]  platform_probe+0x42/0xc0
[  170.870772]  call_driver_probe+0x2b/0x150
[  170.870774]  ? driver_sysfs_add+0x63/0xd0
[  170.870777]  really_probe+0xe7/0x2f0
[  170.870779]  ? __pfx___device_attach_driver+0x10/0x10
[  170.870783]  __driver_probe_device+0xa2/0x1c0
[  170.870786]  ? __pfx___device_attach_driver+0x10/0x10
[  170.870788]  driver_probe_device+0x24/0xb0
[  170.870791]  __device_attach_driver+0xc5/0x170
[  170.870795]  bus_for_each_drv+0x94/0xf0
[  170.870800]  __device_attach+0xb1/0x1f0
[  170.870803]  device_initial_probe+0x57/0x60
[  170.870806]  bus_probe_device+0x2e/0x90
[  170.870809]  device_add+0x538/0x6f0
[  170.870813]  platform_device_add+0xf8/0x270
[  170.870818]  mfd_add_device+0x366/0x3e0
[  170.870824]  mfd_add_devices+0x6f/0xe0
[  170.870831]  intel_lpss_probe.part.0+0x2f0/0x450 [intel_lpss]
[  170.870837]  intel_lpss_probe+0x20/0x50 [intel_lpss]
[  170.870841]  intel_lpss_pci_probe+0xe2/0x130 [intel_lpss_pci]
[  170.870844]  local_pci_probe+0x43/0xa0
[  170.870849]  pci_call_probe+0x5a/0x190
[  170.870854]  pci_device_probe+0xd9/0x160
[  170.870858]  call_driver_probe+0x2b/0x150
[  170.870861]  ? driver_sysfs_add+0x63/0xd0
[  170.870863]  really_probe+0xe7/0x2f0
[  170.870866]  ? __pfx___device_attach_driver+0x10/0x10
[  170.870869]  __driver_probe_device+0xa2/0x1c0
[  170.870872]  ? __pfx___device_attach_driver+0x10/0x10
[  170.870875]  driver_probe_device+0x24/0xb0
[  170.870878]  __device_attach_driver+0xc5/0x170
[  170.870881]  bus_for_each_drv+0x94/0xf0
[  170.870886]  __device_attach+0xb1/0x1f0
[  170.870889]  device_attach+0x10/0x20
[  170.870892]  bus_rescan_devices_helper+0x50/0xd0
[  170.870896]  drivers_probe_store+0x35/0x70
[  170.870901]  bus_attr_store+0x24/0x50
[  170.870904]  sysfs_kf_write+0x74/0x90
[  170.870907]  kernfs_fop_write_iter+0x162/0x1f0
[  170.870912]  iter_file_splice_write+0x384/0x5d0
[  170.870921]  do_splice+0x1ad/0x4e0
[  170.870924]  __do_splice+0x21b/0x230
[  170.870927]  __x64_sys_splice+0x8d/0x130
[  170.870930]  x64_sys_call+0x1fde/0x23d0
[  170.870934]  do_syscall_64+0xba/0x480
[  170.870939]  ? do_syscall_64+0xf6/0x480
[  170.870945]  ? pipe_double_lock+0x44/0x70
[  170.870950]  ? pipe_unlock+0x1e/0x30
[  170.870952]  ? do_tee+0x28c/0x410
[  170.870955]  ? __x64_sys_tee+0x77/0xf0
[  170.870957]  ? handle_pte_fault+0x149/0x200
[  170.870964]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xc0
[  170.870967]  ? do_syscall_64+0xf6/0x480
[  170.870973]  ? count_memcg_events+0xec/0x240
[  170.870977]  ? handle_mm_fault+0x1b9/0x2f0
[  170.870982]  ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[  170.870988]  ? irqentry_exit+0x3c/0x770
[  170.870991]  ? exc_page_fault+0x94/0x1c0
[  170.870996]  ? do_syscall_64+0x33/0x480
[  170.871001]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[  170.871003] RIP: 0033:0x755f91d3c157
[  170.871028] Code: f9 08 74 43 ba 04 00 00 00 48 8b 05 ab bc 0d 00 64 89 10 48 c7 c2 ff ff ff ff c9 48 89 d0 c3 0f 1f 40 00 b8 13 01 00 00 0f 05 <48> 89 c2 48 3d 00 f0 ff ff 77 0e c9 48 89 d0 c3 66 0f 1f 84 00 00
[  170.871030] RSP: 002b:00007ffc3c5a69c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000113
[  170.871035] RAX: ffffffffffffffda RBX: 00007ffc3c5a6a10 RCX: 0000755f91d3c157
[  170.871037] RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000004
[  170.871038] RBP: 00007ffc3c5a69d0 R08: 000000000000000d R09: 0000000000000000
[  170.871040] R10: 0000000000000000 R11: 0000000000000202 R12: 00005968b752bae0
[  170.871041] R13: 00007ffc3c5a6a10 R14: 0000000000000000 R15: 00007ffc3c5a6b10
[  170.871044]  </TASK>
[  171.033636] input: VEN_0488:00 0488:1040 Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-VEN_0488:00/0018:0488:1040.0006/input/input22
[  171.034052] input: VEN_0488:00 0488:1040 Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-VEN_0488:00/0018:0488:1040.0006/input/input23
1 Like

@ahonorat

In #119 and #121, the tested devices stayed bound during the first sleep and were rebound only after resume.

In #105, ten devices were unbound before pm_test=devices and re-probed before s1 (while 00:12.0 stayed unbound), and s1 gained 16.4s in Package C10.

Across both runs in #117, the only devices from #105’s unbind list that remained bound during pm_test=devices were 00:15.0, 00:15.1, 00:1f.3, 00:1f.4, and 00:12.0.

On a fresh boot, could you test unbinding 00:15.0, 00:15.1, 00:1f.3, and 00:1f.4 before pm_test=devices and re-probing them before s1:

sudo bash << 'EOF'
DEVS="00:15.0 00:15.1 00:1f.3 00:1f.4"
for d in $DEVS; do echo 0000:$d > /sys/bus/pci/devices/0000:$d/driver/unbind; done
echo devices > /sys/power/pm_test
echo freeze > /sys/power/state
echo none > /sys/power/pm_test
for d in $DEVS; do echo 0000:$d > /sys/bus/pci/drivers_probe; done
sleep 5
for w in /sys/devices/pci0000:00/0000:00:15.*/i2c_designware.*/i2c-*/i2c-*/power/wakeup; do
  [ -e "$w" ] && echo disabled > "$w"
done
for w in XHC LID0; do grep -q "^$w.*\*enabled" /proc/acpi/wakeup && echo $w > /proc/acpi/wakeup; done
sleep 2
echo "=== before s1 ==="
grep -E "Package C(3|10)" /sys/kernel/debug/pmc_core/package_cstate_show
grep -E "S0i2\.0|S0i3\.0" /sys/kernel/debug/pmc_core/substate_residencies
rtcwake -m freeze -s 15
echo "=== after s1 ==="
grep -E "Package C(3|10)" /sys/kernel/debug/pmc_core/package_cstate_show
grep -E "S0i2\.0|S0i3\.0" /sys/kernel/debug/pmc_core/substate_residencies
EOF

If s1 gains ~13s in Package C10, could you reboot and run the same block with DEVS="00:15.0 00:15.1" (or DEVS="00:1f.3 00:1f.4") to see which pair is responsible?

And if s1 still gains only ~1.7s, could you reboot and try DEVS="00:12.0 00:15.0 00:15.1 00:1f.3 00:1f.4" (and DEVS="00:12.0")?

:grin:

I start to believe that all devices are responsible :sweat_smile:

Well so the gain in C10 was about 1.7 sec again, so I switched to the two other tests, with DEVS="00:12.0 00:15.0 00:15.1 00:1f.3 00:1f.4" and DEVS="00:12.0".
And the result is also1.7 sec in C10.

script output post 122 with DEVS=“00:12.0 00:15.0 00:15.1 00:1f.3 00:1f.4
0000:00:12.0
0000:00:15.0
0000:00:15.1
0000:00:1f.3
0000:00:1f.4
devices
freeze
none
0000:00:12.0
0000:00:15.0
0000:00:15.1
0000:00:1f.3
0000:00:1f.4
disabled
XHC
LID0
=== before s1 ===
Package C3 : 2219478
Package C10 : 0
         S0i2.0               0
         S0i3.0               0
rtcwake : on considère que l'horloge matérielle utilise l'échelle UTC…
rtcwake : « wakeup » (réveil) depuis « freeze » avec /dev/rtc0 à Wed Nov  4 14:51:17 2026
=== after s1 ===
Package C3 : 15760937
Package C10 : 1648839
         S0i2.0               0
         S0i3.0         1088240
script output post 122 with DEVS=“00:12.0“
0000:00:12.0
devices
freeze
none
0000:00:12.0
disabled
XHC
LID0
=== before s1 ===
Package C3 : 1723441
Package C10 : 0
         S0i2.0               0
         S0i3.0               0
rtcwake : on considère que l'horloge matérielle utilise l'échelle UTC…
rtcwake : « wakeup » (réveil) depuis « freeze » avec /dev/rtc0 à Wed Nov  4 14:55:08 2026
=== after s1 ===
Package C3 : 14974137
Package C10 : 1638662
         S0i2.0           18971
         S0i3.0         1020438
1 Like

@ahonorat

In PM we tested unbinding and re-probing all 11 devices together, and both s1 (+13.4s C10, +12.7s S0i3.0) and s2 (+13.0s C10, +12.4s S0i3.0) reached full deep sleep - with s2 doing it via a simple unbind/re-probe after s1 without pm_test=devices.

So now you can use this shorter script
(no reboot needed between runs):

sudo bash << 'EOF'
DEVS="00:12.0 00:04.0 00:0d.0 00:0d.2 00:14.0 00:14.3 00:15.0 00:15.1 00:16.0 00:1f.3 00:1f.4"
for d in $DEVS; do [ -e /sys/bus/pci/devices/0000:$d/driver ] && echo 0000:$d > /sys/bus/pci/devices/0000:$d/driver/unbind; done
sleep 1
for d in $DEVS; do echo 0000:$d > /sys/bus/pci/drivers_probe; done
sleep 5
for w in /sys/devices/pci0000:00/0000:00:15.*/i2c_designware.*/i2c-*/i2c-*/power/wakeup; do
  [ -e "$w" ] && echo disabled > "$w"
done
for w in XHC LID0; do grep -q "^$w.*\*enabled" /proc/acpi/wakeup && echo $w > /proc/acpi/wakeup; done
sleep 2
echo "=== before ==="
grep -E "Package C(3|10)" /sys/kernel/debug/pmc_core/package_cstate_show
grep -E "S0i2\.0|S0i3\.0" /sys/kernel/debug/pmc_core/substate_residencies
rtcwake -m freeze -s 15
echo "=== after ==="
grep -E "Package C(3|10)" /sys/kernel/debug/pmc_core/package_cstate_show
grep -E "S0i2\.0|S0i3\.0" /sys/kernel/debug/pmc_core/substate_residencies
EOF

To find the minimal set, start with all 11 devices in DEVS and try removing small groups one after another - for example first remove 00:04.0 00:0d.0 00:0d.2, then 00:14.0 00:14.3, then 00:12.0 00:16.0, then 00:15.0 00:15.1, and finally 00:1f.3 00:1f.4.

After each run, check Package C10: if it still goes up by 13,000,000 (13s), those removed devices are not needed and you can leave them out permanently.

If Package C10 only goes up by 1,700,000 (1.7s), put that group back in DEVS and try removing its devices one by one. :slightly_smiling_face:

We are almost there, thanks a lot @steelf !

So this last script enabled me to find that both i2c devices 00:15.0 00:15.1are the faulty ones! Also their wakeup settings must be disabled.

However … this technique is working most of the time but not always. The i2c error reported in post #120 now occurs consistently after probing. Why would Fedora behave differently here?

A minimal amount of sleep is required after probing the two devices. I wonder if sleep duration is the only factor. I guess it is not possible to probe the fact that the system went back from s0i3?

I wrote a systemd service to call the script before suspend, but apparently it did not worked (I guess because of those timing issues).

i2c unbind/probe service
[Unit]
Description=Reset i2c devices after wakeup to allow subsequent good suspend sleep at s0i3 level. Also prevent wakeup from trackpad.
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/local/bin/reset_i2c.sh

[Install]
WantedBy=sleep.target

(reset_i2c.sh is the first part of script in post #124, with DEVS=“00:15.0 00:15.1”)

Awesome job :wink: :partying_face:

Because of Before=sleep.target, systemd ran reset_i2c.sh right before going to sleep and froze the system before the devices and touchpad settled.

Change sleep.target to suspend.target and drop StopWhenUnneeded / RemainAfterExit so reset_i2c.sh runs after wakeup instead (giving both devices the whole awake session to settle before the next sleep):

[Unit]
Description=Reset i2c devices after wakeup
After=suspend.target

[Service]
Type=oneshot
ExecStart=-/usr/local/bin/reset_i2c.sh

[Install]
WantedBy=suspend.target

Then run:

sudo systemctl daemon-reload
sudo systemctl reenable <your-service-name>.service

That i2c-0 sysfs error is a harmless kernel bug in mfd-core.c triggered only when unbinding and re-probing 00:15.x (@lakerssuperman never unbound 00:15.x on Fedora).

You can read /sys/power/suspend_stats/last_hw_sleep - it shows the hardware S0ix sleep time of the last suspend in microseconds.

Hello again!

So I did a few tries and I cannot yet make the suspend consistently reaching s0i3 :confused: It works half of the time … but seems random.
Anyway it is quite better than before and now I have a few tools to check this, so I guess I will continue a bit on my own and then post a better solution if I find one. @steelf is it possible to let the discussion open one more month just in case? Otherwise I will set your last script as the solution. Thank you a lot!

Actually I was wondering if it is possible to trigger a hook so that if the system comes back from s0i3 but is still suspended, it tries again the procedure. But I am not sure that is a good idea, I’ll better spend my time to continue the investigation :wink:

@lakerssuperman since it now works for you on fedora, could you share with me what fedora version are you running? also your UEFI settings? I’ll try with a Live USB boot too to check reproducibility. Thanks!

1 Like

I am not a moderator here so I cannot change the topic timer - if you leave the Solution button unchecked for now, the thread will stay open on its own :slightly_smiling_face:

My guess is either using the touchpad after wakeup wakes 00:15.1 back up and puts it into the bad state again before the next sleep, or one of the other 9 devices from DEVS is also needed (since in #124 we dropped devices from DEVS without rebooting between runs, so an earlier run had already reset the others).

2 things you can try when you have time:

-Put all 11 devices back into DEVS in reset_i2c.sh and see if that makes it work every time.

-Since 00:15.0 (i2c-0) has nothing connected to it on your laptop, try unbinding 00:15.0 once and leaving it unbound instead of re-probing it.

Unfortunately during s2idle all userspace processes are frozen by the kernel, so no script can run while the laptop is asleep - the drop from S0i3.0 to C3 happens inside the hardware controller while the OS is still frozen.

Let us know how it goes! :wink:

1 Like

I tried Fedora 44 with a liveUSB then went ahead and install Fedora 45 on the actual hardware. From my testing since I installed Fedora 45 it seems to be functioning as expected. The overnight drain felt a bit high, but that just might be me paying more attention to this machine vs. my old one. UEFI I believe I’m running secure boot on, I’d have to look.

This topic was automatically closed after 30 days. New replies are no longer allowed.