unity8 polling clock continually while display blanked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity8 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
With phone screen off, do:
sudo strace -p `pidof unity8`
and observe continual messages like:
poll([{fd=3, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}, {fd=56, events=POLLIN}, {fd=59, events=POLLIN}, {fd=66, events=POLLIN}, {fd=67, events=POLLIN}, {fd=72, events=POLLIN}, {fd=84, events=POLLIN}, {fd=92, events=POLLIN}, {fd=97, events=POLLIN}], 11, 0) = 1 ([{fd=3, revents=POLLIN}])
clock_gettime(
poll([{fd=3, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}, {fd=56, events=POLLIN}, {fd=59, events=POLLIN}, {fd=66, events=POLLIN}, {fd=67, events=POLLIN}, {fd=72, events=POLLIN}, {fd=84, events=POLLIN}, {fd=92, events=POLLIN}, {fd=97, events=POLLIN}], 11, 138) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16) = 8
clock_gettime(
clock_gettime(
poll([{fd=3, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}, {fd=56, events=POLLIN}, {fd=59, events=POLLIN}, {fd=66, events=POLLIN}, {fd=67, events=POLLIN}, {fd=72, events=POLLIN}, {fd=84, events=POLLIN}, {fd=92, events=POLLIN}, {fd=97, events=POLLIN}], 11, 132) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16) = 8
clock_gettime(
clock_gettime(
poll([{fd=3, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}, {fd=56, events=POLLIN}, {fd=59, events=POLLIN}, {fd=66, events=POLLIN}, {fd=67, events=POLLIN}, {fd=72, events=POLLIN}, {fd=84, events=POLLIN}, {fd=92, events=POLLIN}, {fd=97, events=POLLIN}], 11, 123) = 0 (Timeout)
It appears to be continually polling the clock, which is a waste of cycles.