Is it possible to have more than two batteries in a laptop?
I'm currently working on a patch for the gnome battery-applet (battstat-applet) to work with two batteries. Now I have a version working with two batteries, but it would not work if there are more than two batteries. So I wanted to know if there are laptops which can have more than two batteries at the same time? If not, my patch is fine. If yes, I would have to enhance it.
(If you are interested in the patch: it's against gnome-applets-2.0.3 and you can grab it at:www.gentoo.org/~hanno/battstat_two_batteries.diff
)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
A message that is not in the archive (sent off-list or not yet received): [email protected]
Il dom, 2002-09-29 alle 19:55, Hanno Böck ha scritto:
Quoted 4 lines
I'm currently working on a patch for the gnome battery-applet (battstat-applet) to work with two batteries. Now I have a version working with two batteries, but it would not work if there are more than two batteries. So I wanted to know if there are laptops which can have more than two batteries at the same time? If not, my patch is fine. If yes, I would have to enhance it.
as any other people patching batstat-applet, you're hardcoding into it the names of *your* apci devices. my ac/dc is names AC (and not ACDC like yours) and the battery is BAT0. the _only_ way to have a battstat working with any hardware is to scan the /proc directories and use the names found here.
Signature · 6 lines
Federico Di Gregorio Debian GNU/Linux Developer & Italian Press Contact [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] Se si insegna a un bambino a programmare in qualche linguaggio informatico, questo esercizio logico lo renderà padrone e non schiavo del computer. -- Umberto Eco
Hi!
Quoted 9 lines
I'm currently working on a patch for the gnome battery-applet (battstat-applet) to work with two batteries. Now I have a version working with two batteries, but it would not work if there are more than two batteries. So I wanted to know if there are laptops which can have more than two batteries at the same time? If not, my patch is fine. If yes, I would have to enhance it.
(If you are interested in the patch: it's against gnome-applets-2.0.3 and you can grab it at:
www.gentoo.org/~hanno/battstat_two_batteries.diff
)
You should look at ACPI spec. I hope they were not so stupid to limit themselves to 2...
Pavel
Signature · 9 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. ------------------------------------------------------- This sf.net email is sponsored by: DEDICATED SERVERS only $89! Linux or FreeBSD, FREE setup, FAST network. Get your own server today at http://www.ServePath.com/indexfm.htm