https://bugs.kde.org/show_bug.cgi?id=449036
Bug ID: 449036 Summary: Displayed name of a Bluetooth device's battery is an HID name, not the alias which you can set in preferences Product: plasmashell Version: master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Battery Monitor Assignee: plasma-b...@kde.org Reporter: m...@ratijas.tk CC: k...@privat.broulik.de, m...@ratijas.tk Target Milestone: 1.0 Created attachment 145820 --> https://bugs.kde.org/attachment.cgi?id=145820&action=edit KDE Bluetooth - apple magic keyboard's names SUMMARY Either this product/component or it should go into powerdevil/frameworks-solid/bluedevil. Apple Magic Keyboard is a Bluetooth-only device, and after pairing with a Linux system (either desktop or Android) it can be renamed in system/Bluetooth settings. Such renaming apparently only affects the operating system; while the device continues to identify itself as before (in my case it's supposedly the name of its previous owner -- I got a second-hand keyboard after all). It is said[1] that it can only be truly renamed from an OS X system, which I currently don't have at my disposal. Both names may be visible on screen at the same time e.g. if you expand the list item in a Bluetooth applet, or just request info from `bluetoothctl`: ❯ bluetoothctl info 90:**:**:**:**:CD Device 90:**:**:**:**:CD (public) Name: denis - клавиатура Alias: tragic keyboard Class: 0x00002540 Icon: input-keyboard Paired: yes Trusted: yes Blocked: no Connected: yes WakeAllowed: yes LegacyPairing: no UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) Modalias: usb:v05ACp0239d0050 The problem is that «Battery and Brightness» applet always displays the "Name" field, not a given "Alias". In the "powermanagement" Plasma data engine there are three naming fields per battery: - Vendor - Product - Pretty Name For instance, my laptop's battery is represented as > { Vendor: "ASUSTeK", Product: "ASUS Battery", "Pretty Name": "Battery" } but the poor tragic keyboard has both Product and Pretty Name equal to the same "device's remote name", even without vendor: > { Vendor: <empty>, Product: "denis - клавиатура", "Pretty Name": "denis - > клавиатура" } On a closer look into kernel objects at /sys/bus/usb/devices/... it seems that the name is coming from HID_NAME in uevent data. Vendor data could've been extracted from HID_ID (like USB VID), but it's just not happening. AFAICT there's no API to directly tell HID device to change its name, which is probably why the system is resorting to "local" aliases. STEPS TO REPRODUCE 1. Pair Appleⓡ Magic Keyboard™ with your system. 2. Rename it in System Settings. 3. Open up «Battery and Brightness» applet. OBSERVED RESULT You are seeing the "old" name, the HID name of a device. EXPECTED RESULT Since a proper renaming of this keyboard is not possible anywhere except on OS X, I'd at least expected to see an alias name in the applet. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.24.80 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.2 Kernel Version: 5.16.2-arch1-1 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2 bluez: 5.63-1 bluedevil: 1:5.23.5-1 ADDITIONAL INFORMATION [1]: https://discussions.apple.com/thread/250109852 -- You are receiving this mail because: You are watching all bug changes.