Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show a singly battery notifcation #2362

Merged
merged 1 commit into from
May 15, 2024

Conversation

cschramm
Copy link
Member

@cschramm cschramm commented May 9, 2024

From feedback in #2317 it became pretty clear that battery data is a mess with devices providing levels like full, medium, low and devices providing fine-grained percent values, flapping values etc. and we do not want to go into power management applet business, so we only show a single battery notification on connection (when the battery interface shows up or - if the interface is already present when the device connects - when the existing interface sends its first property update) and drop the reference to the connection notification to update so that further values do not lead to a notification. (In case people will ask for those notifications we might add them as a separate plugin that's disabled by default.)

Due to the great demand, I plan to backport this for 2.4.2, even though it's technically a regression.

Closes #2317

From feedback in blueman-project#2317 it became pretty clear that battery data is a mess with devices providing levels like full, medium, low and devices providing fine-grained percent values, flapping values etc. and we do not want to go into power management applet business, so we only show a single battery connection (when the battery interface shows up or - if the interface is already present when the device connects - when the existing interface sends its first property update) and drop the reference to the connection notification to update so that further values do not lead to a notification. (In case people will ask for those notifications we might add them as a separate plugin that's disabled by default.)

Due to the great demand, I plan to backport this for 2.4.2, even though it's technically a regression.

Closes blueman-project#2317
@cschramm cschramm requested a review from infirit May 9, 2024 21:00
Copy link

sonarcloud bot commented May 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@cschramm cschramm enabled auto-merge (rebase) May 9, 2024 21:01
@cschramm cschramm mentioned this pull request May 10, 2024
1 task
Copy link

@ouuan ouuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as expected for me (with Galaxy Buds 2).

@cschramm cschramm added this to the 2.4.2 milestone May 10, 2024
cschramm added a commit to cschramm/blueman that referenced this pull request May 10, 2024
Backport of blueman-project#2362 due to the great demand seen in blueman-project#2317. This is technically a regression, but the current behavior seems unacceptable in many cases, so let's pretend that we never intentionally added those additional notifications.

Closes blueman-project#2317
@cschramm cschramm merged commit 4602554 into blueman-project:main May 15, 2024
21 checks passed
infirit pushed a commit to cschramm/blueman that referenced this pull request May 15, 2024
Backport of blueman-project#2362 due to the great demand seen in blueman-project#2317. This is technically a regression, but the current behavior seems unacceptable in many cases, so let's pretend that we never intentionally added those additional notifications.

Closes blueman-project#2317
infirit pushed a commit to cschramm/blueman that referenced this pull request May 15, 2024
Backport of blueman-project#2362 due to the great demand seen in blueman-project#2317. This is technically a regression, but the current behavior seems unacceptable in many cases, so let's pretend that we never intentionally added those additional notifications.

Closes blueman-project#2317
cschramm added a commit that referenced this pull request May 15, 2024
Backport of #2362 due to the great demand seen in #2317. This is technically a regression, but the current behavior seems unacceptable in many cases, so let's pretend that we never intentionally added those additional notifications.

Closes #2317
@cschramm cschramm deleted the battery branch May 15, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annoying battery notifications
3 participants