Re: [sane-devel] Re; scanning with LiDE series works under, Win, NOT under Lx

2015-06-23 Thread Cedric Bhihe ()

A good day to you, Stijn and Allan and to all !

Stijn, I really don't fathom myself as a techie.
I just dabble in computin-related-things. At the same time I try to be 
thorough !

"Hartnäckig" is the word ("persistent" in English).

Good news !!
The ICM error disappeared upon uncheking the 'xsane' 's preference 
settings for "Enable color management".
I quit xsane and following Allan's suggestion I backed up and removed 
the directory ~/.sane/xsane before embarking in the error log recoding 
procedure.
I relaunched xsane and everything worked normally with LiDE 25. Both 
simplescan and xscan are back to nomal. I have not tested them yet with 
my HP 4400c but I don't expect any itch there.


I thank you all for your help, particularly Stijn and Allan who put up 
with my long "writes" and led me to the solution.


-ced
-- 
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] SANE; scanning with LIDE series works under Win, NOT under Lx

2015-06-21 Thread Cedric Bhihe ()

Thanks a lot  Stijn and Allan ! I made "some" progress.

Here goes:
_Background_:
sane and libsane version 1.0.23 on Ubuntu 14.04.2
scanner Canon LIDE25 works under Windows  but not Linux
scanimage functions perfectly with scanner in identical conditions 
under Lx.


It turns out that just like for this post 
 
on askubuntu.com, I am running 'tlp' for power saving optimization. I 
applied the post's author's  solution by tweaking the 'tlp' config file, 
so that USB autodisable would not affect my LIDE25 (0x04a9:0x2220).
After applying the change to the tlp config file, I checked it from 
terminal:


$ cat -n /etc/default/tlp | egrep USB_BLACKLIST
   173#USB_BLACKLIST=": :"
   178USB_BLACKLIST="04a9:2220"
   187USB_BLACKLIST_WWAN=1

Result:
'simplescan' now works for the first time in 2 months or so (though it 
seems awfully slow to me).

'xsane' (the frontend I favor) gives me:
 "Error during CMS conversion: could not open scanner ICM profile."
The above error message appears when I launch 'xscan', when I try to 
change any setting and when the scan is over.
Trying to scan, the scanner goes through all the moves at a normal 
speed) but scan everything blank.


So I tried four things:

*1)* Following another post , I 
created the new rule:

$ sudo vi /etc/udev/rules.d/40-libsane.rules |
ATTRS{idVendor}== "04a9", ATTRS{idProduct}=="2220", 
ENV(libsane_matched)="yes"|||

$ sudo chmod 644 /etc/udev/rules.d/40-libsane.rules

'simplescan' 's behavior is unchanged. It scans in mode gray, color. All 
good.
Relaunching 'xsane' I did NOT get any more error messages. However, 
although 'xsane' launched and allows the scanner to do previews and 
scans without complaining, EVERY preview or scan comes out blank, even 
after reboot.



*2)* I set my debug log level to 80 (don't really know what level 
between 1 and 128 I should use here)

$ SANE_DEBUG_SANEI_USB=80
$ export SANE_DEBUG_SANEI_USB

However I know neither where log files are located, nor how I should 
post them for review.

Perhaps s.o. can help me with hints on that.

*3)* I edited the sane.d genesys.conf file to include a reference to 
Canon LiDE 25

& sudo vi /etc/sane.d/genesys.conf
# Canon LiDE 25
usb 0x04a9 0x2220*

4)* Following Allan's suggestion I checked whether my bios/kernel relies on

xhci_hcd

It does not, apparently. It seems to rely on 'ehci-pci' as seen from the 
command


$ dmsg | tail

ran upon plugging my LiDE 25 scanner onto the 7-1 usb port.

[18745.520785] [UFW ALLOW] IN= OUT=eth0 SRC=192.168.1.35 
DST=80.58.61.250 LEN=63 TOS=0x00 PREC=0x00 TTL=64 ID=46082 DF PROTO=UDP 
SPT=23968 DPT=53 LEN=43
[18746.216192] usb 2-3.1.2: reset full-speed USB device number 7 using 
ehci-pci
[18749.032184] usb 2-3.1.2: reset full-speed USB device number 7 using 
ehci-pci

[18750.932308] usb 7-1: USB disconnect, device number 11
[18752.104222] usb 2-3.1.2: reset full-speed USB device number 7 using 
ehci-pci

[18753.264146] usb 7-1: new full-speed USB device number 12 using uhci_hcd
[18753.433128] usb 7-1: New USB device found, idVendor=04a9, idProduct=2220
[18753.433140] usb 7-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0

[18753.433148] usb 7-1: Product: CanoScan
[18753.433154] usb 7-1: Manufacturer: Canon

 I believe I do not have any USB3 issue. I simply do not have USB3 
ports, just two USB1.1 and two USB2 ports.


Nevertheless knowing that power management is also effected at kernel 
level, via the usbcore.autosupend parameter and  I did:|


$ modprobe usbcore autosuspend=-1

|That did not have any benefical effect and I reversed the action:
|
$ modprobe usbcore autosuspend=2|

Can somebody further suggest something ?
Also I need help with the debug log files. Where are they located and 
how do I post them ?

Thanks.

*Cédric*
/GMT+1/


On 21/06/15 02:38, sane-devel-requ...@lists.alioth.debian.org wrote:

Send sane-devel mailing list submissions to
sane-devel@lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
or, via email, send a message with subject or body 'help' to
sane-devel-requ...@lists.alioth.debian.org

You can reach the person managing the list at
sane-devel-ow...@lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sane-devel digest..."


Today's Topics:

1. Re: SANE; scanning with LIDE series works under Win, NOT
   under Lx (Stijn Verholen)
2. Re: SANE; scanning with LIDE series works under Win, NOT
   under Lx (m. allan noah)


--

Message: 1
Date: Sun, 21 Jun 2015 00:49:53 +0200
From: Stijn Verholen
To:sane-devel@lists.alioth.debian.org
Subject: Re: 

[sane-devel] SANE; scanning with LIDE series works under Win, NOT under Lx

2015-06-20 Thread Cedric Bhihe ()

A good day to everybody.

I keep reading about flatbed scanners from Canon (in particular of the LIDE
series) not working when USB-plugged in under Linux but working fine under
Windows. I have exactly the same problem with a LIDE 25 and an HP 4400c
scanner.

Yes, both scanners are old but they are in excellent condition, (very low
mileage + many years forgotten somewhere in their original packing).  Both
work flawlessly under legacy Windows XP as well as under Win 7 on different
machines, including one that runs a dual Lx/Win boot.

As far as 'sane' front-ends go, I downloaded and installed two from the 
Ubuntu

Software Center and tried them repeatedly.
- simple scan 3.12.1
- xsane 0.998 whose author I even contacted, Oliver Rauch, hoping for 
pointers.

Unfortunately I got no answer.

Nothing seems to work under Linux with a 'sane' based gui for those two 
scanners,

BUT:
-1- it was not always the case. Up until about 8-10 weeks ago, xsane 
used to work

flawlessly for me. Nothing in my system (hard and soft) changed since then,
apart from regular stable and security related updates as provided by 
Canonical.
-2- I can scan w/o an itch from my Ubuntu terminal using 'scanimage'. I 
do that

on a daily basis with no errors.

I already wrote about that here, about 40 days ago, and got a resounding 
silence

 for an answer. No idea why.

Anyway I believe this is completely unrelated to the USB3 issue that is 
now widely
publicized. This probably has to do with some change in the kernel AND 
the way
the two afore mentionned 'sane' based gui packages handle communication 
with

the scanner or the daemon that handles USB comm. or some' else.
Something happened about 8 to 10 weeks go and I don't know what it is.

Since I am no techie, I am stuck, but at least 'scanimage' on terminal 
works.

The downside with scanimage is despite all available options
- no preview is available (pre-processing),
- no collating batch (multi-page) scans (post-processing) is possible,
- there is no saving scans directly as pdf (post-processing).

-ced

Ubuntu 14.04.2 v3.16.0-41-generic x86_64
on Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
Motherboard 30C5 Version KBC v.71.36 by HP
BIOS HP version: 68MVD Ver. F.15 (2008.02.12)

Â


On 20/06/15 14:00, sane-devel-requ...@lists.alioth.debian.org wrote:

Send sane-devel mailing list submissions to
sane-devel@lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
or, via email, send a message with subject or body 'help' to
sane-devel-requ...@lists.alioth.debian.org

You can reach the person managing the list at
sane-devel-ow...@lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sane-devel digest..."


Today's Topics:

1. Re: Canon LIDE 110 + USB3 (Marc Cousin)


--

Message: 1
Date: Fri, 19 Jun 2015 15:57:03 +0200
From: Marc Cousin
To: Heinz Wiesinger
Cc:sane-devel@lists.alioth.debian.org
Subject: Re: [sane-devel] Canon LIDE 110 + USB3
Message-ID: <478249274.zdL7Kf9XdV@marco>
Content-Type: text/plain; charset="utf-8"

On Thursday 30 April 2015 13:15:17 Marc Cousin wrote:

On 18/04/2015 18:46, Marc Cousin wrote:

On 18/04/2015 18:27, Marc Cousin wrote:

On 18/04/2015 12:35, Heinz Wiesinger wrote:

On Saturday 18 April 2015 10:58:31 Marc Cousin wrote:

Hi,

I've got a brand new computer with USB3 all over the place, and cannot
use my "old" LIDE 110 with it, even with a git version. The scanner is
still working, as it works when connecter to my older laptop, through
USB2. It doesn't work with a git checkout from a few minutes ago.

I see that some drivers have received some patches to work around
problems with USB 3. Is there something to be done to the genesys
driver
too ? What can I provide to help solving this ?

Hi,

I have the same problem with the LIDE 210. In a message from last
month, Stef
asked for usbpcap log from windows (see
http://lists.alioth.debian.org/pipermail/sane-devel/2015-March/033202.ht
ml

   for details). Unfortunately I don't have access to a Windows

computer having
USB3 ports. So if you have and you could provide those logs, it might
help in
figuring out what's going wrong.

Grs,
Heinz

I have no windows installed. I have one in a KVM box, should I give it a
try ?

I gave it a try, in the KVM windows, scanning works. It is seen as USB2
from windows though, I don't know if this is of any importance.

So,

Is this dump (from a virtulized windows seeing USB2) interesting ?

Regards

Hi,

I'm back on this, after a while away from home. Is there anything I can
provide ?

To sum up:

- The LIDE110 doesn't work from SANE (git checkout from 10 minutes ago) +
Linux (4.0.5): I only have problem with the scanner. Any other periphal I
plugged in 

Re: [sane-devel] sane-devel Digest, Vol 120, Issue 20

2015-06-20 Thread Cedric Bhihe ()

A good day to everybody.
I keep reading about flatbed scanners from Canon (in particular of the LIDE
series) not working when USB-plugged in under Linux but working fine under
Windows. I have exactly the same problem with a LIDE 25 and an HP 4400c
scanner.

Yes, both scanners are old but they are in excellent condition, (very low
mileage + many years forgotten somewhere in their original packing).  Both
work flawlessly under legacy Windows XP as well as under Win 7 on different
machines, including one that runs a dual Lx/Win boot.

As far as 'sane' front-ends go, I downloaded and installed two from the 
Ubuntu

Software Center and tried them repeatedly.
- simple scan 3.12.1
- xsane 0.998 whose author I even contacted, Oliver Rauch, hoping for 
pointers.

Unfortunately I got no answer.

Nothing seems to work under Linux with a 'sane' based gui for those two 
scanners,

BUT:
-1- it was not always the case. Up until about 8-10 weeks ago, xsane 
used to work

flawlessly for me. Nothing in my system (hard and soft) changed since then,
apart from regular stable and security related updates as provided by 
Canonical.
-2- I can scan w/o an itch from my Ubuntu terminal using 'scanimage'. I 
do that

on a daily basis with no errors.

I already wrote about that here, about 40 days ago, and got a resounding 
silence

 for an answer. No idea why.

Anyway I believe this is completely unrelated to the USB3 issue that is 
now widely
publicized. This probably has to do with some change in the kernel AND 
the way
the two afore mentionned 'sane' based gui packages handle communication 
with

the scanner or the daemon that handles USB comm. or some' else.
Something happened about 8 to 10 weeks go and I don't know what it is.

Since I am no techie, I am stuck, but at least 'scanimage' on terminal 
works.

The downside with scanimage is despite all available options
- no preview is available (pre-processing),
- no collating batch (multi-page) scans (post-processing) is possible,
- there is no saving scans directly as pdf (post-processing).

-ced

Ubuntu 14.04.2 v3.16.0-41-generic x86_64
on Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
Motherboard 30C5 Version KBC v.71.36 by HP
BIOS HP version: 68MVD Ver. F.15 (2008.02.12)




On 20/06/15 14:00, sane-devel-requ...@lists.alioth.debian.org wrote:

Send sane-devel mailing list submissions to
sane-devel@lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
or, via email, send a message with subject or body 'help' to
sane-devel-requ...@lists.alioth.debian.org

You can reach the person managing the list at
sane-devel-ow...@lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sane-devel digest..."


Today's Topics:

1. Re: Canon LIDE 110 + USB3 (Marc Cousin)


--

Message: 1
Date: Fri, 19 Jun 2015 15:57:03 +0200
From: Marc Cousin 
To: Heinz Wiesinger 
Cc: sane-devel@lists.alioth.debian.org
Subject: Re: [sane-devel] Canon LIDE 110 + USB3
Message-ID: <478249274.zdL7Kf9XdV@marco>
Content-Type: text/plain; charset="utf-8"

On Thursday 30 April 2015 13:15:17 Marc Cousin wrote:

On 18/04/2015 18:46, Marc Cousin wrote:

On 18/04/2015 18:27, Marc Cousin wrote:

On 18/04/2015 12:35, Heinz Wiesinger wrote:

On Saturday 18 April 2015 10:58:31 Marc Cousin wrote:

Hi,

I've got a brand new computer with USB3 all over the place, and cannot
use my "old" LIDE 110 with it, even with a git version. The scanner is
still working, as it works when connecter to my older laptop, through
USB2. It doesn't work with a git checkout from a few minutes ago.

I see that some drivers have received some patches to work around
problems with USB 3. Is there something to be done to the genesys
driver
too ? What can I provide to help solving this ?

Hi,

I have the same problem with the LIDE 210. In a message from last
month, Stef
asked for usbpcap log from windows (see
http://lists.alioth.debian.org/pipermail/sane-devel/2015-March/033202.ht
ml

   for details). Unfortunately I don't have access to a Windows

computer having
USB3 ports. So if you have and you could provide those logs, it might
help in
figuring out what's going wrong.

Grs,
Heinz

I have no windows installed. I have one in a KVM box, should I give it a
try ?

I gave it a try, in the KVM windows, scanning works. It is seen as USB2
from windows though, I don't know if this is of any importance.

So,

Is this dump (from a virtulized windows seeing USB2) interesting ?

Regards

Hi,

I'm back on this, after a while away from home. Is there anything I can
provide ?

To sum up:

- The LIDE110 doesn't work from SANE (git checkout from 10 minutes ago) +
Linux (4.0.5): I only have problem with the scanner. Any other periphal I
plugged in w

[sane-devel] Problems scanning with front-ends on Canon CanoScan LiDe 25

2015-04-29 Thread Cedric Bhihe ()

Greetings !
Before about 2 months ago, my Canon LiDE25 worked perfectly well in my 
Ubuntu Desktop 14.04.x environment . It had done so

Then all at once I found myself battling with a scan malfunction.
I tried using "Xsane Image scanning program", then "Simple Scan" then 
"gscan2pdf" on an up-to-date installation of Desktop Ubuntu 14.04.x. HW 
is an old HP Intel 8510w with 3 USB ports. All ports were tested, 
function well and behave the same.


Description:

1 - plug the flatbed scanner in any USB port
-- nothing happens (no noise, no movement).

2 - from terminal:
>  scanimage -L
device `plustek:libusb:005:004' is a Canon CanoScan LiDE25 flatbed scanner
-- correct detection

3 - in the Plustek-SANE back-end configuration file, 
/etc/sane.d/plustek.conf, I inserted:

   # for Canon CanoScan LiDE 25
   [usb] 0x04A9 0x2220
   device /dev/usbscanner
although later positionned in the same file, and in the same [usb] 
section, I discovered

   device auto

4 - from terminal:
> scanimage -x 100 -y 200 >output-trial.tiff
or simply
> scanimage >output.tiff
-- both produce a correct although low res color image _every_ single time.

5 - when using either "Xsane Image scanning", "Simple Scan" or 
"gscan2pdf",  the response ot Canon LiDE 25 becomes comletely erratic.
Either it does not respond at all or responds once every 20 trials with 
a correct scan and then not at all.  Almost a complete no go ! Very 
surprising given that up until about two months ago, everything worked 
smoothly.
When clicking repeatedly on the scan button of any of the above 
mentionned Sane grafical front-ends, a message can appear saying that no 
scanner is detected. It does not always appear. More often there is 
simply either no response or null data acquisition without an actual 
physical scan, i.e. the raster-arm does not move.  Null-data 
acquisitiopn translates as a uniform black or grey or white preview 
(when preview is available).
Sometimes after the only possible first scan , the scanning raster-arm 
does not come back to its home position. The scanner is therefore not 
available anymore. Making it come back, involves quitting the frontend, 
unplugging the scanner, plugging it in again. and relaunching. This 
never happens from terminal.


I have read past posts posted on the subject during the past 10 weeks, 
in particular those of lszkclek at yahoo.com 
/

//http://lists.alioth.debian.org/pipermail/sane-devel/2015-March/033215.html
/and that jsmeix at suse.de 


http://lists.alioth.debian.org/pipermail/sane-devel/2015-March/033220.html
but somehow I doubt that this is a USB port problem as everything works 
well from terminal , plus I don't deal with a Suse type distro. Ubuntu 
relies on "deb" packages not "rpm".



I am stumped.
Is this rather a front-end problem ? It sure looks like it.

-cedric

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