• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 856
  • Last Modified:

Linux power managment. how to shutdown after inactive??

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.
0
cimmer
Asked:
cimmer
2 Solutions
 
avatechCommented:
You are looking to configure APMD.  This is the advanced power management daemon.

http://www.google.com/search?hl=en&lr=lang_en&newwindow=1&safe=off&q=apmd+fedora&btnG=Search

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.

http://www.worldvisions.ca/~apenwarr/apmd/

http://linuxcommand.org/man_pages/apmd8.html

and

http://linux.about.com/library/cmd/blcmdl8_apmd.htm

Enjoy!

Avatech
0
 
xDamoxCommented:
APM(1)                                                                  APM(1)

NAME
       apm - interface with the APM subsystem

SYNOPSIS
       apm [ -VvmMsSdin ]

DESCRIPTION
       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).

OPTIONS
       -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
              kernel.

       -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
              terminal.

       -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.

FILES
       /proc/apm

AUTHOR
       This program was written by Rik Faith (faith@cs.unc.edu) 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 (apenwarr@worldvisions.ca).

SEE ALSO
       xapm(1), apmd(8).

                                 January 2004                           APM(1)
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now