Bug 493077

Summary: Wrong name for built-in laptop battery
Product: [Plasma] plasmashell Reporter: Iyán M. V. <me>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: justin, kde, natalie_clarius
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot power applet

Description Iyán M. V. 2024-09-13 18:29:43 UTC
Created attachment 173633 [details]
Screenshot power applet

SUMMARY

After updating to Plasma 6.2 Beta, in the Power and Battery applet, the laptop's battery is now named as "Battery 2", although there is no Battery 1 or any other battery at all.

STEPS TO REPRODUCE
1. Open Power and Battery applet

OBSERVED RESULT
Misleading name

EXPECTED RESULT
Use same name as as in Plasma < 6.2

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.5.0
Qt Version: 6.8.0
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 22 × Intel® Core™ Ultra 7 155H
Memory: 30.9 GiB of RAM
Graphics Processor: Mesa Intel® Arc
Manufacturer: LENOVO
Product Name: 21KDS00600
System Version: ThinkPad X1 Carbon Gen 12
Comment 1 Justin Zobel 2024-09-16 18:18:49 UTC
I can't reproduce this on git master, can you please check to see if the battery ID changed in your system?

You can get this by running:

upower -d | grep BAT
Comment 2 Iyán M. V. 2024-09-23 18:24:27 UTC
I cannot reproduce anymore, and the only thing that I think changed from where I noticed it was updating Frameworks to 6.6.0. In any case, closing :)