[plug] Scanners - again!

David Dartnall darts at dialix.com.au
Wed Jun 24 21:16:39 WST 2009


William Kenworthy wrote:
> For my epson CX5900 on gentoo
>
> moriah ~ # lsusb
> Bus 005 Device 009: ID 04b8:082e Seiko Epson Corp. 
> Bus 005 Device 001: ID 1d6b:0002  
> Bus 001 Device 001: ID 1d6b:0001  
> Bus 004 Device 001: ID 1d6b:0001  
> Bus 003 Device 001: ID 1d6b:0001  
> Bus 002 Device 030: ID 1457:5122  
> Bus 002 Device 001: ID 1d6b:0001  
> moriah ~ #
>
> edit /etc/udev/rules/70-libsane.rules
>
> and add the following one liner
>
> ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="082e", MODE="0664",
> GROUP="scanner", ENV{libsane_matched}="yes"
>
> Just make the changes for your usb numbers
>
> BillK
>
>
>
> On Wed, 2009-06-24 at 18:30 +0800, David Dartnall wrote:
>   
>> Further to recent correspondence on scanners:
>>
>> After checking whether drivers are available, I finally bought a Canon 
>> MP630 (influenced, too by a cheap offer from Harvey Norman), but the 
>> driver position is not as it seemed.
>>
>> The printer's working ok but I'm buggered if I can get the scanner to work.
>>
>> I've followed all the directions at www.sane-project.org/man/pixma5.htm, 
>> I've loaded the Canon linux drivers from the canon asia website, and 
>> spent all day at it without success.
>>
>> Under my previous setup, (Canon Lide scanner) Xsane recognised the 
>> webcam and scanner but now all I get is the error message:
>>
>> "Failed to open device 'v4l:/dev/video0': Invalid argument", without any 
>> recognition of the scanner...
>>
>> scanimage -L produces:  "v4l:/dev/video0 is a noname UVCcamera 
>> (046d:0990) virtual device"
>>
>> It seems that it ubuntu needs to be told where to find the scanner (at 
>> libusb:001:005).  How do I do that?
>>
>> Any help appreciated.
>>
>> Dave Dartnall
>> _______________________________________________
>> PLUG discussion list: plug at plug.org.au
>> http://www.plug.org.au/mailman/listinfo/plug
>> Committee e-mail: committee at plug.linux.org.au
>>     
Thank you William, that's interesting. The directory in jaunty is 
/etc/udev/rules.d, and there was no libsane.rules file there. However 
during the day I found somewhere a note that one is required and I added 
one named '70-libsane.rules' with the following contents, modelled on 
the 80-canon_mfp.rules file (which did exist) referred to below:

~~~~~~~~~~~~~~~~~~~~~~~~

# Canon PIXMA MP630
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="172e", mode="666", 
GROUP="scanner"

~~~~~~~~~~~~~~~~~~~~~~~~

This is the existing '80-canon_mfp.rules' file contents:

~~~~~~~~~~~~~~~~~~~~~~~~

# 80-canon_mfp.rules
ACTION!="add", GOTO="canon_mfp_end"
SUBSYSTEM=="usb_device", GOTO="canon_mfp_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="canon_mfp_start"
GOTO="canon_mfp_end"
LABEL="canon_mfp_start"
# Canon MP160
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1714", MODE="666"
# Canon MP510
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1717", MODE="666"
# Canon MP600
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1718", MODE="666"
# Canon MP140 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="172b", MODE="666"
# Canon MP210 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1721", MODE="666"
# Canon MP520 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1724", MODE="666"
# Canon MP610 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1725", MODE="666"
#MP190 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1734", MODE="666"
#MP240 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1732", MODE="666"
#MP540 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="1730", MODE="666"
#MP630 series
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="172e", MODE="666"
LABEL="canon_mfp_end"

~~~~~~~~~~~~~~~~~~~~~~


So following your email, I've left the SYSFS characters in my 
'70-libsane.rules' file but added

ENV{libsane_matched}="yes" to the end of the line, disconnected and reconnected the usb cable, and tried xsane again. No difference.

lsusb gives the following:

Bus 001 Device 004: ID 04a9:172e Canon, Inc. 
Bus 001 Device 002: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Regards

Dave Dartnall




More information about the plug mailing list