Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to suspend after 5 mins of inactivity?

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 when 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?

How to suspend after 5 mins of inactivity?

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 when 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?

How to suspend after 5 mins of inactivity?

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?