I am looking to add some controls to a startup script for a program that will
DISABLE Screen Energy Saving when the program starts
RE-ENABLE Screen Energy Saving when the sprogram shutsdown.
dbus
via qdbus org.freedesktop.PowerManagement ?
I am not a dbus guru, and what I am finding in searches is well, not really outlining how to use this to DISABLE/RE-ENABLE this as I want..
Basically the BASH script would
qdbus org.freedesktop.PowerManagement (DISABLE SCREEN ENERGY SAVING)
/me/program/Program
qdbus org.freedesktop.PowerManagement (RE-ENABLE SCREEN ENERGY SAVING)
I don't mind the screen dimming, whille this runs, but manually changing this setting each time is well so wrong.
Any pointers to do this? dbus? Something else?
Thanks!
DISABLE Screen Energy Saving when the program starts
RE-ENABLE Screen Energy Saving when the sprogram shutsdown.
dbus
via qdbus org.freedesktop.PowerManagement ?
I am not a dbus guru, and what I am finding in searches is well, not really outlining how to use this to DISABLE/RE-ENABLE this as I want..
Basically the BASH script would
qdbus org.freedesktop.PowerManagement (DISABLE SCREEN ENERGY SAVING)
/me/program/Program
qdbus org.freedesktop.PowerManagement (RE-ENABLE SCREEN ENERGY SAVING)
I don't mind the screen dimming, whille this runs, but manually changing this setting each time is well so wrong.
Any pointers to do this? dbus? Something else?
Thanks!
Comment