Skip to content

Instantly share code, notes, and snippets.

@willnss
Created December 26, 2020 00:07
Show Gist options
  • Save willnss/585c6cf6958956ad409248a39eff5d99 to your computer and use it in GitHub Desktop.
Save willnss/585c6cf6958956ad409248a39eff5d99 to your computer and use it in GitHub Desktop.
Remove idle sleep on gdm through ssh after an inactive period
# access machinectl as gdm and change the timeout
sudo machinectl shell gdm@ /bin/bash
export GSETTINGS_BACKEND=dconf
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
# restart gdm
systemctl restart gdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment