I am quite new to the resmgr and having the following problem. I am using an Epson Perfection 3200 scanner on a 9.0 system. Hotplug recognizes the device correctly and I can use it directly. An application (vuescan < 7.6.75) accessing scanner directly without resmgr is working just fine. The new version of vuescan (7.6.78) is now using resmgr. It properly finds the scanner in /proc/bus/usb, this particular time it is 001,026 and then attempts to open it through resmgr using notation usb:001,026. resmgrd responds with code 502. When I manually try to list family usb it reports "no devices available". lsusb reports at the same time that scanner is there: Bus 001 Device 001: ID 0000:0000 Bus 001 Device 002: ID 0451:1446 Texas Instruments, Inc. TUSB2040/2070 Hub Bus 001 Device 026: ID 04b8:011c Seiko Epson Corp. Perfection 3200 If I try to use notation without family in resmgr open command, it succeds: /sbin/resmgr open /dev/usb/scanner0 success I suspect that there is some miscommunication between hotplug and resmgr as it is just not adding any devices to usb family. What am I doing wrong and how can I make resmgr see usb family? Thanks, -Kastus
On Thu, Feb 19, 2004 at 10:44:22PM -0800, Kastus wrote:
I suspect that there is some miscommunication between hotplug and resmgr as it is just not adding any devices to usb family.
What am I doing wrong and how can I make resmgr see usb family?
Answering my own question: I added a file /etc/hotplug/usb/desktopdev.usermap with the following contents: # usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info desktopdev 0x0003 0x04b8 0x011c 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 That forces /etc/hotplug/usb.agent to invoke /etc/hotplug/usb/desktopdev and add a usb device to resmgr. -Kastus
* Kastus
On Thu, Feb 19, 2004 at 10:44:22PM -0800, Kastus wrote:
I suspect that there is some miscommunication between hotplug and resmgr as it is just not adding any devices to usb family.
What am I doing wrong and how can I make resmgr see usb family?
Answering my own question:
I added a file /etc/hotplug/usb/desktopdev.usermap with the following contents:
# usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info desktopdev 0x0003 0x04b8 0x011c 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
That forces /etc/hotplug/usb.agent to invoke /etc/hotplug/usb/desktopdev and add a usb device to resmgr.
In _two_ lines with the first _commented-out_ as per your post ??? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Fri, Feb 20, 2004 at 06:08:29PM -0500, Patrick Shanahan wrote:
# usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info desktopdev 0x0003 0x04b8 0x011c 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
That forces /etc/hotplug/usb.agent to invoke /etc/hotplug/usb/desktopdev and add a usb device to resmgr.
In _two_ lines with the first _commented-out_ as per your post ???
Yes, that's correct. The first line just explains the format. desktopdev is the script to invoke, 0x04b8 is Epson, 0x011c is Perfection 3200 Photo scanner. The confusing point was the comment in /etc/hotplug/usb/desktopdev: # You just need to create an entry "desktopdev ..." in a usermap file # and it will be picked up automatically. It doesn't explain which usermap file to edit. Regards, -Kastus
* Kastus
desktopdev is the script to invoke, 0x04b8 is Epson, 0x011c is Perfection 3200 Photo scanner.
The confusing point was the comment in /etc/hotplug/usb/desktopdev:
# You just need to create an entry "desktopdev ..." in a usermap file # and it will be picked up automatically.
It doesn't explain which usermap file to edit.
I do not have the epson scanner, does the desktopdev.usermap limit the possible desktop mount-points for usb devices? thanks, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Fri, Feb 20, 2004 at 07:17:29PM -0500, Patrick Shanahan wrote:
I do not have the epson scanner, does the desktopdev.usermap limit the possible desktop mount-points for usb devices?
Honestly, I know really little about hotplug. From what I learnt so far, usermap is just a way to invoke some script when a device is plugged in. Script can be anything, in case of desktopdev, it just makes device known to resmgr. But of course, it can change permissions, create symlinks, load kernel modules, etc. Mount point is created/controlled somewhere else. It's usually something under /proc/bus/usb/ Regards, -Kastus
participants (2)
-
Kastus
-
Patrick Shanahan