Hi,
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.
Thanks, Alex
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
Hi,
On Tue, Nov 12, 2019 at 9:45 AM Ed Greshko ed.greshko@greshko.com wrote:
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
This did not work. Just to be sure I've explained myself clearly, I'd like my fedora29 desktop (not laptop) to go to sleep (or suspend) after fifteen minutes without keyboard activity.
I've tried the above commands as both the regular user and as root in a terminal window and it did not go to sleep (or suspend) after 900 seconds.
Other ideas?
On 11/12/19 5:43 AM, 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.
In Gnome Settings, go to the Power section. At the bottom, there's a section labelled "Suspend & Power Button". Click on the Automatic suspend option and you can configure it there.
On 11/16/19 4:01 AM, Samuel Sieb wrote:
On 11/12/19 5:43 AM, 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.
In Gnome Settings, go to the Power section. At the bottom, there's a section labelled "Suspend & Power Button". Click on the Automatic suspend option and you can configure it there.
FWIW, the OP did ask for a command line option to do that. And, what I gave him does manipulate those settings. And, he reports that doesn't work for him.
On 11/15/19 1:09 PM, Ed Greshko wrote:
On 11/16/19 4:01 AM, Samuel Sieb wrote:
On 11/12/19 5:43 AM, 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.
In Gnome Settings, go to the Power section. At the bottom, there's a section labelled "Suspend & Power Button". Click on the Automatic suspend option and you can configure it there.
FWIW, the OP did ask for a command line option to do that. And, what I gave him does manipulate those settings. And, he reports that doesn't work for him.
Yes, I saw both of those. But I offered the gui version in case that helped.
Hi guys,
An option to configure this from the command-line would be appreciated, although I can also use the GUI.
In Gnome Settings, go to the Power section. At the bottom, there's a section labelled "Suspend & Power Button". Click on the Automatic suspend option and you can configure it there.
FWIW, the OP did ask for a command line option to do that. And, what I gave him does manipulate those settings. And, he reports that doesn't work for him.
Yes, I saw both of those. But I offered the gui version in case that helped.
Configuring through the GUI worked. I didn't consider it as a "Power" option when I first looked because it's not a laptop, but should have.
Thanks for your help - I'd be interested in knowing how the eventual command the GUI uses and how it differs from what we tried previously.