spacenavd xserver permissions problem

Bug #765152 reported by Thomas Anderson
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Blender
New
Undecided
Unassigned
FreeCAD
New
Undecided
Unassigned
spacenavd (Debian)
New
Undecided
Unassigned
spacenavd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: spacenavd

spacenavd is not working log file is:

Spacenav daemon 0.5
using device: /dev/ttyS0
trying to open X11 display ":0.0"
   XAUTHORITY=/root/.Xauthority
No protocol specified
failed to open X11 display ":0.0"
waiting for X socket file to appear

can be worked around with:
sudo xhost +
sudo /etc/init.d/spacenavd restart

log file should look like:

Spacenav daemon 0.5
using device: /dev/ttyS0
trying to open X11 display ":0"
   XAUTHORITY=/root/.Xauthority

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: spacenavd 0.5-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Mon Apr 18 16:31:28 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: spacenavd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thomas Anderson (ta-nextgenengineering) wrote :
Revision history for this message
jf353 (7-jf) wrote :

This bug is still in 16.10 present and a systemd problem.
Because of this bug Freecad is not able to use 3d mouse.
Workaround (in terminal):
sudo service spacenavd stop
sudo /usr/bin/spacenavd -v -d
start freecad

The error message:
failed to open X11 display ":0.0"
results in the lack of the magellan protocol and
freecad needs it.

Testet on x86_64(16.10) and Aarm64(Odroid C2, 16.04).

Martin Pitt (pitti)
no longer affects: systemd (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in spacenavd (Ubuntu):
status: New → Confirmed
Revision history for this message
CDSRV TechSupport (cdsrv) wrote :

on Ubuntu 16.04
- symlinking root/.[X|ICE]authority with the user's, running 'xhost +' and starting spacenavd manually with sudo gives the same results : unable to open display.

>> spacenavd works fine compiled from source on Debian 8 (2017-03-07), with addition of a udev rule, running as root at startup with a simple script in /etc/init.d/

Revision history for this message
Marcel Partap (empee584) wrote :

Shouldn't /lib/systemd/system/spacenavd.service be transformed into a user service using the new PartOf=graphical-session.target ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.