[Hardy] Race condition in Xgl startup process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xserver-xgl (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: xserver-xgl
Under certain circumstances with Xgl enabled, gnome-session fails to start because it can't find a display.
This is because gnome-session starts before Xgl has started.
The scenario is:
1. After boot, first time you start a gnome-session from gdm with Xgl enabled session starts correctly
2. Next logout/login session fails with a message in .xsession-errors
cannot open display:
Run '/usr/bin/
The workaround is to wait for Xgl process to start in /usr/share/
Here is a patch for /usr/share/
144,154d143
< #Wait for Xgl process to start
< TIMEOUT=5
< DISPLAYNUM=$( echo $XGL_DISPLAY | sed s/.*:// )
< while ! test -e "/tmp/.
< sleep 1;
< TIMEOUT=$(( $TIMEOUT - 1))
<
< # TODO If Xgl doesn't start then continue without it
< [ $TIMEOUT -lt 0 ] && exit 1
< done
<
This happens on
Hardy
DELL D630 - cpu intel T7300
Nvidia Quadro NVS135
I'm having a similar error in Hardy (cannot open display :1) xserver- xgl/Xgl- session should the code you added above be pasted? Could you provide the contents of the previous and following lines? $XGL_DISPLAY"
Could you elaborate on this patch please?
1) My guess is that the line about seahorse in your .xsession-error is unrelated. Correct?
2) Where in /usr/share/
I tried adding the commands between:
"...
verbose "Starting Xgl with options: " $XGL_ACCEL_OPTS $XGL_OPTS "\n"
$XGL_WRAPPER $XGL_DISPLAY $XGL_ACCEL_OPTS $XGL_OPTS &
DISPLAY=
and
"#Don't use Shift+Backspace as terminate_server
xmodmap -e "keycode 22 = BackSpace"
else
..."
But the patch did not seem to help. On logging in, the system just paused. Admittedly, I did not get the error in .xsession-errors, but Gnome did not load and the PC just waited. I had to disable Xgl (reinstating the file 'disable' in ~/.config/ xserver- xgl) to login as usual.
If possible, please attach a copy of your Xgl-session that works.
My config:
Hardy
Compaq nc6230
ATI Mobility radeon
Thanks!
PS> Is your .xsession-error similar to Bug 174408 (https:/ /bugs.launchpad .net/ubuntu/ +bug/174408)?