Closed axbycc-mark closed 5 months ago
The spacenavd daemon will connect to the X display specified in the DISPLAY environment variable, and fallback to the usual ":0.0" if DISPLAY is not set. To make it use display ":1", just set DISPLAY to that in the init script which starts the daemon. I'm not familiar with systemd, so I can't be more specific.
I assume that's all there is to it and there is no actual spacenavd bug here, so I'm closing the bug report. But feel free to continue posting if you think there's something I can do to help.
I'm running Ubuntu 22.04.4
Following the FAQ and issue https://github.com/FreeSpacenav/spacenavd/issues/32, I have symlinked my ~/.Xauthority to /root/.Xauthority.
Now I see this error in the spnavd.log when running the daemon through
sudo service spacenavd start
.The cube example fails with
failed to connect to the space navigator daemon
However, when I manually start spacenavd with
sudo ./spacenavd -d -vvvv
, the cube example works and the daemon says the following.Then the cube example works. I think the issue is that the display needs to be ":1" instead of ":0.0" on my machine. I'm not sure if this option can be specified. I'm not experienced with X11 or Linux in general so hopefully you can give me some pointers here. Symlinking the /root/.Xauthority to /run/user/1000/gdm/Xauthority did not work either, as the display is still set to ":0.0" when running with the "service" method.