Wayland KDE screens wake from sleep

Hey everyone

Not sure if this is the right place to ask. I have been experiencing this issue for a while now. I’m convinced it’s something to do with my monitor setup. When I use a Wayland session my monitors refuse to sleep! On X11 they sleep as expected when the screen is locked. On Wayland they go to sleep, flash the “entering power save” message and then turn back on. Here is my current and previous setups that both experienced the exact same issue.

Current:


<span style="color:#323232;">OS: Arch Linux x86_64 
</span><span style="color:#323232;">Host: B550M Steel Legend 
</span><span style="color:#323232;">Kernel: 6.4.10-arch1-1 
</span><span style="color:#323232;">DE: Plasma 5.27.7 
</span><span style="color:#323232;">WM: kwin 
</span><span style="color:#323232;">CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz 
</span><span style="color:#323232;">GPU: AMD ATI Radeon RX 7900 XT/7900 XTX 
</span><span style="color:#323232;">Memory: 4705MiB / 32018MiB
</span>

Previous 2 configurations:


<span style="color:#323232;">DE: GNOME 43-44
</span><span style="color:#323232;">WM: Mutter
</span><span style="color:#323232;">GPU: RTX 3080
</span><span style="color:#323232;">(everything else is the same except kernel) 
</span>

<span style="color:#323232;">DE: GNOME 41-43
</span><span style="color:#323232;">WM: Mutter
</span><span style="color:#323232;">GPU: GTX 1080ti
</span><span style="color:#323232;">(everything else is the same except kernel) 
</span>

I’ve tried running this command I found on stack overflow:

/bin/sleep 1 &amp;&amp; /bin/dbus-send --session --dest=org.kde.kglobalaccel /component/org_kde_powerdevil org.kde.kglobalaccel.Component.invokeShortcut string:‘Turn Off Screen’

Note: &amp;&amp; should be && but lemmy is sanitizing it and won’t let me put ampersands in code blocks

but no luck. Any ideas on how to fix this?

Nia,

Just out of curiosity, since I’ve had a similar problem, can you try to disable KScreen 2 in your Background Services settings near the startup applications/autostart menu, then try to let your monitors go to sleep?

My monitors always wake from sleep repeatedly on their own on both X11 and Wayland, but disabling it fixes it for me (but also resets my monitor settings on every boot/log in). I’m still working on finding a permanent solution for mine, but if this also acts as a workaround for your issue it might help narrow down the cause a bit.

bahmanm,
@bahmanm@lemmy.ml avatar

Have you tried putting the display to sleep from the CLI and see if there’s any meaningful output?

I’m not at my desk but something like: askubuntu.com/…/turn-off-monitor-using-command-li…

bahmanm,
@bahmanm@lemmy.ml avatar

OK, I just realised you’ve already done something similar. Scratch what I wrote.

gi1242,

Dont sleep 1&amp;. Instead sleep 1;

SpicyTofuSoup, (edited )

Ah sorry lemmy code sanitation is changing it. I added a note below it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines