Reply To: USB insufficient permissions?

Home Forums AR Sandbox Forum USB insufficient permissions? Reply To: USB insufficient permissions?

#102769
maphew
Participant

By way of other posts in the forum I discovered there needs to be a rule added to /etc/udev/rules.d/ to allow non-sudo use of the camera. In the Kinect makefile I see the logic that is supposed to add the file, but for some reason it is not being triggered or used properly.

This line in the makefile doesn’t get executed: @sudo install -m u=rw,go=r share/70-Kinect.rules $(UDEVRULEDIR)


hello@sandbox ~/src/Kinect-3.2 $ sudo make install
---- Kinect configuration options: ----
Support for Intel RealSense cameras via librealsense library disabled
CPU-based facade projector selected
---- Kinect installation configuration ----
Root installation directory: /usr/local
Calibration data directory: /usr/local/etc/Vrui-4.2/Kinect-3.2
Resource data directory: /usr/local/share/Vrui-4.2/Kinect-3.2
Vislet plug-in directory: /usr/local/lib/x86_64-linux-gnu/Vrui-4.2/VRVislets
---- End of Kinect configuration options: ----
Installing header files...
Installing libraries...
Configuring run-time linker...
Installing executables...
Installing vislet plugins...
Installing configuration files...
Installing resource files...
Installing makefile fragments...
hello@sandbox ~/src/Kinect-3.2 $ sudo make installdevrules
make: 'installdevrules' is up to date.
hello@sandbox ~/src/Kinect-3.2 $ RawKinectViewer -compress 0
Caught exception USB::Device::open: Insufficient device permissions

hello@sandbox ~/src/Kinect-3.2 $ ls -l /etc/udev/rules.d/
total 4
-rw-r--r-- 1 root root 2233 Dec  3 20:30 69-Vrui-devices.rules

hello@sandbox ~/src/Kinect-3.2 $ sudo make installdevrule
make: 'installdevrule' is up to date.

hello@sandbox ~/src/Kinect-3.2 $ sudo make uninstalldevrule
make: 'uninstalldevrule' is up to date.

hello@sandbox ~/src/Kinect-3.2 $ sudo make installdevrule
make: 'installdevrule' is up to date.

hello@sandbox ~/src/Kinect-3.2 $ ls -l /etc/udev/rules.d
total 4
-rw-r--r-- 1 root root 2233 Dec  3 20:30 69-Vrui-devices.rules

—–
Aha! the source file 70-Kinect.rules doesn’t exist:


hello@sandbox ~/src/Kinect-3.2 $ sudo install -m u=rw,go=r share/70-Kinect.rules /etc/udev/rules.d/
install: cannot stat 'share/70-Kinect.rules': No such file or directory
hello@sandbox ~/src/Kinect-3.2 $ ls -l share
total 12
-rw-r--r-- 1 hello hello 1016 Oct 14 16:23 69-Kinect.rules
-rw-r--r-- 1 hello hello  306 Dec  4 15:02 Configuration.Kinect
drwxr-xr-x 2 hello hello 4096 Dec 14  2013 Shaders

—-

Stranger still. The makefile I have in my Kinect-3.2 src folder does not match the v3.2 on GitHub: https://github.com/KeckCAVES/Kinect/blob/master/makefile. The github version uses 69-Kinect.rules and has a completely different *uninstall* section.

  • This reply was modified 3 years, 9 months ago by maphew.

Comments are closed.