[sane-devel] Lost with udev and sane

Oliver Schwartz Oliver.Schwartz at gmx.de
Sun Mar 15 18:24:06 UTC 2009


John,

You don't need to create any '/dev/usb/scanner' device, nor should you  
specify the scanner device in snapscan.conf. Your scanner will be  
detected automatically provided that the USB ID is listed in  
snapscan.conf, which should be the case for the snapscan 1212 on any  
standard sane installation.

Concerning your log: All read and write operations to the scanner  
fail, so either the scanner does not respond (possible reasons:  
scanner hangs from previous communication attempts or is broken) or  
the backend does not communicate with the scanner at all.

My advice is to remove the udev rules (the only udev rule that make  
sense is to set proper access permissions on the scanner device file),  
than power-cycle the scanner and try again. You can send me the  
resulting log if the problems persist. If you get permission problems,  
try as root first before creating new udev rules.

Regards,

Oliver

On 14.03.2009, at 20:05, John Coppens wrote:
>
> 5) Checked that the firmware was available, and the firmware command  
> set
> in snapscan.conf
>
> 6) with DEBUG level set to 255, I get:
>
> [sanei_debug] Setting debug level of snapscan to 255.
> [snapscan] sane_snapscan_init
> [snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
> [snapscan] add_usb_device(/dev/usb/scanner bus=usb)
> [snapscan] add_usb_device: Detected (kind of) an USB device
> [snapscan] snapscani_usb_open(/dev/usb/scanner)
> [snapscan] snapscani_check_device()
> [snapscan] mini_inquiry
> [snapscan] snapscan_cmd
> [snapscan] snapscani_usb_cmd(0,0xbfe52212,6,0xbfe521ee,0xbfe52218  
> (36))
> [snapscan] atomic_usb_cmd(0,0xbfe52212,6,0xbfe521ee,0xbfe52218 (36))
> [snapscan] usb_cmd(0,0xbfe52212,6,0xbfe521ee,0xbfe52218 (36))
> [snapscan] usb_cmd: cmdlen=6, datalen=0
> [snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
> [snapscan] usb_write Only 0 bytes written
> [snapscan] Written 0 bytes
> [snapscan] mini_inquiry: snapscan_cmd command failed: Error during  
> device
> I/O [snapscan] snapscani_check_device: mini_inquiry failed with Error
> during device I/O. [snapscan] snapscani_usb_close(0)
> [snapscan] 1st read 0 write 0
> [snapscan] sane_snapscan_get_devices (0xbfe533a8, 0)
> device `v4l:/dev/video0' is a Noname LifeView/Typhoon FlyVIDEO2000
> virtual device [snapscan] sane_snapscan_exit





More information about the sane-devel mailing list