[NTLUG:Discuss] Question about X

David Stanaway david at stanaway.net
Tue Aug 1 07:49:45 CDT 2006


david at yezhov:~$ Xnest -noreset -auth .Xauthority:1 :1 &
[1] 30278

david at yezhov:~$ export DISPLAY=:1
david at yezhov:~$ export XAUTHORITY=.Xauthority:1
david at yezhov:~$ xsetroot -solid steelblue4
david at yezhov:~$

Try that. Note the -noreset

What is happening is that the display is reseting since there are no
clients connected. This probably helps to troubleshoot cases where the
window manager crashes or fails to start etc.

David Stanaway wrote:
> Interesting, I get the same thing with my Xnest. I can see the color
> being set, but it changes back instantly. I am guessing there is
> something to do with there not being any X clients using the display yet.
> 
> David Stanaway wrote:
>> It is probably more correct to set the DISPLAY variable after executing
>> X. There is something not quite right with your default X background. It
>> should be alternating black and white pixels which looks grey.
>>
>> Leroy Tennison wrote:
>>> Working with X trying to get a good grasp of how the components work 
>>> together and ran across something I don't understand.  I boot into 
>>> runlevel three then do
>>>
>>> DISPLAY=:0
>>> export DISPLAY
>>> echo $DISPLAY
>>>
>>> just to make sure it's set then I start X from console 1 with:
>>>
>>> X &
>>>
>>> I get a black screen with a bitmap X for a cursor on what I'll call 
>>> "console 7" (Ctrl-Alt-F7), so far so good.  Next I do:
>>>
>>> xsetroot -solid blue
>>>
>>> No change on "console 7".  Next, on console 1, I do:
>>>
>>> xsetroot -cursor_name left-ptr
>>>
>>> Still no change on "console 7".  Finally I do:
>>>
>>> xterm &
>>>
>>> Now I not only get an xterminal application but also the blue background 
>>> and changed mouse icon.  If I change the order and load the xterminal 
>>> right after I start X then the xsetroot commands take effect immediately.
>>>
>>> Why does it work this way?
>>>
>>> _______________________________________________
>>> http://ntlug.pmichaud.com/mailman/listinfo/discuss
>>>
>>
>> _______________________________________________
>> http://ntlug.pmichaud.com/mailman/listinfo/discuss
>>
> 
> 
> _______________________________________________
> http://ntlug.pmichaud.com/mailman/listinfo/discuss
> 




More information about the Discuss mailing list