Ask Your Question
1

How to suspend after 5 mins of inactivity?

asked 2015-11-26 22:01:42 -0500

salmankhan gravatar image

updated 2015-11-27 08:33:46 -0500

mether gravatar image

I am using fedora22(newbie). I want my laptop to enter into sleep mode(suspend) after 5 minutes of inactivity.

I tried 2 options:

  1. I edited the '/etc/systemd/logind.conf' file by adding,

         IdleAction=suspend
         IdleActionSec=5min
    

    but it didn't work as i expected. My laptop automatically went into suspend mode for every 5 minutes even when i was using it. But i want it to suspend only if there is no mouse,keyboard and network activity.

  2. Then i tried power from settings and it has automatic suspend but the minimum time is 15 minutes and upto 2 hours. I want 3 to 5 minutes option.

Can anyone help me, please?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2015-11-27 07:34:02 -0500

Aeyoun gravatar image

updated 2015-11-27 07:34:41 -0500

Set the 15 minute time out in GNOME Settings where you’ve already found it. After that you can customize the timeout value with these commands:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 600
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 300

The time outs are specified in seconds; in the above example the laptop should timeout after five minutes while on battery power or ten minutes while plugged in.

You can dnf install dconf-editor to get a — albeit hard to use — GUI to make the changes and explore gsettings.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-11-26 22:01:42 -0500

Seen: 884 times

Last updated: Nov 27 '15