From 23347190c7d43f32714d41cd8d10fe150215d1bb Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 8 Sep 2023 13:42:48 -0700 Subject: [PATCH] fix(gnome): Set sensible default power settings on Steam Deck hardware automatically --- system_files/desktop/shared/usr/bin/bazzite-user-setup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system_files/desktop/shared/usr/bin/bazzite-user-setup b/system_files/desktop/shared/usr/bin/bazzite-user-setup index 3673fa20..071f9a76 100755 --- a/system_files/desktop/shared/usr/bin/bazzite-user-setup +++ b/system_files/desktop/shared/usr/bin/bazzite-user-setup @@ -74,6 +74,16 @@ else echo 'Setting mouse input profile' gsettings set org.gnome.desktop.peripherals.mouse accel-profile "flat" + echo 'Setting default power settings' + gsettings set org.gnome.desktop.session idle-delay 0 + gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled true + gsettings set org.gnome.settings-daemon.plugins.power idle-dim true + gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 300 + gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900 + gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type "suspend" + gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type "suspend" + gsettings set org.gnome.settings-daemon.plugins.power power-button-action "suspend" + echo 'Tweaking GNOME indexer' mkdir -p $HOME/.steam touch $HOME/.steam/.trackerignore