[sane-devel] Hotplug and udev files created automatically now, please test!

Peter Christy christy at attglobal.net
Wed May 3 20:44:11 UTC 2006


On Tuesday 02 May 2006 18:27, Wittawat Yamwong wrote:
> On Tuesday 02 May 2006 15:17, Peter Christy wrote:
> > [...]
> > I can't find anyway of making sane use the /sys (or /dev) devices rather
> > than /proc. Neither does it seem possible to make udev change the
> > permissions of devices mounted under /proc. (The naming systems are
> > different)
>
> I'm not familiar with Slackware (I'm using SUSE Linux 10.0) but I think the
> concept should be the same. You have at least 2 choices:
>
> 1. If your system and libusb use resmgr, add the vendor and product ID to
> the resmgr configuration file. Read resmgr document for more info.

No, Slackware doesn't use resmgr!

> 2. If your libusb doesn't properly open a device node under /dev/bus/usb/
> (like mine; libusb bug?) but works correctly with usbfs in /proc/bus/usb/,
> add the following line to your udev configuration file (It works at least
> on my system):
>
> SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="<VID>/<PID>/*",
> RUN+="/bin/sh -c '/bin/chgrp scanner $env{DEVICE}; /bin/chmod 664
> $env{DEVICE}'"
>
> Replace <VID> and <PID> with the correct USBID of your scanner and check
> the group and permission if it matches your system. See udev man page
> and /usr/src/linux/Documentation/usb/hotplug.txt for more info.

I'll give that a try in the morning, if I get chance! Its nearly 10 at night 
here, and I've only just got home from work! I'm going to be pretty busy with 
my day job for the next few days, but will try and pursue this when I get the 
chance. I really want to get to the bottom of this, and your suggestion 2 
sounds very similar to my issue!

Many thanks for your input!

-- 
Pete
christy at attglobal.net



More information about the sane-devel mailing list