ubuntu Hardy and no connection to X server

Questions and answers about 3Dconnexion devices on UNIX and Linux.

Moderator: Moderators

Post Reply
Matte99
Posts: 6
Joined: Sat May 03, 2008 9:34 am

ubuntu Hardy and no connection to X server

Post by Matte99 »

I recently upgraded to Ubuntu Hardy Heron 8.04. My previously working setup then stopped working. The light on my space navigator turns on but the control panel is not started. The console message is " ...No connection to Xserver :0.0 - aborting "
Any one got some ideas on what is wrong ?

I'm using the
3DxWareUNIX = V1.2.17, ID 3493

the verbose output from the driver is

/etc/3DxWare/daemon/3dxsrv -debug -d USB
[2008-05-03 18:45:08] uddev.c, 1171: UdDevInit() 0x809a008
[2008-05-03 18:45:08] 3dxsrv.c,704: displayname = :0.0
[2008-05-03 18:45:08] auth.c :: authGetUser(), FOUND: user = mattias, id = :0, line = tty7, pid = 7386, host = :0, type = 7
[2008-05-03 18:45:08] auth.c :: authGetUser(), FOUND: user home = "/home/mattias"
[2008-05-03 18:45:08] 3dxsrv.c :: startupCommandLine(), authGetUser(), user=mattias
[2008-05-03 18:45:08] UdDev: Opening USB device on USB port /dev/bus/usb/001/003
[2008-05-03 18:45:08] UdDev: SpaceNavigator opened
[2008-05-03 18:45:08] UdDev: Opening SpaceNavigator device on USB port /dev/bus/usb/001/003
[2008-05-03 18:45:08] snav_usb.c :: UdDevRezero(): Rezeroing the device
[2008-05-03 18:45:08] 3dxsrv.c,729: UdDevOpen() was successful [SpaceNavigator]
[2008-05-03 18:45:08] 3dxsrv.c,740: authorizeWithX11() was successful
No protocol specified
[2008-05-03 18:45:08] 3dxsrv.c :: startupCommandLine(), XOpenDisplay called with display name=:0.0, display = 0
[2008-05-03 18:45:08] Error:
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Re: ubuntu Hardy and no connection to X server

Post by UtaSH »

Hi Matte99,

does the driver start if you launch a "xhost + localhost" on the command line?

Is there anything else after the "[2008-05-03 18:45:08] Error:"?

Uta
Matte99
Posts: 6
Joined: Sat May 03, 2008 9:34 am

Post by Matte99 »

hello ludwig
the first comment needs more clarification "xhost + localhost" on the command line ?

The last line in the error message is " ...No connection to Xserver :0.0 - aborting"

regards
//Mattias
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Re: ubuntu Hardy and no connection to X server

Post by UtaSH »

Hi Mattias,

as the logged in user open a terminal and type on the command line:
  • xhost + localhost
Then (as root) try again to start the driver. Please let me know what the output is.

Uta
Matte99
Posts: 6
Joined: Sat May 03, 2008 9:34 am

Post by Matte99 »

thanks for the clarification
the output doesńt change however:

mattias@suris2:~$ xhost + localhost
localhost being added to access control list
mattias@suris2:~$ sudo /etc/3DxWare/daemon/3dxsrv -d usb -debug
[2008-05-07 20:49:44] uddev.c, 1171: UdDevInit() 0x809a008
[2008-05-07 20:49:44] 3dxsrv.c,704: displayname = :0.0
[2008-05-07 20:49:44] auth.c :: authGetUser(), FOUND: user = mattias, id = :0, line = tty7, pid = 7386, host = :0, type = 7
[2008-05-07 20:49:44] auth.c :: authGetUser(), FOUND: user home = "/home/mattias"
[2008-05-07 20:49:44] 3dxsrv.c :: startupCommandLine(), authGetUser(), user=mattias
[2008-05-07 20:49:44] UdDev: Opening USB device on USB port /dev/bus/usb/001/003
[2008-05-07 20:49:44] UdDev: SpaceNavigator opened
[2008-05-07 20:49:44] UdDev: Opening SpaceNavigator device on USB port /dev/bus/usb/001/003
[2008-05-07 20:49:44] snav_usb.c :: UdDevRezero(): Rezeroing the device
[2008-05-07 20:49:44] 3dxsrv.c,729: UdDevOpen() was successful [SpaceNavigator]
[2008-05-07 20:49:44] 3dxsrv.c,740: authorizeWithX11() was successful
No protocol specified
[2008-05-07 20:49:44] 3dxsrv.c :: startupCommandLine(), XOpenDisplay called with display name=:0.0, display = 0
[2008-05-07 20:49:44] Error:
...No connection to Xserver :0.0 - aborting.
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Post by UtaSH »

Are you working remotely on this machine?
How is the environment variable $DISPLAY set?
  • echo $DISPLAY
Matte99
Posts: 6
Joined: Sat May 03, 2008 9:34 am

Post by Matte99 »

Hallo again. No I am not running the machine remote.
I checked the valuer of DISPLAY and tried to change it but no luck (see below)
May it be some kind of rights issue ?

mattias@suris2:~$ echo $DISPLAY
:0.0
mattias@suris2:~$ DISPLAY=suris2:0.0
mattias@suris2:~$ export DISPLAY
mattias@suris2:~$ echo $DISPLAY
suris2:0.0
mattias@suris2:~$ sudo /etc/3DxWare/daemon/3dxsrv -d usb
[2008-05-09 15:58:59] Error:
...No connection to Xserver suris2:0.0 - aborting.
mattias@suris2:~$
crobl
Moderator
Moderator
Posts: 138
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Post by crobl »

Hi Matte99,

sorry for my late reply to your last post!

Your issue is quite strange! :?
Currently I've only one idea, that might probably help or at least show a different behaviour of the driver:

Please create a new user, with no special settings regarding permissions or access restrictions, etc. and start the driver again. Any changes?

What happens if you start the driver automatically from the inittab (I think its "upstart" for Ubuntu) when you log in as
a) your user "mattias"?
b) this newly created user (mentioned above)?
c) root?

Please let me know what the results of these test are.

I also sent you a beta version of our driver, although I doubt it will change something here. Please also let me know how this version works.


Regards,
Christian Robl
3Dconnexion
Matte99
Posts: 6
Joined: Sat May 03, 2008 9:34 am

Post by Matte99 »

Hello Christian
Thanks a lot for your patience and helpfulness.
The strangest thing is that the driver now works ! both with the 1.21.7 driver and the beta driver you sent me. The only thing I`ve changed is the normal upgrades and these packages that i have installed for getting my radio control working as a joystick... can it be the xserver-xorg-input-joystick package that was missing or was it the upgraded packages that were fixed ?


Commit Log for Wed May 14 17:33:10 2008
Installed the following packages:
joystick (20051019-1.1ubuntu1)
jscalibrator (1:1.5.6-0ubuntu3)
libjsw2 (1:1.5.6-0ubuntu3)
xserver-xorg-input-joystick (1:1.3.1-1)

Thanks for all your help again
//Mattias
crobl
Moderator
Moderator
Posts: 138
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Post by crobl »

Hi Mattias,

that is really odd, indeed!

You're right, the only package in question that could've fixed your problem is "xserver-xorg-input-joystick (1:1.3.1-1)".
Just a wild guess: It could've been the installation script of this package, that modified your xorg.conf sp that the XServer now processes XClientMessages like it should be (or is expected by 3DxWareUNIX).

Finally its great to hear, that 3DxWareUNIX is now working for you!

If you still have questions - feel free to ask!


Regards,

Christian
3Dconnexion
Post Reply