pcsx2
pcsx2 copied to clipboard
[BUG]: Inhibit Screensaver option not working on KDE Plasma
Describe the Bug
The display still goes to sleep even with the 'Inhibit Screensaver' option enabled. In the KDE Plasma power management settings, I have the Screen Energy Saving set to 10 minutes, and Suspend set to 30 minutes, so the issue is not due to a small timeout.
I'm using the latest development build on Arch Linux with KDE Plasma 5.25.4, playing with a DualShock 4 controller via Bluetooth.
Reproduction Steps
Set the display timeout to 10 minutes in KDE Plasma System Settings, and enable the Inhibit Screensaver option in PCSX2. After 10 minutes of play the display will still go to sleep.
Expected Behavior
No response
PCSX2 Revision
v1.7.0-dev-4046-gff15de9fa
Operating System
Linux (64bit) - Specify Distro Below
If Linux - Specify Distro
Arch
Not using any desktop environment and screensaver at all, just the default xorg blanking and I can confirm this. I tried to bisect but #6131 contains a change that is vital for PCSX2 working on Arch Linux systems, which makes it super ardous to bisect.
@NetSysFire @mikebm94 can you see if it happens with the latest appimage ?
This is the latest git version. So yes, it is still present in master.
@Mrlinkwii I just tried the latest AppImage (pcsx2-v1.7.3172-linux-AppImage-64bit-AVX2-Qt.AppImage) and the issue still happens.
It doesn't work on Gnome either, running on Fedora Workstation 36. Tested with: pcsx2-v1.7.3229-linux-AppImage-64bit-AVX2-Qt.AppImage
Should I open a separate issue for Gnome/Fedora?
@AlexanderRavenheart no need to make a seperate issue
It's not implemented. There's no "standard" way of doing so on Linux, and Qt doesn't provide one. Xorg is messy (you need to shell out to a separate command and pass it a pointer on the command line, yuck), and I'm not sure if it's even possible at all in wayland.
Pull requests welcome of course ;)
Same issue with Awesome WM.
@stenzek after a quick search I found this solution using DBus, if you think it's a good solution I can try to implement it.
Is it GNOME-only? Not really much use if it is.
You'd also have to change the CI build scripts to enable QDbus (and include the required libraries), since we don't include it currently.
Edit: I guess shelling out to whatever the dbus command line interface is, is an option too. We have to do that for xorg anyway :/
I have the same issue on 1.7.3505, Qt built