Page 1 of 1

MacBook Pro battery status display in KDE

PostPosted: Jul 26th, '16, 20:56
by daniewicz
Running Mageia 5 on a MacBook Pro with KDE.

Code: Select all
# upower -i `upower -e | grep 'BAT'`
  native-path:          BAT0
  vendor:               DP
  model:                bq20z451
  power supply:         yes
  updated:              Tue 26 Jul 2016 01:49:43 PM CDT (85 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              35.0071 Wh
    energy-empty:        0 Wh
    energy-full:         49.7349 Wh
    energy-full-design:  59.6775 Wh
    energy-rate:         15.4285 W
    voltage:             11.532 V
    time to empty:       2.3 hours
    percentage:          59%
    temperature:         32.3 degrees C
    capacity:            83.3394%
    technology:          lithium-ion
    icon-name:          'battery-good-symbolic'
  History (charge): capacity
    1469558983  59.000  discharging
  History (rate):
    1469558983  15.429  discharging



The icon in the tray gives me the percentage 59% reported above. I would like for the icon to give me the capacity instead (83%). How can I do this?

Re: battery status

PostPosted: Jul 27th, '16, 15:46
by doktor5000
Take a look at https://blog.hanschen.org/2010/03/14/re ... or-widget/ to see what those values are set in your case. It's a pretty old post so probably not relevant anymore, as time remaining is displayed by default since a long time. Also check if you have showMultipleBatteries=true in the same section, see also https://bugs.kde.org/show_bug.cgi?id=290578 and https://bugs.kde.org/show_bug.cgi?id=318868

Also please add the complete output of upower -d

And I'd suggest to also ask that over in the KDE forums: https://forum.kde.org/

Re: MacBook Pro battery status display in KDE

PostPosted: Jul 27th, '16, 16:45
by daniewicz
Code: Select all
# upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          ADP1
  power supply:         yes
  updated:              Wed 27 Jul 2016 08:43:40 AM CDT (3500 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               DP
  model:                bq20z451
  power supply:         yes
  updated:              Wed 27 Jul 2016 09:41:08 AM CDT (52 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              46.5375 Wh
    energy-empty:        0 Wh
    energy-full:         49.494 Wh
    energy-full-design:  59.6775 Wh
    energy-rate:         16.7863 W
    voltage:             12.046 V
    time to empty:       2.8 hours
    percentage:          78%
    temperature:         27.6 degrees C
    capacity:            82.9358%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1469630468  78.000  discharging
  History (rate):
    1469630468  16.786  discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Wed 27 Jul 2016 09:41:08 AM CDT (52 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              46.5375 Wh
    energy-full:         49.494 Wh
    energy-rate:         16.7863 W
    time to empty:       2.8 hours
    percentage:          78%
    icon-name:          'battery-full-symbolic'

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


Also, I do not have showBatteryString or showMultipleBatteries in my plasma-desktop-appletsrc.

Re: MacBook Pro battery status display in KDE

PostPosted: Jul 27th, '16, 16:56
by doktor5000
Meanwhile, did it display 78% or 82% when you ran this? Also see the upstream bug report https://bugs.freedesktop.org/show_bug.cgi?id=60214 for more information, as this effected Macbook Pro too.

Re: MacBook Pro battery status display in KDE

PostPosted: Jul 27th, '16, 17:12
by daniewicz
78%

Re: MacBook Pro battery status display in KDE

PostPosted: Jul 28th, '16, 18:28
by doktor5000
So it seems to display correctly.

Re: MacBook Pro battery status display in KDE

PostPosted: Jul 29th, '16, 20:30
by daniewicz
Apologies. I errored with my last response. I icon is still displaying the wrong information. This wasn't the case when the laptop ran Mageia 3. I think what I am facing is described in this link:
http://linux.derkeiler.com/Mailing-List ... 00304.html