Go to file
Marius Gedminas 0dc2bb6101 [RANDR] Compare only milliseconds of config time. (Bug #6502)
The timestamp transferred in the X protocol is a 32-bit number of
milliseconds.

The timestamp stored in the server is a structure that contains two fields:
months (!) and milliseconds.

When the server passes the config timestamp to the client, it discards the
months part and sends only the milliseconds part.

When the server receives the config timestamp from the client, it tries to
guess the "months" part by looking at the current time and then maybe adding
or
subtracting one.  The guess is wrong after the server has been running long
enough (several hours).

I have added two ErrorF calls around the 'if' statement that returns
RRSetConfigInvalidConfigTimestamp in randr/randr.c and my Xorg.0.log has
this:

  randr request got good config time: 0:-2103495671

for the first few successful xrandr calls, and

  randr request failed with RRSetConfigInvalidConfigTime: client passed
  1:-2103495671, server has 0:-2103495671

when it fails.  The server has been running for 8 and a half hours.

The obvious fix would be to ignore the months field and only compare the
milliseconds.
2007-08-31 21:36:37 -07:00
afb Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
cfb Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
cfb32 get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
composite Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
config config: Use [config/dbus] consistently for error messages. 2007-08-31 15:03:02 +09:30
damageext Death to RCS tags. 2007-06-29 14:06:52 -04:00
dbe Death to RCS tags. 2007-06-29 14:06:52 -04:00
dix Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
doc Move SecurityPolicy file format from Xserver(1) to it's own man page 2007-02-22 14:38:40 -08:00
exa Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
fb Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
GL __glXDRIbindTexImage: Fail if no texture bound to pixmap's texture target. 2007-08-24 13:04:48 +02:00
hw Convert servers to using _DEPENDENCIES to ensure proper rebuilds. 2007-08-31 13:09:45 -07:00
include Add XSERVER_LIBPCIACCESS to xorg-server.h when using libpciaccess 2007-08-26 22:11:45 -07:00
mfb Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
mi Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
miext Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
os Bug #7186: Fix an excessive request size limitation that broke big-requests. 2007-08-31 13:09:45 -07:00
randr [RANDR] Compare only milliseconds of config time. (Bug #6502) 2007-08-31 21:36:37 -07:00
record Death to RCS tags. 2007-06-29 14:06:52 -04:00
render Bug #7364: Require renderproto 0.9.3 on 64-bit, and fix build with it. 2007-08-31 15:16:01 -07:00
Xext Implement core protocol backing store exclusively in terms of Composite. 2007-08-25 15:08:20 -04:00
xfixes Death to RCS tags. 2007-06-29 14:06:52 -04:00
Xi Input: Don't enable devices when we open them 2007-08-01 03:33:06 +03:00
xkb Fix MEMORY SMASH in XkbCopyKeymap. 2007-07-04 23:38:27 -07:00
XTrap Death to RCS tags. 2007-06-29 14:06:52 -04:00
.gitignore Add more generated files to .gitignore. 2007-08-29 16:05:23 -07:00
acinclude.m4 Include comment/copyright/license for AC_DEFINE_DIR in acinclude.m4 2007-07-25 17:42:23 -07:00
autogen.sh Use canonical autogen.sh, which supports srcdir != objdir autogen. 2005-07-01 21:13:36 +00:00
configure.ac Bug #7364: Require renderproto 0.9.3 on 64-bit, and fix build with it. 2007-08-31 15:16:01 -07:00
COPYING Add proper COPYING file 2007-08-01 08:07:08 +03:00
cpprules.in For MANDEFS, also replace __mandir__ for $(mandir) which includes 2006-12-08 15:51:44 -06:00
Makefile.am Generate ChangeLog file for make dist. 2007-07-10 21:33:54 -07:00
xorg-server.m4 Add xorg-server.m4 for driver dependency checking. 2005-11-01 15:01:51 +00:00
xorg-server.pc.in Fix driver build after pixman changes. 2007-08-07 09:01:24 -07:00