Bug 461602 - Notification of battery level for bluetooth device shows different value than is visible in Bluetooth plasmoid
Summary: Notification of battery level for bluetooth device shows different value than...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Bluetooth widget (other bugs)
Version First Reported In: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 478569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-11-08 18:13 UTC by Piotr Mierzwinski
Modified: 2024-12-17 21:08 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Notification_low_batery_levelo-for-blutethooth_device (130.26 KB, image/png)
2022-11-08 18:13 UTC, Piotr Mierzwinski
Details
bluetooth_battery_level_60% (110.80 KB, image/png)
2022-11-08 18:14 UTC, Piotr Mierzwinski
Details
upower -d (3.11 KB, text/plain)
2022-11-09 00:38 UTC, Piotr Mierzwinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2022-11-08 18:13:20 UTC
Created attachment 153595 [details]
Notification_low_batery_levelo-for-blutethooth_device

SUMMARY
Couple days ago after I connected my bluetooth device (headset ATH-ANC900BT) I got notification about low level of battery (10%). I checked in Bluetooth plasmoid and found value 60%. After that every time I saw this notification I ignored it and relied only on information presented in Bluetooth plasmoid. Seems notification gets information about low level of battery from different place or in different way than Bluetooth plasmoid.

Please notice in my configuration there is  turned on option "Enables experimental features and interfaces" - file /etc/bluetooth/main.conf to get  battery level.

STEPS TO REPRODUCE
1. Connect bluetooth headset which exhibits battery level
2. Pay attention on notification shown after connection will finishes with success
3. Check also Bluetooth plasmoid clicking in proper icon in TaskBar

OBSERVED RESULT
Discrepancy in notification and Bluetooth plasmoid for battery level

EXPECTED RESULT
Don't show notification in battery level until battery level will be 10% or less

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.15
(I guessed values due to KInfoCenter and System settings crash)

ADDITIONAL INFORMATION
$ cat /etc/lsb-release 
DISTRIB_ID=neon
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="KDE neon Unstable Edition"
Comment 1 Piotr Mierzwinski 2022-11-08 18:14:14 UTC
Created attachment 153596 [details]
bluetooth_battery_level_60%
Comment 2 Nicolas Fella 2022-11-08 20:20:42 UTC
Please post the output of "upower -d"
Comment 3 Piotr Mierzwinski 2022-11-09 00:38:52 UTC
Created attachment 153608 [details]
upower -d

I run command "upower -d" in moment my headset is connected. In this moment battery level is 100% (shown by bluetooth plasmoid).
Comment 4 Nicolas Fella 2022-11-09 01:03:44 UTC
The value in the bluetooth applet comes directly from bluez. The value in the battery applet and the low battery notification come from upower (which in turn gets it from bluez). It could well be that those two report different values sometimes
Comment 5 Piotr Mierzwinski 2022-11-09 19:31:05 UTC
(In reply to Nicolas Fella from comment #4)
> The value in the bluetooth applet comes directly from bluez. The value in
> the battery applet and the low battery notification come from upower (which
> in turn gets it from bluez). It could well be that those two report
> different values sometimes

Anyway, seems more reliable is value coming from bluez what is reported by bluetoot appliet, so would be good to eliminate discrepancy I reported to avoid misleading information
Comment 6 Piotr Mierzwinski 2022-11-15 11:17:04 UTC
Battery level decreased to 80%. Again I receive notification about low battery (because level 10%) what for sure is not truth.
Comment 7 Nate Graham 2023-12-20 23:35:31 UTC
*** Bug 478569 has been marked as a duplicate of this bug. ***
Comment 8 Justin Zobel 2024-05-11 11:09:45 UTC
Still an issue in Plasma 6 built from git master.

Powerdevil even shows two entries for my Bluetooth mouse with different values 50% and 55% with slightly different names.

Whereas the Bluetooth applet and KCM show 100%.