lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 24 Mar 2013 00:45:08 +0100
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Pavel Machek <pavel@....cz>
Cc:	Bjørn Mork <bjorn@...k.no>,
	kernel list <linux-kernel@...r.kernel.org>, lenb@...nel.org,
	linux-acpi@...r.kernel.org
Subject: Re: 3.9-rc3+: reports battery as 0 mWh capacity on thinkpad x60

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@...k.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists