← Back to team overview

desktop-packages team mailing list archive

[Bug 1153488] Re: Treats bluetooth input device batteries as batteries

 

Same/similar issue here on 15.04 with a Mad Catz Mouse and a laptop. The
icon in the notification bar averages both the mouse and the laptop
batteries in order to show one (1) laptop battery value.

If I open the Power Statistics screen, both batteries are listed as
laptop batteries.

$ uname -a
Linux sidamo 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              di 23 jun 2015 16:30:49 CEST (1061 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               SONY Corp.
  model:                VGP-BPS41
  serial:               569
  power supply:         yes
  updated:              di 23 jun 2015 16:46:49 CEST (101 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              4,34 Wh
    energy-empty:        0 Wh
    energy-full:         36,23 Wh
    energy-full-design:  36,23 Wh
    energy-rate:         16,07 W
    voltage:             3,619 V
    time to full:        2,0 hours
    percentage:          11%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-low-charging-symbolic'
  History (charge):
    1435070809	11,000	charging
  History (rate):
    1435070809	16,070	charging

Device: /org/freedesktop/UPower/devices/battery_hid_00o15o9eof8o18o0a_battery
  native-path:          hid-00:15:9e:f8:18:0a-battery
  model:                Mad Catz Office R.A.T.M
  power supply:         no
  updated:              di 23 jun 2015 16:48:13 CEST (17 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       low
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    percentage:          9%
    capacity:            100%
    icon-name:          'battery-caution-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              di 23 jun 2015 16:46:49 CEST (101 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              4,34 Wh
    energy-full:         36,23 Wh
    energy-rate:         16,07 W
    time to full:        2,0 hours
    percentage:          11%
    icon-name:          'battery-low-charging-symbolic'

Daemon:
  daemon-version:  0.99.2
  on-battery:      no
  lid-is-closed:   yes
  lid-is-present:  yes
  critical-action: PowerOff

$ sudo grep -r . /sys/class/power_supply/*hid*
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/type:Battery
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/control:auto
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/async:disabled
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_abort_count:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_active:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_total_time_ms:69
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_active_count:1
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_enabled:disabled
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_active_kids:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_active_time:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_max_time_ms:69
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_count:1
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_last_time_ms:39944
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup:enabled
grep: /sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/autosuspend_delay_ms: Input/output error
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_status:unsupported
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_usage:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/wakeup_expire_count:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/power/runtime_suspended_time:0
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/scope:Device
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/capacity:9
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/online:1
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/status:Discharging
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_NAME=hid-00:15:9e:f8:18:0a-battery
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_CAPACITY=9
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_MODEL_NAME=Mad Catz Office R.A.T.M
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/uevent:POWER_SUPPLY_SCOPE=Device
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/model_name:Mad Catz Office R.A.T.M
/sys/class/power_supply/hid-00:15:9e:f8:18:0a-battery/present:1

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  Treats bluetooth input device batteries as batteries

Status in gnome-power-manager package in Ubuntu:
  Invalid
Status in upower package in Ubuntu:
  Fix Released
Status in gnome-power-manager source package in Precise:
  Invalid
Status in upower source package in Precise:
  Fix Released
Status in gnome-power-manager source package in Quantal:
  Invalid
Status in upower source package in Quantal:
  Won't Fix
Status in gnome-power-manager source package in Raring:
  Invalid
Status in upower source package in Raring:
  Fix Released
Status in gnome-power-manager source package in Saucy:
  Invalid
Status in upower source package in Saucy:
  Fix Released

Bug description:
  [Impact]

   * There are many Bluetooth devices with battery information inside.
  When they are treated as system battery, it will make the system
  poweroff/suspend/hibernate when some Bluetooth device has critical low
  battery. It is a very annoying behavior for the users. Originally,
  there is no such Bluetooth battery information until Ubuntu 12.04
  brings linux-quantal-lts and linux-raring-lts, so those linux kernels
  also bring this issue.

  [Test Case]

   * Pair some Bluetooth devices, such as Apple Wireless Mouse or Apple Wireless Keyboard.
   * Click the power indicator and you can find Apple Wireless Mouse is listed as system battery, and there is no Apple Wireless Keyboard. If you open gnome-power-statistics, you can find the 'Supply' field of Apple Wireless Mouse is 'Yes' but it should not be.

  [Regression Potential]

   * There is no obvious regression as I know.

  [Other Info]

   * Most patches are from upstream, modified to fix the conflicts, and made by the same developer (i.e. fourdollars).
   * We need another patch from https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d0a934b764c67b4bf626f5b7cf725a6e3066afd2 to make Apple Wireless Keyboard showing.

  [Original Bug Description]

  This is a weird one... the system is an HP Pavilion 23 All In One and
  is powered by a large power supply brick.

  I currently have an Apple Magic Mouse connected via Bluetooth.  As
  soon as the mouse is connected, the Battery indicator shows up and
  clicking on that shows that the system is reading my mouse as a
  battery!

  See the attached screen shot for what I see in the Power status.

  Looking at hcitool:
  ubuntu@201206-11396:~$ hcitool dev
  Devices:
   hci0	9C:B7:0D:80:71:DB

  To make matters even more weird, I actually observed the battery
  indicator go from full to "Critically Low" and the system suspended
  itself.  Keep in mind, again, that this system has NO battery, it's
  reading my bluetooth mouse as a battery device.

  I disconnected the magic mouse and the battery indicator went to Empty
  Red outline and status showed Battery Disconnected.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: linux-image-3.5.0-23-generic 3.5.0-23.35~precise1
  ProcVersionSignature: Ubuntu 3.5.0-23.35~precise1-generic 3.5.7.2
  Uname: Linux 3.5.0-23-generic x86_64
  NonfreeKernelModules: wl fglrx
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.25.
  AplayDevices:
   **** List of PLAYBACK Hardware Devices ****
   card 0: Generic [HD-Audio Generic], device 0: ALC269VC Analog [ALC269VC Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  ApportVersion: 2.0.1-0ubuntu17.1
  Architecture: amd64
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: Generic [HD-Audio Generic], device 0: ALC269VC Analog [ALC269VC Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  ubuntu     1726 F.... pulseaudio
  Card0.Amixer.info:
   Card hw:0 'Generic'/'HD-Audio Generic at 0xfeb40000 irq 16'
     Mixer name	: 'Realtek ALC269VC'
     Components	: 'HDA:10ec0269,103c2aee,00100202'
     Controls      : 21
     Simple ctrls  : 10
  Date: Mon Mar 11 03:54:36 2013
  HibernationDevice: RESUME=UUID=ccd7a21f-7a71-4fa5-b95d-e2898c3dae24
  InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
  MachineType: Hewlett-Packard a654
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 VESA VGA
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-23-generic root=UUID=e2a5f4ae-dfa2-40be-a6c5-3ddb85dcf68e ro quiet splash initcall_debug vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.5.0-23-generic N/A
   linux-backports-modules-3.5.0-23-generic  N/A
   linux-firmware                            1.79.1
  SourcePackage: linux
  StagingDrivers: rts_pstor
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/24/2012
  dmi.bios.vendor: AMI
  dmi.bios.version: 8.08
  dmi.board.name: 2AEE
  dmi.board.vendor: PEGATRON CORPORATION
  dmi.board.version: 1.03
  dmi.chassis.type: 3
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnAMI:bvr8.08:bd08/24/2012:svnHewlett-Packard:pna654:pvr:rvnPEGATRONCORPORATION:rn2AEE:rvr1.03:cvnHewlett-Packard:ct3:cvr:
  dmi.product.name: a654
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions