Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-27 Thread Rolf Bensch
Hi gtux,

please have a look at README.linux in Sane's source folder. Maybe you
can solve this issue walking through the installation description.

Please note, that Fedora seems to use group lp instead of group scanner.

Please search @ google howto create drc files.

Cheers,
Rolf



Am 21.10.2014 um 06:16 schrieb tx:
 Ok, I've solved the permissions issue in Fedora 20 by adding my user to
 the lp group. I can now run scanfile as a regular user and everything
 works fine.
 
 sane-find-scanner shows the scanner @ libusb:002:005. However, xsane
 doesn't see the scanner. It only sees my V4L devices @  libusb:002:003 
 libusb:001:002
 
 $ sane-find-scanner
 found USB scanner (vendor=0x04a9 [Canon Inc], product=0x2775 [D530/D560])
 at libusb:002:005
 found USB scanner (vendor=0x147a, product=0xe018) at libusb:002:003
 found USB scanner (vendor=0x15a9, product=0x0004) at libusb:001:002
 
 Also, there is no .drc for the D530 under my ~.sane/xsane folder. There is
 a .drc for the Hauppauge device.
 
 How are .drc files generated and do you have any idea why xsane would not
 be seeing the scanner at this point?
 
 simple-scan doesn't see it either.
 
 Thanks!
 
 On Mon, October 20, 2014 9:39 pm, tx wrote:
 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:
 bLength18 bDescriptorType 1 bcdUSB 2.00
 bDeviceClass0 (Defined at Interface level)
 bDeviceSubClass 0
 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x04a9
 Canon, Inc.
 idProduct  0x2775 bcdDevice1.00 iManufacturer 1
 Canon Inc
 iProduct2 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 MaxPower2mA
  Interface Descriptor:
 bLength 9 bDescriptorType 4 bInterfaceNumber
 0
 bAlternateSetting   0 bNumEndpoints   3 bInterfaceClass
 255
 Vendor Specific Class
 bInterfaceSubClass  0 bInterfaceProtocol255 iInterface 0
 Endpoint Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
  0x03  EP 3 OUT
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread Johannes Meixner


Hello,

On Oct 20 21:39 tx wrote (excerpt):

I am now able to scan as root

...

I guess my issue now is one of permissions.


I did not read all the details in this mail thread but
perhaps the section about scanner access permissions in
http://en.opensuse.org/SDB:Configuring_Scanners
might provide an usable workaround for you
--
The best workaround to get those kind of issues out of sight
is to use the saned...
--
(of course provided you let the saned run as root).


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer

--
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread tx
Thanks for the link. It contains some good info. Actually, I've been able
to run scanimage as a regular user after adding the user to the lp
group. I do have to specify the device as a command line argument.

My current problem is that I can't use SANE frontend GUIs. Xsane and its
variants are not able to detect the scanner. That's odd because scaniamge
-L detects the scanner and so does sane-find-scanner. One would assume,
if both of those see the scanner, the frontends would be able detect it. I
don't know of anyway to specify the device on the command line when using
xsane, as I do with scanimage. My initial thought was that SANE GUIs were
simply frontends to scanimage. I guess that isn't the case, unless the
frontends just aren't properly interfacing with scanimage.

Perhaps there are still permission issues or perhaps I'm missing something.

The scanimage app works well, as root or as a regular user. It scans at
all resolutions and geometries. My main goal is tobe able to scan directly
into GIMP but I need Frontend GUIs to function properly in order to use
the GIMP plug-in.

~gtux

On Tue, October 21, 2014 8:20 am, Johannes Meixner wrote:


 Hello,


 On Oct 20 21:39 tx wrote (excerpt):

 I am now able to scan as root

 ...

 I guess my issue now is one of permissions.


 I did not read all the details in this mail thread but
 perhaps the section about scanner access permissions in
 http://en.opensuse.org/SDB:Configuring_Scanners
 might provide an usable workaround for you
 --
 The best workaround to get those kind of issues out of sight
 is to use the saned...
 --
 (of course provided you let the saned run as root).



 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
  HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix
 Imendoerffer


 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org




-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread m. allan noah
Sounds like you have two copies of sane-backends (and hence,
scanimage) installed.  If you call the replacement copy of scanimage,
it will default to using the replacement libs. You will need to setup
your ld paths to load the replacement first. I continue to be
surprised that distro's do this- put /usr/local/bin first in the
$PATH, but not put /usr/local/lib first in ldconfig.

man ldconfig might give some details, and so does section 3.1 of this doc:
http://www.sane-project.org/README.linux

allan

On Tue, Oct 21, 2014 at 10:25 AM, tx g...@gimpchat.com wrote:
 Thanks for the link. It contains some good info. Actually, I've been able
 to run scanimage as a regular user after adding the user to the lp
 group. I do have to specify the device as a command line argument.

 My current problem is that I can't use SANE frontend GUIs. Xsane and its
 variants are not able to detect the scanner. That's odd because scaniamge
 -L detects the scanner and so does sane-find-scanner. One would assume,
 if both of those see the scanner, the frontends would be able detect it. I
 don't know of anyway to specify the device on the command line when using
 xsane, as I do with scanimage. My initial thought was that SANE GUIs were
 simply frontends to scanimage. I guess that isn't the case, unless the
 frontends just aren't properly interfacing with scanimage.

 Perhaps there are still permission issues or perhaps I'm missing something.

 The scanimage app works well, as root or as a regular user. It scans at
 all resolutions and geometries. My main goal is tobe able to scan directly
 into GIMP but I need Frontend GUIs to function properly in order to use
 the GIMP plug-in.

 ~gtux

 On Tue, October 21, 2014 8:20 am, Johannes Meixner wrote:


 Hello,


 On Oct 20 21:39 tx wrote (excerpt):

 I am now able to scan as root

 ...

 I guess my issue now is one of permissions.


 I did not read all the details in this mail thread but
 perhaps the section about scanner access permissions in
 http://en.opensuse.org/SDB:Configuring_Scanners
 might provide an usable workaround for you
 --
 The best workaround to get those kind of issues out of sight
 is to use the saned...
 --
 (of course provided you let the saned run as root).



 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
  HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix
 Imendoerffer


 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org




 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread Johannes Meixner


Hello,

On Oct 21 10:25 tx wrote (excerpt):

I don't know of anyway to specify the device on the command line
when using xsane


My xsane man page reads:
---
SYNOPSIS
  xsane ... [devicename]

DESCRIPTION
  ...
  To access an available device that is not known to the system,
  the devicename must be specified explicitly. The format of
  devicename is backendname:devicefile (eg: umax:/dev/sga).
---

I did not verify if it actually works but I think for you

  xsane pixma:04A92775_1144T3603236

should (hopefully) work.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer

--
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread tx
Thanks so much for the information. You are exactly right. Fedora20_x86
installed sane libs from the repos in /usr/lib64. When I compiled from
git, sane backends libs were installed in /usr/local/lib/.

The path to the new scanimage binary was already first in the path:
/usr/local/bin. So, the fix for me was to create a file in
/etc/ld.so.conf.d named 1.sane.conf, in which I added: /usr/local/lib. I
then executed ldconfig as root and all is well. :)

I can now use xsane from a launcher or from GIMP. It appears to be working
very well. This will make things much easier for me and considering the
unbelievable deal I got on this cool multifunction printer, I'm doing the
happy dance.

A big kudos to everyone who helped get the D530 operational in SANE and a
big thank you to all who helped me get this working in Fedora 20_x86.

~gtux


On Tue, October 21, 2014 10:45 am, m. allan noah wrote:
 Sounds like you have two copies of sane-backends (and hence,
 scanimage) installed.  If you call the replacement copy of scanimage, it
 will default to using the replacement libs. You will need to setup your ld
 paths to load the replacement first. I continue to be surprised that
 distro's do this- put /usr/local/bin first in the $PATH, but not put
 /usr/local/lib first in ldconfig.


 man ldconfig might give some details, and so does section 3.1 of this
 doc:
 http://www.sane-project.org/README.linux


 allan

 On Tue, Oct 21, 2014 at 10:25 AM, tx g...@gimpchat.com wrote:

 Thanks for the link. It contains some good info. Actually, I've been
 able to run scanimage as a regular user after adding the user to the
 lp
 group. I do have to specify the device as a command line argument.

 My current problem is that I can't use SANE frontend GUIs. Xsane and
 its variants are not able to detect the scanner. That's odd because
 scaniamge
 -L detects the scanner and so does sane-find-scanner. One would
 assume, if both of those see the scanner, the frontends would be able
 detect it. I don't know of anyway to specify the device on the command
 line when using xsane, as I do with scanimage. My initial thought was
 that SANE GUIs were simply frontends to scanimage. I guess that isn't
 the case, unless the frontends just aren't properly interfacing with
 scanimage.

 Perhaps there are still permission issues or perhaps I'm missing
 something.

 The scanimage app works well, as root or as a regular user. It scans at
  all resolutions and geometries. My main goal is tobe able to scan
 directly into GIMP but I need Frontend GUIs to function properly in
 order to use the GIMP plug-in.

 ~gtux


 On Tue, October 21, 2014 8:20 am, Johannes Meixner wrote:



 Hello,



 On Oct 20 21:39 tx wrote (excerpt):


 I am now able to scan as root


 ...


 I guess my issue now is one of permissions.



 I did not read all the details in this mail thread but
 perhaps the section about scanner access permissions in
 http://en.opensuse.org/SDB:Configuring_Scanners
 might provide an usable workaround for you
 -
 -
 The best workaround to get those kind of issues out of sight
 is to use the saned...
 -
 -
 (of course provided you let the saned run as root).




 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg --
 Germany
 HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix
 Imendoerffer



 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org




 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand




-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-21 Thread tx
 I did not verify if it actually works but I think for you


 xsane pixma:04A92775_1144T3603236

 should (hopefully) work.


 Kind Regards
 Johannes Meixner

Yes. This did indeed work, once I resolved the LD paths problem. Doing
this automatically selects my scanner so I don't have to select it from a
popup list containing my ATSC card and other video/capture devices.

Thanks for your assistance. Everything is working working great now!

~gtux

On Tue, October 21, 2014 11:09 am, Johannes Meixner wrote:


 Hello,


 On Oct 21 10:25 tx wrote (excerpt):

 I don't know of anyway to specify the device on the command line
 when using xsane

 My xsane man page reads:
 ---
 SYNOPSIS
 xsane ... [devicename]

 DESCRIPTION
 ...
 To access an available device that is not known to the system,
 the devicename must be specified explicitly. The format of devicename is
 backendname:devicefile (eg: umax:/dev/sga).
 ---


 I did not verify if it actually works but I think for you


 xsane pixma:04A92775_1144T3603236

 should (hopefully) work.


 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
  HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix
 Imendoerffer


 --
 sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org




-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-20 Thread Rolf Bensch
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:
   bLength18
   bDescriptorType 1
   bcdUSB   2.00
   bDeviceClass0 (Defined at Interface level)
   bDeviceSubClass 0
   bDeviceProtocol 0
   bMaxPacketSize064
   idVendor   0x04a9 Canon, Inc.
   idProduct  0x2775
   bcdDevice1.00
   iManufacturer   1 Canon Inc
   iProduct2 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
 MaxPower2mA
 Interface Descriptor:
   bLength 9
   bDescriptorType 4
   bInterfaceNumber0
   bAlternateSetting   0
   bNumEndpoints   3
   bInterfaceClass   255 Vendor Specific Class
   bInterfaceSubClass  0
   bInterfaceProtocol255
   iInterface  0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x03  EP 3 OUT
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval  11
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x84  EP 4 IN
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval   0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x85  EP 5 IN
 bmAttributes3
   Transfer TypeInterrupt
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0040  1x 64 bytes
 bInterval  11
 Interface Descriptor:
   bLength 9
   bDescriptorType 4
   bInterfaceNumber1
   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
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval 255
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x82  EP 2 IN
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval 255
 Device Qualifier (for other device speed):
   bLength10
   bDescriptorType 6
   bcdUSB   2.00
   bDeviceClass0 (Defined at Interface level)
   bDeviceSubClass 0
   bDeviceProtocol 0
   bMaxPacketSize064
   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 

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-20 Thread tx
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:
 bLength18 bDescriptorType 1 bcdUSB
 2.00
 bDeviceClass0 (Defined at Interface level) bDeviceSubClass
 0
 bDeviceProtocol 0 bMaxPacketSize064 idVendor
 0x04a9 Canon, Inc.
 idProduct  0x2775 bcdDevice1.00 iManufacturer
 1 Canon Inc
 iProduct2 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
 MaxPower2mA
 Interface Descriptor:
 bLength 9 bDescriptorType 4 bInterfaceNumber
 0
 bAlternateSetting   0 bNumEndpoints   3 bInterfaceClass
 255 Vendor Specific Class
 bInterfaceSubClass  0 bInterfaceProtocol255 iInterface
 0
 Endpoint Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x03  EP 3 OUT
 bmAttributes2 Transfer TypeBulk
 Synch Type   None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval  11 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x84  EP 4 IN
 bmAttributes2 Transfer TypeBulk
 Synch Type   None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval   0 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x85  EP 5 IN
 bmAttributes3 Transfer TypeInterrupt
 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
 bmAttributes2 Transfer TypeBulk
 Synch Type   None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval 255 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x82  EP 2 IN
 bmAttributes2 Transfer TypeBulk
 Synch Type   None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval 255 Device
 Qualifier (for other device speed):
 bLength10 bDescriptorType 6 bcdUSB
 2.00
 bDeviceClass0 (Defined at Interface level) bDeviceSubClass
 0
 bDeviceProtocol 0 bMaxPacketSize064 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 

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-20 Thread tx
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:
 bLength18 bDescriptorType 1 bcdUSB 2.00
 bDeviceClass0 (Defined at Interface level) bDeviceSubClass
  0
 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x04a9
 Canon, Inc.
 idProduct  0x2775 bcdDevice1.00 iManufacturer 1
 Canon Inc
 iProduct2 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 MaxPower2mA
 Interface Descriptor:
 bLength 9 bDescriptorType 4 bInterfaceNumber 0
 bAlternateSetting   0 bNumEndpoints   3 bInterfaceClass 255
 Vendor Specific Class
 bInterfaceSubClass  0 bInterfaceProtocol255 iInterface 0
 Endpoint Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x03  EP 3 OUT
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval  11
 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x84  EP 4 IN
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval   0
 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
 0x85  EP 5 IN
 bmAttributes3 Transfer TypeInterrupt 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
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval 255
 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-20 Thread tx
Ok, I've solved the permissions issue in Fedora 20 by adding my user to
the lp group. I can now run scanfile as a regular user and everything
works fine.

sane-find-scanner shows the scanner @ libusb:002:005. However, xsane
doesn't see the scanner. It only sees my V4L devices @  libusb:002:003 
libusb:001:002

$ sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon Inc], product=0x2775 [D530/D560])
at libusb:002:005
found USB scanner (vendor=0x147a, product=0xe018) at libusb:002:003
found USB scanner (vendor=0x15a9, product=0x0004) at libusb:001:002

Also, there is no .drc for the D530 under my ~.sane/xsane folder. There is
a .drc for the Hauppauge device.

How are .drc files generated and do you have any idea why xsane would not
be seeing the scanner at this point?

simple-scan doesn't see it either.

Thanks!

On Mon, October 20, 2014 9:39 pm, tx wrote:
 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:
 bLength18 bDescriptorType 1 bcdUSB 2.00
 bDeviceClass0 (Defined at Interface level)
 bDeviceSubClass 0
 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x04a9
 Canon, Inc.
 idProduct  0x2775 bcdDevice1.00 iManufacturer 1
 Canon Inc
 iProduct2 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 MaxPower2mA
  Interface Descriptor:
 bLength 9 bDescriptorType 4 bInterfaceNumber
 0
 bAlternateSetting   0 bNumEndpoints   3 bInterfaceClass
 255
 Vendor Specific Class
 bInterfaceSubClass  0 bInterfaceProtocol255 iInterface 0
 Endpoint Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
  0x03  EP 3 OUT
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval  11
 Endpoint
 Descriptor:
 bLength 7 bDescriptorType 5 bEndpointAddress
  0x84  EP 4 IN
 bmAttributes2 Transfer TypeBulk Synch Type
 None
 Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes bInterval  

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-17 Thread tx
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-January/032066.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@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-requ...@lists.alioth.debian.org




-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-17 Thread tx
I forgot to include the new patch. Perhaps someone could look it over to
ensure I got it right.

*** pixma_imageclass.c  2014-10-16 08:35:04.904198000 -0400
--- pixma_imageclass-patched.c  2014-10-17 01:21:15.669433000 -0400
***
*** 96,101 
--- 96,102 
  #define MF8030_PID 0x2707
  #define IR1133_PID 0x2742
  #define MF8500_PID 0x277a
+ #define D530_PID   0x2775


  enum iclass_state_t
***
*** 414,421 
  return error;
if (s-param-source == PIXMA_SOURCE_ADF  !has_paper (s))
  return PIXMA_ENO_PAPER;
!   /* activate only seen for generation 1 scanners */
!   if (mf-generation == 1)
  {
if (error = 0)
  error = activate (s, 0);
--- 415,423 
  return error;
if (s-param-source == PIXMA_SOURCE_ADF  !has_paper (s))
  return PIXMA_ENO_PAPER;
!   /* activate only seen for generation 1 scanners
!* but not for D530 */
!   if (mf-generation == 1  s-cfg-pid != D530_PID)
  {
if (error = 0)
  error = activate (s, 0);
***
*** 474,482 

/* set generation = 2 for new multifunctionals
 * some new scanners use generation 1 protocol */
!   mf-generation = (s-cfg-pid = MF8030_PID 
! s-cfg-pid != MF8200_PID 
! s-cfg-pid != MF8500_PID) ? 2 : 1;
PDBG (pixma_dbg (3, *iclass_open* This is a generation %d
scanner.  *\n, mf-generation));

PDBG (pixma_dbg (3, Trying to clear the interrupt buffer...\n));
--- 476,487 

/* set generation = 2 for new multifunctionals
 * some new scanners use generation 1 protocol */
!   /* set generation = 2 for new multifunctionals
!* except D530 is a generation 1 scanner */
!  mf-generation = (s-cfg-pid = MF8030_PID 
!s-cfg-pid != MF8200_PID 
!s-cfg-pid != MF8500_PID 
!s-cfg-pid != D530_PID) ? 2 : 1;
PDBG (pixma_dbg (3, *iclass_open* This is a generation %d
scanner.  *\n, mf-generation));

PDBG (pixma_dbg (3, Trying to clear the interrupt buffer...\n));
***
*** 570,575 
--- 575,582 
if (error = 0)
  error = send_scan_param (s);
if (error = 0)
+ error = query_status (s);
+   if (error = 0)
  error = request_image_block (s, 0, ignore, ignore2, ignore,
ignore2);
if (error  0)
  {
***
*** 794,798 
--- 801,806 
DEV (Canon i-SENSYS MF6680dn, MF6680, MF6680_PID, 600, 640, 877,
PIXMA_CAP_ADFDUP),
DEV (Canon imageRUNNER 1133, iR1133, IR1133_PID, 600, 637, 877,
PIXMA_CAP_ADFDUP),
DEV (Canon i-SENSYS MF8500C Series, MF8500C, MF8500_PID, 600, 640,
1050, PIXMA_CAP_ADFDUP),
+   DEV (Canon imageCLASS D530, D530, D530_PID, 600, 640, 877, 0),
DEV (NULL, NULL, 0, 0, 0, 0, 0)
  };


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-January/032066
 .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 

Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-17 Thread tx
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-January/032066
 .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@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-requ...@lists.alioth.debian.org







-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-17 Thread tx
More info from lsusb..

# lsusb -v

Bus 002 Device 005: ID 04a9:2775 Canon, Inc.
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x04a9 Canon, Inc.
  idProduct  0x2775
  bcdDevice1.00
  iManufacturer   1 Canon Inc
  iProduct2 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
MaxPower2mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   3
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass  0
  bInterfaceProtocol255
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03  EP 3 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  11
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84  EP 4 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85  EP 5 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval  11
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  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
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval 255
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval 255
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  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 

[sane-devel] Imageclass D530 Scanner Support (New Patch?)

2014-10-16 Thread tx
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-January/032066.html

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@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-requ...@lists.alioth.debian.org


[sane-devel] Imageclass d530 scanner

2014-01-29 Thread Rolf Bensch
Hi Gilad,

I prepared a patch for your scanner some weeks ago. But unfortunately
receiving USB data from the scanner stuck somewhere in the OS.
Fortunately you have a different OS. Pleae try the attached patch.

First you must install SANE from git as described here:
http://www.sane-project.org/README.linux.

Then patch the file backend/pixma_imageclass.c with attached
pixma_imageclass.c.patch4_all:
$ patch pixma_imageclass.c pixma_imageclass.c.patch4_all

and copy attached d530.rules to /etc/udev/rules.d/

After everything has been compiled and installed, please check if you
can access your scanner as described in README.linux.

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


Am 24.01.2014 16:39, schrieb Giladsom:
 Hello there,
 I just bought an Imageclass d530 printer.
 I was able to activate the printer, but I cannot find any way to activate
 the scanner. The computer just doesn't recognize it.
 I am using UBUNTU 13.04.

 Can you please help me?

 Gilad




-- next part --
--- ./pixma_imageclass.c2014-01-29 16:38:27.0 +0100
+++ ../sane-backends/backend/pixma_imageclass.c 2014-01-29 16:41:42.0 
+0100
@@ -94,6 +94,7 @@
 #define MF6680_PID 0x26fa
 #define MF8030_PID 0x2707
 #define IR1133_PID 0x2742
+#define D530_PID   0x2775
 
 
 enum iclass_state_t
@@ -412,8 +413,9 @@
 return error;
   if (s-param-source == PIXMA_SOURCE_ADF  !has_paper (s))
 return PIXMA_ENO_PAPER;
-  /* activate only seen for generation 1 scanners */
-  if (mf-generation == 1)
+  /* activate only seen for generation 1 scanners
+   * but not for D530 */
+  if (mf-generation == 1  s-cfg-pid != D530_PID)
 {
   if (error = 0)
 error = activate (s, 0);
@@ -470,8 +472,9 @@
   mf-cb.cmd_header_len = 10;
   mf-cb.cmd_len_field_ofs = 7;
 
-  /* set generation = 2 for new multifunctionals */
-  mf-generation = (s-cfg-pid = MF8030_PID) ? 2 : 1;
+  /* set generation = 2 for new multifunctionals
+   * except D530 is a generation 1 scanner */
+  mf-generation = (s-cfg-pid = MF8030_PID  s-cfg-pid != D530_PID) ? 2 
: 1;
   PDBG (pixma_dbg (3, *iclass_open* This is a generation %d scanner.  
*\n, mf-generation));
 
   PDBG (pixma_dbg (3, Trying to clear the interrupt buffer...\n));
@@ -563,6 +566,8 @@
   if (error = 0)
 error = send_scan_param (s);
   if (error = 0)
+error = query_status (s);
+  if (error = 0)
 error = request_image_block (s, 0, ignore, ignore2, ignore, ignore2);
   if (error  0)
 {
@@ -785,5 +790,6 @@
   DEV (Canon i-SENSYS MF5880dn, MF5880, MF5880_PID, 600, 640, 877, 
PIXMA_CAP_ADFDUP),
   DEV (Canon i-SENSYS MF6680dn, MF6680, MF6680_PID, 600, 640, 877, 
PIXMA_CAP_ADFDUP),
   DEV (Canon imageRUNNER 1133, iR1133, IR1133_PID, 600, 637, 877, 
PIXMA_CAP_ADFDUP),
+  DEV (Canon imageCLASS D530, D530, D530_PID, 600, 640, 877, 0),
   DEV (NULL, NULL, 0, 0, 0, 0, 0)
 };
-- next part --
# Canon imageCLASS D530
ATTRS{idVendor}==04a9, ATTRS{idProduct}==2775, MODE=0664, 
GROUP=scanner, ENV{libsane_matched}=yes


[sane-devel] Imageclass d530 scanner

2014-01-24 Thread Giladsom
Hello there,
I just bought an Imageclass d530 printer.
I was able to activate the printer, but I cannot find any way to activate
the scanner. The computer just doesn't recognize it.
I am using UBUNTU 13.04.

Can you please help me?

Gilad