i am confused by this- first you say that you need sane to look under /sys or /dev for devices, then you say that you have to alter permissions to get it working. which is it?
allan On Tue, 2 May 2006, Peter Christy wrote: > I'm running Slackware-current, and using udev *without* hotplug to try and > improve start-up times. > > I've built the latest cvs of sane and installed it, but it seems that it still > relies on hotplug to set permissions for USB devices. My system no longer has > hotplug (nor does Debian, I believe, and many others are in the process of > dropping hotplug and just using udev). > > When using udev without hotplug, the actual position of the usb device on > the /sys bus seems to be variable. However, it is quite easy to make a > symlink (/dev/usbscanner) that will always point to the scanner wherever it > is actually mounted. Unfortunately, this symlink - or rather the device it > ultimately links to - is under the /sys mount point rather than /proc. > > 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) > > At present I am forced to manually alter the permissions of my scanner after > each boot, having first located where it has appeared. This is not an optimal > solution! > > I think sane needs to offer an option as to whether it should seek /proc > or /dev devices for USB (and possibly others, which I don't have!) > > I have tried to force it to look for /dev devices by using the old .conf > options from the kernel module days, but that doesn't work either! > > If I have missed something here, I would be grateful for any pointers as to > how to resolve this problem. However, I suspect the solution probably lies in > updating sane to reflect the current thinking on hotplugging. > > Cheers, > > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera