LinuxQuestions.org
Visit Jeremy's Blog.
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 11-04-2003, 03:30 AM   #1
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
Battery Life for Inspiron 2650


I have been trying to look for a way to get my battery to show in Slack. I was looking at another thread and they said to try a program called akpi. Or could there be another type of program. I am about to recompile the kernel and I also so that I might have to add something. Anyone have any ideas on what I would have to do.
 
Old 11-04-2003, 07:32 AM   #2
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
add acpi support
 
Old 11-06-2003, 03:16 AM   #3
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
I did that an still nothing
 
Old 12-29-2003, 07:36 PM   #4
il-gringo
LQ Newbie
 
Registered: Dec 2003
Distribution: Debian
Posts: 8

Rep: Reputation: 0
I don't use slackware, but have got the battery levels to appear in Kde 3.1.4 after loads of messing about in Debian. This information may help.

When you enable ACPI support it creates an ACPI entry under /proc. The battery information can be found at:

/proc/acpi/battery/BAT1

In there you'll find a file called "state"

if you cat that file, you'll see a line:

remaining capacity: xxxxx mah

which is basically the amount of battery life left in the battery, but not in hours + minutes (as you'd probably like). What you need is a utility that then takes this and puts it on your screen ... In KDE 3.1.4, this utility is called Klaptopdaemon.

If that doesn't apply to slackware, sorry, but I thought it may be of help.
 
Old 12-29-2003, 08:11 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
ACPI is bogus in my opinion. It never works for me either.... I have a dell too. Use APM. It's as easy as could be.

cd /usr/src/linux
make menuconfig

get into the Power Management section. Completely uncheck the "ACPI" and check APM. then scroll down in the heading and check "enable PM at boot time". I always integrate those into the kernel vs. Modules... Keep backing out until it asks you for the final save.

make clean bzImage modules modules_install

I always delete everything in /lib/modules/2.4.22 before I do that. I'm sure it's completely unnecessary. I never have 2 options in grub any way so I don't want left over modules laying around. Doing this type of minor tweaking to the kernel won't result in a non-compilable kernel anyway. Up to you. If your going to go crazy and douche the kernel, don't delete anything.... Keep the old kernel and modules around and make a new entry in your bootloader. Otherwise,

Delete

/boot/vmlinux
/boot/vmlinuz-ide-2.4.22 (or whatever it is)
/boot/System.map
(If you use grub, delete everything in /boot except for /boot/grub)

Cut

/usr/src/linux/System.map
/usr/src/linux/vmlinux
/usr/src/linux/arch/i386/boot/bzImage

into

/boot

modify grub or lilo to reflect the changes. bzImage is what you want the bootloader to point to.

Not sure why I just posted all that when there is an awsome guide already here..... Sorry....

Jon

Last edited by jong357; 12-29-2003 at 08:26 PM.
 
  


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
Windows: 4-5 hour battery life, Gentoo : ~2:30 battery life numerous Linux - Laptop and Netbook 3 01-17-2005 09:39 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 07: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 08:07 PM
RedHat 9 on Dell inspiron 2650 : Battery Remaining spawgi Linux - Newbie 1 03-14-2004 06:37 PM
Inspiron 2650 JROCK1980 Slackware 1 09-04-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration