persistent "Could not open device" error

3,954 views
Skip to first unread message

alex m.

unread,
Jan 13, 2013, 12:40:07 AM1/13/13
to openk...@googlegroups.com
Ubuntu 12.04, Linux Mint 13:
freenect was installed via 1) Synaptic and 2) following the instructions found on http://openkinect.org/wiki/Getting_Started for Ubuntu/Debian
including 3) installation from the NeuroDebian repository.
In all these cases freenect-glview demo did not work giving the "Could not open device" error.
In the cases 1) and 2) gspca modules  gspca_kinect and gspca_main were removed before trying the demo.
The user belongs to the plugdev and video groups.
Kinect device is accessible using SimpleOpenNI Processing library under Mac OS X. Kinect's camera is accessible under Linux using GStreamer and Video4Linux.
lsusb lists 'Xbox NUI Camera', 'Xbox NUI Audio' + another line which has Microsoft Corp. in it. No 'Xbox NUI Motor'.
Any ideas why Kinect is not accessible using libfreenect and freenect-glview gives the "Could not open device" error?

Dan Duque

unread,
Jan 13, 2013, 10:12:42 AM1/13/13
to openk...@googlegroups.com
something to do with usb 3.o look through the older posts..it's in there....sometime in december of last year...good luck...

dan

alex m.

unread,
Jan 13, 2013, 12:42:11 PM1/13/13
to openk...@googlegroups.com
I do not have USB 3.0 ports. 

The message I get after starting the glview demo is:

Kinect camera test
Number of devices found: 1
Could not open device

Jeff Kramer

unread,
Jan 13, 2013, 12:46:53 PM1/13/13
to openk...@googlegroups.com
Did you just buy this Kinect?
Is it a K4W or an original model?
What model number is it?

Jeff Kramer

Sent from my iPad

alex m.

unread,
Jan 13, 2013, 2:00:55 PM1/13/13
to openk...@googlegroups.com
this is Kinect for Xbox 360, Model # is 1473.
right. it looks like I have the same issue as this one: https://github.com/OpenKinect/libfreenect/issues/316

Theodore Watson

unread,
Jan 13, 2013, 2:13:59 PM1/13/13
to openk...@googlegroups.com
there is a very rough fix for it in the libfrenect files in this branch:

just camera ( video/depth ) works. 
soon we should be able to get all the features working ( led / motor ) thanks to drew's recent email.

beyond.hack

unread,
Jan 13, 2013, 2:52:00 PM1/13/13
to openk...@googlegroups.com


On Jan 13, 2013 11:12 PM, "alex m." <mymac...@gmail.com> wrote:
>
> I do not have USB 3.0 ports. 
>
> The message I get after starting the glview demo is:
>
> Kinect camera test
> Number of devices found: 1
> Could not open device

You tried sudo ?

alex m.

unread,
Jan 13, 2013, 3:51:28 PM1/13/13
to openk...@googlegroups.com
I did. Got the same error.

You tried sudo ?


Γιάννης Γράβεζας

unread,
Jan 13, 2013, 3:57:34 PM1/13/13
to openk...@googlegroups.com

You could try this fork https://github.com/renewagner/libfreenect/commits/k4w-wip Maybe it works


--
Yannis Gravezas
Founder@Intrael
Athens, Greece

Christoph Kuhr

unread,
Jan 18, 2013, 4:54:57 AM1/18/13
to openk...@googlegroups.com
is there any progress in this? i ran into the same problem.
with the gspca_kinect modules i can acces both, the video and the sensor data.

is there the possibility to use a dummy driver for the motor?

i tryed to remove the motor routines from libfreenect, but then i got buffer mismatches...

László Sátori

unread,
Mar 12, 2013, 2:36:19 PM3/12/13
to openk...@googlegroups.com, christo...@web.de
I cant get it work! :(
I have made this things in libfreenect/build directory:
sudo make uninstall
make clean

then modified the src/cameras.c (line 907-909 "322 swapped to 334")
then in glview.c (line 415 "DEVICE_MOTOR removed")

after this, when i run glview:
Kinect camera test
Number of devices found: 1
GL thread
Szegmentálási hiba (core készült)
:(

what else can i do?

László Sátori

unread,
Mar 12, 2013, 3:32:59 PM3/12/13
to openk...@googlegroups.com, christo...@web.de
I did it! 

using this branch:

following this:

and the python wrapper works!

Thank you Renewagner and Theo!

Jogging Song

unread,
Mar 24, 2013, 11:05:44 AM3/24/13
to openk...@googlegroups.com
Hi,all

I am new here. I got the same message as well

Kinect camera test
Number of devices found: 1
Could not open device.

The model number: 1414.
OS: Windows
libfreenect branch:unstable.

From the web search, my XBox kinect is an old version. It should be supported.

Regards
Jogging

--
You received this message because you are subscribed to the Google Groups "OpenKinect" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openkinect+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rupert Brooks

unread,
Mar 25, 2013, 7:09:39 AM3/25/13
to openk...@googlegroups.com
Also got one to work using these changes.

@László - are you using a new Kinect for XBox, or a real Kinect for
windows. I have both an old and new Kinect for Xbox here (1414 and
1473). The code as written doesn't seem work for the new Kinect for
Xbox, because it only switches in the 334 byte expected return size if
it detected a Kinect for windows. This detection is done based on the
USB id. K4W is different, but both old and new models of K4Xbox have
the same USB ids. (Or maybe i misunderstood what you did) So
programmatically, the only way to tell is either noting the 334 byte
return, or the fact that the motor device is not present on the new
K4X.

In any case, i also got a Kinect for Xbox, model 1473 to spit out its
depth map simply by changing the expected size of the read msg to 334
bytes from 322. That change is the key change in the Theo link, in
camera.c above. All the other changes are just debug prints.

@Jogging: does lsusb show you the motor device? Thats the only way i
can tell the two models apart.

Caveat: - i have pretty limited experience with libfreenect (about an
hour), so im probably talking through my hat....

Rupert
--------------------------------------------------------------
Rupert Brooks
rupert...@gmail.com

Jogging Song

unread,
Mar 26, 2013, 10:32:57 AM3/26/13
to openk...@googlegroups.com
Thanks, Rupert.
In Device Manager, I install the drivers for three devices manually using the drivers coming with freenect.

Regards
Jogging

cnobile

unread,
May 8, 2013, 10:59:50 AM5/8/13
to openk...@googlegroups.com
Hi all,

I've had libfreenect working on Ubuntu 12.04 for a while now, well until Ubuntu did an update to some low level lib. Now it gets the same error for any Kinect I attach including version 1414, which should work fine. Has anybody else found this problem?

~Carl

rogermon

unread,
Sep 2, 2013, 12:41:56 PM9/2/13
to openk...@googlegroups.com
Hi Gang,

At one time, I had libfreenect working under Ubuntu 11.10. on my Pandaboard.  I just upgraded to 12.04, which I couldn't get to run on the board before, and now I get this same error.  I ran the modprobe commands talked about in the Ubuntu install instructions, to no avail.

All help is appreciated.

Florian Echtler

unread,
Sep 2, 2013, 2:58:56 PM9/2/13
to openk...@googlegroups.com
Hello rogermon,

which modprobe commands did your run? There are some problems regarding
USB 3.0 ports, but that shouldn't be an issue on the Pandaboard AFAIK.
Also, from which source did you install libfreenect?

Best, Florian
> <http://github.com/renewagner/libfreenect.git>
> <https://groups.google.com/groups/opt_out>.
> >>
> >>
> >
> >
> > --
> > You received this message because you are subscribed to
> the Google Groups
> > "OpenKinect" group.
> > To unsubscribe from this group and stop receiving emails
> from it, send an
> > email to openkinect+...@googlegroups.com.
> > For more options, visit
> https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >
> >
>
> --
> You received this message because you are subscribed to the
> Google Groups "OpenKinect" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to openkinect+...@googlegroups.com.
> For more options, visit
> https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenKinect" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openkinect+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


--
SENT FROM MY DEC VT50 TERMINAL

signature.asc
Reply all
Reply to author
Forward
0 new messages