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: Thu, 25 Nov 2010 07:14:49
Message-Id: AANLkTi=nSzug0CnjwDDAeT6LxOGGjsgPSsyZh6MXKbOR@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 Thu, Nov 25, 2010 at 06:49, Paul Hartman
2 <paul.hartman+gentoo@×××××.com<paul.hartman%2Bgentoo@×××××.com>
3 > wrote:
4
5 > 2010/11/24 Fatih Tümen <fthtmn+gentoo@×××××.com<fthtmn%2Bgentoo@×××××.com>
6 > >:
7 > >
8 > > On Wed, Nov 24, 2010 at 22:51, Paul Hartman <
9 > paul.hartman+gentoo@×××××.com <paul.hartman%2Bgentoo@×××××.com>>
10 > > wrote:
11 > >>
12 > >> On Sun, Nov 21, 2010 at 12:43 AM, Paul Hartman
13 > >> <paul.hartman+gentoo@×××××.com <paul.hartman%2Bgentoo@×××××.com>>
14 > wrote:
15 > >> > On Wed, Nov 17, 2010 at 12:03 AM, Paul Hartman
16 > >> > <paul.hartman+gentoo@×××××.com <paul.hartman%2Bgentoo@×××××.com>>
17 > wrote:
18 > >> >> On Thu, Nov 11, 2010 at 1:11 PM, J. Roeleveld <joost@××××××××.org>
19 > >> >> wrote:
20 > >> >>> On Thursday 11 November 2010 18:07:35 Paul Hartman wrote:
21 > >> >>>> On Wed, Nov 10, 2010 at 12:05 PM, J. Roeleveld <joost@××××××××.org
22 > >
23 > >> >>>> wrote:
24 > >> >>>> > If the soldering isn't done correctly, the battery-pack can
25 > >> >>>> > literally
26 > >> >>>> > explode when put under load.
27 > >> >>>>
28 > >> >>>> Yeah, I don't think the savings would be big enough to justify the
29 > >> >>>> risk.
30 > >> >>>>
31 > >> >>>> I found a replacement battery online for less than USD$30 so I
32 > >> >>>> ordered
33 > >> >>>> it. Hopefully it fits and holds a charge. :)
34 > >> >>>
35 > >> >>> Good luck :)
36 > >> >>> If laptops would work with the same LIPO-packs that are used for
37 > >> >>> Remote
38 > >> >>> Control planes, then it would be cheaper and easier as the chargers
39 > >> >>> used for
40 > >> >>> those are better then the stuff they stick in laptops.
41 > >> >>>
42 > >> >>> But that's wishfull thinking
43 > >> >>
44 > >> >> The replacement battery is good, it fits perfectly and holds over 90%
45 > >> >> of maximum rated charge.
46 > >> >>
47 > >> >> I booted from Sabayon KDE LiveCD and the battery meter works fine in
48 > >> >> there, so there must be something wrong in my config. I will dig
49 > >> >> deeper to try to identify the differences.
50 > >> >>
51 > >> >> Thanks for all suggestions. :)
52 > >> >
53 > >> > After a combination of kernel upgrade, BIOS downgrade (to fix an
54 > >> > unrelated bug with resuming from suspend), KDE upgrades, and of course
55 > >> > general "messing with stuff", now it is working most of the time. I
56 > >> > have an actual battery meter and power management works and I am
57 > >> > happy.
58 > >> >
59 > >> > I sometimes get ACPI/DSDT errors in dmesg from boot time, about
60 > >> > infinite loops in 3 places, and when this happens the battery is
61 > >> > either "not present" to ACPI or is present but the state never changes
62 > >> > (for example remaining capacity at boot time is 2048 and this will
63 > >> > remain to be the value even as battery is dying). This properly seems
64 > >> > to happen randomly, or maybe affected somehow by dual-booting into MS
65 > >> > Windows. I didn't think DSDT/ACPI changes by the OS were persistent?
66 > >> > Perhaps it's something to do with warm rebooting vs powering off and
67 > >> > back on. I will have to experiment with it some more to see if I can
68 > >> > break it :)
69 > >> >
70 > >> > A long time ago I tried to extract and repair my broken DSDT but it
71 > >> > was over my head. I don't understand why it doesn't always work but
72 > >> > for now things seem to be functioning properly when ACPI is okay at
73 > >> > boot time.
74 > >>
75 > >> Another follow-up. It seems to work normally until it gets this error,
76 > >> at which point batter monitor stops working. Sometimes this error
77 > >> happens right away, other times it works for hours and then breaks. I
78 > >> guess it's a DSDT problem:
79 > >>
80 > >> ACPI Error (psparse-0537): Method parse/execution failed
81 > >> [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node ffff88007f826320),
82 > >> AE_AML_INFINITE_LOOP
83 > >> ACPI Error (psparse-0537): Method parse/execution failed
84 > >> [\_SB_.BAT1.CHBP] (Node ffff88007f81d0f0), AE_AML_INFINITE_LOOP
85 > >> ACPI Error (psparse-0537): Method parse/execution failed
86 > >> [\_SB_.PCI0.PIB_.EC0_.SMSL] (Node ffff88007f826398),
87 > >> AE_AML_INFINITE_LOOP
88 > >> ACPI Error (psparse-0537): Method parse/execution failed
89 > >> [\_SB_.PCI0.PIB_.EC0_._Q09] (Node ffff88007f826438),
90 > >> AE_AML_INFINITE_LOOP
91 > >>
92 > >> Does anyone here know about this kind of thing? I am not really sure
93 > >> what it means. I've decompiled my DSDT but really don't know anything
94 > >> about how to fix it. Maybe I need to find some ACPI mailing list.
95 > >> Thanks.
96 > >>
97 > >
98 > > Usually a BIOS update will do it or a kernel update. You can also try to
99 > > disable acpi and see if you can keep it working.
100 > > kernel parameters come to mind are acpi=off and pci=noacpi. The first one
101 > > completely disables acpi and the latter AFAIR just disables acpi routing
102 > for
103 > > pci subsystem. Look at kernel-parameters in linux Doc for more
104 > > combinations.
105 >
106 > Thanks, unfortunately it is an old computer (from 2004), the newest
107 > BIOS, which is several years old, breaks suspend (it does not resume
108 > from suspend, not even Windows XP works...), so I'm using the
109 > penultimate BIOS. It's an Acer Ferrari 3400, back in the time when I
110 > bought it, the internet was full of people who have to edit their DSDT
111 > on Acer laptops in order to fix it, many people had no battery support
112 > at all.
113 >
114 > I know I used some "magic" kernel parameters at some point, I'm not
115 > sure if it was ACPI related, though. I will look into them to see if
116 > there's anything new in the past 5 years of kernel development that
117 > might help me. :)
118 >
119 >
120
121 Have a look at this bug affecting acer laptops. there is a solution proposed
122 in its duplicate
123
124 https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/535643
125 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/578506/comments/24
126
127 Hope it helps
128 --
129 Fatih