prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.41k stars 1.88k forks source link

Space Navigator not working #12709

Open OscarCreator opened 3 weeks ago

OscarCreator commented 3 weeks ago

Description of the bug

I am using a Space Navigator 3D Connexion device which I want to use in Prusa Slicer. It works well on Windows but when I tried using it on ubuntu 22.04 it didn't work. I found this https://spacenav.sourceforge.net/ which I installed and got running /etc/init.d/spacenavd start. I even tried using it with openscad which worked but Prusa Slicer won't move the plate when using the space navigator. I also created the file which is mentioned here, but no luck there either https://help.prusa3d.com/article/3dconnexion-devices_1511

When I run the AppImage I get

[error] 3DConnexion device cannot be opened: /dev/hidraw10 You may need to update /etc/udev/rules.d

And then I tried to run the AppImage as root and the error got away and now the Space Navigator works. But then the question what do I need to do in order to get it to work without running as root? I followed the installation guide https://help.prusa3d.com/article/install-prusaslicer_1903 but clearly there is something wrong with permissions to get the Space Navigator to work.

The device has these permissions

crw------ /dev/hidraw10

And the rules file has these:

-rw-r--r-- /etc/udev/rules.d/90-3dconnexion.rules

Project file & How to reproduce

Install latest prusa slicer and use a Space Navigator. Please let me known if there is anything else which is important to know.

Checklist of files included above

Version of PrusaSlicer

2.7.4+linux-x64-GTK3

Operating system

Ubuntu 22.04

Printer model

Prusa i3 MK2s

OscarCreator commented 2 weeks ago

Okay I found the cause and fix. Fixed at b8c09d7a34583343301c6fd697232d661399a128 The difference is that the rules stated in the source have an extra '*' after hidraw in the KERNEL string but this is missing on the webpage.