Hi, Sorry I tried to post with the wrong e-mail. So here it goes again.
I use debian testing with a 2.6.1 kernel. Since "scanner" is obsolete now I tried to setup my scanner with libusb. But after much struggling I haven't succeeded for now. I hope you can give me some light :-) sane-find-scanner works fine. found USB scanner (vendor=0x06bd [AGFA], product=0x2061 [ Snapscan1212u_2]) at libusb:001:003 xsane launched as user won't work: barbara@babs1:~$ xsane [sanei_debug] Setting debug level of snapscan to 64. [snapscan] sane_snapscan_init [snapscan] sane_snapscan_init: Snapscan backend version 1.4.35 [snapscan] add_usb_device(/dev/usb/scanner0 bus=usb) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(/dev/usb/scanner0) [snapscan] add_usb_device: error opening device /dev/usb/scanner0: Invalid argument [snapscan] add_usb_device(libusb:001:003) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(libusb:001:003) [snapscan] add_usb_device: error opening device libusb:001:003: Access to resource has been denied [snapscan] sane_snapscan_get_devices (0xbfffe748, 0) [snapscan] sane_snapscan_exit xsane launched as root segfaults (when you read "erreur de segmentation" at the last line). babs1:/home/barbara# xsane [sanei_debug] Setting debug level of snapscan to 128. [snapscan] sane_snapscan_init [snapscan] sane_snapscan_init: Snapscan backend version 1.4.35 [snapscan] add_usb_device(/dev/usb/scanner0 bus=usb) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(/dev/usb/scanner0) [snapscan] add_usb_device: error opening device /dev/usb/scanner0: Invalid argum ent [snapscan] add_usb_device(libusb:001:003) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(libusb:001:003) [snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor ID [snapscan] snapscani_check_device() [snapscan] mini_inquiry [snapscan] snapscan_cmd [snapscan] snapscani_usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] atomic_usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] usb_cmd: cmdlen=6, datalen=0 [snapscan] usb_write: writing: 0x12 0x00 0x00 0x00 0x24 0x00 [snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00 [snapscan] usb_read: reading: 0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x41 0x47 ... [snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00 [snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN 1212U_2" a s upported scanner? [snapscan] snapscani_get_model_id(SNAPSCAN 1212U_2, 1, 2) [snapscan] snapscani_get_model_id: looking up scanner for ID 0x06bd,0x2061. [snapscan] snapscani_check_device: Autodetected driver: SnapScan1212 [snapscan] snapscani_usb_close(1) [snapscan] snapscani_init_device_structure() [snapscan] sane_snapscan_get_devices (0xbfffe548, 0) [snapscan] sane_snapscan_open (libusb:001:003, 0xbffff3c4) [snapscan] find_device [snapscan] sane_snapscan_open: Allocating 64512 bytes as scanner buffer. [snapscan] sane_snapscan_open: allocated scanner structure at 0x817c810 [snapscan] open_scanner [snapscan] snapscani_usb_open(libusb:001:003) Configuration: barbara@babs1:/$ cat /etc/hotplug/usb/libsane.usermap # This file is installed by the libsane Debian package. # # Sample entry (replace 0xVVVV and 0xPPPP with vendor ID and product ID respectively) : libusbscanner 0x0003 0x06bd 0x2061 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 # barbara@babs1:~$ cat /etc/sane.d/snapscan.conf # Change to the fully qualified filename of your firmware file, if # firmware upload is needed by the scanner firmware /etc/sane.d/SnapScan1212U_2.bin # If not automatically found you may manually specify a device name. # For USB scanners also specify bus=usb, e.g. /dev/usb/scanner0 bus=usb # /dev/usbscanner bus=usb # I have commented all the scanners and left only mine: # Agfa 1212U #usb 0x06bd 0x0001 usb 0x06bd 0x2061 /dev/usbscanner is a symlink to /dev/usb/scanner0 which is my scanner... I have tried with commenting out "/dev/usb/scanner0 bus=usb" in snapscan.conf. I have also tried /dev/usbscanner. barbara@babs1:~$ xsane [sanei_debug] Setting debug level of snapscan to 128. [snapscan] sane_snapscan_init [snapscan] sane_snapscan_init: Snapscan backend version 1.4.35 [snapscan] add_usb_device(/dev/usbscanner bus=usb) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(/dev/usbscanner) [snapscan] add_usb_device: error opening device /dev/usbscanner: Invalid argumen t [snapscan] add_usb_device(libusb:001:003) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(libusb:001:003) [snapscan] add_usb_device: error opening device libusb:001:003: Access to resour ce has been denied [snapscan] sane_snapscan_get_devices (0xbfffe748, 0) [snapscan] sane_snapscan_exit barbara@babs1:~$ su Password: babs1:/home/barbara# export SANE_DEBUG_SNAPSCAN=128 babs1:/home/barbara# xsane [sanei_debug] Setting debug level of snapscan to 128. [snapscan] sane_snapscan_init [snapscan] sane_snapscan_init: Snapscan backend version 1.4.35 [snapscan] add_usb_device(/dev/usbscanner bus=usb) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(/dev/usbscanner) [snapscan] add_usb_device: error opening device /dev/usbscanner: Invalid argumen t [snapscan] add_usb_device(libusb:001:003) [snapscan] add_usb_device: Detected (kind of) an USB device [snapscan] snapscani_usb_open(libusb:001:003) [snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor ID [snapscan] snapscani_check_device() [snapscan] mini_inquiry [snapscan] snapscan_cmd [snapscan] snapscani_usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] atomic_usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] usb_cmd(1,0xbfffd350,6,0xbfffd320,0xbfffd31c (36)) [snapscan] usb_cmd: cmdlen=6, datalen=0 [snapscan] usb_write: writing: 0x12 0x00 0x00 0x00 0x24 0x00 [snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00 [snapscan] usb_read: reading: 0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x41 0x47 ... [snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00 [snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN 1212U_2" a s upported scanner? [snapscan] snapscani_get_model_id(SNAPSCAN 1212U_2, 1, 2) [snapscan] snapscani_get_model_id: looking up scanner for ID 0x06bd,0x2061. [snapscan] snapscani_check_device: Autodetected driver: SnapScan1212 [snapscan] snapscani_usb_close(1) [snapscan] snapscani_init_device_structure() [snapscan] sane_snapscan_get_devices (0xbfffe548, 0) [snapscan] sane_snapscan_open (libusb:001:003, 0xbffff3c4) [snapscan] find_device [snapscan] sane_snapscan_open: Allocating 64512 bytes as scanner buffer. [snapscan] sane_snapscan_open: allocated scanner structure at 0x817c810 [snapscan] open_scanner [snapscan] snapscani_usb_open(libusb:001:003) Erreur de segmentation Thank you very much for reading this lengthy post and help me. Barbara -- website : http://www.babsfrance.fr.st ICQ : 135868405