3dxsrv failing to start through inittab

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

Moderator: Moderators

Post Reply
dhohulin
Posts: 4
Joined: Mon Jun 25, 2007 9:22 am

3dxsrv failing to start through inittab

Post by dhohulin »

Hi,
I am trying to get a usb Magellan SpaceMouse to work on a Red Hat RHEL 4 WS box (64-bit). When I try to run the xcube sample I get a message that there is no driver. If I look at active processes I can see that there is a PID for 3dxsrv.

If I the message log, I see that I get the folowoing error:
kernel: usb 4-3: usbfs: process 5796 (3dxsrv) did not claim interface 0 before use

If I don't start through inittab, I have to start the device as root, but I get this error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: ...No connection to Xserver :0.0 - aborting.

I can get around this by entering the following:
xhost +local:$USER

I have a stop gap by wrapping the xhost command and a sudo command so that the end users can start the driver, but I am hoping there is a better solution.

Any thoughts?

Thanks,
Dan
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Post by UtaSH »

Hi Dan,

you get the error from the Xlib only if you start the driver from the command line. The start from the /etc/inittab should work without xhost +

Could you please add the option -debug -E to the start of the driver? The line in the /etc/inittab would then look like this:

Code: Select all

3dx:2345:respawn:/etc/3DxWare/daemon/3dxsrv -d usb -debug -E </dev>/dev/null 2>&1
This creates a file /tmp/3DxWare.log with some debug messages. Could you please post here what you find?

Uta Ludwig
3Dconnexion
dhohulin
Posts: 4
Joined: Mon Jun 25, 2007 9:22 am

debug result

Post by dhohulin »

Hello,
Here is the debug output:

3DxWareUNIX V1.2.0 log file
Process ID: 4428
-----------------------------------

3dxsrv.c,640: displayname = $DISPLAY set to :0
3dxsrv.c :: startupInittab(), authGetUser(), failed to get user
Error: 3dxsrv.c :: startupInittab(), authGetUser(), failed to get user
3dxsrv.c :: startupInittab(), authGetUser(), user=myuserid
UdDev: Opening USB device on USB port /proc/bus/usb/004/002
UdDev: SpaceMouse Plus/XT opened
UdDev: Opening SpaceMouse Plus USB device on USB port /proc/bus/usb/004/002
smouseplus_usb.c :: UdDevRezero(): Rezeroing the device

_________________________________________________________

The following is my attempt to start xcube

./xcube
Magellan: xdrvlib.c
MagellanMotionEvent = 0
MagellanButtonPressEvent = 0
MagellanButtonReleaseEvent = 0
MagellanCommandEvent = 0

No driver is running. Exit ...

Thanks,
Dan
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Driver version

Post by UtaSH »

Hi Dan,

it would be helpful if you could update the driver to the current version, which is 1.2.7.

Do you see any progress with the newer driver?

Thx,
Uta Ludwig
3Dconnexion
dhohulin
Posts: 4
Joined: Mon Jun 25, 2007 9:22 am

New version results

Post by dhohulin »

I get the same result with the new version. Here is the debug log:

3DxWareUNIX V1.2.7 DI 2994 log file
Process ID: 6396
Time: 2007-06-26 12:55:07
Runlevel-Info: run-level 5 Jun 26 12:00 last=S

-----------------------------------

[2007-06-26 12:55:07] 3dxsrv.c,647: displayname = $DISPLAY set to :0
[2007-06-26 12:55:08] auth.c :: authGetUser(), FOUND: user = myid, id = :0, line = :0, pid = 6205, host = , type = 7
[2007-06-26 12:55:08]
[2007-06-26 12:55:08] auth.c :: authGetUser(), FOUND: user home = "/home/myid"
[2007-06-26 12:55:08] 3dxsrv.c :: startupInittab(), authGetUser(), user=myid
[2007-06-26 12:55:08] UdDev: Opening USB device on USB port /proc/bus/usb/004/002
[2007-06-26 12:55:08] UdDev: SpaceMouse Plus/XT opened
[2007-06-26 12:55:08] UdDev: Opening SpaceMouse Plus USB device on USB port /proc/bus/usb/004/002
[2007-06-26 12:55:08] smouseplus_usb.c :: UdDevRezero(): Rezeroing the device


---------------------------------------------------------------------

If I redirect output to a file I get the following:

Xlib: connection to ":0.0" refused by server^M
Xlib: No protocol specified
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

RHEL 4

Post by UtaSH »

Hi Dan,

can you give me more details about your RHEL 4? My machine has the same RHEL:

Code: Select all

[uludwig@rhel4_linux ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux WS release 4 (Nahant Update 5)
[uludwig@rhel4_linux ~]$ uname -a
Linux rhel4_linux 2.6.9-55.EL #1 Fri Apr 20 16:25:34 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
I can start the driver from the command line as root without opening xhost. :? I do a "su -" and then launch the driver.

Which desktop are you using?
Do you have any special settings/restrictions concerning the display?
Do you have one or two displays?
I assume you are doing this locally?
Did you try the driver on different machines or just one?

Your logfile looks as if the driver started properly.

Sorry for so many questions, but I have the same operating system and the driver daemon is starting properly, thus I have to find out what is going wrong on your side.

Uta Ludwig
3Dconnexion
franks
Posts: 3
Joined: Thu Jul 26, 2007 1:58 am

Post by franks »

Hello,

we have the same problem here with an install of RHEL 4 64 Bit, Update 5.

If the user issues an 'xhost +localhost' the driver gets access to the users session and everything works fine.

Desktop is Gnome.

This is the X command line:

Code: Select all

/usr/X11R6/bin/X :0 -audit 0 -logverbose 6 -auth /var/gdm/:0.Xauth vt7
Only one display.

My idea would be to create an .xinitrc which does the needed 'xhost +localhost' but this can only be a temporary work-around.

greetz,

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

Post by UtaSH »

Hi Frank,

could you please add
  • -debug -E
to the start of the driver? And then check
  • /tmp/3DxWare.log
Please post here what you find.

Uta
3Dconnexion
franks
Posts: 3
Joined: Thu Jul 26, 2007 1:58 am

Post by franks »

I certainly can:
3DxWareUNIX V1.2.11 ID 3189 log file
Process ID: 540
Time: 2007-08-01 09:07:01
Machineinfo 1: Systemname=Linux, Nodename=pbplnx03, Release=2.6.9-55.ELsmp
Machineinfo 2: Version=#1 SMP Fri Apr 20 16:36:54 EDT 2007, Machine=x86_64
Runlevel-Info: run-level 5 Jul 26 10:01 last=3

-----------------------------------

[2007-08-01 09:07:01] 3dxsrv.c,651: displayname = $DISPLAY set to :0
[2007-08-01 09:07:02] auth.c :: authGetUser(), FOUND: user home = "/net/home/tp73bak"
[2007-08-01 09:07:02] 3dxsrv.c :: startupInittab(), authGetUser(), user=tp73bak
[2007-08-01 09:07:02] UdDev: Opening USB device on USB port /proc/bus/usb/004/003
[2007-08-01 09:07:02] UdDev: Spaceball 5000 opened
[2007-08-01 09:07:02] UdDev: Opening Spaceball 5000 USB device on USB port /proc/bus/usb/004/003
[2007-08-01 09:07:02] sb5000_usb.c :: UdDevRezero(): Rezeroing the device
greetz,

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

Tracker number for this problem

Post by UtaSH »

Hi Frank,

for now we were not able to reproduce this problem. I opened an internal bug report for this. The issue is tracked under number #4559.

Would it be possible for you to help us with some additional testing? If so, then please send me your email address in a private message. I would like to send a debug version to you to receive further information.

Thanks,

Uta
3Dconnexion
mschiewek
Posts: 4
Joined: Fri Dec 04, 2009 2:48 am

Post by mschiewek »

Hi Uta,

can you tell me if there are news about the discussed issue? I'm here in the same environment as Frank has described and I get the driver to work right when I do a "xhost +localhost" and afterward kill the driverprocess (respawning in inittab activated). If there is already a better solution to this I would like to know.

Driver Version is 1.4.0


Greetz, Michael
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Post by UtaSH »

Hi Michael,

for Linux the latest version of 3DxWareUnix is 1.4.3. Please download this one and see if the problem still exists. It should not. :)
Post Reply