[sane-devel] Hotplug and udev files created automatically now,
	please test!
    Wittawat Yamwong 
    wy-sane-devel at arcor.de
       
    Tue May  2 17:27:12 UTC 2006
    
    
  
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.
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.
Regards
-- 
Wittawat Yamwong
Hannover, Germany
    
    
More information about the sane-devel
mailing list