-
Notifications
You must be signed in to change notification settings - Fork 35
mwp Power and screen management
Jonathan Hudson edited this page Apr 4, 2021
·
4 revisions
There are a number of ways of managing the screen (inhibit screen saver etc.)
-
Use an external screen-saver manager such as caffeine
-
Use the legacy mwp settings options, for example:
org.mwptools.planner atexit 'gsettings set org.gnome.settings-daemon.plugins.power idle-dim true'
org.mwptools.planner atstart 'gsettings set org.gnome.settings-daemon.plugins.power idle-dim false'
- From commit 87ab063 (2021-04-04), allow mwp to manage screen and power settings, controlled by a setting:
gsettings set org.mwptools.planner manage-power true
In the first two cases, the setting is somewhat coarse, either requiring the user to click on something and applying to the whole mwp session.
The final case applies only when mwp is receiving push telemetry (LTM, Mavlink, MQTT). It specifically sets, via system API, the equivalent of:
gsettings set org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power.idle-dim false
gsettings set org.gnome.desktop.screensaver.idle-activation-enabled false
The user's default preferences are restored when the telemetry stops, the port is closed or the application closes.