mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>,
	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: Sat, 23 Mar 2013 14:00:23 +0100	[thread overview]
Message-ID: <87zjxu9spk.fsf@nemi.mork.no> (raw)
In-Reply-To: <1364045783.tg02458AIS@vostro.rjw.lan> (Rafael J. Wysocki's message of "Sat, 23 Mar 2013 13:32:19 +0100")

"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 :)


Bjørn

  reply	other threads:[~2013-03-23 13:01 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 [this message]
2013-03-23 20:21     ` Pavel Machek
2013-03-23 23:45       ` Rafael J. Wysocki
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=87zjxu9spk.fsf@nemi.mork.no \
    --to=bjorn@mork.no \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    /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®