Red Hat Bugzilla – Bug 77247
Problems with XFree86 after changing system clock
Last modified: 2007-04-18 12:48:08 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
XFree86-4.2.0: the keys do not repeat after changing system time backwards.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Change the system clock a coupel of minutes backwards using `date'.
2. The keys do not repeat any more under X before system time gets
to the point when the time was changed. On my laptop (ATI Rage
Mob.), the windows are also frozen (i.e., they can't be dragged).
I ran into this problem after suspending/resuming my laptop and
finally I figured out that the problem was caused by the
'hwclock' command in /etc/sysconfig/apm-scripts/apmscript
I believe that this bug is related to some timing functions
in XFree86 4.2.0
I probably don't need it, but just in case.... could you attach your
X server config file and log? It might come in handy perhaps while
Might this be because X events are timestamped? "Old" events would therefore
get ignored. I get the same problem when correcting the clock under a number
of different window managers (kwin, metacity, afterstep). Quick workaround is
to switch to another VT and back again. Just a thought.
Created attachment 83604 [details]
X server log file
Switching to a VT then back does not solve the problem.
I have attached my X config/log files.
Created attachment 83605 [details]
X config file
Created attachment 84104 [details]
This patch seems to solve my problem.
There is a also a fix by Egbert Eich in xfree cvs :
290. Fixed GetTimeInMillis() to use deltas instead of absolute time
returend by gettimeofday(). This ensures time is monotonic in X
Indeed Egbert's fix is in CVS. I have backported the fix to 4.2.1 and 4.1.0,
and it will appear in all future erratum releases.