LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-30-2006, 09:40 AM   #1
jb2006
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: Slackware 10.2
Posts: 12

Rep: Reputation: 0
laptop battery life


is there any command that comes with a slackware installation that can display the battery life?
 
Old 03-30-2006, 09:49 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,430

Rep: Reputation: 83
apm package will do, if you installed.
 
Old 03-30-2006, 04:34 PM   #3
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
We need to know more about your laptop, but assuming a newer model you should have installed the kernel with ACPI support. Check the contents of /proc/acpi/ for CPU, temp and battery info. You can just cat the appropiate file. If that directory doesn't exist than you probably didn't install a kernel that supports ACPI.

Dennisk
 
Old 03-30-2006, 10:19 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Gkrellm displays battery level.
 
Old 03-31-2006, 01:47 AM   #5
jb2006
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: Slackware 10.2
Posts: 12

Original Poster
Rep: Reputation: 0
gkrellm can only display the battery level if there is a command to do it but there is no command on my system that displays the battery life. Also /proc/acpi doesn't exist. Im running the default 2.4.31 kernel that came with slackware. I've tried upgrading but it always f**ks up.
 
Old 03-31-2006, 09:19 AM   #6
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
The default kernel doesn't support ACPI and if you have a laptop make in the last five years or so it probably doesn't support APM. Looking at your BIOS power management screen should give you a hint. Without ACPI you have no power managment and no ability to read battery levels. The solution is to install an ACPI kernel.

Dennisk
 
Old 03-31-2006, 08:54 PM   #7
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 356

Rep: Reputation: 31
Quote:
Originally Posted by jb2006
gkrellm can only display the battery level if there is a command to do it but there is no command on my system that displays the battery life. Also /proc/acpi doesn't exist. Im running the default 2.4.31 kernel that came with slackware. I've tried upgrading but it always f**ks up.
Give it a go upgrading the kernel again dude... What kind of laptop do you have?
Get your hands on a simple kernel upgrade guide on google and do a basic follow of the steps they list... The number one rule in your case is to make sure you 'build up on the existing .config file that was used for your 2.4.31 kernel'.
It will be found in /usr/src/linux
use this file when creating your new kernel.... In other words you will start with the same config that you currently have and you can simply add in support for ACPI and compile...

Its worth it.. you get all sorts of cool things (like CPU frequency changing) - where you can manually set the freq to a Mhz you choose or let the system adjust it for you) - Is great for laptops/saving battery life/ having a machine tht runs well when you need it to..
 
  


Reply


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
Battery life? carnold Linux - Laptop and Netbook 5 07-11-2005 09:23 AM
Windows: 4-5 hour battery life, Gentoo : ~2:30 battery life numerous Linux - Laptop and Netbook 3 01-17-2005 08:39 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 06:40 AM
how to set battery life indicator in fedora installed on LAptop Dell Inspiron 5150? Sharma Linux - Laptop and Netbook 1 04-14-2004 07:07 PM
Detecting battery life on my laptop ShakeNBake Linux - Software 1 10-15-2003 11:57 PM


All times are GMT -5. The time now is 08:35 AM.

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