Debian Bug report logs - #701050
linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000

Package: src:linux; Maintainer for src:linux is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: Stefan Nagy <public@stefan-nagy.at>

Date: Wed, 20 Feb 2013 22:27:01 UTC

Severity: normal

Tags: upstream

Done: Ben Hutchings <ben@decadent.org.uk>

Bug is archived. No further changes may be made.

Forwarded to https://bugzilla.kernel.org/show_bug.cgi?id=54241

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#701050; Package src:linux. (Wed, 20 Feb 2013 22:27:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Nagy <public@stefan-nagy.at>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Wed, 20 Feb 2013 22:27:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Stefan Nagy <public@stefan-nagy.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Thu, 21 Feb 2013 00:24:37 +0100
Package: src:linux
Version: 3.2.35-2
Severity: normal

Dear Maintainer,

while my BIOS/UEFI reports a battery charge capacity of 92% for my notebook-
battery, upower still reports a charge capacity of 100% (AFAIK upower gets this
information from the kernel - I believe this to be a kernel ACPI bug). I
suspect this issue to be part of my power problems reported in bug #695634 and
bug #684186 - my notebook fails to execute action (hibernate) on critical
battery condition. I'll add the information provided by UEFI (1.) and by upower
(2.).

(1.) Here's the information provided by the HP UEFI Support Environment:
Charge Capacity: 92%
Warranty Type: 1 year
Cycle Count: 187
Manufacturer: 13-17
Battery Age: 391 days
Serial Number: 01317 01/24/2012
Temperature: 36 °C
Design Capacity: 5400 mAh
Full Charge Capacity: 5020 mAh
Remaining Capacity: 2499 mAh
Current: 1797 mA
Battery Status: OK(1)
FAILURE ID: OK
Terminal Voltage: 11143 mV
Design Voltage: 11100 mV
Cell Voltage 1: 3710 mV
Cell Voltage 2: 3735 mV
Cell Voltage 3: 3700 mV
Cell Voltage 4: 0 mV
Status: 00C0
AC Power: No
CT Number: 6CLFH02BJ2E08M

(2.) Here's the information provided by upower ('upower --dump'):
Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:
/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1
  vendor:               13-17
  model:                Venturi
  serial:               01317 01/24/2012
  power supply:         yes
  updated:              Wed Feb 20 23:57:03 2013 (23 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              28.771 Wh
    energy-empty:        0 Wh
    energy-full:         59.94 Wh
    energy-full-design:  59.94 Wh
    energy-rate:         20.668 W
    voltage:             11.103 V
    time to empty:       1.4 hours
    percentage:          47.9997%
    capacity:            100%



-- Package-specific info:
** Version:
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2

** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=4f9dc00c-6e8b-431d-b71f-d7bbc5960ad8 ro quiet

** Tainted: C (1024)
 * Module from drivers/staging has been loaded.

** Kernel log:
[    3.432525] iwlwifi 0000:02:00.0: pci_resource_len = 0x00002000
[    3.432529] iwlwifi 0000:02:00.0: pci_resource_base = ffffc90011088000
[    3.432533] iwlwifi 0000:02:00.0: HW Revision ID = 0x34
[    3.432781] iwlwifi 0000:02:00.0: irq 47 for MSI/MSI-X
[    3.432898] iwlwifi 0000:02:00.0: Detected Intel(R) Centrino(R) Wireless-N 1030 BGN, REV=0xB0
[    3.433028] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[    3.448618] iwlwifi 0000:02:00.0: device EEPROM VER=0x716, CALIB=0x6
[    3.448620] iwlwifi 0000:02:00.0: Device SKU: 0X150
[    3.448623] iwlwifi 0000:02:00.0: Valid Tx ant: 0X1, Valid Rx ant: 0X3
[    3.448652] iwlwifi 0000:02:00.0: Tunable channels: 13 802.11bg, 0 802.11a channels
[    3.483191] mtrr: type mismatch for b0000000,10000000 old: write-back new: write-combining
[    3.483196] [drm] MTRR allocation failed.  Graphics performance may suffer.
[    3.483773] i915 0000:00:02.0: irq 48 for MSI/MSI-X
[    3.483780] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    3.483783] [drm] Driver supports precise vblank timestamp query.
[    3.483824] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    3.490239] iwlwifi 0000:02:00.0: firmware: agent loaded iwlwifi-6000g2b-6.ucode into memory
[    3.490248] iwlwifi 0000:02:00.0: loaded firmware version 18.168.6.1
[    3.490556] Registered led device: phy0-led
[    3.496268] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[    3.509769] input: HP TrueVision HD as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input4
[    3.509853] usbcore: registered new interface driver uvcvideo
[    3.509856] USB Video Class driver (1.1.1)
[    3.831764] input: HP WMI hotkeys as /devices/virtual/input/input5
[    4.086773] rts_pstor: device scan complete
[    4.087092] scsi 6:0:0:0: Direct-Access     Generic- xD/SD/M.S.       1.00 PQ: 0 ANSI: 0 CCS
[    4.087242] Bad LUN (0:1)
[    4.087546] Bad target number (1:0)
[    4.087848] Bad target number (2:0)
[    4.088152] Bad target number (3:0)
[    4.088454] Bad target number (4:0)
[    4.088758] Bad target number (5:0)
[    4.089060] Bad target number (6:0)
[    4.089314] Bad target number (7:0)
[    4.089730] sd 6:0:0:0: Attached scsi generic sg1 type 0
[    4.090411] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[    4.116191] fbcon: inteldrmfb (fb0) is primary device
[    4.308482] Console: switching to colour frame buffer device 170x48
[    4.318392] fb0: inteldrmfb frame buffer device
[    4.318397] drm: registered panic notifier
[    4.325575] acpi device:33: registered as cooling_device6
[    4.326327] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input6
[    4.326506] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    4.326636] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[    4.326880] snd_hda_intel 0000:00:1b.0: irq 49 for MSI/MSI-X
[    4.326955] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[    4.885811] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input7
[    4.906363] HDMI status: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=0
[    4.906715] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    4.906986] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    4.907232] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[    5.053500] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x126c00
[    5.180231] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input11
[    5.676102] Adding 4633596k swap on /dev/sda5.  Priority:-1 extents:1 across:4633596k SS
[    5.707045] EXT4-fs (sda1): re-mounted. Opts: (null)
[    5.785300] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[    5.823020] loop: module loaded
[    6.581872] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[    7.164261] RPC: Registered named UNIX socket transport module.
[    7.164271] RPC: Registered udp transport module.
[    7.164278] RPC: Registered tcp transport module.
[    7.164284] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.173007] FS-Cache: Loaded
[    7.184583] FS-Cache: Netfs 'nfs' registered for caching
[    7.193964] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.024717] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.024722] Bluetooth: BNEP filters: protocol multicast
[    8.025179] Bluetooth: RFCOMM TTY layer initialized
[    8.025187] Bluetooth: RFCOMM socket layer initialized
[    8.025191] Bluetooth: RFCOMM ver 1.11
[    8.103988] lp: driver loaded but no devices found
[    8.109824] ppdev: user-space parallel port driver
[    8.216975] r8169 0000:01:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into memory
[    8.296584] r8169 0000:01:00.0: eth0: link down
[    8.297009] ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.300582] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[    8.307292] iwlwifi 0000:02:00.0: Radio type=0x2-0x2-0x1
[    8.393544] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[    8.400242] iwlwifi 0000:02:00.0: Radio type=0x2-0x2-0x1
[    8.504088] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    8.831042] input: ACPI Virtual Keyboard Device as /devices/virtual/input/input12
[    9.479323] wlan0: authenticate with 70:72:3c:20:76:08 (try 1)
[    9.481733] wlan0: authenticated
[    9.494523] wlan0: associate with 70:72:3c:20:76:08 (try 1)
[    9.498510] wlan0: RX AssocResp from 70:72:3c:20:76:08 (capab=0x431 status=0 aid=1)
[    9.498519] wlan0: associated
[    9.520159] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[    9.520370] cfg80211: Calling CRDA for country: CA
[    9.528143] cfg80211: Regulatory domain changed to country: CA
[    9.528150] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.528157] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    9.528162] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    9.528167] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.528172] cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.528177] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   20.494985] wlan0: no IPv6 routers present
[   22.788513] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   22.789773] input: Microsoft Bluetooth Notebook Mouse 5000 as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/bluetooth/hci0/hci0:37/input13
[   22.790316] generic-bluetooth 0005:045E:0700.0001: input,hidraw0: BLUETOOTH HID v1.00 Mouse [Microsoft Bluetooth Notebook Mouse 5000] on 4C:EB:42:1A:52:01
[   30.342081] iwlwifi 0000:02:00.0: Tx aggregation enabled on ra = 70:72:3c:20:76:08 tid = 0

** Model information
sys_vendor: Hewlett-Packard
product_name: HP Folio 13 - 2000 Notebook PC
product_version: 0687100400204A00000330100
chassis_vendor: Hewlett-Packard
chassis_version: Chassis Version
bios_vendor: Hewlett-Packard
bios_version: F.18
board_vendor: Hewlett-Packard
board_name: 1899
board_version: 46.80

** Loaded modules:
hidp
hid
parport_pc
ppdev
lp
parport
rfcomm
bnep
binfmt_misc
uinput
nfsd
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
loop
joydev
snd_hda_codec_hdmi
snd_hda_codec_idt
arc4
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_pcm
snd_page_alloc
iwlwifi
snd_seq
snd_seq_device
i915
snd_timer
coretemp
uvcvideo
crc32c_intel
mac80211
videodev
psmouse
v4l2_compat_ioctl32
hp_wmi
ghash_clmulni_intel
btusb
bluetooth
aesni_intel
media
sparse_keymap
aes_x86_64
evdev
pcspkr
aes_generic
cryptd
serio_raw
i2c_i801
snd
drm_kms_helper
battery
ac
drm
cfg80211
rts_pstor(C)
power_supply
soundcore
i2c_algo_bit
rfkill
i2c_core
acpi_cpufreq
mperf
iTCO_wdt
wmi
video
iTCO_vendor_support
tpm_tis
tpm
button
tpm_bios
processor
ext4
crc16
jbd2
mbcache
sg
sd_mod
crc_t10dif
ahci
libahci
libata
xhci_hcd
scsi_mod
ehci_hcd
sdhci_pci
sdhci
mmc_core
usbcore
r8169
mii
usb_common
fan
thermal
thermal_sys

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 48
	Region 0: Memory at c0000000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at b0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 4000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 7
	Region 0: Memory at c2704000 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>

00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at c2709000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 49
	Region 0: Memory at c2700000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Prefetchable memory behind bridge: 00000000c0400000-00000000c04fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.2 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 [8086:1c14] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	Memory behind bridge: c2600000-c26fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=03, subordinate=08, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: c1600000-c25fffff
	Prefetchable memory behind bridge: 00000000c0500000-00000000c14fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=09, subordinate=09, sec-latency=0
	Memory behind bridge: c1500000-c15fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 23
	Region 0: Memory at c2708000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 04)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 46
	Region 0: I/O ports at 4088 [size=8]
	Region 1: I/O ports at 4094 [size=4]
	Region 2: I/O ports at 4080 [size=8]
	Region 3: I/O ports at 4090 [size=4]
	Region 4: I/O ports at 4060 [size=32]
	Region 5: Memory at c2707000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin C routed to IRQ 19
	Region 0: Memory at c2705000 (64-bit, non-prefetchable) [size=256]
	Region 4: I/O ports at 4040 [size=32]

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06)
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 40
	Region 0: I/O ports at 3000 [size=256]
	Region 2: Memory at c0404000 (64-bit, prefetchable) [size=4K]
	Region 4: Memory at c0400000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169

02:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] [8086:008b] (rev 34)
	Subsystem: Intel Corporation Centrino Wireless-N 1030 BGN [8086:5315]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 47
	Region 0: Memory at c2600000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
	Subsystem: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 19
	Region 0: Memory at c1601000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: rts_pstor

03:00.1 SD Host controller [0805]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
	Subsystem: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin B routed to IRQ 16
	Region 0: Memory at c1600000 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: sdhci-pci

09:00.0 USB controller [0c03]: Fresco Logic FL1009 USB 3.0 Host Controller [1b73:1009] (rev 02) (prog-if 30 [XHCI])
	Subsystem: Hewlett-Packard Company Device [103c:1899]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at c1500000 (64-bit, non-prefetchable) [size=64K]
	Region 2: Memory at c1510000 (64-bit, non-prefetchable) [size=4K]
	Region 4: Memory at c1511000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd


** USB devices:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 1bcf:2c07 Sunplus Innovation Technology Inc. 
Bus 001 Device 004: ID 8086:0189 Intel Corp. 


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.utf8, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-3.2.0-4-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.49
ii  initramfs-tools [linux-initramfs-tool]  0.109
ii  kmod                                    9-2
ii  linux-base                              3.5
ii  module-init-tools                       9-2

Versions of packages linux-image-3.2.0-4-amd64 recommends:
pn  firmware-linux-free  <none>

Versions of packages linux-image-3.2.0-4-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 1.99-26
pn  linux-doc-3.2           <none>

Versions of packages linux-image-3.2.0-4-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
ii  firmware-iwlwifi        0.36+wheezy.1
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
pn  firmware-linux-nonfree  <none>
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
ii  firmware-realtek        0.36+wheezy.1
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.2.0-4-amd64/postinst/depmod-error-initrd-3.2.0-4-amd64: false
  linux-image-3.2.0-4-amd64/prerm/removing-running-kernel-3.2.0-4-amd64: true
  linux-image-3.2.0-4-amd64/postinst/ignoring-ramdisk:
  linux-image-3.2.0-4-amd64/postinst/missing-firmware-3.2.0-4-amd64:



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#701050; Package src:linux. (Thu, 21 Feb 2013 00:54:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Thu, 21 Feb 2013 00:54:07 GMT) Full text and rfc822 format available.

Message #10 received at 701050@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: Stefan Nagy <public@stefan-nagy.at>, 701050@bugs.debian.org
Subject: Re: Bug#701050: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Thu, 21 Feb 2013 00:50:42 +0000
[Message part 1 (text/plain, inline)]
Control: tag -1 moreinfo

On Thu, 2013-02-21 at 00:24 +0100, Stefan Nagy wrote:
> Package: src:linux
> Version: 3.2.35-2
> Severity: normal
> 
> Dear Maintainer,
> 
> while my BIOS/UEFI reports a battery charge capacity of 92% for my notebook-
> battery, upower still reports a charge capacity of 100% (AFAIK upower gets this
> information from the kernel - I believe this to be a kernel ACPI bug).

The kernel driver doesn't do anything very interesting so it's actually
very likely a BIOS bug.

> I
> suspect this issue to be part of my power problems reported in bug #695634 and
> bug #684186 - my notebook fails to execute action (hibernate) on critical
> battery condition. I'll add the information provided by UEFI (1.) and by upower
> (2.).
> 
> (1.) Here's the information provided by the HP UEFI Support Environment:
> Charge Capacity: 92%
[...]
> Design Capacity: 5400 mAh
> Full Charge Capacity: 5020 mAh
[...]
> Design Voltage: 11100 mV

OK, 5020/5400 ~= 0.92.

[...]
> (2.) Here's the information provided by upower ('upower --dump'):
> Device: /org/freedesktop/UPower/devices/battery_BAT1
>   native-path:
> /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1
>   vendor:               13-17
>   model:                Venturi
>   serial:               01317 01/24/2012
>   power supply:         yes
>   updated:              Wed Feb 20 23:57:03 2013 (23 seconds ago)
>   has history:          yes
>   has statistics:       yes
>   battery
>     present:             yes
>     rechargeable:        yes
>     state:               discharging
>     energy:              28.771 Wh
>     energy-empty:        0 Wh
>     energy-full:         59.94 Wh
>     energy-full-design:  59.94 Wh
[...]

5400 mAh * 11100 mV = 59.94 Wh so energy-full-design looks good but
energy-full is wrong.

Apparently, for some systems and batteries, ACPI reports full capacity
as 100 and current level as a percentage.  In this case the ACPI battery
driver cannot know what the true full capacity is.  Its workaround is to
assume it is equal to full design capacity.  Unfortunately there doesn't
seem to be any way to find out whether this workaround was enabled.

Can you send the contents of /sys/class/power_supply/BAT1/uevent so we
at least know what the kernel is reporting?

Ben.

-- 
Ben Hutchings
Sturgeon's Law: Ninety percent of everything is crap.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Ben Hutchings <ben@decadent.org.uk> to 701050-submit@bugs.debian.org. (Thu, 21 Feb 2013 00:54:07 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#701050; Package src:linux. (Thu, 21 Feb 2013 12:42:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Nagy <public@stefan-nagy.at>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Thu, 21 Feb 2013 12:42:05 GMT) Full text and rfc822 format available.

Message #17 received at 701050@bugs.debian.org (full text, mbox):

From: Stefan Nagy <public@stefan-nagy.at>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: <701050@bugs.debian.org>
Subject: Re: Bug#701050: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Thu, 21 Feb 2013 13:40:25 +0100
>> while my BIOS/UEFI reports a battery charge capacity of 92% for my 
>> notebook-
>> battery, upower still reports a charge capacity of 100% (AFAIK 
>> upower gets this
>> information from the kernel - I believe this to be a kernel ACPI 
>> bug).
>
> The kernel driver doesn't do anything very interesting so it's 
> actually
> very likely a BIOS bug.

I checked the situation in Windows 7 over the last days and I don't see 
the problem there. I can use the 'HP Support Assistant' in Windows to 
check the battery capacity and status – it seems to be the same tool as 
in the 'HP UEFI Support Environment'. The value 'Current' (in mAh) 
accords to the values (in percentage of 'Full Charge Capacity') reported 
by Windows.

This is why I don't think that this is a BIOS bug.

> Can you send the contents of /sys/class/power_supply/BAT1/uevent so 
> we
> at least know what the kernel is reporting?

stefan@rosa:~$ cat /sys/class/power_supply/BAT1/uevent
POWER_SUPPLY_NAME=BAT1
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Unknown
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
POWER_SUPPLY_VOLTAGE_NOW=10872000
POWER_SUPPLY_POWER_NOW=14851000
POWER_SUPPLY_ENERGY_FULL_DESIGN=59940000
POWER_SUPPLY_ENERGY_FULL=59940000
POWER_SUPPLY_ENERGY_NOW=17982000
POWER_SUPPLY_MODEL_NAME=Venturi
POWER_SUPPLY_MANUFACTURER=13-17
POWER_SUPPLY_SERIAL_NUMBER=01317 01/24/2012

Regarding my original issue ('GNOME fails to execute action on critical 
battery condition') I just want to add that there seem to be three 
issues involved: one is really a BIOS bug (see the last comments of 
#695634), one at least seems to be a UPower bug (see #6841869) and then 
there's this one.

Stefan.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#701050; Package src:linux. (Fri, 22 Feb 2013 16:51:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Nagy <public@stefan-nagy.at>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Fri, 22 Feb 2013 16:51:07 GMT) Full text and rfc822 format available.

Message #22 received at 701050@bugs.debian.org (full text, mbox):

From: Stefan Nagy <public@stefan-nagy.at>
To: <701050@bugs.debian.org>
Cc: <ben@decadent.org.uk>
Subject: Re: Bug#701050: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Fri, 22 Feb 2013 17:47:26 +0100
I tested this also with debian kernel linux-image-3.7-trunk-amd64 
(3.7.8-1~experimental.1) and with upstream kernel v3.7.9. Please tell me 
if I can provide more useful information.

Stefan.



Marked as found in versions linux/3.7.8-1~experimental.1. Request was from Stefan Nagy <public@stefan-nagy.at> to control@bugs.debian.org. (Fri, 22 Feb 2013 16:54:03 GMT) Full text and rfc822 format available.

Added tag(s) upstream. Request was from Stefan Nagy <public@stefan-nagy.at> to control@bugs.debian.org. (Fri, 22 Feb 2013 16:54:03 GMT) Full text and rfc822 format available.

Removed tag(s) moreinfo. Request was from Stefan Nagy <public@stefan-nagy.at> to control@bugs.debian.org. (Fri, 22 Feb 2013 16:54:04 GMT) Full text and rfc822 format available.

Set Bug forwarded-to-address to 'https://bugzilla.kernel.org/show_bug.cgi?id=54241'. Request was from Stefan Nagy <public@stefan-nagy.at> to control@bugs.debian.org. (Fri, 22 Feb 2013 17:21:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#701050; Package src:linux. (Mon, 25 Mar 2013 12:15:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Nagy <public@stefan-nagy.at>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Mon, 25 Mar 2013 12:15:13 GMT) Full text and rfc822 format available.

Message #35 received at 701050@bugs.debian.org (full text, mbox):

From: Stefan Nagy <public@stefan-nagy.at>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: 701050@bugs.debian.org
Subject: Re: Bug#701050: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Mon, 25 Mar 2013 13:11:50 +0100
[Message part 1 (text/plain, inline)]
Am Donnerstag, den 21.02.2013, 00:50 +0000 schrieb Ben Hutchings:
> > while my BIOS/UEFI reports a battery charge capacity of 92% for my notebook-
> > battery, upower still reports a charge capacity of 100% (AFAIK upower gets this
> > information from the kernel - I believe this to be a kernel ACPI bug).
> 
> The kernel driver doesn't do anything very interesting so it's actually
> very likely a BIOS bug.

You were right, this really seems to be a BIOS bug. I checked the
battery information in Windows with 'powercfg -energy': The reported
values for 'Design capacity' (= ENERGY_FULL_DESIGN) and 'Last full
charge' (= ENERGY_FULL) are the same: 59940.

At first I thought that Windows gets the correct values because the
charging level percentage reported by Windows corresponded to the
percentage reported by the 'HP Support Assistant' program which shows me
the correct battery info (including a realistic battery capacity value).

I don't know why or how this works, but the charging level percentage
seems to be quite accurate even if all the other reported values differ.
I also used a freeware tool in Windows to get more information on the
battery and it showed me the same info I get with
'cat /sys/class/power_supply/BAT1/uevent'.

> Apparently, for some systems and batteries, ACPI reports full capacity
> as 100 and current level as a percentage.  In this case the ACPI battery
> driver cannot know what the true full capacity is.  Its workaround is to
> assume it is equal to full design capacity.  Unfortunately there doesn't
> seem to be any way to find out whether this workaround was enabled.

The upstream maintainer, Lan Tianyu, provided a patch to comment the
quirk (see comment #6 in the upstream report). However, after applying
the patch the kernel reported the same values, so I guess the workaround
wasn't enabled in my case.

Since I can confirm that this is a BIOS bug I'm going to close this
report. For more information please have a look at the upstream bug
report.

Thanks,
Stefan.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Ben Hutchings <ben@decadent.org.uk>:
You have taken responsibility. (Mon, 25 Mar 2013 13:09:17 GMT) Full text and rfc822 format available.

Notification sent to Stefan Nagy <public@stefan-nagy.at>:
Bug acknowledged by developer. (Mon, 25 Mar 2013 13:09:17 GMT) Full text and rfc822 format available.

Message #40 received at 701050-done@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: 701050-done@bugs.debian.org
Subject: Re: Bug#701050: linux-image-3.2.0-4-amd64: Wrong battery capacity values on HP Folio 13-2000
Date: Mon, 25 Mar 2013 13:08:28 +0000
[Message part 1 (text/plain, inline)]
On Mon, 2013-03-25 at 13:11 +0100, Stefan Nagy wrote:
[...]
> Since I can confirm that this is a BIOS bug I'm going to close this
> report. For more information please have a look at the upstream bug
> report.

OK, closing.

Ben.

-- 
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.
[signature.asc (application/pgp-signature, inline)]

No longer marked as found in versions linux/3.7.8-1~experimental.1. Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Mon, 25 Mar 2013 13:12:04 GMT) Full text and rfc822 format available.

No longer marked as found in versions linux/3.2.35-2. Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Mon, 25 Mar 2013 13:12:04 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 23 Apr 2013 07:27:50 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 11:23:00 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.