Bug 37905

Summary: new ACPI code holds battery info under /proc/acpi/battery/BAT0
Product: klaptopdaemon Reporter: Gernot Hillier <gernot>
Component: generalAssignee: Paul Campbell <paul>
Status: RESOLVED FIXED    
Severity: wishlist CC: gt
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch which fixes acpi support

Description Gernot Hillier 2002-02-09 11:25:13 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           klaptopdaemon
Version:           KDE 2.9.1 
Severity:          wishlist
Installed from:    SuSE RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: with current patch acpi-20020208-2.4.17 from http://sf.net/projects/acpi

I just applied the current patch from http://sf.net/projects/acpi to my kernel 2.4.17

The new ACPI code holds battery info under

/proc/acpi/battery/BAT0

("BAT0" instead of just "0").

I'm not sure if this will also change in 2.4.x-kernels soon but I wanted to mention - perhaps you will change your code to also look for the info in the new dir...

Thx...

(Submitted via bugs.kde.org)
Comment 1 Gernot Hillier 2002-08-31 10:58:46 UTC
current klaptopdaemon HEAD code already has this feature but it's not relea=
sed=20
now. So I think this bug can be closed...
Comment 2 Gerald Teschl 2002-10-03 19:28:13 UTC
I just run into the same problem. I fund a patch on the web, but this patch
still would not work for me. I have fixed up this patch so that it works now
for me as well.
Comment 3 Gerald Teschl 2002-10-03 19:29:44 UTC
Created attachment 130 [details]
patch which fixes acpi support
Comment 4 Paul Campbell 2002-10-03 20:00:10 UTC
Subject: Re:  new ACPI code holds battery info under /proc/acpi/battery/BAT0

This was fixed a while back in CVS it will be included in 3.1. 
The problem is actually more complex because the name used by 
ACPI depends on the BIOS in your machine - the simple fix 
floating around the net only fixes it for some people (and 
breaks it for others) - the one in CVS is more complete - Paul