Question about the modesetting on X server

Alan Coopersmith alan.coopersmith at oracle.com
Wed Apr 27 20:05:49 PDT 2011


On 04/27/11 07:46 PM, Huang, FrankR wrote:
> Hi, all
> 
> 	Right now, I am working on the graphics driver and use X server
> architecture as our base. I finished the modeset part now. But I
> encounter a problem that puzzled me.
> 	As you know, in dix_main(), the mode will be set in
> xf86CrtcCreateScreenResources. Then the code will go to dispatch to
> listen to client's new requirement.
> 	And I use command xrandr to change the resolution to the new
> mode, I found that modeset will be done via ProcRRSetScreenConfig(). But
> I also noticed that the dispatch will be break out. And the while loop
> in dix_main() will be executed again. The serverGeneration will be
> updated with new value. I am not sure why the Xserver will do this
> again? Why the dispatch must be breaked out with this new resolution?

The X protocol requires the server to reset when no clients are connected
to it.   To avoid that, keep a simple client such as xlogo or a window
manager running - testing an X server with no clients connected isn't
a good match for what users actually runs anyway.

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list