Linux power managment. how to shutdown after inactive??

Posted on 2006-05-19
Last Modified: 2013-12-03
Ive got a Linux Fedora 4 box with all the fancy packages running. Its strictly a learning tool and isnt used for serving or web hosting or anything like that. I login into it via SSH thru PuTTY to access it.

My quesion is:

1) Is there a tool or program available similar to POWER OPTIONS in Windows where after so many minutes or hours of inactivity the computer will shut down by itself. I dont have a mouse or keyboard or monitor connected to the computer. I would want it to shut down if I havent been active in the SSH window for lets say 2 hours. Is this possible?? How can it be done? Remember I login via SSH.
Question by:cimmer
    LVL 4

    Accepted Solution

    You are looking to configure APMD.  This is the advanced power management daemon.

    That's the google results particularly for Fedora, but apmd should be easily configurable with the same operation and options as any other distribution.  Therefore, you may want to check this site specificly about apmd.



    LVL 16

    Assisted Solution

    APM(1)                                                                  APM(1)

           apm - interface with the APM subsystem

           apm [ -VvmMsSdin ]

           This  command  requires  the  Advanced  Power  Management  subsystem.   If run without arguments it reads
           /proc/apm and presents the output in a human-readable format.

           Given a -S or -s option it requests that the machine be put into the  APM  standby  or  the  APM  suspend
           state, respectively.  For a brief description of these states, see apmd(8).

           -V, --version
                  Print the version of the program and exit.

           -v, --verbose
                  Also print version information for the APM subsystem.  The APM subsystem consists of power-manage-
                  ment hardware, firmware usually referred to as the APM BIOS and a driver in the  operating  system

           -m, --minutes
                  Print  the  time  remaining as a number of minutes.  The default is to print the time remaining in
                  "hours:minutes" format.

           -M, --monitor
                  Continuously monitor and update the status information.  Assumes that the  standard  output  is  a

           -S, --standby
                  Request that the machine be put into the APM standby state.

           -s, --suspend
                  Request that the machine be put into the APM suspend state.

           -d, --debug
                  Print APM status information in a format more useful for debugging.  Implies -v.


           This program was written by Rik Faith ( and may be freely distributed under the terms of
           the GNU General Public License.  There is ABSOLUTELY NO WARRANTY for this  program.   The  current  main-
           tainer is Avery Pennarun (

           xapm(1), apmd(8).

                                     January 2004                           APM(1)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now