[sane-devel] Imageclass D530 Scanner Support (New Patch?)
tx
gtux at gimpchat.com
Tue Oct 21 01:39:45 UTC 2014
Ok, after further testing and being clued in about Invalid_argument by
this link..
https://wiki.archlinux.org/index.php/sane#Invalid_argument
I am now able to scan as root, but only by giving the the full device name
listed by scanfile -L. As a regular user, I only see the device name:
pixma:04A92775, without the __1144T3603236 portion.
Here is the command that worked, as SU.
scanimage --device pixma:04A92775_1144T3603236 --format=tiff > test.tiff
That worked! Yay!! :)
I guess my issue now is one of permissions. I thought I created a scanner
group and added my user to it. I will verify that. Hopefully, once my
permissions issues are fixed, I'll be able to use a SANE frontend, instead
of the scanfile command. If you have any suggestions on getting these
permissions fixed, it would be appreciated.
I'll report back my results.
Thanks again!
~gtux
On Mon, October 20, 2014 8:13 pm, tx wrote:
> Thanks for your assistance!
>
>
> I'm still getting the same results: Invalid_argument
>
>
> $ scanimage -L
> device `v4l:/dev/video1' is a Noname Hauppauge WinTV-HVR1800 virtual
> device device `v4l:/dev/video0' is a Noname Hauppauge WinTV-HVR1800
> virtual device device `pixma:04A92775' is a CANON Canon imageCLASS D530
> multi-function peripheral
>
> $ scanimage -x 5 -y 5 2> pixma.log > pixma.pnm
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled with pthread support.
> [pixma] pixma version 0.17.11
> [pixma] pixma_collect_devices() found Canon imageCLASS D530 at
> libusb:002:005
> [pixma] pixma_find_scanners() found 1 devices
> scanimage: sane_start: Invalid argument
>
>
> There are two scan options. One is "Computer' and when selected, it
> flashes briefly the message "Connect to computer". There is a Window's
> utility that I assume is used to pull/accept scans when using this
> option.
>
> The second options and the one I'm using here, is set to "Remote Scanner"
> and it responds with "Waiting online".
>
> It appears the scanner is awaiting the commands to initiate the scan
> process but never gets them. SANE always responds with Invalid_argument.
>
> Where do I go from here?
>
>
> I can report that printing works fine with this device so it's connected
> and communicating properly with the computer.
>
> Thanks!
>
>
> ~gtux
>
>
> On Mon, October 20, 2014 11:44 am, Rolf Bensch wrote:
>
>> Hi gtux,
>>
>>
>>
>> I just committed a working patch to Sane's git repository.
>>
>>
>>
>> If you may have problems with your installation, please follow the
>> installation description in README.linux.
>>
>> Cheers,
>> Rolf
>>
>>
>>
>>
>> Am 18.10.2014 um 07:08 schrieb tx:
>>
>>
>>> More info from lsusb..
>>>
>>>
>>>
>>> # lsusb -v
>>>
>>>
>>>
>>> Bus 002 Device 005: ID 04a9:2775 Canon, Inc.
>>> Device Descriptor:
>>> bLength 18 bDescriptorType 1 bcdUSB 2.00
>>> bDeviceClass 0 (Defined at Interface level) bDeviceSubClass
>>> 0
>>> bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04a9
>>> Canon, Inc.
>>> idProduct 0x2775 bcdDevice 1.00 iManufacturer 1
>>> Canon Inc
>>> iProduct 2 D530/D560 iSerial 3
>>> 1144T3603236
>>> bNumConfigurations 1 Configuration Descriptor: bLength
>>> 9 bDescriptorType 2 wTotalLength
>>> 62
>>> bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0
>>> bmAttributes 0xc0 Self Powered MaxPower 2mA
>>> Interface Descriptor:
>>> bLength 9 bDescriptorType 4 bInterfaceNumber 0
>>> bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255
>>> Vendor Specific Class
>>> bInterfaceSubClass 0 bInterfaceProtocol 255 iInterface 0
>>> Endpoint Descriptor:
>>> bLength 7 bDescriptorType 5 bEndpointAddress
>>> 0x03 EP 3 OUT
>>> bmAttributes 2 Transfer Type Bulk Synch Type
>>> None
>>> Usage Type Data
>>> wMaxPacketSize 0x0200 1x 512 bytes bInterval 11
>>> Endpoint
>>> Descriptor:
>>> bLength 7 bDescriptorType 5 bEndpointAddress
>>> 0x84 EP 4 IN
>>> bmAttributes 2 Transfer Type Bulk Synch Type
>>> None
>>> Usage Type Data
>>> wMaxPacketSize 0x0200 1x 512 bytes bInterval 0
>>> Endpoint
>>> Descriptor:
>>> bLength 7 bDescriptorType 5 bEndpointAddress
>>> 0x85 EP 5 IN
>>> bmAttributes 3 Transfer Type Interrupt Synch Type
>>> None
>>> Usage Type Data
>>> wMaxPacketSize 0x0040 1x 64 bytes bInterval 11
>>> Interface
>>> Descriptor:
>>> bLength 9 bDescriptorType 4 bInterfaceNumber 1
>>> bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 7
>>> Printer
>>> bInterfaceSubClass 1 Printer bInterfaceProtocol 2
>>> Bidirectional
>>> iInterface 0 Endpoint Descriptor: bLength
>>> 7 bDescriptorType 5 bEndpointAddress
>>> 0x01 EP 1 OUT
>>> bmAttributes 2 Transfer Type Bulk Synch Type
>>> None
>>> Usage Type Data
>>> wMaxPacketSize 0x0200 1x 512 bytes bInterval 255
>>> Endpoint
>>> Descriptor:
>>> bLength 7 bDescriptorType 5 bEndpointAddress
>>> 0x82 EP 2 IN
>>> bmAttributes 2 Transfer Type Bulk Synch Type
>>> None
>>> Usage Type Data
>>> wMaxPacketSize 0x0200 1x 512 bytes bInterval 255
>>> Device
>>> Qualifier (for other device speed):
>>> bLength 10 bDescriptorType 6 bcdUSB 2.00
>>> bDeviceClass 0 (Defined at Interface level) bDeviceSubClass
>>> 0
>>> bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations
>>> 1
>>> Device Status: 0x0001
>>> Self Powered
>>>
>>>
>>>
>>> Thanks!
>>> gtux
>>>
>>> On Sat, October 18, 2014 12:50 am, tx wrote:
>>>
>>>
>>>> I have included a log file, per the instructions in the January
>>>> thread, which appears to be the last effort underway for this
>>>> device.
>>>>
>>>>> If your scanner has problems, please enable debug output:
>>>>> $ export SANE_DEBUG_PIXMA=11
>>>>> and create a log file with (scan area of 5mm x 5mm in color @
>>>>> 75dpi
>>>>> ): $
>>>>> scanimage -x 5 -y 5 2> pixma.log > pixma.pnm Many thanks for your
>>>>> help. Cheers, Rolf
>>>>>
>>>>>
>>>>>
>>>>
>>>> As Normal User:
>>>> scanimage -x 5 -y 5 2> pixma.log > pixma.pnm [sanei_debug] Setting
>>>> debug level of pixma to 11. [pixma] pixma is compiled with pthread
>>>> support. [pixma] pixma version 0.17.11 [pixma]
>>>> pixma_collect_devices() found Canon imageCLASS D530 at
>>>> libusb:002:005
>>>> [pixma] pixma_find_scanners() found 1 devices
>>>> scanimage: sane_start: Invalid argument
>>>>
>>>>
>>>>
>>>>
>>>> As Normal user, specifying the device
>>>> scanimage --device-name=pixma:04A92775 -x 5 -y 5 2> pixma.log >
>>>> pixma.pnm [sanei_debug] Setting debug level of pixma to 11. [pixma]
>>>> pixma is compiled with pthread support. [pixma] pixma version
>>>> 0.17.11
>>>> [pixma] pixma_collect_devices() found Canon imageCLASS D530 at
>>>> libusb:002:005
>>>> [pixma] pixma_open(): Canon imageCLASS D530
>>>> [pixma] pixma_connect() failed EACCES
>>>> [pixma] pixma_open() failed EACCES
>>>> [pixma] pixma_close(): Canon imageCLASS D530
>>>> scanimage: open of device pixma:04A92775 failed: Access to resource
>>>> has been denied
>>>>
>>>> As Root..
>>>> # scanimage -x 5 -y 5 2> pixma.log > pixma.pn
>>>> [sanei_debug] Setting debug level of pixma to 11.
>>>> [pixma] pixma is compiled with pthread support.
>>>> [pixma] pixma version 0.17.11
>>>> [pixma] pixma_collect_devices() found Canon imageCLASS D530 at
>>>> libusb:002:005
>>>> [pixma] pixma_find_scanners() found 1 devices
>>>> scanimage: sane_start: Invalid argument
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> As Root, specifying the device..
>>>> # scanimage --device-name=pixma:04A92775 -x 5 -y 5 2> pixma.log >
>>>> pixma.pnm [sanei_debug] Setting debug level of pixma to 11. [pixma]
>>>> pixma is compiled with pthread support. [pixma] pixma version
>>>> 0.17.11
>>>> [pixma] pixma_collect_devices() found Canon imageCLASS D530 at
>>>> libusb:002:005
>>>> scanimage: open of device pixma:04A92775 failed: Invalid argument
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hopefully, Rolf is still willing to continue with this endeavor.
>>>>
>>>>
>>>>
>>>>
>>>> Thanks!
>>>> gtux
>>>>
>>>> On Fri, October 17, 2014 2:05 am, tx wrote:
>>>>
>>>>
>>>>
>>>>> I have made further progress and believe I was able to manually
>>>>> apply the patch provided by Rolf to the current version of
>>>>> pixma_imageclass.c from git. After applying the patch, I am now
>>>>> able to see the device as a normal user via scanimage -L
>>>>>
>>>>> device `v4l:/dev/video1' is a Noname Hauppauge WinTV-HVR1800
>>>>> virtual device device `v4l:/dev/video0' is a Noname Hauppauge
>>>>> WinTV-HVR1800
>>>>> virtual device device `pixma:04A92775' is a CANON Canon imageCLASS
>>>>> D530
>>>>> multi-function peripheral
>>>>>
>>>>> The first two devices are my Hauppauge HDTV ATSC card. Before
>>>>> applying the patch, I did not see the pixma:04A92775 device. I
>>>>> also copied the rule to /etc/udev/rules.d/, as outlined in the
>>>>> January
>>>>> post.
>>>>>
>>>>>
>>>>> # Canon imageCLASS D530
>>>>> ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2775", MODE="0664",
>>>>> GROUP="scanner", ENV{libsane_matched}="yes"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> However, this is as far as I have been able to get. If I run the
>>>>> test as a regular user, I get the "invalid argument" message. $
>>>>> scanimage > test.pnm scanimage: sane_start: Invalid argument
>>>>>
>>>>>
>>>>> or when including the device name, I am denied permissions. $
>>>>> scanimage --device-name=pixma:04A92775 > test.prn scanimage: open
>>>>> of device pixma:04A92775 failed: Access to resource has been
>>>>> denied
>>>>>
>>>>> If I run the test as root, I get this..
>>>>> [root]# scanimage > test.prn
>>>>> scanimage: sane_start: Invalid argument
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> [root]# scanimage --device-name=pixma:04A92775 > test.prn
>>>>> scanimage: open of device pixma:04A92775 failed: Invalid argument
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I'm not sure where to go from here. Any assistance would be
>>>>> appreciated.
>>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, October 16, 2014 9:33 am, tx wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Greetings,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have a Canon D530 Printer/Copy/Scanner and would really like
>>>>>> to be able to scan in Linux via sane. I'm currently using Fedora
>>>>>> 20_x86 and
>>>>>> would be happy to volunteer for testing.
>>>>>>
>>>>>> (vendor=0x04a9 [Canon Inc], product=0x2775 [D530/D560]) at
>>>>>> libusb:002:008
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I grabbed the latest backend from git and applied this patch
>>>>>> from January.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> http://lists.alioth.debian.org/pipermail/sane-devel/2014-Januar
>>>>>> y/ 0320
>>>>>> 66
>>>>>> .h
>>>>>> tml
>>>>>>
>>>>>> I assume the patch is outdated because I couldn't apply it to
>>>>>> the source file: pixma_imageclass.c.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Is there a new patch available that I could try.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> gtux
>>>>>>
>>>>>>
>>>>>> --
>>>>>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>>>>>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-de
>>>>>> ve l Unsubscribe: Send mail with subject "unsubscribe
>>>>>> your_password" to sane-devel-request at lists.alioth.debian.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>>>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>>>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>>> to sane-devel-request at lists.alioth.debian.org
>>>>
>>>
>>>
>>>
>>
>
>
>
More information about the sane-devel
mailing list