* Dell Inspiron i8100 with 2 batteries
@ 2002-05-15 15:14 John Ruttenberg
0 siblings, 0 replies; 2+ messages in thread
From: John Ruttenberg @ 2002-05-15 15:14 UTC (permalink / raw)
To: linux-laptop, sfr
I am using 2.4.18 and have a Dell I8100 with 2 batteries. If combined charge
of the batteries is less than 50% (according to the bios), then /proc/apm
shows the battery power level X 2. If the combined charge of the batteries is
greater than 50%, then /proc/apm shows:
1.16 1.2 0x03 0x01 0xff 0x10 -1% -1 ?
I think this is because the bogus calculation it would make would result in a
percentage > 100.
I took a quick look at arch/i386/kernel/apm.c but it wasn't obvious what to
do.
Does anyone else have any experience with this?
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <15589.5673.460356.221529@localhost.localdomain>]
[parent not found: <Pine.LNX.4.21.0205171113550.1002-100000@puppy.afrinc.com>]
* Re: Dell Inspiron i8100 with 2 batteries [not found] ` <Pine.LNX.4.21.0205171113550.1002-100000@puppy.afrinc.com> @ 2002-05-17 15:25 ` John Ruttenberg 0 siblings, 0 replies; 2+ messages in thread From: John Ruttenberg @ 2002-05-17 15:25 UTC (permalink / raw) To: dave; +Cc: linux-laptop I tried using ACPI, but it has shortcomings compared to APM. In particular, with APM, you can use the function-setup, function-battery buttons to get into the bios screens even while the kernel is running. I don't actually understand how this magic works, but it works with APM and not ACPI. David G Hamblen: > > I've got the same laptop with one battery, but I'm using ACPI. None of the > current user-space utilities parse this stuff particularly well (the > filenames in /proc/acpi have changed), but the data all look reasonable. > > #cat /proc/acpi/battery/BAT1/* > alarm: 3000 mWh > present: yes > design capacity: 57420 mWh > last full capacity: 57420 mWh > battery technology: rechargeable > design voltage: 14800 mV > design capacity warning: 3000 mWh > design capacity low: 1000 mWh > capacity granularity 1: 200 mWh > capacity granularity 2: 200 mWh > model number: LIP8084DLP > serial number: 40086 > battery type: LION > OEM info: Sony Corp. > present: yes > capacity state: ok > charging state: charging > present rate: unknown > remaining capacity: 56670 mWh > present voltage: 16746 mV > > Dave > > On Fri, 17 May 2002, John Ruttenberg wrote: > > > I thought I'd try to figure out that there were two batteries and divide by 2 > > or something like that. Perhaps the bios of this notebook is just broken, > > though. > > > > Alan Cox: > > > > of the batteries is less than 50% (according to the bios), then /proc/apm > > > > shows the battery power level X 2. If the combined charge of the batteries is > > > > greater than 50%, then /proc/apm shows: > > > > > > > > 1.16 1.2 0x03 0x01 0xff 0x10 -1% -1 ? > > > > > > > > I think this is because the bogus calculation it would make would result in a > > > > percentage > 100. > > > > > > > > I took a quick look at arch/i386/kernel/apm.c but it wasn't obvious what to > > > > do. > > > > > > The data basically comes from the BIOS as is > > > > > > > > - > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-17 15:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15 15:14 Dell Inspiron i8100 with 2 batteries John Ruttenberg
[not found] <15589.5673.460356.221529@localhost.localdomain>
[not found] ` <Pine.LNX.4.21.0205171113550.1002-100000@puppy.afrinc.com>
2002-05-17 15:25 ` John Ruttenberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox