On 11/12/19 9:43 PM, Alex wrote:
I have a fedora30 desktop that's used infrequently throughout the day.
I'd like it to go to sleep on its own after 15 minutes of inactivity.
How can I do this?
The install was done using defaults, so I'm using GNOME with its
default applications and configuration.
An option to configure this from the command-line would be
appreciated, although I can also use the GUI.
These setting are held in a user's dconf database. You can manipulate them
using the
gsettings command.
[egreshko@f30g ~]$ gsettings list-keys org.gnome.settings-daemon.plugins.power
idle-dim
sleep-inactive-battery-type
idle-brightness
ambient-enabled
sleep-inactive-ac-type
sleep-inactive-battery-timeout
sleep-inactive-ac-timeout
power-button-action
Shows the available options. Note if you are on AC power you want to use the
AC optons.
For those the keys you're interested are sleep-inactive-ac-type and
sleep-inactive-ac-timeout.
To suspend after 15 minutes of inactivity you'd do
gsettings set org.gnome.settings-daemon.plugins.power
sleep-inactive-ac-timeout 900
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
suspend
to turn off the feature you'd do
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
nothing
--
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org