From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Bjørn Mork" <bjorn@mork.no>,
"kernel list" <linux-kernel@vger.kernel.org>,
lenb@kernel.org, linux-acpi@vger.kernel.org
Subject: Re: 3.9-rc3+: reports battery as 0 mWh capacity on thinkpad x60
Date: Sun, 24 Mar 2013 00:45:08 +0100 [thread overview]
Message-ID: <6726347.ehkcE9iAxU@vostro.rjw.lan> (raw)
In-Reply-To: <20130323202155.GC18732@amd.pavel.ucw.cz>
On Saturday, March 23, 2013 09:21:56 PM Pavel Machek wrote:
> On Sat 2013-03-23 14:00:23, Bjørn Mork wrote:
> > "Rafael J. Wysocki" <rjw@sisk.pl> writes:
> > > On Saturday, March 23, 2013 12:40:12 PM Pavel Machek wrote:
> > >> Hi!
> > >>
> > >> pavel@amd:~$ cat /proc/acpi/battery/BAT0/info
> > >> present: yes
> > >> design capacity: 0 mWh
> > >> last full capacity: 0 mWh
> > >> battery technology: rechargeable
> > >> design voltage: 14400 mV
> > >>
> > >> This worked before... at least it works in 2.6 kernel used by debian.
> > >
> > > This works for me in 3.9-rc3. May I see your .config?
> >
> > Well, if this works, then maybe the Kconfig help text should be updated:
> >
> > config ACPI_PROCFS_POWER
> > bool "Deprecated power /proc/acpi directories"
> > depends on PROC_FS
> > help
> > For backwards compatibility, this option allows
> > deprecated power /proc/acpi/ directories to exist, even when
> > they have been replaced by functions in /sys.
> > The deprecated directories (and their replacements) include:
> > /proc/acpi/battery/* (/sys/class/power_supply/*)
> > /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
> > This option has no effect on /proc/acpi/ directories
> > and functions, which do not yet exist in /sys
> > This option, together with the proc directories, will be
> > deleted in 2.6.39.
> >
> >
> > Time to call the bluff now :)
>
> This should probably be "default y", BTW.
>
> But problem is not in /proc, /sys has zeros, too.
>
> pavel@amd:~$ cat /sys/class/power_supply/BAT0/energy_full
> 0
> pavel@amd:~$ cat /sys/class/power_supply/BAT0/energy_full_design
> 0
> pavel@amd:~$ cat /sys/class/power_supply/BAT0/model_name
> 93P5030
> pavel@amd:~$
Can you narrow the time frame when it stopped working a bit?
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2013-03-23 23:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-23 11:40 Pavel Machek
2013-03-23 12:32 ` Rafael J. Wysocki
2013-03-23 13:00 ` Bjørn Mork
2013-03-23 20:21 ` Pavel Machek
2013-03-23 23:45 ` Rafael J. Wysocki [this message]
2013-03-24 9:27 ` Pavel Machek
2013-03-24 22:53 ` Martin Mokrejs
2013-03-25 6:54 ` Lan Tianyu
2013-03-25 10:19 ` Martin Mokrejs
2013-03-25 14:20 ` Lan Tianyu
2013-04-23 8:40 ` Pavel Machek
2013-03-23 20:02 ` Pavel Machek
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=6726347.ehkcE9iAxU@vostro.rjw.lan \
--to=rjw@sisk.pl \
--cc=bjorn@mork.no \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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
all inboxes | Powered by JetHome®