public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Ruttenberg <rutt@chezrutt.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Dell Inspiron i8100 with 2 batteries
Date: Fri, 17 May 2002 10:39:37 -0400	[thread overview]
Message-ID: <15589.5673.460356.221529@localhost.localdomain> (raw)
In-Reply-To: <E178j9U-0006fz-00@the-village.bc.nu>

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




  reply	other threads:[~2002-05-17 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17 14:25 Dell Inspiron i8100 with 2 batteries John Ruttenberg
2002-05-17 14:56 ` Alan Cox
2002-05-17 14:39   ` John Ruttenberg [this message]
2002-05-17 15:20     ` David G Hamblen
2002-05-18 12:20       ` David Woodhouse
2002-05-20 15:26         ` Dell Inspiron i8100 with 2 batteries [Solved!] John Ruttenberg
2002-05-17 17:20     ` Dell Inspiron i8100 with 2 batteries Alan Cox
2002-05-20 14:09 ` Marc Lehmann
2002-05-20 15:00   ` John Ruttenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15589.5673.460356.221529@localhost.localdomain \
    --to=rutt@chezrutt.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox