public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Device enumeration at boot doesn't detect acpi battery.
@ 2010-05-20 10:50 Brian Hutsell
  2010-05-21  0:58 ` Zhang Rui
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Hutsell @ 2010-05-20 10:50 UTC (permalink / raw)
  To: linux-acpi

Hello,

Apologies in 
advance if I sent this to the wrong place.  I'm not sure where the 
kernel's boot-time device enumeration code lives.  If this is the wrong 
forum, could someone please tell me the email address I should forward 
it to?  Thanks.

I have a laptop running Linux 2.6.32-22-generic 
#33-Ubuntu SMP x86_64.  My laptop is an ACER Aspire 6930.  When I boot, 
the battery isn't enumerated into "sysfs" like gnome-power-manager 
expects it to.

After boot, the following command finds nothing:
% find /sys -name "BAT1" -print

If I inspect the contents of one 
of the files in the /proc/acpi/battery/BAT1 directory, they'll appear:
%  cat /proc/acpi/battery/BAT1/state 
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining 
capacity:      3619 mAh
present voltage:         12131 mV

% 
find /sys -name "BAT1" -print
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1
/sys/class/power_supply/BAT1

This is repeatable on every boot.  Once I "cat 
/proc/acpi/battery/BAT1/state", gnome-power-manager recognizes my 
battery (via upowerd) and all is well.

This is the 
non-"gnome-power-manager" part of https://bugzilla.gnome.org/show_bug.cgi?id=617529


Can someone point me at the right forum, the code that needs to be 
modified, or better yet, fix the problem?  I've never touched with the 
kernel code before.

All help is appreciated.
--Brian


      


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-21  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 10:50 Device enumeration at boot doesn't detect acpi battery Brian Hutsell
2010-05-21  0:58 ` Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox