MacBook Pro battery status display in KDE

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

MacBook Pro battery status display in KDE

Postby daniewicz » Jul 26th, '16, 20:56

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?
Last edited by doktor5000 on Jul 27th, '16, 15:46, edited 1 time in total.
Reason: adjusted thread title
The dude abides.
User avatar
daniewicz
 
Posts: 224
Joined: Feb 10th, '13, 03:37

Re: battery status

Postby doktor5000 » Jul 27th, '16, 15:46

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/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MacBook Pro battery status display in KDE

Postby daniewicz » Jul 27th, '16, 16:45

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.
The dude abides.
User avatar
daniewicz
 
Posts: 224
Joined: Feb 10th, '13, 03:37

Re: MacBook Pro battery status display in KDE

Postby doktor5000 » Jul 27th, '16, 16:56

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MacBook Pro battery status display in KDE

Postby daniewicz » Jul 27th, '16, 17:12

78%
The dude abides.
User avatar
daniewicz
 
Posts: 224
Joined: Feb 10th, '13, 03:37

Re: MacBook Pro battery status display in KDE

Postby doktor5000 » Jul 28th, '16, 18:28

So it seems to display correctly.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MacBook Pro battery status display in KDE

Postby daniewicz » Jul 29th, '16, 20:30

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
The dude abides.
User avatar
daniewicz
 
Posts: 224
Joined: Feb 10th, '13, 03:37


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest