public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Hutsell <bhut_ooto@yahoo.com>
To: linux-acpi@vger.kernel.org
Subject: Device enumeration at boot doesn't detect acpi battery.
Date: Thu, 20 May 2010 03:50:07 -0700 (PDT)	[thread overview]
Message-ID: <77056.54759.qm@web65511.mail.ac4.yahoo.com> (raw)

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


      


             reply	other threads:[~2010-05-20 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 10:50 Brian Hutsell [this message]
2010-05-21  0:58 ` Device enumeration at boot doesn't detect acpi battery Zhang Rui

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=77056.54759.qm@web65511.mail.ac4.yahoo.com \
    --to=bhut_ooto@yahoo.com \
    --cc=linux-acpi@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox