[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Howto get xsane with libusb working for normal users (was Re: Howto get an usb scanner working under linux 2.6.3)



Hello,

I'm trying to get xsane to work with libusb;
Now, as root user xsane finds the scanner but as a normal user xsane doesn't find it! This is both on 2.6.3 and 2.4.24 (where I took out the scanner.o module)

I found this page http://www.freecolormanagement.com/sane/libusb.html about configuring libusb but the scanner still doesn't work. I attach /etc/sane.d/epson.conf, /etc/hotplug/usb.usermap, and /etc/hotplug/usb/epson_scanner I currently have

Can anybody tell me what's wrong? I've got an Epson Perfection 1650 scanner. This is what sane-find-scanner says:
found USB scanner (vendor=0x04b8, product=0x0110) at libusb:001:004

It seems the numbers at libusb keep changing I hope I don't have to update settings each time or so :-/

Thanks for any help,

Joris
# epson.conf
#
# here are some examples for how to configure the EPSON backend
#
# SCSI scanner:
#scsi EPSON

#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner - only enable this if you have an EPSON scanner. It could
#               otherwise block your non-EPSON scanner from being 
#               recognized.
#		Depending on your distribution, you may need either the
#		first or the second entry.
#usb /dev/usbscanner0
#usb /dev/usb/scanner0
#usb
#usb libusb:001:003
usb 0x04b8 0x0110

# This file is installed by the libsane Debian package.
#
# Sample entry (replace 0xVVVV and 0xPPPP with vendor ID and product ID respectively) :
# libusbscanner      0x0003      0xVVVV   0xPPPP    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
#
# usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
#
epson_scanner      0x0003      0x04b8   0x0110    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000

#!/bin/bash

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
  chown root "${DEVICE}"
  chgrp scanner "${DEVICE}"
  chmod 660 "${DEVICE}"
fi


Reply to: