You are not logged in.

#1 2013-06-16 07:26:44

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

[SOLVED ]CanoScan LiDe25 problem.

I have CanoScan LiDe25 which always works fine. I bought laptop Asus Zenbook UX32CD with USB 3.0 and installed Arch.
Now it doesn't work with it.
I start xsane. It waits long time up to 2-3  min, then it can allow to choose "CanoScan LiDE25 flatbed scanner [plustek:libusb:001:002]". After clicking Ok it hangs. Without connected scanner it works well. I am in the groups: "scanner" and "lp"
BTW, this scanner works fine with another intallation of Arch at another my computer where USB 2.0 port only.

$ lsusb
Bus 001 Device 020: ID 04a9:2220 Canon, Inc. CanoScan LIDE 25

$ dmesg
[ 4268.309747] usb 1-1: USB disconnect, device number 20
[ 4270.586660] usb 1-1: new full-speed USB device number 21 using xhci_hcd

I didn't make udev rules for scanner. I tried to make /etc/udev/rules.d/96-scanner.rules with

BUS=="usb", SYSFS{product}=="CanoScan", MODE="664", GROUP="scanner" 

It didn't help. Then I deleted this rule. 'm not sure about the source of the problem. It is just my guess. Give me a hint where at least to look at?

P.S. I passed USB scanner port to WinXP in VirtualBox and there in VM everything works fine.
So the problem is in Arch somewhere.

Help me, please.

Last edited by ZeroLinux (2013-06-18 13:12:28)

Offline

#2 2013-06-16 08:21:40

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED ]CanoScan LiDe25 problem.

Should be more like:

ACTION=="add", SUBSYSTEM=="usb", ATTRS{product}=="CanoScan", GROUP="scanner", MODE="660", SYMLINK+="lide25"

The symlink is just for potentially-useful debugging.

Last edited by brebs (2013-06-16 08:24:29)

Offline

#3 2013-06-16 09:03:21

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

brebs wrote:

Should be more like:

ACTION=="add", SUBSYSTEM=="usb", ATTRS{product}=="CanoScan", GROUP="scanner", MODE="660", SYMLINK+="lide25"

The symlink is just for potentially-useful debugging.

I added this rule as  /etc/udev/rules.d/96-scanner.rules - nothing has changed

Offline

#4 2013-06-16 11:26:34

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED ]CanoScan LiDe25 problem.

I'm rather disappointed that you've not even bothered to check whether /dev/lide25 was created.

Offline

#5 2013-06-16 11:29:25

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

brebs wrote:

I'm rather disappointed that you've not even bothered to check whether /dev/lide25 was created.

Sorry, I didn't understand your point.
So, yes, it does

 
$ ls -l /dev/lide25 
lrwxrwxrwx 1 root root 15 Jun 16 13:19 /dev/lide25 -> bus/usb/001/014

what next, taking into account that it works good in WinXP in VirtualBox on the same machine.

Last edited by ZeroLinux (2013-06-16 11:29:37)

Offline

#6 2013-06-16 11:34:22

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: [SOLVED ]CanoScan LiDe25 problem.

Does your laptop have any usb 2.0 ports besides the 3.0 ones? If that's the case, did you try and connect your scanner to one of those usb 2.0 ports?

Offline

#7 2013-06-16 11:41:56

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

cookies wrote:

Does your laptop have any usb 2.0 ports besides the 3.0 ones? If that's the case, did you try and connect your scanner to one of those usb 2.0 ports?

I would have done it if I had. But know my laptop has only 3 USB ports and all of them are usb 3.0
I have USB hub 2.0. I connected scanner over it with the same result.
But scanner works fine being connected to USB 3.0 if this connection is passed to WinXP in virtual machine in VirtualBox.

Offline

#8 2013-06-16 11:58:40

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED ]CanoScan LiDe25 problem.

From what little I can remember, perhaps you need:

install -d -m 775 -g scanner /run/lock/sane

Offline

#9 2013-06-16 12:02:22

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

brebs wrote:

From what little I can remember, perhaps you need:

install -d -m 775 -g scanner /run/lock/sane

Wow! It starts working. What does it mean? How does it work? Please, tell me what it does or where to read about it?
Although it does not exit normally (after acquiring image preview) when I click on close. KDE4 message appears "The window "xsane 0.998 CanoScan LiDE25:014" is not responding. It belongs to the application xsane (Process ID = 17704, hostname = localhost). Do you wish to terminate the application process including all of its child windows? Any unsaved data will be lost."

How to allow it to close correctly?

Last edited by ZeroLinux (2013-06-16 12:07:06)

Offline

#10 2013-06-16 12:12:56

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: [SOLVED ]CanoScan LiDe25 problem.

Wow! It starts working. What does it mean? How does it work? Please, tell me what it does or where to read about it?

This creates a directory for lockfiles that the group "scanner" can write to. Since it works, you should add the directory to tmpfiles.d in order to create it on boot.
/etc/tmpfiles.d/sane.conf

d /run/lock/sane 0775 root scanner - -

Maybe you should also try to add the scanner group for /proc/bus/usb
https://wiki.archlinux.org/index.php/Sa … k_scanners

Last edited by progandy (2013-06-16 12:15:46)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#11 2013-06-16 12:20:26

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

Interestingly that after several start/close of xsane it stops working (picture the same as in the beginning)
Then after passing USB port to WinXP in VBox (after that the lamp of the scanner does some small movement) and disconnecting it starts working again.
Now is

$ lsusb
Bus 001 Device 011: ID 04a9:2220 Canon, Inc. CanoScan LIDE 25
$ ls -l /dev/lide25 
lrwxrwxrwx 1 root root 15 Jun 16 15:23 /dev/lide25 -> bus/usb/001/011

I added /etc//tmpfiles.d/sane.conf

d /run/lock/sane 0775 root scanner - -

After reboot it doesn't work again.

So after reboot initial settings are:

ls -l /dev/lide25 
lrwxrwxrwx 1 root root 15 Jun 16 15:51 /dev/lide25 -> bus/usb/001/002
$ ls -l /var/lock/
drwxrwxr-x 2 <MYUSERNAME> scanner Jun 16 15:51 sane

When I start xsane It shows the scanner, sanner make small movement wit a lamp, then xsane hangs.
After passing to VBox VM and closing VM. It starts working well but if I try at least once acquire preview image I cannot close xsane correctly.

I also tried to start via kdesudo xsane - the situation is the same.

That's the puzzle.

Last edited by ZeroLinux (2013-06-16 13:35:54)

Offline

#12 2013-06-17 08:22:21

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

Now I can outline the problem better. The problem is in using module xhci_hcd.
When I pass scanner to Virtual Box Virtal machine WinXP a have this dmesg:

[ 1100.008466] usb 1-1: USB disconnect, device number 2
[ 1102.388114] usb 1-1: new full-speed USB device number 9 using xhci_hcd

After passing scanner ti VBox I can hear sound of scanner calibration. From now I know for sure that scanner will work correctly to some extent.
Then I return scanner to Linux host. In dmesg I have:

[ 1238.958815] usb 1-1: reset full-speed USB device number 9 using xhci_hcd
[ 1238.972593] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802623bcb40
[ 1238.972602] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802623bcb80
[ 1238.972612] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802623bcbc0

Now I am able to test scanner

$ scanimage --device-name plustek:libusb:001:009 --test
scanimage: scanning image of size 202x150 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 606 bytes...   PASS
scanimage: reading one byte...          PASS
scanimage: stepped read, 2 bytes...     PASS
scanimage: stepped read, 4 bytes...     PASS
scanimage: stepped read, 8 bytes...     PASS
scanimage: stepped read, 16 bytes...    PASS
scanimage: stepped read, 32 bytes...    PASS
scanimage: stepped read, 64 bytes...    PASS
scanimage: stepped read, 128 bytes...   PASS
scanimage: stepped read, 256 bytes...   PASS
scanimage: stepped read, 512 bytes...   PASS
scanimage: stepped read, 1024 bytes...  PASS
scanimage: stepped read, 1023 bytes...  PASS
scanimage: stepped read, 511 bytes...   PASS
scanimage: stepped read, 255 bytes...   PASS
scanimage: stepped read, 127 bytes...   PASS
scanimage: stepped read, 63 bytes...    PASS
scanimage: stepped read, 31 bytes...    PASS
scanimage: stepped read, 15 bytes...    PASS
scanimage: stepped read, 7 bytes...     PASS
scanimage: stepped read, 3 bytes...     PASS

Here the process hangs for 3-5 minutes. I can either interrupt waiting or wait. The result is the same: I cannot do scanimage again until I pass scanner to VBox VM and virtually disconnect it from VM (this time I should do it twice). Then I can again do scanimage.

If I don't pass scanner to VBox I have this error:

$ scanimage: open of device plustek:libusb:001:009 failed: Error during device I/O

Scanner is present in lsusb but scanimage doesn't see it.

Main part:
If I switch off the  "XHCI Pre-boot Mode" in BIOS and I can scan without any problem.
YiTd0.jpg
But in this case my Gigabit USB3.0 Network Card works with half of speed.
How is it possible to have scanner working AND USB3.0 Lan Card simultaneously?
Is there a way to load USB2.0 module specifically for scanner?

Last edited by ZeroLinux (2013-06-17 08:22:51)

Offline

#13 2013-06-17 14:01:53

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: [SOLVED ]CanoScan LiDe25 problem.

You might want to try the mainline kernel. There are some usb related patches I think
https://aur.archlinux.org/packages/linux-mainline/
http://git.kernel.org/cgit/linux/kernel … rep&q=xhci


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#14 2013-06-17 15:32:40

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

Thanks for advice

Offline

#15 2013-06-18 13:11:19

ZeroLinux
Member
Registered: 2011-10-07
Posts: 157

Re: [SOLVED ]CanoScan LiDe25 problem.

I bought LiDE 210. It works excellent.

Offline

#16 2014-11-01 12:18:14

halfgaar
Member
Registered: 2010-05-22
Posts: 50

Re: [SOLVED ]CanoScan LiDe25 problem.

Did you ever find a better solution for this? I have a LiDE 25 too with similar problems.

Offline

Board footer

Powered by FluxBB