PINE64
Notification light when entering low power - 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: Notification light when entering low power (/showthread.php?tid=15089)



Notification light when entering low power - Barugon - 10-13-2021

I get a flashing notification light when the phone is entering low power mode. This is something that I absolutely don't want as it prompts me to wake the phone up to see what the notification is. Is there a way to prevent this?


RE: Notification light when entering low power - bcnaz - 10-13-2021

Under Settings > Notifications....

You can pick all applications or ..... just the ones you do want.


RE: Notification light when entering low power - kqlnut - 10-13-2021

It's a Gnome notification, but I don't think it's possible yet to disable it just like that. Here is an old bug report about this issue.


RE: Notification light when entering low power - Barugon - 10-14-2021

Thanks for the link. Hopefully it gets fixed soon.


RE: Notification light when entering low power - DrPlamsa - 11-19-2021

Did this ever get addressed? I speculate that you can use gdbus to catch the notification and kill it before it causes the blue light to flash. My solution would follow this vague outline:
A script watches dbus-monitor for a method call of Notify
The script matches whatever power notification I want to auto-dismiss
The script notes the serial of this method
The script watches for a subsequent line with that reply_serial
The script notes the returned quantity, the notification ID
The script calls CloseNotification on that notification ID (see suspend-wake notes for example syntax)

Find out what notification it is:
dbus-monitor --session "interface=org.freedesktop.Notifications" >> ~/Desktop/MyNotificationLog.txt

I'd log the dbus-monitor to a log file:
dbus-monitor --session >> ~/Desktop/MyNotificationLog.txt
When the blue light comes on I'd do a grep on that file and look for where it matches that notification:
grep ~/Desktop/MyNotificationLog.txt -e "interface=org.freedesktop.Notifications; member=Notify" -A4
If the last line says the text of the notification, I'd make note of the serial=N1 number. I'd do a grep
grep ~/Desktop/MyNotificationLog.txt -e "reply_serial=N1 " -A1
I'd make a note of the return quantity, unit32 N2, and do:
gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.CloseNotification N2


RE: Notification light when entering low power - beta-user - 11-22-2021

I still get this annoying notification light on Mobian every day. It's disappointing that such important issues take so many months to solve. Sometimes I wonder if any Phosh developers ever test their software.