Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for KDE/Plasma #1

Open
norbusan opened this issue Feb 21, 2021 · 2 comments
Open

Support for KDE/Plasma #1

norbusan opened this issue Feb 21, 2021 · 2 comments

Comments

@norbusan
Copy link

Hi
thanks for the scripts and the nice idea to force off dpms, much appreciated. I want to do the same for KDE/Plasma, so the dbus query for DPMS setting does not work obviously, since Mutter is not running. I am not really sure how to get the respective propery, but my guess is from powerdevil?

@dwagelaar
Copy link
Owner

I found a related post at https://askubuntu.com/questions/1316097/how-to-turn-off-the-monitor-via-command-on-wayland-kde-plasma

qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut "PowerOff"

...will trigger whatever you programmed the power button to do. I suppose if you can program a (virtual) button to send the monitor to sleep, you can use that button's name in the script above to trigger it programmatically.

@norbusan
Copy link
Author

Thanks, that is good to know, but it doesn't help for now since the monitoring of the DPMS state is also done via mutter

POWER_SAVE_MODE=$(busctl --user get-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants