I just got a new Thinkpad E14 gen 5, and installed fedora kde spin on it. The issue is that i am unable to resume from sleep when on battery. The laptop uses s2idle and it does not support S3 power state(s2idle deep).
Case 1:
When on battery, I go to sleep and then resume, the screen brightness automatically dims, and then starts to increase, the fluctuates a bit and screen turns off, to recover, i either need to connect laptop to power or restart.
When I connect the power, the screen turns on, and works but when I remove power same happens, until I reconnect power or restart.
Case2:
when laptop is connected to power, the sleep works perfectly fine.
I looked into journalctl, but could not understand much. After resuming from sleep, and connecting power, and disconnecting it repeatedly, The logs say when power is disconnected, the org.kde.powerdevil.backlighthelper gets deactivated, and when power is connected, it gets activated.