3Dconnexion mouse

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3Dconnexion mouse

Post by freecad-heini-1 »

Code: Select all

/etc/init.d/spacenavd start
[ ok ] Starting spacenavd (via systemctl): spacenavd.service.
tail -n100 -f /var/log/spnavd.log
Spacenav daemon 0.6
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
adding device.
device name: 3Dconnexion SpaceNavigator
Number of axes: 6
Axis 0 value range: -500 - 500 (fuzz: 0)
Axis 1 value range: -500 - 500 (fuzz: 0)
Axis 2 value range: -500 - 500 (fuzz: 0)
Axis 3 value range: -500 - 500 (fuzz: 0)
Axis 4 value range: -500 - 500 (fuzz: 0)
Axis 5 value range: -500 - 500 (fuzz: 0)
using device: /dev/input/event12
trying to open X11 display ":0.0"
XAUTHORITY=/home/wrenkel/.Xauthority

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12)
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices
adding dev event for device: /dev/input/event12
Lost the X server!
waiting for the X socket file to appear
Ups, something is going wrong ...

I will try this:

Code: Select all

sudo xhost +
access control disabled, clients can connect from any host
sudo /etc/init.d/spacenavd restart
[ ok ] Restarting spacenavd (via systemctl): spacenavd.service.

Code: Select all

tail -n100 -f /var/log/spnavd.log
Spacenav daemon 0.6
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
adding device.
device name: 3Dconnexion SpaceNavigator
  Number of axes: 6
  Axis 0 value range: -500 - 500 (fuzz: 0)
  Axis 1 value range: -500 - 500 (fuzz: 0)
  Axis 2 value range: -500 - 500 (fuzz: 0)
  Axis 3 value range: -500 - 500 (fuzz: 0)
  Axis 4 value range: -500 - 500 (fuzz: 0)
  Axis 5 value range: -500 - 500 (fuzz: 0)
using device: /dev/input/event12
trying to open X11 display ":0.0"
   XAUTHORITY=/home/wrenkel/.Xauthority

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices
adding dev event for device: /dev/input/event12
Lost the X server!
waiting for the X socket file to appear
Any idea what goes wrong here?
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3Dconnexion mouse

Post by freecad-heini-1 »

I installed the latest libgtkmm, but still no success:

Code: Select all

sudo /etc/init.d/spacenavd start
[ ok ] Starting spacenavd (via systemctl): spacenavd.service.
tail -n100 -f /var/log/spnavd.log
Spacenav daemon 0.6
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
adding device.
device name: 3Dconnexion SpaceNavigator
  Number of axes: 6
  Axis 0 value range: -500 - 500 (fuzz: 0)
  Axis 1 value range: -500 - 500 (fuzz: 0)
  Axis 2 value range: -500 - 500 (fuzz: 0)
  Axis 3 value range: -500 - 500 (fuzz: 0)
  Axis 4 value range: -500 - 500 (fuzz: 0)
  Axis 5 value range: -500 - 500 (fuzz: 0)
using device: /dev/input/event12
trying to open X11 display ":0.0"
   XAUTHORITY=/home/wrenkel/.Xauthority

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
[color=#FF0000]failed to find any supported devices[/color]

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
failed to find any supported devices

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
[color=#FF0000]failed to find any supported devices[/color]

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
[color=#FF0000]failed to find any supported devices[/color]

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
[color=#FF0000]failed to find any supported devices[/color]

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event12) 
already using device: 3Dconnexion SpaceNavigator (/dev/input/event12)
[color=#FF0000]failed to find any supported devices[/color]

handle_hotplug called
Device detection, parsing /proc/bus/input/devices
What's the problem?
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: 3Dconnexion mouse

Post by tanderson69 »

freecad-heini-1 wrote:What's the problem?
Not sure.



you compiled freecad yourself? if so, did you have libspnav installed? A quick check:

Code: Select all

ldd freecad
you should see something like:

Code: Select all

libspnav.so.0 => /usr/lib/libspnav.so.0 (0x00007f410788f000)


from your log file:

Code: Select all

Lost the X server!
waiting for the X socket file to appear
Been a long time since I ran the spacenav driver, so I don't know if this is significant or not.
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3Dconnexion mouse

Post by freecad-heini-1 »

tanderson69 wrote:
freecad-heini-1 wrote:What's the problem?
Not sure.

you compiled freecad yourself?

No it's standard installation on Xubuntu 16.04.
tanderson69 wrote: if so, did you have libspnav installed?

No, it's not installed. If I try to install with sudo apt-get install libspnav, message is "cannot find libspnav.
tanderson69 wrote:A quick check:

Code: Select all

ldd freecad

There is no directory called .freecad, because it's a standard installation, not self compiled.
tanderson69 wrote:you should see something like:

Code: Select all

libspnav.so.0 => /usr/lib/libspnav.so.0 (0x00007f410788f000)

There is no package named libspnav
tanderson69 wrote:from your log file:

Code: Select all

Lost the X server!
waiting for the X socket file to appear
Been a long time since I ran the spacenav driver, so I don't know if this is significant or not.
Sorry, difficult to understand for me, because it's not compiled and libspnav, I don't know this library.

I have installed spacenavd from repo:
http://www.freecadweb.org/wiki/index.ph ... ut_devices

Code: Select all

sudo apt-get install spacenavd
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: 3Dconnexion mouse

Post by tanderson69 »

freecad-heini-1 wrote:No it's standard installation on Xubuntu 16.04.
Ok. The repository version has been linked with libspnav:

Code: Select all

apt-cache showpkg freecad
Package: freecad
Versions: 
0.15.4671+dfsg1-4 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: 
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-i386_Packages
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: en
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-en
                  MD5: 55d1732b8e97faf08259c4148b4e3f24


Reverse Depends: 
  freecad-dev,freecad 0.15.4671+dfsg1-4
  freecad:i386,freecad
  science-engineering,freecad
  freecad-doc,freecad 0.15.4671+dfsg1-4
Dependencies: 
0.15.4671+dfsg1-4 - libsoqt4-20 (2 1.6) python-collada (0 (null)) python-matplotlib (0 (null)) python-pivy (2 0.5.0~v609hg-2) python-ply (0 (null)) python-pyside (0 (null)) pyside-tools (0 (null)) python:any (2 2.6.6-7~) python2.7 (0 (null)) libboost-program-options1.58.0 (0 (null)) libboost-regex1.58.0 (0 (null)) libboost-signals1.58.0 (0 (null)) libboost-system1.58.0 (0 (null)) libc6 (2 2.14) libcoin80v5 (0 (null)) libfreetype6 (2 2.2.1) libgcc1 (2 1:3.4) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libglu1-mesa (16 (null)) libglu1 (0 (null)) liboce-foundation10 (0 (null)) liboce-modeling10 (0 (null)) liboce-ocaf-lite10 (0 (null)) liboce-ocaf10 (0 (null)) liboce-visualization10 (0 (null)) libpython2.7 (2 2.7) libqt4-network (2 4:4.5.3) libqt4-opengl (2 4:4.6.1) libqt4-svg (2 4:4.5.3) libqt4-xml (2 4:4.5.3) libqtcore4 (2 4:4.8.0) libqtgui4 (2 4:4.8.0) libqtwebkit4 (0 (null)) libshiboken1.2v5 (2 1.1.0) libspnav0 (2 0.2.2) libstdc++6 (2 5.2) libx11-6 (0 (null)) libxerces-c3.1 (0 (null)) libzipios++0v5 (0 (null)) zlib1g (2 1:1.1.4) freecad-doc (0 (null)) freecad:i386 (32 (null)) 
Provides: 
0.15.4671+dfsg1-4 - 
Reverse Provides:


freecad-heini-1 wrote:No, it's not installed. If I try to install with sudo apt-get install libspnav, message is "cannot find libspnav.
package is actually libspnav0, but doesn't matter as the repo version is linked.




run freecad from terminal with:

Code: Select all

FreeCAD -l
You can shut it down as soon as it is running. This will create a log file in the hidden .FreeCAD folder under your home folder. Inside that log file should be a message describing whether or not it was able to connect to the spacenav daemon. Mine says 'Log: Connected to spacenav daemon'
lukasubo
Posts: 45
Joined: Sun Jun 05, 2016 5:41 pm

Re: 3Dconnexion mouse

Post by lukasubo »

The repo version is outdated, but downloading the source and installing it is fairly easy. As I recall, that solved some issues I had.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: 3Dconnexion mouse

Post by NormandC »

tanderson69 wrote:
freecad-heini-1 wrote:No it's standard installation on Xubuntu 16.04.
Ok. The repository version has been linked with libspnav:

Code: Select all

apt-cache showpkg freecad
Package: freecad
Versions: 
0.15.4671+dfsg1-4 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)
freecad-heini-1 is not using the Ubuntu repo version, I believe he's using the PPA's. See his first post: viewtopic.php?f=4&t=9198&start=60#p128331
lukasubo wrote:downloading the source and installing it is fairly easy.
That should be unnecessary on Ubuntu with the PPA's.
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3Dconnexion mouse

Post by freecad-heini-1 »

For the 0.17 version I installed this way:

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad freecad-doc
For the 0.16 version I installed this way:

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-stable 
udo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad freecad-doc
Space-Navigator:

Code: Select all

sudo apt-get install spacenavd
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: 3Dconnexion mouse

Post by sgrogan »

freecad-heini-1 wrote:For the 0.17 version I installed this way:

Code: Select all
sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad freecad-doc
Should be

Code: Select all

sudo apt-get install freecad-daily freecad-daily-doc
The package name is different to allow 0.16 and 0.17 to coexist.
"fight the good fight"
spikey
Posts: 104
Joined: Tue Jan 19, 2016 12:14 pm

Re: 3Dconnexion mouse

Post by spikey »

Hello Guys,

I already asked ths question before in a new threads in "help on using freecad" and "install/compile" topic.
but besides a recent link to this thread i had no response so far.

my problem.. I purchased a 2e hand space navigator and installed spacenavd 0.6
have it installed in Ubuntu 16.04 / 16.10 and now 17.04

although the setup itself isn't always easy i have always been able to get it to work (using the sudo xhost +, sudo /etc/init.d/spacenavd restart ) before start up. (just did a mod from this page but haven't tested it yet).

anyway the space navigator works.. EXCEPT! the buttons.
the button field is there (not blank) but everything is greyed out.. there is nothing i can do with it. (see prntscn.jpg)

is there something i did do wrong here or didn't do.. so the buttons don't work?
or anyone else has an idea?

would really appreciate any assistance.

any test will be done on request.. i'd give it already if i know what to give and how to give it.

Kind greatz

Matthieu

OS: Ubuntu 17.04
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11051 (Git)
Build type: None
Branch: master
Hash: 32176dba86db44775be51c5d8514a229fb27111f
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Attachments
Screenshot from 2017-05-16 02-02-50.png
Screenshot from 2017-05-16 02-02-50.png (27.9 KiB) Viewed 2851 times
Post Reply