libusb/OpenNI permission denied? (Kinect & Ubuntu)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

libusb/OpenNI permission denied? (Kinect & Ubuntu)

wkf2000
I am installing PCL on a fresh ubuntu 11, by using the command "sudo apt-get install libpcl-all".
when I try any "openni_*" program, I will have:

libusb couldn't open USB device /dev/bus/usb/001/012: Permission denied.
libusb requires write access to USB device nodes.
terminate called after throwing an instance of 'pcl::PCLIOException'
  what():  No matching device found. openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) @ /build/buildd/pcl-1.4-1.4.0/io/src/openni_camera/openni_device.cpp @ 95 : creating depth generator failed. Reason: The network connection has been closed!
Aborted

and I tried this command as mentioned in other threads, "lsusb":
Bus 001 Device 007: ID 05ac:8215 Apple, Inc. BluetooSth USB Host Controller
Bus 001 Device 008: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 001 Device 009: ID 05ac:024f Apple, Inc.
Bus 001 Device 010: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 001 Device 011: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 001 Device 012: ID 045e:02ae Microsoft Corp. Xbox NUI Camera

So, I think the Kinect is connected well.  
Thanks for all your help!
Reply | Threaded
Open this post in threaded view
|

Re: libusb/OpenNI permission denied? (Kinect & Ubuntu)

Jun Xie
Hi,

Try "sudo chmod o+w /dev/bus/usb/001/012" in the command line.


Best regards,

-----------------------------
claire


> Date: Mon, 6 Feb 2012 13:42:36 -0800

> From: [hidden email]
> To: [hidden email]
> Subject: [PCL-users] libusb/OpenNI permission denied? (Kinect & Ubuntu)
>
> I am installing PCL on a fresh ubuntu 11, by using the command "sudo apt-get
> install libpcl-all".
> when I try any "openni_*" program, I will have:
>
> libusb couldn't open USB device /dev/bus/usb/001/012: Permission denied.
> libusb requires write access to USB device nodes.
> terminate called after throwing an instance of 'pcl::PCLIOException'
> what(): No matching device found.
> openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const
> xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const
> xn::NodeInfo&) @
> /build/buildd/pcl-1.4-1.4.0/io/src/openni_camera/openni_device.cpp @ 95 :
> creating depth generator failed. Reason: The network connection has been
> closed!
> Aborted
>
> and I tried this command as mentioned in other threads, "lsusb":
> Bus 001 Device 007: ID 05ac:8215 Apple, Inc. BluetooSth USB Host Controller
> Bus 001 Device 008: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
> Bus 001 Device 009: ID 05ac:024f Apple, Inc.
> Bus 001 Device 010: ID 046d:c05a Logitech, Inc. Optical Mouse M90
> Bus 001 Device 011: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
> Bus 001 Device 012: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
>
> So, I think the Kinect is connected well.
> Thanks for all your help!
>
> --
> View this message in context: http://www.pcl-users.org/libusb-OpenNI-permission-denied-Kinect-Ubuntu-tp3720915p3720915.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: libusb/OpenNI permission denied? (Kinect & Ubuntu)

wkf2000
Works like a charm!  

beiwei30 wrote
Hi,
Try "sudo chmod o+w /dev/bus/usb/001/012" in the command line.

Best regards,

-----------------------------
claire

Email:[hidden email] 
Reply | Threaded
Open this post in threaded view
|

Re: libusb/OpenNI permission denied? (Kinect & Ubuntu)

SaphirusTux
this is not the best solution.
the bug come from the /etc/udev/rules.d/55-primesense-usb.rules configuration file
so add these lines at the end of the file


SYSFS{idProduct}=="02ae",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="02ad",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="02b0",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"

by using this command sudo gedit /etc/udev/rules.d/55-primesense-usb.rules


my configuration file contain the next lines

# make primesense device mount with writing permissions (default is read only for unknown devices)
SYSFS{idProduct}=="0200",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="0300",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="0400",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="0500",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="0600",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="0601",SYSFS{idVendor}=="1d27",MODE="666",OWNER="xxx",GROUP="users"


SYSFS{idProduct}=="02ae",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="02ad",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"
SYSFS{idProduct}=="02b0",SYSFS{idVendor}=="045e",MODE="666",OWNER="xxx",GROUP="users"


i hope that it will help you
Reply | Threaded
Open this post in threaded view
|

Re: libusb/OpenNI permission denied? (Kinect & Ubuntu)

ssquma
This post has NOT been accepted by the mailing list yet.
In reply to this post by wkf2000
hello, how are you?

Sou a user of fedora , fedora , had the same problem , what I did was this:

. within the / etc / udev / rules.d / searched the * rules , my directory had the following file:

98 - kexec.rules

I opened it and I added the lines that mark the wiki http://openkinect.org/wiki/Getting_Started # Ubuntu_Manual_Install

# ATTR {product } == "Xbox NUI Motor"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02b0 " , MODE = " 0666 "
# ATTR {product } == "Xbox NUI Audio"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02ad " , MODE = " 0666 "
# ATTR {product } == "Xbox NUI Camera"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02AE " , MODE = " 0666 "
# ATTR {product } == "Xbox NUI Motor"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02c2 " , MODE = " 0666 "
# ATTR {product } == "Xbox NUI Motor"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02BE " , MODE = " 0666 "
# ATTR {product } == "Xbox NUI Motor"
SUBSYSTEM == "usb" , ATTR { idVendor } == " 045E " , ATTR { idProduct } == " 02bf " , MODE = " 0666 "

then rebooted the system and it worked , I hope you help serve