Re: battery: current a factor of 10 off?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 Nov 2008, Ferenc Wagner wrote:
> on my ThinkPad R50e the current_now reading seems something like 10
> times the actual value.  Documentation/power/power_supply_class.txt
> says it's in uA, and a tipical discharge value is around 15259000,
> that is, 15 A on my system.  At the same time voltage is 11756000,
> that is, 12 V, which sounds reasonable, but then the power is 15*12 VA,
> ie 180 W, which is insane.  However, the numerical derivative of
> energy_now gives 18 W, which is both reasonable and consistent with
> the assumed factor of 10 error in current_now.  Is this possibly a bug
> in 2.6.26.6?  During a quick glance over battery.c nothing obvious
> jumped at me, but I'm no expert on this.

You could also patch in tp_smapi and compare with the data you get from both
drivers.  If they are both wrong, you need a BIOS/EC firmware update.  If
there is none, we will need DMI quirks on both drivers to work around the
issue.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux