[arch-general] Why is clock_gettime called when the mouse moves?

Piscium groknok at gmail.com
Tue May 3 23:56:52 UTC 2022


I don't know what is the best place to ask the following question, if
here, in the Arch forums  (which ?) or in the X.org mailing list. I
will ask here first. I am open to suggestions.

I have two Arch desktops.

Desktop #1: MSI motherboard, Nvidia graphics with proprietary driver,
Xfce on top of openbox.
Desktop #2: Dell, Intel graphics, Xfce on top of openbox.

If I run
  strace <GUI app>
where <GUI app> could be for example Mousepad or Emacs, and move the
mouse I get lots of stuff in the trace in both desktops. In desktop #1
however most of trace consists of calls to clock_gettime. This seems
weird to me. In the excerpt below which shows both seconds and nano
seconds, in the same second there are lots of messages. Why? As far as
I know there is nothing wrong with the clock, and there is no special
X configuration, so why does one desktop shows calls to clock_gettime
and the other not? Any ideas?

clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338313354}) = 0
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9,
events=POLLIN}], 3, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338370693}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338397792}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338425239}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338452337}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338479505}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338506324}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338532794}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338559683}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338586432}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338617162}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338651035}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338686654}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338721993}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338762990}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338799447}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338836812}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338872989}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338909307}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338942411}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=338971326}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339001287}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339030900}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339061700}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339090335}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339122531}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339152283}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339181826}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339212696}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339243915}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339273527}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339305864}) = 0
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9,
events=POLLIN}], 3, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339372701}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339404270}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339436117}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339467196}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339498276}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339530402}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339562878}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339604015}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339639424}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339670364}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339701722}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339732871}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339764649}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339803620}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339835398}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339866337}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339897975}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339929683}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=36619, tv_nsec=339959715}) = 0


More information about the arch-general mailing list