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

Phosh 0.28.0 wakes up screen because of suspend notification, and phone never suspend, killing battery life #79

Open
milkokr opened this issue Jun 7, 2023 · 0 comments

Comments

@milkokr
Copy link

milkokr commented Jun 7, 2023

With the Beta 33 from yesterday, the phone no longer suspends. The issue is that Phosh 0.28.0 now wakes up screen on notification, and for some reason a notification is sent that the phone is about to be suspended a minute or so before the suspend. The screen is woken up, which somehow cancels the suspend.

As a workaround, disabling the notifications for urgency of critical fixes the issue, and the phone suspends again.

gsettings set sm.puri.phosh.notifications wakeup-screen-triggers "['category']"
gsettings set sm.puri.phosh.notifications wakeup-screen-categories "['x-gnome.clock.alarm', 'im']"

(The default wakeup-screen-triggers are ['urgency'], and the urgencies contain ['critical'], which my workaround does not touch)

This shouldn't happen.
Either there should not be such notification (it had been problematic even before that change, since the blue LED makes one wake up the phone to see what the notification is)
Or the notification for suspending should be ignored by phosh explicitly. This solution would make it an upstream phosh issue, but I didn't report it there, because I have no clue who and why is sending this notification, and whether it exists on other operating systems, thereby I don't know if they can do anything about it without knowing this information.

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

No branches or pull requests

1 participant