Menu

#720 battery indicator becomes yellow on 100%.

None
closed-fixed
nobody
lxpanel (297)
5
2015-05-02
2014-12-21
No

When the battery is fully charged, the indicator becomes yellow.

I have a Pegatron battery.

1 Attachments

Discussion

  • Raimar Bühmann

    Raimar Bühmann - 2015-01-15

    Currently two colors 1 and 2 can be configured for loading and discharging in the settings menu of the battery plug-in. The default behavior uses yellow to indicate discharging. Try to change the colors for your needs.

     
  • Anton Tsyganenko

    The indicator is yellow when the battery is on charge and fully charged.

     
  • Raimar Bühmann

    Raimar Bühmann - 2015-01-17

    Ok, you mean: If battery becomes 100% while power stays plugged in, the color switches from green to yellow.
    With LXPanel 0.8.0 the status "Akku: 100% geladen, 0:00 verbleiben" is shown by moving mouse on my green battery area. After removing power "Akku: 100%" with yellow battery area is shown.

     
  • Henry Gebhardt

    Henry Gebhardt - 2015-01-25

    Thank you for the report. Can you post the contents of the file '/sys/class/power_supply/BAT0/status' when the battery is fully charged?

     
  • Anton Tsyganenko

    It's "Discharging".

     
    • Henry Gebhardt

      Henry Gebhardt - 2015-01-26

      "Discharging?" That is the problem right there. lxpanel uses the information in the file /sys/class/power_supply/BAT0/status to determine the state of the battery. "Discharging" means yellow.

      It is either a hardware, firmware, or kernel problem.

      The output from "upower -d" would be interesting to figure out the right course of action. Please post it here. upower might have heuristics to detect these kinds of problems.

       
  • Anton Tsyganenko

    output of upower -d:

    Device: /org/freedesktop/UPower/devices/line_power_AC0
    native-path: AC0
    power supply: yes
    updated: Mon 26 Jan 2015 03:05:16 PM MSK (0 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_BAT0
    native-path: BAT0
    vendor: PEGA
    model: B34Y-30
    power supply: yes
    updated: Mon 26 Jan 2015 03:05:16 PM MSK (0 seconds ago)
    has history: yes
    has statistics: yes
    battery
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: none
    energy: 42.915 Wh
    energy-empty: 0 Wh
    energy-full: 43.62 Wh
    energy-full-design: 45 Wh
    energy-rate: 0 W
    voltage: 17.181 V
    percentage: 98%
    capacity: 96.9333%
    technology: lithium-ion
    icon-name: 'battery-full-symbolic'
    History (charge):
    1422273916 0.000 unknown
    History (rate):
    1422273916 0.000 unknown

    Device: /org/freedesktop/UPower/devices/DisplayDevice
    power supply: yes
    updated: Mon 26 Jan 2015 03:05:16 PM MSK (0 seconds ago)
    has history: no
    has statistics: no
    battery
    present: yes
    state: discharging
    warning-level: none
    energy: 42.915 Wh
    energy-full: 43.62 Wh
    energy-rate: 0 W
    percentage: 98%
    icon-name: 'battery-full-symbolic'

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

     
    • Henry Gebhardt

      Henry Gebhardt - 2015-02-11

      Sorry for the late response. Real-life got in the way.

      So I think we should use the current discharge rate (which is 0 in your case) as part of the status. Whether you want to investigate why the kernel reports that it is discharging, is up to you. Might be a good opportunity to get started in linux hacking...

       
  • Lonely Stranger

    Lonely Stranger - 2015-05-02

    I believe this issue is completely fixed in current GIT sources repository. Test it when possible, please, and report back if something is still wrong. Thank you very much.

     
  • Lonely Stranger

    Lonely Stranger - 2015-05-02
    • labels: lxpanel, battery --> lxpanel
    • status: open --> pending-fixed
    • Group: -->
     
  • Anton Tsyganenko

    Yes, it looks fixed. Thank you.

     
  • Lonely Stranger

    Lonely Stranger - 2015-05-02
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.