FW13 7640U Not Reaching Hardware Sleep State

Background info:

  • Ubuntu 24.04
  • Kernel 6.17.0-23-generic #23~24.04.1-Ubuntu
  • Bios version 3.18
  • Ryzen 7640u mainboard

My laptop 13 appears to not enter s2idle at all based on testing from amd-s2idle.

The key output:

 Did not reach hardware sleep state
đź’¤ Hardware sleep cycle count: 1
đź’¤ Notify devices ['UBTC', 'DEV0'] found during suspend
The system was asleep for 0:01:02, but only spent 0.00% of this time in a hardware sleep state.  In sleep cycles that are at least 60 seconds long it's expected you spend above 90 percent of the cycle in hardware sleep.

This occurs on sleep cycles from 1 minute to one hour.

I’ve tried disabling all entries in /proc/acpi/wakeup, as well as /sys/firmware/acpi/interrupts/gpe*, and whether they are enabled or not does not affect amd-s2idle test results.

# cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
GPP0      S4    *disabled
GPP2      S4    *disabled
GPP5      S4    *disabled
GPP6      S4    *disabled  pci:0000:00:02.2
GPP7      S4    *disabled
GP11      S4    *disabled  pci:0000:00:03.1
SWUS      S4    *disabled
GP12      S4    *disabled  pci:0000:00:04.1
SWUS      S4    *disabled
XHC0      S3    *disabled  pci:0000:c1:00.3
XHC1      S3    *disabled  pci:0000:c1:00.4
XHC2      S3    *disabled  pci:0000:c3:00.0
NHI0      S4    *disabled  pci:0000:c3:00.5
XHC3      S3    *disabled  pci:0000:c3:00.3
NHI1      S4    *disabled  pci:0000:c3:00.6
XHC4      S3    *disabled  pci:0000:c3:00.4

$ grep -r -n  /sys/firmware/acpi/interrupts/gpe* -e "enabled"
/sys/firmware/acpi/interrupts/gpe0B:1:     516     STS enabled      masked  
/sys/firmware/acpi/interrupts/gpe10:1:       9         enabled      masked  
/sys/firmware/acpi/interrupts/gpe1A:1:       1         enabled      masked  

Full amd-s2idle results: s2idle report created on 2026-05-16 15:06:51.801427 using amd-s2idle 0.2.18 - Pastebin.com

This issue persists with and without expansion cards installed.

This isn’t negatively affecting sleep battery life too badly, but I’m not fully sure why this is happening.

What USB devices do you have plugged in?

UBTC is a problem with a not managing to get a USB device to sleep.

I have no USB devices plugged in asides from 3xUSB-C and 1 HDMI expansion card , and I’ve run amd-s2idle with and without said expansion cards only to get the same “Did not reach hardware sleep state”.

I’ve been testing on battery only, if that matters.

Please post the output of “sudo lsmod”
It says the kernel is tainted, so i am wondering which module is causing it.

ioremap error for 0x41e300000-0x41e301000, requested 0x2, got 0x0

I would say whatever is happening here is likely the root cause.

Is this a kernel regression for you? What’s the last kernel that worked? You may need to bisect.

I’m fairly certain that the ryzen_smu module is tainting the kernel since I installed it to get ryzenadj running.

lsmod output:

$ sudo lsmod
Module                  Size  Used by
wireguard             118784  0
curve25519_x86_64      36864  1 wireguard
libcurve25519_generic    49152  2 curve25519_x86_64,wireguard
dummy                  16384  0
cpuid                  12288  0
tls                   155648  0
ccm                    20480  6
rfcomm                 98304  16
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
xfrm_user              65536  1
xfrm_algo              16384  1 xfrm_user
xt_set                 20480  0
ip_set                 61440  1 xt_set
xt_addrtype            12288  4
xt_CHECKSUM            12288  1
xt_MASQUERADE          16384  5
xt_conntrack           12288  3
ipt_REJECT             12288  2
nf_reject_ipv4         12288  1 ipt_REJECT
xt_tcpudp              16384  0
nft_compat             20480  15
nft_chain_nat          12288  6
nf_nat                 61440  2 nft_chain_nat,xt_MASQUERADE
nf_conntrack          192512  3 xt_conntrack,nf_nat,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         12288  1 nf_conntrack
nf_tables             385024  234 nft_compat,nft_chain_nat
bridge                425984  0
stp                    12288  1 bridge
llc                    16384  2 bridge,stp
vxlan                 155648  0
ip6_udp_tunnel         16384  2 wireguard,vxlan
udp_tunnel             32768  2 wireguard,vxlan
overlay               221184  0
qrtr                   53248  2
cmac                   12288  2
algif_hash             16384  1
algif_skcipher         12288  1
af_alg                 32768  6 algif_hash,algif_skcipher
bnep                   32768  2
zram                   57344  1
842_decompress         20480  1 zram
842_compress           24576  1 zram
lz4hc_compress         20480  1 zram
lz4_compress           24576  1 zram
binfmt_misc            24576  1
nls_iso8859_1          12288  1
snd_sof_amd_acp70      16384  0
snd_sof_amd_acp63      16384  0
snd_sof_amd_vangogh    16384  0
snd_sof_amd_rembrandt    16384  0
snd_sof_amd_renoir     16384  0
snd_sof_amd_acp        61440  5 snd_sof_amd_acp70,snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_acp63,snd_sof_amd_renoir
snd_sof_pci            24576  5 snd_sof_amd_acp70,snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_acp63,snd_sof_amd_renoir
snd_sof_xtensa_dsp     12288  1 snd_sof_amd_acp
snd_sof               401408  2 snd_sof_amd_acp,snd_sof_pci
snd_sof_utils          16384  1 snd_sof
snd_pci_ps             32768  0
snd_soc_acpi_amd_match    12288  3 snd_sof_amd_acp70,snd_sof_amd_acp63,snd_pci_ps
snd_amd_sdw_acpi       16384  2 snd_sof_amd_acp,snd_pci_ps
snd_hda_codec_alc269   139264  1
soundwire_amd          45056  2 snd_sof_amd_acp,snd_pci_ps
snd_hda_scodec_component    20480  1 snd_hda_codec_alc269
amd_atl                69632  1
intel_rapl_msr         20480  0
amdgpu              20103168  62
soundwire_generic_allocation    24576  1 soundwire_amd
snd_hda_codec_realtek_lib    65536  1 snd_hda_codec_alc269
snd_hda_codec_atihdmi    24576  1
intel_rapl_common      53248  1 intel_rapl_msr
soundwire_bus        1175552  2 soundwire_generic_allocation,soundwire_amd
snd_hda_codec_generic   122880  2 snd_hda_codec_realtek_lib,snd_hda_codec_alc269
snd_hda_codec_hdmi     65536  1 snd_hda_codec_atihdmi
snd_soc_sdca           90112  1 soundwire_bus
snd_hda_intel          61440  2
snd_soc_core          417792  3 snd_sof,snd_soc_sdca,soundwire_amd
snd_hda_codec         204800  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_atihdmi
mt7921e                24576  0
edac_mce_amd           28672  0
leds_cros_ec           12288  0
snd_compress           36864  1 snd_soc_core
snd_hda_core          143360  7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_atihdmi
mt7921_common          94208  1 mt7921e
cros_ec_chardev        16384  0
led_class_multicolor    16384  1 leds_cros_ec
cros_kbd_led_backlight    12288  0
cros_charge_control    16384  0
cros_ec_debugfs        20480  0
cros_ec_hwmon          12288  0
cros_ec_sysfs          16384  0
snd_intel_dspcfg       45056  2 snd_hda_intel,snd_sof
gpio_cros_ec           12288  0
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
mt792x_lib             73728  2 mt7921e,mt7921_common
ac97_bus               12288  1 snd_soc_core
btusb                  77824  0
snd_hwdep              24576  1 snd_hda_codec
snd_pcm_dmaengine      20480  1 snd_soc_core
kvm_amd               241664  0
mt76_connac_lib       110592  3 mt792x_lib,mt7921e,mt7921_common
uvcvideo              143360  0
snd_rpl_pci_acp6x      16384  0
amdxcp                 12288  1 amdgpu
drm_panel_backlight_quirks    12288  1 amdgpu
snd_acp_pci            12288  0
btrtl                  32768  1 btusb
mt76                  155648  4 mt792x_lib,mt7921e,mt7921_common,mt76_connac_lib
drm_buddy              28672  1 amdgpu
spd5118                12288  0
cros_ec_dev            12288  0
snd_seq_midi           24576  0
btintel                69632  1 btusb
snd_amd_acpi_mach      12288  1 snd_acp_pci
videobuf2_vmalloc      20480  1 uvcvideo
snd_seq_midi_event     16384  1 snd_seq_midi
drm_ttm_helper         16384  2 amdgpu
uvc                    12288  1 uvcvideo
snd_acp_legacy_common    28672  1 snd_acp_pci
videobuf2_memops       16384  1 videobuf2_vmalloc
btbcm                  24576  1 btusb
ttm                   126976  2 amdgpu,drm_ttm_helper
btmtk                  36864  1 btusb
videobuf2_v4l2         36864  1 uvcvideo
hid_sensor_als         16384  1
drm_exec               12288  1 amdgpu
mac80211             1851392  4 mt792x_lib,mt76,mt7921_common,mt76_connac_lib
kvm                  1445888  1 kvm_amd
snd_rawmidi            57344  1 snd_seq_midi
snd_pci_acp6x          16384  0
videobuf2_common       86016  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
hid_sensor_trigger     20480  2 hid_sensor_als
drm_suballoc_helper    24576  1 amdgpu
bluetooth            1032192  44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
industrialio_triggered_buffer    12288  1 hid_sensor_trigger
snd_pcm               200704  15 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_acp_legacy_common,snd_hda_intel,snd_hda_codec,snd_sof,snd_soc_sdca,snd_compress,snd_soc_core,snd_sof_utils,soundwire_amd,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
snd_seq               122880  9 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy
irqbypass              16384  1 kvm
kfifo_buf              12288  1 industrialio_triggered_buffer
videodev              364544  2 videobuf2_v4l2,uvcvideo
drm_display_helper    290816  1 amdgpu
hid_sensor_iio_common    24576  2 hid_sensor_trigger,hid_sensor_als
mc                     81920  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
rapl                   20480  0
wmi_bmof               12288  0
industrialio          139264  5 industrialio_triggered_buffer,hid_sensor_trigger,kfifo_buf,hid_sensor_als
snd_pci_acp5x          16384  0
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
amd_pmf               114688  0
cec                    98304  2 drm_display_helper,amdgpu
cfg80211             1462272  4 mt76,mac80211,mt7921_common,mt76_connac_lib
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
amdtee                 32768  0
snd_rn_pci_acp3x       16384  0
amdxdna               147456  0
rc_core                73728  1 cec
snd_acp_config         20480  10 snd_rn_pci_acp3x,snd_sof_amd_acp70,snd_pci_acp6x,snd_pci_acp5x,snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_acp63,snd_acp_pci,snd_pci_ps,snd_sof_amd_renoir
i2c_piix4              32768  0
snd                   143360  22 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_soc_sdca,snd_timer,snd_hda_codec_realtek_lib,snd_compress,snd_hda_codec_alc269,snd_soc_core,snd_pcm,snd_rawmidi
snd_soc_acpi           16384  5 snd_sof_amd_acp,snd_acp_legacy_common,snd_acp_config,snd_amd_acpi_mach,snd_pci_ps
i2c_algo_bit           16384  1 amdgpu
gpu_sched              65536  2 amdxdna,amdgpu
libarc4                12288  1 mac80211
snd_pci_acp3x          16384  0
i2c_smbus              20480  1 i2c_piix4
k10temp                16384  0
soundcore              16384  1 snd
ccp                   159744  2 kvm_amd,amdtee
amd_sfh                69632  1 amd_pmf
cros_ec_lpcs           20480  0
tee                    45056  2 amd_pmf,amdtee
cros_ec                20480  1 cros_ec_lpcs
platform_profile       20480  1 amd_pmf
cros_ec_proto          65536  11 leds_cros_ec,cros_ec_lpcs,cros_kbd_led_backlight,cros_ec,gpio_cros_ec,cros_ec_dev,cros_ec_debugfs,cros_ec_hwmon,cros_ec_sysfs,cros_ec_chardev,cros_charge_control
amd_pmc                53248  0
input_leds             12288  0
joydev                 32768  0
mac_hid                12288  0
serio_raw              20480  0
sch_fq_codel           24576  1
ryzen_smu              36864  0
msr                    12288  0
parport_pc             53248  0
ppdev                  24576  0
lp                     32768  0
parport                73728  3 parport_pc,lp,ppdev
nvme_fabrics           36864  0
efi_pstore             12288  0
nfnetlink              20480  5 nft_compat,nf_tables,ip_set
dmi_sysfs              20480  0
ip_tables              32768  0
x_tables               65536  9 xt_conntrack,nft_compat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_set,ipt_REJECT,ip_tables,xt_MASQUERADE
autofs4                57344  2
dm_crypt               65536  1
usbhid                 77824  0
nvme                   61440  3
ucsi_acpi              12288  0
nvme_core             233472  5 nvme,nvme_fabrics
typec_ucsi             69632  1 ucsi_acpi
typec                 118784  1 typec_ucsi
nvme_keyring           20480  2 nvme_core,nvme_fabrics
hid_multitouch         36864  0
polyval_clmulni        12288  0
hid_sensor_hub         28672  3 hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_als
hid_generic            12288  0
ghash_clmulni_intel    12288  0
thunderbolt           540672  1 typec
i2c_hid_acpi           12288  0
nvme_auth              28672  1 nvme_core
video                  77824  1 amdgpu
i2c_hid                40960  1 i2c_hid_acpi
wmi                    28672  2 video,wmi_bmof
hid                   262144  8 i2c_hid,usbhid,hid_multitouch,hid_sensor_hub,snd_soc_sdca,hid_generic,amd_sfh
aesni_intel            98304  7

Is this a kernel regression for you? What’s the last kernel that worked? You may need to bisect.

This is the first kernel I have used on this machine, so it is not a regression. I can try figuring out how to bisect this situation if it seems that it is a kernel version issue.

Please don’t use out of tree modules. It’s quite plausible that module caused this issue.

Yep, that module was the issue. Upon removing it from dkms, hardware sleep is now working. Thank you for your help!

Edit: this seems to be related to the following issue on the ryzen_smu gitlab, so I’m following up there to see if this can be fixed on their end ryzen_smu prevents full suspend on Ryzen AI 9 HX 370 (high battery drain) · Issue #45 · amkillam/ryzen_smu · GitHub

It would be pretty easy for the ryzen_smu developer to make it suspend compatible. They just need to add a suspend / resume callback to their kernel module.

In case you aren’t aware CPU sPPT and fPPT and the like are managed by the EC in framework designs. They will be dependent upon the size of the power adapter connected and the acpi power profile state (set via amd-pmf).

1 Like