And to follow up on this, lipstick itself also suffers this problem from time to time. The trigger is unknown. Result of strace -c
for lipstick:
[root@XperiaXA2 defaultuser]# time strace -p 20613 -c
strace: Process 20613 attached
^Cstrace: Process 20613 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
78.88 0.351000 206 1702 7 poll
16.18 0.072000 10 6789 clock_gettime
4.72 0.021000 12 1703 epoll_wait
0.22 0.001000 125 8 restart_syscall
0.00 0.000000 0 6 read
------ ----------- ----------- --------- --------- ----------------
100.00 0.445000 43 10208 7 total
Command terminated by signal 2
real 1m 58.88s
user 0m 0.18s
sys 0m 1.15s
Is this method useless, or does lipstick (and voicecall-ui) indeed do a lot of clock_gettime
for some reason? Can anyone confirm? Something else I can try?
Again, a few percent cpu usage on one core might not seem a lot, but it amounts to (I guestimate) 1%-2% battery usage per hour.