Gentoo Archives: gentoo-user

From: "Fatih Tümen" <fthtmn+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration
Date: Wed, 24 Nov 2010 21:10:57
Message-Id: AANLkTimTND94QF17TDpXWmBw3B7b42TK6i9At3-z05_N@mail.gmail.com
In Reply to: Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration by Paul Hartman
1 On Wed, Nov 24, 2010 at 22:51, Paul Hartman
2 <paul.hartman+gentoo@×××××.com<paul.hartman%2Bgentoo@×××××.com>
3 > wrote:
4
5 > On Sun, Nov 21, 2010 at 12:43 AM, Paul Hartman
6 > <paul.hartman+gentoo@×××××.com <paul.hartman%2Bgentoo@×××××.com>> wrote:
7 > > On Wed, Nov 17, 2010 at 12:03 AM, Paul Hartman
8 > > <paul.hartman+gentoo@×××××.com <paul.hartman%2Bgentoo@×××××.com>> wrote:
9 > >> On Thu, Nov 11, 2010 at 1:11 PM, J. Roeleveld <joost@××××××××.org>
10 > wrote:
11 > >>> On Thursday 11 November 2010 18:07:35 Paul Hartman wrote:
12 > >>>> On Wed, Nov 10, 2010 at 12:05 PM, J. Roeleveld <joost@××××××××.org>
13 > wrote:
14 > >>>> > If the soldering isn't done correctly, the battery-pack can
15 > literally
16 > >>>> > explode when put under load.
17 > >>>>
18 > >>>> Yeah, I don't think the savings would be big enough to justify the
19 > risk.
20 > >>>>
21 > >>>> I found a replacement battery online for less than USD$30 so I ordered
22 > >>>> it. Hopefully it fits and holds a charge. :)
23 > >>>
24 > >>> Good luck :)
25 > >>> If laptops would work with the same LIPO-packs that are used for Remote
26 > >>> Control planes, then it would be cheaper and easier as the chargers
27 > used for
28 > >>> those are better then the stuff they stick in laptops.
29 > >>>
30 > >>> But that's wishfull thinking
31 > >>
32 > >> The replacement battery is good, it fits perfectly and holds over 90%
33 > >> of maximum rated charge.
34 > >>
35 > >> I booted from Sabayon KDE LiveCD and the battery meter works fine in
36 > >> there, so there must be something wrong in my config. I will dig
37 > >> deeper to try to identify the differences.
38 > >>
39 > >> Thanks for all suggestions. :)
40 > >
41 > > After a combination of kernel upgrade, BIOS downgrade (to fix an
42 > > unrelated bug with resuming from suspend), KDE upgrades, and of course
43 > > general "messing with stuff", now it is working most of the time. I
44 > > have an actual battery meter and power management works and I am
45 > > happy.
46 > >
47 > > I sometimes get ACPI/DSDT errors in dmesg from boot time, about
48 > > infinite loops in 3 places, and when this happens the battery is
49 > > either "not present" to ACPI or is present but the state never changes
50 > > (for example remaining capacity at boot time is 2048 and this will
51 > > remain to be the value even as battery is dying). This properly seems
52 > > to happen randomly, or maybe affected somehow by dual-booting into MS
53 > > Windows. I didn't think DSDT/ACPI changes by the OS were persistent?
54 > > Perhaps it's something to do with warm rebooting vs powering off and
55 > > back on. I will have to experiment with it some more to see if I can
56 > > break it :)
57 > >
58 > > A long time ago I tried to extract and repair my broken DSDT but it
59 > > was over my head. I don't understand why it doesn't always work but
60 > > for now things seem to be functioning properly when ACPI is okay at
61 > > boot time.
62 >
63 > Another follow-up. It seems to work normally until it gets this error,
64 > at which point batter monitor stops working. Sometimes this error
65 > happens right away, other times it works for hours and then breaks. I
66 > guess it's a DSDT problem:
67 >
68 > ACPI Error (psparse-0537): Method parse/execution failed
69 > [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node ffff88007f826320),
70 > AE_AML_INFINITE_LOOP
71 > ACPI Error (psparse-0537): Method parse/execution failed
72 > [\_SB_.BAT1.CHBP] (Node ffff88007f81d0f0), AE_AML_INFINITE_LOOP
73 > ACPI Error (psparse-0537): Method parse/execution failed
74 > [\_SB_.PCI0.PIB_.EC0_.SMSL] (Node ffff88007f826398),
75 > AE_AML_INFINITE_LOOP
76 > ACPI Error (psparse-0537): Method parse/execution failed
77 > [\_SB_.PCI0.PIB_.EC0_._Q09] (Node ffff88007f826438),
78 > AE_AML_INFINITE_LOOP
79 >
80 > Does anyone here know about this kind of thing? I am not really sure
81 > what it means. I've decompiled my DSDT but really don't know anything
82 > about how to fix it. Maybe I need to find some ACPI mailing list.
83 > Thanks.
84 >
85 >
86 Usually a BIOS update will do it or a kernel update. You can also try to
87 disable acpi and see if you can keep it working.
88
89 kernel parameters come to mind are acpi=off and pci=noacpi. The first one
90 completely disables acpi and the latter AFAIR just disables acpi routing for
91 pci subsystem. Look at kernel-parameters in linux Doc for more
92 combinations.
93
94 --
95 Fatih

Replies

Subject Author
Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration Paul Hartman <paul.hartman+gentoo@×××××.com>