You are not logged in.

#1 2021-01-28 22:04:34

miro279
Member
Registered: 2010-10-02
Posts: 153

[SOLVED] Cannot resum from sleep on kde

I have a new laptop (Dell Inspiron 5000 with AMD 4500u Renoir) and installed arch as dualboot with preinstalled windows 10. I have the problem that if I suspend to RAM in kde /plasma/wayland, I cannot wake the laptop again, sometimes I get part of the dispay with an unresponsive mousepointer, sometimes I get nothing. Suspend and resume is working from sddm, not having started kde yet. I reaserached a bit and found someone with similar problmes telling it is working having no swap. I can confirm this for my case as well, when I disable the swap partition in fstab I can suspend and resume as suposed. This migght be a workaround, but no solution. Are there any hints what causes this behaviour and how to solve it?

Last edited by miro279 (2021-01-29 20:06:15)

Offline

#2 2021-01-29 07:13:20

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Offline

#3 2021-01-29 20:05:18

miro279
Member
Registered: 2010-10-02
Posts: 153

Re: [SOLVED] Cannot resum from sleep on kde

The problem is the combination of compositor and suspend to RAM. Plasma without wayland and compositor disabled, suspend to RAM and waking up functions normally.
Using uswsusp I can use s2ram and resuming from sleep works having compositor enabled also. So I stay with wayland and use uswsusp instead of the kernel for now:

echo "SLEEP_MODULE="uswsusp"" >> /etc/pm/config.d/module

Last edited by miro279 (2021-01-30 08:20:07)

Offline

#4 2021-01-30 22:01:42

miro279
Member
Registered: 2010-10-02
Posts: 153

Re: [SOLVED] Cannot resum from sleep on kde

To have a cleaner solution I deleted /etc/pm/config.d/module and created /etc/systemd/system/systemd-suspend.service.d/override.conf:

[Service]
ExecStart=
ExecStartPre=-/usr/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/bin/s2ram
ExecStartPost=-/usr/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep

Offline

#5 2021-03-11 22:06:33

Scrumplex
Member
From: Germany
Registered: 2018-12-25
Posts: 6
Website

Re: [SOLVED] Cannot resum from sleep on kde

I got a similar issue.

Only happens with Plasma on Wayland.

I isolated it down to the following:

Start Plasma in Wayland mode
Wait until screens are turned off by power management (lower time to 1min for example)
Wait until Plasma suspends (or do it manually via ssh by running systemctl suspend)

And then it's dead. I can't get wake it anymore.

If the screens don't turn off before though, resuming works. This is a really weird bug.

Offline

#6 2022-04-26 11:50:42

MajorMayer
Member
Registered: 2021-05-22
Posts: 5

Re: [SOLVED] Cannot resum from sleep on kde

I can confirm this issue using Plasma 5.24.4 and 0.19.0.
The thing with the screens turning off and Plasma not coming back comes in addition to the problem when you manually go to sleep.
But when i suspend my PC manually it doesn't happen all the time.

Offline

Board footer

Powered by FluxBB