Bug 461930 - Battery Indicator shows Brightness applet instead of battery when one battery out of several is marked as missing
Summary: Battery Indicator shows Brightness applet instead of battery when one battery...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (show other bugs)
Version: 5.26.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-17 02:13 UTC by David Greengas
Modified: 2024-12-18 21:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Greengas 2022-11-17 02:13:38 UTC
SUMMARY
The battery indicator applet shows that no battery is present (only brightness indicator per 5.26 design) even though a batter is present.

I typically notice this on resume.

STEPS TO REPRODUCE
1. Suspend to Ram
2. Resume
3. Icon incorrect

OBSERVED RESULT

Brightness icon shows

EXPECTED RESULT

Battery icon shows

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1195G7 @ 2.90GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: HP
Product Name: HP Spectre x360 Convertible 14t-ea100

ADDITIONAL INFORMATION

I think device /org/freedesktop/UPower/devices/battery_hid_0018o04F3o2BF1x0006_battery is causing the issue because it returns as missing.

output from upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          ADP1
  power supply:         yes
  updated:              Wed 16 Nov 2022 07:11:40 PM CST (3240 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:               HP
  model:                Primary
  serial:               SerialNumber
  power supply:         yes
  updated:              Wed 16 Nov 2022 08:05:31 PM CST (9 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              46.269 Wh
    energy-empty:        0 Wh
    energy-full:         63.109 Wh
    energy-full-design:  66.528 Wh
    energy-rate:         8.26988 W
    voltage:             8.004 V
    charge-cycles:       147
    time to empty:       5.6 hours
    percentage:          73%
    capacity:            94.8608%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (rate):
    1668650731  8.270   discharging
    1668650701  8.269   discharging
    1668650671  8.389   discharging
    1668650641  8.270   discharging

Device: /org/freedesktop/UPower/devices/battery_hid_0018o04F3o2BF1x0006_battery
  native-path:          hid-0018:04F3:2BF1.0006-battery
  model:                ELAN2514:00 04F3:2BF1
  power supply:         no
  updated:              Wed 31 Dec 1969 06:00:00 PM CST (1668650740 seconds ago)
  has history:          yes
  has statistics:       yes
  keyboard
    present:             yes
    rechargeable:        yes
    state:               unknown
    warning-level:       none
    percentage:          0%
    icon-name:          'battery-missing-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Wed 16 Nov 2022 08:05:31 PM CST (9 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              46.269 Wh
    energy-full:         63.109 Wh
    energy-rate:         8.26988 W
    charge-cycles:       N/A
    time to empty:       5.6 hours
    percentage:          73%
    icon-name:          'battery-full-symbolic'

Daemon:
  daemon-version:  1.90.0
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep
Comment 1 David Greengas 2022-12-07 13:37:44 UTC
I want to add additional context on repeating it since I went a long time between sleep and wake and did not see the issue. Just recently, I plugged my computer into a thunderbolt dock while the lid was closed. When I opened the lid, the battery icon was gone and I had just the brightness icon. Since that time, I removed it from the dock and the brightness icon remained. I put the computer to sleep and resumed and the brightness icon remained.

I can also try with the laptop lid opened first before plugging into the dock to see if that also causes the issue. I have done many power cycles with a regular charger in the past and did not see the issue repeat. It appears to be related to plugging the laptop into a thunderbolt dock.
Comment 2 Nate Graham 2024-12-18 21:23:50 UTC
This should be fixed in Plasma 6 now with the split widgets.