Laptop stuck in sleep mode when charger is plugged/unplugged

Hello, I have a Lenovo Ideapad 5 Pro 14ARH7.
CPU: Ryzen 7 6800HS Creator edition
GPU: AMD Radeon integrated graphics, RX 680M
16GB RAM
1TB NVME M.2 SSD

This laptop only provides s2idle sleep mode. This mode works great, it has almost no power draw, it has one major flaw though. If I unplug the charger, or plug it in if it wasn’t, then something happens with the kernel and it gets stuck sleeping. It stops reacting to keyboard presses, Alt + SysRq + B does nothing. The only way to get out of sleep mode is to forcefully shut the laptop down by holding the power button for 5 seconds.

There is nothing visible in the journalctl logs when this happens. When I unplug the laptop while it’s sleeping, the keyboard backlight briefly flashes on then off and is then stuck. Uninstalling tlp removes this flash, but does not fix the issue.

This happens on all kernel versions that I have tried (6.5,6.6,6.7,6.8).

As long as the charger isn’t plugged on unplugged, then sleep mode works fine.

Does anyone have an idea on what might be causing this, or at least know of some way to find out what’s going on? Thanks.

I have just tried a live USB of Fedora 39, this issue isn’t present there, so either it’s something specific to this distribution or I messed something up.

Are you using a thunderbolt dock or some sort of hub? Have you tried disconnecting any peripheral devices?

This happens without any devices connected (except for the internal ones of course like touchpad or keyboard). My laptop doesn’t support thunderbolt because it uses an AMD chip but you can connect an external display to the usb-c port.

I think it’s the transition from charging to not-charging and back that seems to be causing issues.

Nevermind, I fixed it. For some reason, TLP was bugged. Even if I set TLP_ENABLE=0, tlp was still kind of doing something in the background. I don’t know what. However reinstalling it, resetting all settings to defaults, fixed the issue. And even hibernation now works properly!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.