[sane-devel] MX925: Scan via Display to SANE??

2014-05-05 Thread Johannes Meixner

Hello,

On May 3 11:51 Louis Lagendijk wrote (excerpt):
 On Fri, 2014-05-02 at 21:55 +, Thomas Escher wrote:
 One question ? I own a Canon MX925. It's possible to scan
 from the display directly to the Windows-Machines.
 Is SANE the right software to scan from
 the display directly to a debian-machine?
...
 Yes, Sane can be the base for button-based scanning,
 but you will also need scanbd. Sane provides the interface
 to the scanner, scanbd will handle the logic. Scanbd cab be
 found here:
 http://sourceforge.net/projects/scanbd/?source=directory

First things first:

A precondition is that SANE supports the device.

But according to

http://www.sane-project.org/cgi-bin/driver.pl?manu=canonmodel=mxbus=anyv=p=

it seems no Canon MX925 is listed at SANE which indicates
that SANE does not support it.

First of all scanning from the computer must work with SANE
when the device is connected directly via USB to the computer.

When this works, button-based scanning could be set up
and/or the device might be connected via (wireless) network.


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] MX925: Scan via Display to SANE??

2014-05-05 Thread Gernot Hassenpflug
On Mon, May 5, 2014 at 5:13 PM, Johannes Meixner jsmeix at suse.de wrote:


 Hello,

 On May 3 11:51 Louis Lagendijk wrote (excerpt):

  On Fri, 2014-05-02 at 21:55 +, Thomas Escher wrote:

 One question ? I own a Canon MX925. It's possible to scan
 from the display directly to the Windows-Machines.
 Is SANE the right software to scan from
 the display directly to a debian-machine?

 ...

  Yes, Sane can be the base for button-based scanning,
 but you will also need scanbd. Sane provides the interface
 to the scanner, scanbd will handle the logic. Scanbd cab be
 found here:
 http://sourceforge.net/projects/scanbd/?source=directory


 First things first:

 A precondition is that SANE supports the device.

 But according to

 http://www.sane-project.org/cgi-bin/driver.pl?manu=canon;
 model=mxbus=anyv=p=

 it seems no Canon MX925 is listed at SANE which indicates
 that SANE does not support it.


Short one:
MX920 has been supported since December 2012 (see git Changelog), whether
ADF is perfect or not I am not certain.
MX925 is just a regional variation on the MX920 (proof would be to see if
the USB ID is the same).

Regards,
Gernot Hassenpflug
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/82133a3e/attachment.html


[sane-devel] Medion Scanner MD5345 under Ubuntu 14.04. LTS 64 bit

2014-05-05 Thread Galliano
Hello,

I hope you can help me, I already posted my issue at 
http://forum.ubuntuusers.de/topic/medion-scanner-md-5345-mit-ubuntu-14-04-64-bit/
 , but unfortunately nobody seems to be able to helpI hope you can.

I installed Xsane on my pc, I can start the scan application, but when I click 
preview or scan the application closes/crashes.

When I enter lsusb in Terminal I get this list and I understand from line 5 
that the scanner is recognised:

Bus 001 Device 003: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n 
WLAN Adapter
Bus 001 Device 004: ID 04e8:3296 Samsung Electronics Co., Ltd ML-2580N Mono 
Laser Printer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 002 Device 003: ID 0461:0377 Primax Electronics, Ltd Medion MD 5345 Scanner
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Thank you very much in advance for any support.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/578b252f/attachment.html


[sane-devel] Raspberry Pi scanning ADF multipages

2014-05-05 Thread Carl Davis
Hi,

I was able to get scanimage to work with my RPi when scanning single pages
or two pages. However, if I try to do three or more pages the scan stops in
the middle of the scan and fails with the error below. I hoped someone
might give me some idea on where to look next to try to resolve this?

scanimage --device-name canon_dr:libusb:001:005 --batch --format=tiff
--mode Lineart --resolution 300 --source ADF Duplex

Scanner found at canon_dr:libusb:001:005
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
Scanned page 2. (scanner status = 5)
Scanning page 3
scanimage: sane_read: Error during device I/O
Scanned page 3. (scanner status = 9)

Regards,
Carl
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/1291d8c8/attachment.html


[sane-devel] Raspberry Pi scanning ADF multipages

2014-05-05 Thread m. allan noah
Carl- can you experiment with different modes and resolutions and see
if you can ever get a scan from the second page? Also, a log like so
would be helpful: SANE_DEBUG_CANON_DR=15 scanimage [your args here]
2test1.log

allan

On Mon, May 5, 2014 at 7:51 AM, Carl Davis carl at carldavis.com wrote:
 Hi,

 I was able to get scanimage to work with my RPi when scanning single pages
 or two pages. However, if I try to do three or more pages the scan stops in
 the middle of the scan and fails with the error below. I hoped someone might
 give me some idea on where to look next to try to resolve this?

 scanimage --device-name canon_dr:libusb:001:005 --batch --format=tiff --mode
 Lineart --resolution 300 --source ADF Duplex

 Scanner found at canon_dr:libusb:001:005
 Scanning -1 pages, incrementing by 1, numbering from 1
 Scanning page 1
 Scanned page 1. (scanner status = 5)
 Scanning page 2
 Scanned page 2. (scanner status = 5)
 Scanning page 3
 scanimage: sane_read: Error during device I/O
 Scanned page 3. (scanner status = 9)

 Regards,
 Carl

 --
 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



-- 
The truth is an offense, but not a sin



[sane-devel] genesys Canon Lide 210 aspect-ratio-problem at 600 dpi

2014-05-05 Thread Stef
On 25/04/2014 02:55, Andrew Kanaber wrote:
 I hit the same problem with a Canon LiDE 110. I tried measuring the distortion
 by scanning a sheet of graph paper in various modes.

 With sane 1.0.24 in 600dpi lineart and gray modes the scan is stretched
 vertically by about 30%. Color mode scans are actually also stretched at
 600dpi, but much less noticeably by about 2%. The stretching is still visible
 though if you compare the scanned images side-by-side. With version 1.0.22 the
 lineart and gray scans are correct at 600dpi but the 2%-ish stretching is
 still present in 600dpi color mode.

 In case it helps I've put some of the scans up at
 http://www.chiark.greenend.org.uk/~akanaber/lide110/

 Let me know if there's something else I can do that might help,

 Andrew

 M G Berberich wrote:
 Hello,

 Canon LiDE 210 with sane-backends 1.0.24 (libsane:amd64 1.0.24-1.1+b1
 from debian testing) has problems with 600 dpi gray and lineart.

 In 600 dpi gray and lineart the scan is partial and aspect-ratio is
 not correct. Vertically only about ? of the area is scanned and then
 scaled to the area, horizontally all is fine. (So probably the driver
 sets the wrong scanline-skip (to small)).

 This worked in older versions, at least 1.0.22.

 600 dpi Color-scanning works fine, so do preview, 300dpi and 1200 dpi
 in all modes.

 2400 dpi and 4800 dpi do not work at all, but never did.

  MfG
  bmg
 Hello,

 the vertical resolution is given by the motor speed which is 
eventually an int. So rounding errors may give ~2% distortion:
 target=((exposure * dpi) / base_dpi)step_type;
 Maybe by decreasing or increasing slightly exposure time rounding 
errors could be mitigated, but changing exposure may raise other 
problems. If the windows driver can do it, I'll manage to find something.

 I'll check how the gray scan beahves. The change between 1.022 and 
1.0.24 is to use the LINESEL function when we try to scan below the 
minimal scanning speed of the motor. This should affect scans below 600 
dpi, but not 600 dpi which is the minimal scanning speed.

 2400 and 4800 dpi scans works on my LiDE 210. So I'd need some logs 
or better information on what is not working for you.

 I'm currently working on shading calibration problems for gl646 
based scanners (HP2400 and HP3670). I'll look into this issues when I 
have finished it. If you have time for it, you can open a bug in the bug 
tracker (https://alioth.debian.org/tracker/?group_id=30186) and assigned 
it to me.

Regards,
 Stef




[sane-devel] Medion Scanner MD5345 under Ubuntu 14.04. LTS 64 bit

2014-05-05 Thread Stef
On 05/05/2014 10:58, Galliano wrote:
 Hello,

 I hope you can help me, I already posted my issue at 
 http://forum.ubuntuusers.de/topic/medion-scanner-md-5345-mit-ubuntu-14-04-64-bit/
  
 , but unfortunately nobody seems to be able to helpI hope you can.

 I installed Xsane on my pc, I can start the scan application, but when 
 I click preview or scan the application closes/crashes.

 When I enter lsusb in Terminal I get this list and I understand from 
 line 5 that the scanner is recognised:
 Bus 001 Device 003: ID 0bda:8172 Realtek Semiconductor Corp.
   RTL8191SU 802.11n WLAN Adapter
 Bus 001 Device 004: ID 04e8:3296 Samsung Electronics Co., Ltd ML-2580N Mono 
 Laser Printer
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
 Bus 002 Device 003: ID 0461:0377 Primax Electronics, Ltd Medion MD 5345 
 Scanner
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 Thank you very much in advance for any support.







 Hello,

 please provide a debug log. For instance run xsane with the 
following commands:
export SANE_DEBUG_GENESYS=255
export SANE_DEBUG_GENESYS_LOW=255
export SANE_DEBUG_GENESYS_GL646=255
xsane xl.log 21

then send the xl.log file that will be created (zipped if is too big). 
Please also check machine logs with the 'demesg' command.

Regards,
  Stef
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/1d37c7a4/attachment.html


[sane-devel] Is --resolution x? y? or x and y ?

2014-05-05 Thread Sean Darcy
I'm trying to scan from a Brother MFC7360N. The specs say the max optical
scan resolution is 600 x 2400.

scanimage -A
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567

All options specific to device `brother4:net1;dev0':
  Mode:
--mode Black  White|Gray[Error Diffusion]|True Gray|24bit Color|24bit
Color[Fast] [24bit Color[Fast]]
Select the scan mode
--resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
Sets the resolution of the scanned image.
--source FlatBed|Automatic Document Feeder(left aligned)|Automatic
Document Feeder(centrally aligned) [Automatic Document Feeder(left aligned)]
Selects the scan source (such as a document-feeder).


I've tried:
scanimage -vvv --format pnm -x 215.9 -y 279.4 --mode '24bit Color' -d
'brother4:net1;dev0' --x-resolution 100 --y-resolution 200 --source FlatBed
-p
scanimage: value for --x is: 215.9
scanimage: value for --y is: 279.4
scanimage: unrecognized option '--x-resolution'


So it seems that if the backend doesn't expose --{xy}-resolution it doesn't
exist.

If I set --resolution to to 100, do I get 100 x 100 ? 600 - 600 x 600 ?

But if 1200, do I get interpolated X 1200(optical 600) and optical Y 1200 ?

sean
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/24a05f8c/attachment.html


[sane-devel] Is --resolution x? y? or x and y ?

2014-05-05 Thread m. allan noah
The frontend program can only do whatever options the backend exposes.
Since none of us wrote the brother backend, none of us can answer your
specific question.

allan

On Mon, May 5, 2014 at 3:34 PM, Sean Darcy seandarcy2 at gmail.com wrote:
 I'm trying to scan from a Brother MFC7360N. The specs say the max optical
 scan resolution is 600 x 2400.

 scanimage -A
 scanimage: rounded value of br-x from 215.9 to 215.88
 scanimage: rounded value of br-y from 355.6 to 355.567

 All options specific to device `brother4:net1;dev0':
   Mode:
 --mode Black  White|Gray[Error Diffusion]|True Gray|24bit Color|24bit
 Color[Fast] [24bit Color[Fast]]
 Select the scan mode
 --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
 Sets the resolution of the scanned image.
 --source FlatBed|Automatic Document Feeder(left aligned)|Automatic
 Document Feeder(centrally aligned) [Automatic Document Feeder(left aligned)]
 Selects the scan source (such as a document-feeder).
 

 I've tried:
 scanimage -vvv --format pnm -x 215.9 -y 279.4 --mode '24bit Color' -d
 'brother4:net1;dev0' --x-resolution 100 --y-resolution 200 --source FlatBed
 -p
 scanimage: value for --x is: 215.9
 scanimage: value for --y is: 279.4
 scanimage: unrecognized option '--x-resolution'
 

 So it seems that if the backend doesn't expose --{xy}-resolution it doesn't
 exist.

 If I set --resolution to to 100, do I get 100 x 100 ? 600 - 600 x 600 ?

 But if 1200, do I get interpolated X 1200(optical 600) and optical Y 1200 ?

 sean

 --
 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



-- 
The truth is an offense, but not a sin



[sane-devel] MX925: Scan via Display to SANE??

2014-05-05 Thread Rolf Bensch
For MX920 Series scanners you need to install SANE Development Version
1.0.25 from git.

Button support is working as described in sane-pixma manpage.

Due to a problem with the webserver,
http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA doesn't
represent the recent  git version. But the infos for MX920 are up to date.

I'll commit a patch for ADF paper empty issue within a short time.

Cheers,
Rolf

Am 05.05.2014 10:33, schrieb Gernot Hassenpflug:
 On Mon, May 5, 2014 at 5:13 PM, Johannes Meixner jsmeix at suse.de
 mailto:jsmeix at suse.de wrote:


 Hello,

 On May 3 11:51 Louis Lagendijk wrote (excerpt):

 On Fri, 2014-05-02 at 21:55 +, Thomas Escher wrote:

 One question ? I own a Canon MX925. It's possible to scan
 from the display directly to the Windows-Machines.
 Is SANE the right software to scan from
 the display directly to a debian-machine?

 ...

 Yes, Sane can be the base for button-based scanning,
 but you will also need scanbd. Sane provides the interface
 to the scanner, scanbd will handle the logic. Scanbd cab be
 found here:
 http://sourceforge.net/projects/scanbd/?source=directory


 First things first:

 A precondition is that SANE supports the device.

 But according to

 
 http://www.sane-project.org/cgi-bin/driver.pl?manu=canonmodel=mxbus=anyv=p=

 it seems no Canon MX925 is listed at SANE which indicates
 that SANE does not support it.


 Short one:
 MX920 has been supported since December 2012 (see git Changelog),
 whether ADF is perfect or not I am not certain.
 MX925 is just a regional variation on the MX920 (proof would be to see
 if the USB ID is the same).

 Regards,
 Gernot Hassenpflug

-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140505/3efb38e9/attachment.html


[sane-devel] sane_read: Out of memory

2014-05-05 Thread Sean Darcy
Using a Brother MFC7360N on Fedora 20, 
sane-backends-1.0.24-7.fc20.x86_64, I'm trying do a high resolution 
color scan. I've got plenty of ram:

KiB Mem:   3956764 total,  2669148 used,  1287616 free,   40 buffers
KiB Swap:  6143996 total,  1003996 used,  514 free,  1144384 cached

and disk space. top doesn't show any problem.

The specs for the 7360N are up to 600x2400 optical.

scanimage -A
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567

All options specific to device `brother4:net1;dev0':
   Mode:
 --mode Black  White|Gray[Error Diffusion]|True Gray|24bit 
Color|24bit Color[Fast] [24bit Color[Fast]]
 Select the scan mode
 --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
 Sets the resolution of the scanned image.
 --source FlatBed|Automatic Document Feeder(left aligned)|Automatic 
Document Feeder(centrally aligned) [Automatic Document Feeder(left aligned)]

BTW, what does --resolution set: width (600) or height (2400) ?


At 1200 resolution, it works:

scanimage -vvv --format pnm -x 215.9 -y 279.4 --mode '24bit Color' -d 
'brother4:net1;dev0' --resolution 1200 --source FlatBed -p
scanimage: value for --x is: 215.9
scanimage: value for --y is: 279.4
scanimage: value for --resolution is: 1200
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 279.4 to 279.374
scanimage: scanning image of size 9920x13195 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 0/255
scanimage: read 392683200 bytes in total
Closing device

generating a 400mb pnm file.

At 2400 (which should generate a 1.6G file, correct?) it doesn't:

scanimage -vvv --format pnm -x 215.9 -y 279.4 --mode '24bit Color' -d 
'brother4:net1;dev0' --resolution 2400 --source FlatBed -p
scanimage: value for --x is: 215.9
scanimage: value for --y is: 279.4
scanimage: value for --resolution is: 2400
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 279.4 to 279.374
scanimage: scanning image of size 19840x26390 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 255/0
scanimage: sane_read: Out of memory
Closing device
Calling sane_exit

The max