From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Colin Leroy <colin@colino.net>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: PMU questions
Date: Tue, 19 Oct 2004 09:49:40 +1000 [thread overview]
Message-ID: <1098143379.18687.44.camel@gaston> (raw)
In-Reply-To: <20041018232004.0a9e0d5e@jack.colino.net>
On Tue, 2004-10-19 at 07:20, Colin Leroy wrote:
> Hi everyone,
>
> I'm at a loss with a PMU-related problem... Basically something happened
> and my iBook (G4 14") battery now thinks it can last only 30 minutes.
> It used to be 3+ hours. I don't really know what happened.
Happens all the time on Apple laptops lately. My tipb battery is now
half of it's capacity. Browse the archives on the web, you'll see that
it's a common disease with those.
> After having tried to recalibrate it using Apple's secret-code
> (shift-control-option-power) and cycling it, things only got worse. I
> suspect it's due to the fact Linux doesn't put the laptop to sleep
> when the battery empties, but I don't have an OS X partition nor can
> backup 40GB...
No, it has nothing to do with Linux.
> So I'm about to buy a new battery, but I fear the stupidity of the PMU
> will make it work as bad as the current one. So, here are the questions
> I have, I think people there will be more apt to answer me than any
> hotliner I could get at Apple:
> - is the max_charge field displayed in /proc/pmu/battery_0 stored in the
> PMU itself, or in the battery ? If I get a new battery and can't
> calibrate it, I do hope it's stored in the battery, but I'm really not
> sure about that.
It's all coming from the battery itself.
> - Would there be any way to overwrite this value by using some hack in
> via-pmu.c, or is that PMU a real black-box ? If it's writable, does
> there exist code somewhere to do that, or some doc I could use to write
> it ?
Not that I know of.
> - If there are people on this list with an iBook g4 14", could you tell
> me what's your max_charge value is ? mine is now 507... :-/
You can try the following: disable pmud & pbbuttonsd, and let the machine
on & drain the battery until it shuts down by itself (empty battery). Do
_not_ let it go to sleep or whatever pmud does when it thinks your battery
is closed to exhausted. Drain the battery completely.
Then, do a full charge, and drain it again completely.
Do that a few times. If that doesn't help, then I'm afraid you have to
ask apple for a replacement battery.
Ben.
next prev parent reply other threads:[~2004-10-18 23:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 21:20 PMU questions Colin Leroy
2004-10-18 23:49 ` Benjamin Herrenschmidt [this message]
2004-10-19 6:34 ` Colin Leroy
2004-10-19 6:40 ` Benjamin Herrenschmidt
2004-10-20 7:46 ` Colin Leroy
2004-10-20 7:49 ` Benjamin Herrenschmidt
2004-10-20 8:57 ` John Steele Scott
2004-10-21 12:35 ` Jon Masters
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=1098143379.18687.44.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=colin@colino.net \
--cc=linuxppc-dev@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.