Name: sailfishos-notification-preview-high-cpu-usage-patch
Display name: Notification preview with buttons cause constant cpu usage
Author: elros34
Updated at: March 16, 2025, 10:01 a.m.
Description: Somehow prevents constant cpu usage bug to appear after notification preview with additional actions (buttons) is shown and hidden. In sfos 3.4 notification window was probably destroyed instead hidden like in >= 4.0.1. Issue can be triggered by taking screenshot and probably by some other notifications with additional actions.
Basically patch removes opacity Animator which somehow keeps qml code being executed infinitely and drain battery after notification preview window is hidden.
Problem can vary between devices maybe because of different dynamic cpu frequency management. On some it's constant ~15% cpu usage from lipstick when you check htop on pc right after notification with additional buttons is dismissed. On others like Jolla C2 it's very low constant cpu usage like ~2%. This constant cpu usage can be compared to situation when notification is expanded or some other regular notification is shown and hidden and all looks sane.
strace -f p <pid of lipstick> on pc shows flood of ppoll when issue occurs.
Rating: 1
Total activations: 270
Files:
Version: 0.0.2
Compatible: 5.0.0.61
Uploaded at: March 16, 2025, 10:01 a.m.
Activations: 23
Changelog:
documents/elros34-sailfishos-notification-preview-high-cpu-usage-patch-0.0.2.tar.gz
Version: 0.0.1
Compatible: 4.0.1.45, 4.0.1.48, 4.1.0.24, 4.2.0.19, 4.2.0.21, 4.3.0.12, 4.3.0.15, 4.4.0.58, 4.4.0.64, 4.4.0.68
Uploaded at: July 5, 2021, 10:22 a.m.
Activations: 247
Changelog:
documents/elros34-sailfishos-notification-preview-high-cpu-usage-patch-0.0.1.tar.gz