Bug 428956

Summary: Show label in Plasma Bluetooth scanning for devices that only have a MAC addresses, not names
Product: [Plasma] plasmashell Reporter: Daniel Duris <kdebugs>
Component: Bluetooth in generalAssignee: David Rosca <nowrep>
Status: CONFIRMED ---    
Severity: wishlist CC: bugs.kde, justin.zobel, justin, kde, kdedev, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: system info

Description Daniel Duris 2020-11-11 09:31:07 UTC
Created attachment 133219 [details]
system info

SUMMARY
Unable to pair due to unknown mac address and no names are shown.

STEPS TO REPRODUCE
1. Enable bluetooth scan
2. Bluetooth scanning showing only MAC addresses for 90% of devices, only a few are shows names
3. Unable to choose the correct device (I don't know the MAC address and I shouldn't have to know anyway) + scanning orders items randomly and moves them when randomly around, e.g. no way of user ordering (by name etc.)

This ised to work on previous KDE / Plasma without issue.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2020-11-11 23:46:56 UTC
Can you run against the relevant command line tools

(probably bluetoothctl then "scan on")

and compare that against against what we see in the UI.

We want to narrow down whether it's an issue on the KDE side or upstream
Comment 2 Daniel Duris 2020-11-12 16:16:29 UTC
I am now somewhere else, where there are not so many devices, but getting this:
bluetoothctl scan on
Discovery started
[CHG] Controller XXXXXXXXXXXXXX Discovering: yes
[NEW] Device 69:37:D2:D8:CB:XX 69-37-D2-D8-CB-XX
[NEW] Device 65:57:D9:CB:D5:XX 65-57-D9-CB-D5-XX
Comment 3 Justin Zobel 2020-11-12 21:20:55 UTC
(In reply to Dan Duris from comment #2)
> I am now somewhere else, where there are not so many devices, but getting
> this:
> bluetoothctl scan on
> Discovery started
> [CHG] Controller XXXXXXXXXXXXXX Discovering: yes
> [NEW] Device 69:37:D2:D8:CB:XX 69-37-D2-D8-CB-XX
> [NEW] Device 65:57:D9:CB:D5:XX 65-57-D9-CB-D5-XX

It's possible they're generic devices that don't have information registered in the bluetooth MAC address databases.

I get the following when I set my bluetooth mouse and phone to visible:
Device 34:88:5D:59:A7:E8 Bluetooth Mouse M336/M337/M535
Device 58:CB:52:98:96:93 Justin Pixel

I put the MAC addresses in macaddresschanger.com/bluetooth-mac-lookup/ and they come up with the names of the manufacturers.

Try your devices in there and see if they come up with info.
Comment 4 Daniel Duris 2020-12-23 10:55:48 UTC
I see the same (unindentified) device in bluetoothctl as in UI.
Comment 5 Daniel Duris 2020-12-23 10:57:27 UTC
Sorry, that should read "devices". Plenty of them, all of them unindentified, just MAC addresses shown.
Comment 6 TraceyC 2025-05-29 21:05:37 UTC
I'm not able to reproduce a bug this on git-master, using a laptop with Bluetooth. Scanning for nearby devices, I do see some are resolved from MAC address to device name (.e.g. LG webOS TV), the same ones that appear to be resolvable on my phone.

I did a little more analysis using an application called toolBLEx.
For each bluetooth device it can detect, it shows an address and an Advertised Name
For any device with an Advertised Name different from the address, I saw that name in Add Bluetooth Device

Can you see if you can still reproduce this with Plasma 6.3.5 or later? If you can, please set this back to REPORTED. Thanks!
Comment 7 Justin Zobel 2025-05-29 23:49:06 UTC
I still see generic MAC address items in Plasma from git master. I think maybe we need to prefix items where the manufacturer/advertised name is unknown. Like "Unknown Device (MAC: $MAChere)"
Comment 8 TraceyC 2025-05-30 16:04:36 UTC
That's a good suggestion. It seems like things are working as designed, but I agree it's not ideal to just display a list of MAC addressed with no human useful information. 

So the actionable thing here would be to add human useful information that can be gotten from the bt subsystem, like manufacturer, and UNKNOWN or similar as Justin suggested