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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
The indicator is yellow when the battery is on charge and fully charged.
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.
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?
It's "Discharging".
"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.
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
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...
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.
Yes, it looks fixed. Thank you.