Skip to contentSkip to conversation

Cameras, Scanners and other USB device-less object-d'arse

DISCUSSION Scott James Remnant 3 participants 4 messages Sep 27, 2005

lore
Share & tools
lore
#0 lore raw

We here at Ubuntu Towers have turfed up an interesting problem in the last couple of days, there's still a large bunch of consumer USB devices such as scanners and "libgphoto2" cameras that don't work with the uevent system.

Instead if seems that to communicate these devices you need to use libusb, which uses a file under /proc/bus/usb/devices/NNN/NNN -- rather than any sensible node under /dev.

The lack of any node under /dev also seems to mean that there isn't any sysfs support for these devices.

What's the long-term plan for things like this?

Scott

Signature · 2 lines
Scott James Remnant
[email protected]
#1 lore raw
Quoted 4 lines · Scott James Remnant

The lack of any node under /dev also seems to mean that there isn't any sysfs support for these devices.

What's the long-term plan for things like this?

/dev/bus/usb/devices/NNN/NNN, the udev rules are already in the Debian package.

IIRC the kernel code needed to support this was supposed to be merged soon.

Signature · 2 lines
ciao,
Marco
#2 lore raw
In reply to Scott James Remnant
Quoted 5 lines · Scott James Remnant

We here at Ubuntu Towers have turfed up an interesting problem in the last couple of days, there's still a large bunch of consumer USB devices such as scanners and "libgphoto2" cameras that don't work with the uevent system.

Quoted 8 lines

Instead if seems that to communicate these devices you need to use libusb, which uses a file under /proc/bus/usb/devices/NNN/NNN -- rather than any sensible node under /dev.

The lack of any node under /dev also seems to mean that there isn't any sysfs support for these devices.

What's the long-term plan for things like this?

don't use usbdevfs:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;hûf82fd2e1f4e679c60516d772d1862c941ca845

libusb needs a patch, which is on this list.

Kay

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Scott James Remnant
Quoted 5 lines · Marco d'Itri
Quoted 3 lines · Scott James Remnant

The lack of any node under /dev also seems to mean that there isn't any sysfs support for these devices.

Quoted 8 lines
Quoted 1 line

What's the long-term plan for things like this?

/dev/bus/usb/devices/NNN/NNN, the udev rules are already in the Debian package.

IIRC the kernel code needed to support this was supposed to be merged soon.

Ah, excellent -- it's just our fault for lagging and having silly freeze dates. We'll be able to pick this up in a few weeks when we open dapper development.

Scott

Signature · 2 lines
Scott James Remnant
[email protected]