Bug 694482 - After suspend/resume, kernel thinks I have two batteries when I only have one
Summary: After suspend/resume, kernel thinks I have two batteries when I only have one
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: John Feeney
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 698189 709040 717573 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-07 13:35 UTC by Kjartan Maraas
Modified: 2013-01-10 07:36 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-04 19:02:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
acpidump output before suspend (136.11 KB, application/octet-stream)
2011-04-14 09:43 UTC, Kjartan Maraas
no flags Details

Description Kjartan Maraas 2011-04-07 13:35:32 UTC
Description of problem:

I see two batteries in the battery information panel in gnome-shell. One of them is at 0%. upower --dump and sysfs also show two batteries so it seems to be the kernel that is at fault here.

This is a Dell Latitude E4300 laptop


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Kjartan Maraas 2011-04-07 13:37:25 UTC
lrwxrwxrwx 1 root root 0 april  7 15:36 AC -> ../../devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC
lrwxrwxrwx 1 root root 0 april  7 14:26 BAT0 -> ../../devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
lrwxrwxrwx 1 root root 0 april  7 14:26 BAT1 -> ../../devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1

[kmaraas@e4300 upower (master)]$ dmesg | grep -i battery
[    0.841579] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    0.841585] ACPI: Battery Slot [BAT0] (battery present)
[    0.841607] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    0.841612] ACPI: Battery Slot [BAT1] (battery absent)

Comment 2 Chuck Ebbert 2011-04-09 21:52:27 UTC
(In reply to comment #1)
> [    0.841612] ACPI: Battery Slot [BAT1] (battery absent)

That's just the empty slot for the second battery (the one that clips to the bottom of the machine.)

Comment 3 Kjartan Maraas 2011-04-10 17:29:22 UTC
Going to go out on a limb here and reopen this because it's causing real problems for me.

The second "battery" only shows up after resume from suspend and sometimes I end up with a laptop that just suspends immediately because the empty battery slot is at 0% capasity and thus triggers an emergency suspend.

I haven't even had the machine in the docking station so I don't see why it should show up at all.

Comment 4 Matthew Garrett 2011-04-14 00:22:16 UTC
If it appears again can you please do:

grep . /sys/class/power_supply/*/*

and attach the output here?

Comment 5 Kjartan Maraas 2011-04-14 05:49:00 UTC
Here's the output. The first is before suspend the other is after resume:

[kmaraas@e4300 po (master)]$ grep . /sys/class/power_supply/*/*
/sys/class/power_supply/AC/online:1
/sys/class/power_supply/AC/type:Mains
/sys/class/power_supply/AC/uevent:POWER_SUPPLY_NAME=AC
/sys/class/power_supply/AC/uevent:POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4126000
/sys/class/power_supply/BAT0/charge_full_design:5600000
/sys/class/power_supply/BAT0/charge_now:5600000
/sys/class/power_supply/BAT0/current_now:1000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SMP
/sys/class/power_supply/BAT0/model_name:DELL H986297
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:834
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12788000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5600000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4126000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5600000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL H986297
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=834
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12788000
[kmaraas@e4300 po (master)]$ grep . /sys/class/power_supply/*/*
/sys/class/power_supply/AC/online:1
/sys/class/power_supply/AC/type:Mains
/sys/class/power_supply/AC/uevent:POWER_SUPPLY_NAME=AC
/sys/class/power_supply/AC/uevent:POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4126000
/sys/class/power_supply/BAT0/charge_full_design:5600000
/sys/class/power_supply/BAT0/charge_now:5600000
/sys/class/power_supply/BAT0/current_now:1000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SMP
/sys/class/power_supply/BAT0/model_name:DELL H986297
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:834
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12787000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5600000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4126000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5600000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL H986297
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=834
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12787000
/sys/class/power_supply/BAT1/alarm:0
grep: /sys/class/power_supply/BAT1/cycle_count: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/energy_full: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/energy_full_design: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/energy_now: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/manufacturer: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/model_name: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/power_now: Ingen slik enhet
/sys/class/power_supply/BAT1/present:0
grep: /sys/class/power_supply/BAT1/serial_number: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/status: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/technology: Ingen slik enhet
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=0
grep: /sys/class/power_supply/BAT1/voltage_min_design: Ingen slik enhet
grep: /sys/class/power_supply/BAT1/voltage_now: Ingen slik enhet
[kmaraas@e4300 po (master)]$

Comment 6 Matthew Garrett 2011-04-14 06:14:10 UTC
Ok, so that all looks nominally fine - the question is why upower thinks it's present. When you're in the "good" state can you (as root) run

udevadm monitor

and then suspend/resume, and if the problem appears attach the udevadm output? It would also help to have the output of the acpidump command from the pmtools package.

Comment 7 Kjartan Maraas 2011-04-14 09:41:39 UTC
[kmaraas@e4300 Nedlasting]$ sudo udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1302773968.491059] add      /devices/virtual/vc/vcs63 (vc)
KERNEL[1302773968.491090] add      /devices/virtual/vc/vcsa63 (vc)
UDEV  [1302773968.505074] add      /devices/virtual/vc/vcs63 (vc)
UDEV  [1302773968.506642] add      /devices/virtual/vc/vcsa63 (vc)
KERNEL[1302773984.460743] remove   /devices/system/cpu/cpu1/cpufreq (cpu)
KERNEL[1302773984.460770] remove   /devices/system/cpu/cpu1/cache/index0 (cpu)
KERNEL[1302773984.460803] remove   /devices/system/cpu/cpu1/cache/index1 (cpu)
KERNEL[1302773984.460817] remove   /devices/system/cpu/cpu1/cache/index2 (cpu)
KERNEL[1302773984.460831] remove   /devices/system/cpu/cpu1/cache (cpu)
KERNEL[1302773984.460845] remove   /devices/system/machinecheck/machinecheck1 (machinecheck)
KERNEL[1302773984.460860] add      /devices/system/cpu/cpu1/cache/index0 (cpu)
KERNEL[1302773984.460874] add      /devices/system/cpu/cpu1/cache/index1 (cpu)
KERNEL[1302773984.460888] add      /devices/system/cpu/cpu1/cache/index2 (cpu)
KERNEL[1302773984.460901] add      /devices/system/cpu/cpu1/cache (cpu)
KERNEL[1302773984.460916] add      /devices/system/machinecheck/machinecheck1 (machinecheck)
KERNEL[1302773984.460930] add      /devices/system/cpu/cpu1/cpufreq (cpu)
KERNEL[1302773984.460947] change   /devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC (power_supply)
KERNEL[1302773984.460965] remove   /devices/platform/i8042/serio0/input/input3/event3 (input)
KERNEL[1302773984.460997] remove   /devices/platform/i8042/serio0/input/input3 (input)
KERNEL[1302773984.461020] add      /devices/platform/i8042/serio0/input/input15 (input)
KERNEL[1302773984.461038] add      /devices/platform/i8042/serio0/input/input15/event3 (input)
KERNEL[1302773984.461072] remove   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.461101] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.461129] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.461147] change   /devices/platform/dell-laptop/rfkill/rfkill0 (rfkill)
KERNEL[1302773984.461163] change   /devices/platform/dell-laptop/rfkill/rfkill1 (rfkill)
KERNEL[1302773984.461180] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill2 (rfkill)
UDEV  [1302773984.471283] remove   /devices/system/cpu/cpu1/cache/index0 (cpu)
UDEV  [1302773984.471639] remove   /devices/system/cpu/cpu1/cpufreq (cpu)
UDEV  [1302773984.472255] add      /devices/system/cpu/cpu1/cpufreq (cpu)
UDEV  [1302773984.472627] remove   /devices/system/cpu/cpu1/cache/index1 (cpu)
UDEV  [1302773984.473181] remove   /devices/platform/i8042/serio0/input/input3/event3 (input)
UDEV  [1302773984.474144] remove   /devices/system/machinecheck/machinecheck1 (machinecheck)
UDEV  [1302773984.474724] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill2 (rfkill)
UDEV  [1302773984.475185] change   /devices/platform/dell-laptop/rfkill/rfkill0 (rfkill)
UDEV  [1302773984.475722] remove   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.476230] remove   /devices/system/cpu/cpu1/cache/index2 (cpu)
UDEV  [1302773984.476587] change   /devices/platform/dell-laptop/rfkill/rfkill1 (rfkill)
UDEV  [1302773984.478115] change   /devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC (power_supply)
UDEV  [1302773984.478541] add      /devices/system/machinecheck/machinecheck1 (machinecheck)
UDEV  [1302773984.478911] remove   /devices/platform/i8042/serio0/input/input3 (input)
UDEV  [1302773984.479305] remove   /devices/system/cpu/cpu1/cache (cpu)
UDEV  [1302773984.479611] add      /devices/system/cpu/cpu1/cache/index0 (cpu)
UDEV  [1302773984.479946] add      /devices/system/cpu/cpu1/cache/index1 (cpu)
UDEV  [1302773984.480213] add      /devices/system/cpu/cpu1/cache/index2 (cpu)
UDEV  [1302773984.480666] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.481105] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.482247] add      /devices/system/cpu/cpu1/cache (cpu)
UDEV  [1302773984.492144] add      /devices/platform/i8042/serio0/input/input15 (input)
KERNEL[1302773984.503188] remove   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.503240] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.503310] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
KERNEL[1302773984.503377] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
KERNEL[1302773984.503419] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
UDEV  [1302773984.508888] remove   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.516922] add      /devices/platform/i8042/serio0/input/input15/event3 (input)
UDEV  [1302773984.517381] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.517890] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
UDEV  [1302773984.518399] add      /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
UDEV  [1302773984.519722] change   /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
KERNEL[1302773984.716957] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill2 (rfkill)
KERNEL[1302773984.716983] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0 (bluetooth)
UDEV  [1302773984.718209] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill2 (rfkill)
UDEV  [1302773984.718903] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0 (bluetooth)
KERNEL[1302773984.722863] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)
KERNEL[1302773984.722889] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.1 (usb)
KERNEL[1302773984.722909] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.2 (usb)
KERNEL[1302773984.722928] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.3 (usb)
KERNEL[1302773984.722950] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3 (usb)
UDEV  [1302773984.723437] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.3 (usb)
UDEV  [1302773984.727859] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.1 (usb)
UDEV  [1302773984.728223] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.2 (usb)
UDEV  [1302773984.728462] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)
KERNEL[1302773984.761999] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)
UDEV  [1302773984.763810] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3 (usb)
UDEV  [1302773984.828616] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)
KERNEL[1302773985.180101] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3 (usb)
KERNEL[1302773985.182371] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)
KERNEL[1302773985.183355] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0 (bluetooth)
KERNEL[1302773985.183639] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill3 (rfkill)
KERNEL[1302773985.183699] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill3 (rfkill)
KERNEL[1302773985.184214] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.1 (usb)
KERNEL[1302773985.184274] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.2 (usb)
KERNEL[1302773985.184353] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.3 (usb)
UDEV  [1302773985.190153] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3 (usb)
UDEV  [1302773985.191453] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.1 (usb)
UDEV  [1302773985.192516] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)
UDEV  [1302773985.193587] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0 (bluetooth)
UDEV  [1302773985.194209] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill3 (rfkill)
UDEV  [1302773985.194982] change   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/bluetooth/hci0/rfkill3 (rfkill)
UDEV  [1302773985.197660] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.3 (usb)
UDEV  [1302773985.197685] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.2 (usb)
KERNEL[1302773991.214751] change   /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0 (block)
UDEV  [1302773992.124868] change   /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0 (block)

Comment 8 Kjartan Maraas 2011-04-14 09:42:55 UTC
acpidump output is the same before and after suspend/resume

Comment 9 Kjartan Maraas 2011-04-14 09:43:46 UTC
Created attachment 492014 [details]
acpidump output before suspend

Comment 10 Chuck Ebbert 2011-04-25 12:31:31 UTC
(In reply to comment #7)
> KERNEL[1302773984.503188] remove  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> KERNEL[1302773984.503240] add     
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> KERNEL[1302773984.503310] change  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> KERNEL[1302773984.503377] add     
> /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
> KERNEL[1302773984.503419] change  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
> UDEV  [1302773984.508888] remove  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> UDEV  [1302773984.516922] add     
> /devices/platform/i8042/serio0/input/input15/event3 (input)
> UDEV  [1302773984.517381] add     
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> UDEV  [1302773984.517890] change  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
> UDEV  [1302773984.518399] add     
> /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)
> UDEV  [1302773984.519722] change  
> /devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/BAT1 (power_supply)

So we do remove/add/change (twice?) for BAT0, and just add/change for BAT1. BAT1 doesn't really exist, maybe udev is confused by the empty slot?

Comment 11 Chuck Ebbert 2011-04-25 12:34:14 UTC
(In reply to comment #3)
> 
> I haven't even had the machine in the docking station so I don't see why it
> should show up at all.

What does this have to do with docking stations? The second battery clips to the machine and the slot for it (really just the connectors on the bottom of the machine) is always present.

Comment 12 Kjartan Maraas 2011-04-25 20:25:34 UTC
Just ignore my comment about docking station. I misread your comment about the second battery and connectors.

Comment 13 Chuck Ebbert 2011-04-27 01:27:46 UTC
*** Bug 698189 has been marked as a duplicate of this bug. ***

Comment 14 Rui Matos 2011-05-11 20:08:55 UTC
This is also happening on a Dell Latitude D630 with kernel 2.6.39-0.rc7.git0.0.fc16.x86_64 and current F15 user land.

Comment 15 Trevor Spiteri 2011-05-30 13:23:56 UTC
*** Bug 709040 has been marked as a duplicate of this bug. ***

Comment 16 Albert de Jongh 2011-06-29 10:25:28 UTC
This happens on my Dell Latitude E6500 too, Fedora 15 latest updates.  Please shout if I can provide more information.

Comment 17 Chuck Ebbert 2011-06-30 07:21:15 UTC
*** Bug 717573 has been marked as a duplicate of this bug. ***

Comment 18 Matthew Saltzman 2011-09-14 09:08:57 UTC
Happens on my E6410 also (kernel-2.6.40.4-5.fc15.x86_64).

 I think this should really be a higher priority, as it makes the machine virtually unusable as a portable device.  The extra battery shows up after suspend/resume whether the machine is plugged in, docked, or on battery.  Once it does, the machine can't be disconnected from power without it hibernating.

Comment 19 Steven Bakker 2011-09-21 07:28:23 UTC
I have a workaround (documented in bug #704110) using a resume hook in /etc/pm/sleep.d that reads out battery state from /proc/acpi/battery/BAT*. Note that, although deprecated, using that interface causes the phantom battery to disappear afterwards. Reading state from /sys/class/power_supply does nothing in that respect.

See https://bugzilla.redhat.com/show_bug.cgi?id=704110#c12

Since using that, I have had no more phantom battery or shutdown-upon-resume issues.

Comment 20 Josh Boyer 2012-06-04 18:11:30 UTC
Is this still happening with 2.6.43/3.3 in F15/F16?

Comment 21 Matthew Saltzman 2012-06-04 18:50:48 UTC
Doesn't seem to occur on a fresh install of F17 w/ kernel-3.3.7-1.fc17.x86_64.

Comment 22 Josh Boyer 2012-06-04 19:02:18 UTC
(In reply to comment #21)
> Doesn't seem to occur on a fresh install of F17 w/
> kernel-3.3.7-1.fc17.x86_64.

OK.  Thanks for letting us know.


Note You need to log in before you can comment on or make changes to this bug.