Public bug reported: Greetings...
The battery charge rate on a System76 Starling netbook reports a plausible value when discharging, but it reports a very high value when charging: $ cat /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: discharging present rate: 1210 mA remaining capacity: 4256 mAh present voltage: 12241 mV $ cat /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: charging present rate: 64785 mA remaining capacity: 4117 mAh present voltage: 12284 mV This appears to be due to my netbook's ACPI faeries reporting the current from the battery as a signed int (discharge = positive, charge = negative). I have worked around this by adding my vendor to the acpi_battery_quirks() function in drivers/acpi/battery.c, but have since lost the patch and can't remember what I used for dmi_name_in_vendors(). Attached is a tarball of /proc/acpi in all three states (charged/charging/discharging). Thanks! -rt Steps to reproduce: 1) Unplug AC power. 2) Wander off for awhile. 3) Replug AC power. 4) Look at present rate. 5) Compute power dissipated by 65 amperes at ~12 volts; observe that battery is not actually on fire. ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: linux-image-2.6.32-28-generic 2.6.32-28.55 Regression: No Reproducible: Yes ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12 Uname: Linux 2.6.32-28-generic i686 AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21. AplayDevices: **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 Architecture: i386 ArecordDevices: **** List of CAPTURE Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: rtucker 2272 F.... pulseaudio /dev/snd/pcmC0D0p: rtucker 2272 F...m pulseaudio CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found. Card0.Amixer.info: Card hw:0 'Intel'/'HDA Intel at 0x94340000 irq 16' Mixer name : 'Realtek ALC268' Components : 'HDA:10ec0268,152d1777,00100101' Controls : 12 Simple ctrls : 7 Date: Sun Feb 13 13:40:06 2011 EcryptfsInUse: Yes HibernationDevice: RESUME=UUID=070bbc23-88fb-4d1c-aa6c-103a74e615e0 InstallationMedia: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Release i386 (20091028.4) IwConfig: MachineType: Quanta UW1 ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-28-generic root=UUID=9f1f6d4f-ecf1-47f0-ac14-da83dcfbfe0d ro quiet splash pciehp.pciehp_force=1 ProcEnviron: SHELL=/bin/bash PATH=(custom, user) LANG=en_US.UTF-8 RelatedPackageVersions: linux-firmware 1.34.3 RfKill: SourcePackage: linux dmi.bios.date: 05/19/2009 dmi.bios.vendor: INSYDE dmi.bios.version: Q3F21 dmi.board.asset.tag: Base Board Asset Tag dmi.board.name: Base Board Product Name dmi.board.vendor: Quanta dmi.board.version: 03 dmi.chassis.asset.tag: �������������������������������� dmi.chassis.type: 1 dmi.chassis.vendor: Chassis Manufacturer dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnINSYDE:bvrQ3F21:bd05/19/2009:svnQuanta:pnUW1:pvr04:rvnQuanta:rnBaseBoardProductName:rvr03:cvnChassisManufacturer:ct1:cvrChassisVersion: dmi.product.name: UW1 dmi.product.version: 04 dmi.sys.vendor: Quanta ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug i386 kconfig lucid needs-upstream-testing ubuntu-une -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/718334 Title: ACPI: Battery charge rate reported as a signed int but displayed as an unsigned int -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs