LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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).

Notices

Reply
 
Search this Thread
Old 02-23-2007, 11:48 AM   #1
Megatog615
Member
 
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
seelenbild28
Member
 
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
Megatog615
Member
 
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
rjwilmsi
Member
 
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 http://crunchbang.org/forums/viewtopic.php?id=26447 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
 
  


Reply

Tags
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/Novell 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


All times are GMT -5. The time now is 11:29 PM.

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