PINE64
System won't suspend due to suspention notification - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: System won't suspend due to suspention notification (/showthread.php?tid=18719)



System won't suspend due to suspention notification - user641 - 09-18-2023

So after the recent upgrades I notice that the screen goes black and there's the blue led blinking as where there is a notification, the notification is that the system will suspend soon, and it keeps bringing the lockscreen every few minutes without going into suspend....and it's eating my battery fast. Anyone else noticed that?


RE: System won't suspend due to suspention notification - alaraajavamma - 09-18-2023

(09-18-2023, 12:21 PM)user641 Wrote: So after the recent upgrades I notice that the screen goes black and there's the blue led blinking as where there is a notification, the notification is that the system will suspend soon, and it keeps bringing the lockscreen every few minutes without going into suspend....and it's eating my battery fast. Anyone else noticed that?

Phosh did add option for notifications that they can wake up display.
Unfortunately suspend notification is one of those "critical" notification which will wake display.

Fix is simple. Write this to terminal
Code:
gsettings set sm.puri.phosh.notifications wakeup-screen-triggers '[]'

And press enter


RE: System won't suspend due to suspention notification - user641 - 09-18-2023

(09-18-2023, 03:05 PM)alaraajavamma Wrote:
(09-18-2023, 12:21 PM)user641 Wrote: So after the recent upgrades I notice that the screen goes black and there's the blue led blinking as where there is a notification, the notification is that the system will suspend soon, and it keeps bringing the lockscreen every few minutes without going into suspend....and it's eating my battery fast. Anyone else noticed that?

Phosh did add option for notifications that they can wake up display.
Unfortunately suspend notification is one of those "critical" notification which will wake display.

Fix is simple. Write this to terminal
Code:
gsettings set sm.puri.phosh.notifications wakeup-screen-triggers '[]'

And press enter

so, this command turns off all notifications?


RE: System won't suspend due to suspention notification - alaraajavamma - 09-19-2023

(09-18-2023, 06:19 PM)user641 Wrote: so, this command turns off all notifications?

No it only disables ability to wake the screen (which will prevent suspend)
So you will still get sound and vibration. And calls and sms will still wake the screen.


RE: System won't suspend due to suspention notification - user641 - 09-20-2023

(09-19-2023, 05:26 AM)alaraajavamma Wrote:
(09-18-2023, 06:19 PM)user641 Wrote: so, this command turns off all notifications?

No it only disables ability to wake the screen (which will prevent suspend)
So you will still get sound and vibration. And calls and sms will still wake the screen.

I did that command, how to undo it if I want?
Also those are good features, but they eat the battery.


RE: System won't suspend due to suspention notification - whackx - 09-24-2023

(09-20-2023, 12:55 PM)user641 Wrote:
(09-19-2023, 05:26 AM)alaraajavamma Wrote:
(09-18-2023, 06:19 PM)user641 Wrote: so, this command turns off all notifications?

No it only disables ability to wake the screen (which will prevent suspend)
So you will still get sound and vibration. And calls and sms will still wake the screen.

I did that command, how to undo it if I want?
Also those are good features, but they eat the battery.

you can get the current list of settings via

Code:
gsettings get sm.puri.phosh.notifications wakeup-screen-triggers

So, in my case there was only one setting which was ['urgency'] . To set this option again you can execute the following command
Code:
gsettings set sm.puri.phosh.notifications wakeup-screen-triggers "['urgency']"



RE: System won't suspend due to suspention notification - user641 - 09-24-2023

(09-24-2023, 03:52 AM)whackx Wrote:
(09-20-2023, 12:55 PM)user641 Wrote:
(09-19-2023, 05:26 AM)alaraajavamma Wrote:
(09-18-2023, 06:19 PM)user641 Wrote: so, this command turns off all notifications?

No it only disables ability to wake the screen (which will prevent suspend)
So you will still get sound and vibration. And calls and sms will still wake the screen.

I did that command, how to undo it if I want?
Also those are good features, but they eat the battery.

you can get the current list of settings via

Code:
gsettings get sm.puri.phosh.notifications wakeup-screen-triggers

So, in my case there was only one setting which was ['urgency'] . To set this option again you can execute the following command
Code:
gsettings set sm.puri.phosh.notifications wakeup-screen-triggers "['urgency']"
Thanks so much for the rich info.