Share your knowledge at the LQ Wiki.
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 08-29-2010, 01:41 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
Laptop automatic shutdown on low battery not working

I'm trying to make my system automatically shutdown once the battery level is low, but still without success. I've tried kpowersave, gnome-power-manager, kpower, klaptop but none of these worked for me. Well, I can't imagine I would be that stupid, but simply it doesn't work. In all cases mentioned above (kpower, klaptop, gnome-power-manager) I've tried to setup the laptop to shutdown once the defined level is reached, but the laptop never actually switched off unless all the battery was drained.
Btw. I think all the above mentioned apps only work once the user is logged in. But I'd like the solution to work also when the PC is on without anyone logged in.
I thought I could write a bash script based on parsing of acpitools output and define it as a service, which would monitor the battery level, but I simply don't believe there isn't any functional solution to this.
Almost forgot - I'm running CentOS 5.4 on HP nc6320 laptop.
Thanks for a reply

Old 08-30-2010, 11:25 AM   #2
Senior Member
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 173Reputation: 173
well if you manage to get information of battery level you can use that as crontab job checking for level and turning computer down.
Old 08-30-2010, 12:51 PM   #3
LQ Newbie
Registered: Aug 2010
Posts: 6

Original Poster
Rep: Reputation: 0
yes, but isn't there simply just a solution available already? I mean I have no problems with hacking a bash script that makes this battery check and run it via cron or via corresponding rc.d as service.
But I honestly couldn't believe, that there's no other more elegant solution available. I just thought it's my ignorance that I couldn't find it.


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
laptop battery exhaust and shutdown iiv Slackware 16 12-19-2011 03:44 AM
Oracle 11g1 automatic startup/shutdown quit working but fixed now(or is it) landonmkelsey Linux - Software 0 04-16-2009 07:38 PM
Help getting Netgear WG511T working on a low power laptop with Slack Agent0013 Linux - Wireless Networking 9 03-15-2009 05:52 PM
Why is my laptop battery working RIGHT? burninGpi Linux - Laptop and Netbook 1 10-09-2007 03:57 AM
working with live linux on low system configuration laptop??? sybermagic Linux - Laptop and Netbook 1 11-09-2006 01:16 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration