[sane-devel] Hotplug and udev files created automatically now,
please test!
Peter Christy
christy at attglobal.net
Tue May 2 13:17:38 UTC 2006
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,
--
Pete Christy
christy at attglobal.net
More information about the sane-devel
mailing list