Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 02-23-2007, 11:48 AM   #1
Registered: Feb 2006
Distribution: Ubuntu, Debian, and Slackware
Posts: 48

Rep: Reputation: 15
Automatic System Shutdown (On Idle)

After about 4 hours of inactivity from input, I'd like my laptop to automatically shut itself down. Is this possible in Linux?
Old 02-25-2007, 04:40 PM   #2
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315

Rep: Reputation: 30
good battery power, wow, 4 hours... is that a real question?
Old 03-04-2007, 03:28 AM   #3
Registered: Feb 2006
Distribution: Ubuntu, Debian, and Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
Ever heard of AC power?
Old 08-15-2013, 04:31 PM   #4
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
Adding a note to an old thread in case this is of use to anybody else:

This post at crunchbang details a bash script to determine the time in seconds since the last mouse or keyboard action in the system. It doesn't depend on any X session or user being logged in since it's just looking at hardware interrupts. You could modify the script to do a shutdown rather than a suspend.

So for keyword searches: bash script for user idle / inactive time to suspend or lock


automatic, idle, input, shutdown

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic shutdown muhammednavas Fedora 1 12-01-2006 10:48 AM
Automatic system shutdown chobin SUSE / openSUSE 2 06-05-2006 08:51 AM
shutdown automatically if linux system is idle for sometime ahalya Linux - Software 1 03-30-2005 12:39 AM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 10:51 AM
Automatic shutdown NetScripter Linux - General 1 10-17-2002 02:45 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration