LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   scanner software very slow to load on Mint 17.1 MATE (https://www.linuxquestions.org/questions/linux-software-2/scanner-software-very-slow-to-load-on-mint-17-1-mate-4175554832/)

loshakova 09-29-2015 07:01 PM

scanner software very slow to load on Mint 17.1 MATE
 
I am running my Epson WF-3620 all-in-one printer/scanner on Mint 17.1 MATE. It worked perfectly after installation. Then, I tried to get my older Epson Perfection 1660 Photo running as well. The 1660 runs with some versions of Mint, but not with others, and I couldn't get it running with Mint 17.1 even after installing the proper drivers from Epson. In the process of trying to get the 1660 to work, I must have borked something. I'm still (mostly) able to scan with the WF-3620, but scanner software is now acting fractious. Yesterday Xsane was working, but today after running Mint Updates, it's not. Simple Scan won't work at all. Today I was able to get iscan to open, but it took several minutes to load. Any suggestions? I'm guessing that I inadvertently created some kind of conflict, because both Simple Scan and Xsane went into terminal loops today. Thanks.

frankbell 09-29-2015 08:28 PM

I have some testing ideas:

If you haven't already done so, try starting xsane and simple scan from the terminal. They may throw useful error messages to the terminal. Then try completely removing one of the scanner programs, then test the other. Then reverse and repeat.

Post any error messages back here, being sure to surround them with "Code" tags which become available when you click the "Go Advanced" button at the bottom of the "compose post" window.

loshakova 09-29-2015 10:49 PM

@frankbell: Here are the results.
simple-scan: Opened instantly in terminal, but did not recognize scanner, and locked up when I tried to close the program. This was previously my default scanner program.
iscan: Opened in terminal after about 1 1/2 minutes and recognized scanner.
xsane: Opened in terminal after 2 full minutes and recognized scanner.

It appears that I didn't wait long enough when I tested in terminal earlier today. :) For what it's worth, this is a 2-month-old Lenovo M83 that is otherwise very zippy.

loshakova 09-29-2015 11:15 PM

@frankbell:
Part 2: test scanner software individually
First, I uninstalled all three pieces of scanner software and rebooted the computer.
Next, I installed simple-scan via software manager. I got the same result as before -- it opened immediately in the terminal window, but would not recognize my scanner.
I uninstalled simple-scan via software manager, rebooted, and installed xsane. As before (realizing that I forgot to mention this), when I tried to open it in terminal a small window opened with the message "scanning for devices". This time, however, after 2 minutes that message was replaced by the message "no devices available". No error code ever appeared in the terminal window. I tried twice and watched.
I uninstalled xsane via software manager, rebooted, and tried to install iscan. Iscan still appears in the software manager, but it and iscan-data are now both grayed out and I was not able to install them.
Result: no working scanner now.

loshakova 09-29-2015 11:17 PM

One more thing I forgot to mention: these problems all started when I tried to install VueScan. Uninstalling it did not solve the problems.

loshakova 09-29-2015 11:55 PM

A bit more testing.

The printer part of my printer-scanner is working fine.

$ scanimage -L
Code:

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

I checked in package manager and verified that sane is installed.

$ scanimage --format=tiff > test.tiff
Code:

scanimage: no SANE devices found
manually re-downloaded iscan-data and core packages from Epson site, and installed with GDebi.

xsane starts again now from terminal after 2-minute delay.

ferrari 09-30-2015 01:00 AM

I'm not familiar with Mint, but it might be helpful to monitor the realtime kernel output in a terminal window with something like (or equivalent to)
Code:

sudo tail -f /var/log/messages
Then plug in the scanner and observe.

Another thought - are you attaching to a USB 2 or USB 3 port? That might be related to the strange behaviour perhaps. Not all hardware interacts with USB 3 host controllers as well as expected.

ferrari 09-30-2015 01:11 AM

Further to the above, it might be /var/log/syslog that needs to be observed? A Mint use might be able to confirm here.

Below is a link to some troubleshooting information concerning slow scanner start up

https://wiki.archlinux.org/index.php/SANE#Slow_startup

Having two conflicting drivers (eg epson2 and epkowa) defined in /etc/sane.d/dll.conf can apparently result in strange behaviour. So, check this first.

A thread where a user connecting a scanner to a USB 3 host controller experiences problems

http://askubuntu.com/questions/45790...usb-3-0-system

If this is the cause of your issue, one workaround is to disable XHCI mode in the UEFI/BIOS, but there may be other reasons why you don't want to do that.

loshakova 09-30-2015 05:36 PM

1 Attachment(s)
@ferrari:

$ sudo tail -f /var/log/messages

Code:

tail: cannot open ‘/var/log/messages’ for reading: No such file or directory
$ sudo tail -f /var/log/syslog

(I started with my WF-3620 printer/scanner unplugged, then plugged it in.)

Code:

Sep 30 17:49:06 hlasher1-ThinkCentre-M83 colord: Device added: sysfs-EPSON-EPSON_WF-3620_Series
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 kernel: [62939.546338] usb 3-3: USB disconnect, device number 9
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 kernel: [62939.546465] usblp0: removed
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: remove /devices/pci0000:00/0000:00:14.0/usb3/3-3
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of detected printer: usb://EPSON/WF-3620%20Series?serial=534544593131323390&interface=1, normalized: epson wf 3620 series serial 534544593131323390 interface 1
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of print queue: usb://EPSON/WF-3620%20Series?serial=534544593131323390&interface=1, normalized: epson wf 3620 series serial 534544593131323390 interface 1
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: Queue ipp://localhost:631/printers/EPSON-WF-3620-Series has matching device URI
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: Disabled printer ipp://localhost:631/printers/EPSON-WF-3620-Series as the corresponding device was unplugged or turned off
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of print queue: usb://EPSON/WF-3620%20Series?interface=1, normalized: epson wf 3620 series interface 1
Sep 30 17:49:24 hlasher1-ThinkCentre-M83 colord: device removed: sysfs-EPSON-EPSON_WF-3620_Series
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.966044] usb 3-3: new high-speed USB device number 10 using xhci_hcd
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994384] usb 3-3: New USB device found, idVendor=04b8, idProduct=08b8
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994393] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994398] usb 3-3: Product: EPSON WF-3620 Series
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994402] usb 3-3: Manufacturer: EPSON
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994406] usb 3-3: SerialNumber: 534544593131323390
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.001820] usblp 3-3:1.1: usblp0: USB Bidirectional printer dev 10 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08B8
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002636] usb-storage 3-3:1.2: USB Mass Storage device detected
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002908] scsi8 : usb-storage 3-3:1.2
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: add /devices/pci0000:00/0000:00:14.0/usb3/3-3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:14.0/usb3/3-3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: MFG:EPSON MDL:WF-3620 Series SERN:- serial:534544593131323390
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.004517] scsi 8:0:0:0: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.007638] scsi 8:0:0:1: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.010684] scsi 8:0:0:2: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.010926] sd 8:0:0:0: Attached scsi generic sg2 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.011122] sd 8:0:0:1: Attached scsi generic sg3 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.011264] sd 8:0:0:2: Attached scsi generic sg4 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.057254] sd 8:0:0:0: [sdb] Attached SCSI removable disk
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.067658] sd 8:0:0:1: [sdc] Attached SCSI removable disk
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.072915] sd 8:0:0:2: [sdd] Attached SCSI removable disk
Sep 30 17:49:51 hlasher1-ThinkCentre-M83 kernel: [62966.291748] usblp0: removed
Sep 30 17:49:51 hlasher1-ThinkCentre-M83 kernel: [62966.301242] usblp 3-3:1.1: usblp0: USB Bidirectional printer dev 10 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08B8
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: URI contains USB serial number
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: URI match: usb://EPSON/WF-3620%20Series?serial=534544593131323390&interface=1
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of detected printer: usb://EPSON/WF-3620%20Series?serial=534544593131323390&interface=1, normalized: epson wf 3620 series serial 534544593131323390 interface 1
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of print queue: usb://EPSON/WF-3620%20Series?serial=534544593131323390&interface=1, normalized: epson wf 3620 series serial 534544593131323390 interface 1
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: Queue ipp://localhost:631/printers/EPSON-WF-3620-Series has matching device URI
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/EPSON-WF-3620-Series
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 udev-configure-printer: URI of print queue: usb://EPSON/WF-3620%20Series?interface=1, normalized: epson wf 3620 series interface 1
Sep 30 17:49:52 hlasher1-ThinkCentre-M83 colord: Device added: sysfs-EPSON-EPSON_WF-3620_Series

I double-checked /etc/sane.d/dll.conf, which I did tinker with during my attempts to get the older scanner working, but I had returned the commenting to the way it was originally. There are two Epson backends listed, epson and epson2. Currently, epson is commented and epson2 is uncommented.

from first link:
I went through an overlapping series of steps when I was trying to get my old scanner to work with VueScan. VueScan was buggy, and I wasn't able to execute some of the instructions in the release notes, so I deleted the program. For anyone who is curious, I itemized all the changes I made for Ed Hamrick. Here is a link to my notes.

$ lsusb
Code:

Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 003: ID 04b8:08b8 Seiko Epson Corp.
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 005: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 004 Device 003: ID 05e3:0616 Genesys Logic, Inc.
Bus 004 Device 004: ID 05e3:0616 Genesys Logic, Inc.
Bus 003 Device 006: ID 17ef:6019 Lenovo
Bus 003 Device 007: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard

/usr/lib/udev/rules.d/49-sane.rules

I looked in this file when I was tinkering. The correct codes for my old scanner are already there. The codes for the new one are not, but since the new one was already working I did not add its codes to the file.

I did create a file called /etc/udev/rules.d/10-local.rules as part of the tinkering, but when adding the information for my old scanner didn't make it work, I deleted the information again. Now the file is empty.

I had also created a file called /etc/udev/rules.d/40-scanner-permissions.rules, and had added the following rules from the VueScan9 Release Notes:

# usb scanner
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE:="0666"
SUBSYSTEM=="usb_device",MODE:="0666"

It didn't work, but I had left the rules in the file, so I just deleted them, then tried starting xsane again. Unfortunately, it's still loading very slowly.

Finally, I checked the USB connection. The WF-3620 printer/scanner is a USB 2.0 device, and I am running it through a Sabrent High Speed 10 Port USB 3.0 HUB. This was not an issue when I first installed Mint 17.1 -- both the printer and scanner features of the WF-3620 worked perfectly.

loshakova 09-30-2015 05:42 PM

@ferrari:
Re: XHCI mode, I wasn't sure what it was, so I looked it up. If I understand what I read correctly, it shouldn't be making any difference to this printer if XHCI is enabled or disabled, because the computer is a wired desktop and the printer is always plugged in.

ferrari 09-30-2015 08:20 PM

Quote:

@ferrari:
Re: XHCI mode, I wasn't sure what it was, so I looked it up. If I understand what I read correctly, it shouldn't be making any difference to this printer if XHCI is enabled or disabled, because the computer is a wired desktop and the printer is always plugged in.
It's about whether the xhci_hcd driver is impacting here, and your kernel output does show that the device is connected to a USB 3.0 host controller.
Code:

[62964.966044] usb 3-3: new high-speed USB device number 10 using xhci_hcd
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994384] usb 3-3: New USB device found, idVendor=04b8, idProduct=08b8
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994393] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994398] usb 3-3: Product: EPSON WF-3620 Series
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994402] usb 3-3: Manufacturer: EPSON
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62964.994406] usb 3-3: SerialNumber: 534544593131323390
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.001820] usblp 3-3:1.1: usblp0: USB Bidirectional printer dev 10 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08B8
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002636] usb-storage 3-3:1.2: USB Mass Storage device detected
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002908] scsi8 : usb-storage 3-3:1.2

I also note that the usblp device is added then removed, and that on the same bus storage media is detected.
Code:

Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.001820] usblp 3-3:1.1: usblp0: USB Bidirectional printer dev 10 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08B8
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002636] usb-storage 3-3:1.2: USB Mass Storage device detected
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 kernel: [62965.002908] scsi8 : usb-storage 3-3:1.2
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: add /devices/pci0000:00/0000:00:14.0/usb3/3-3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:14.0/usb3/3-3
Sep 30 17:49:49 hlasher1-ThinkCentre-M83 udev-configure-printer: MFG:EPSON MDL:WF-3620 Series SERN:- serial:534544593131323390
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.004517] scsi 8:0:0:0: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.007638] scsi 8:0:0:1: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.010684] scsi 8:0:0:2: Direct-Access    EPSON    Storage          1.00 PQ: 0 ANSI: 2
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.010926] sd 8:0:0:0: Attached scsi generic sg2 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.011122] sd 8:0:0:1: Attached scsi generic sg3 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.011264] sd 8:0:0:2: Attached scsi generic sg4 type 0
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.057254] sd 8:0:0:0: [sdb] Attached SCSI removable disk
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.067658] sd 8:0:0:1: [sdc] Attached SCSI removable disk
Sep 30 17:49:50 hlasher1-ThinkCentre-M83 kernel: [62966.072915] sd 8:0:0:2: [sdd] Attached SCSI removable disk
Sep 30 17:49:51 hlasher1-ThinkCentre-M83 kernel: [62966.291748] usblp0: removed

So, I think that the xhci_hcd driver is impacting with the connection and disconnection of this device.

ferrari 09-30-2015 08:24 PM

Does this computer have USB 2.0 ports as well? If so, try connecting the multi-function device via one of those. It will then use the ehci_hcd driver, and will probably be handled correctly. If not, try disabling the XFCI mode via the BIOS, then test again and report back.

loshakova 09-30-2015 09:48 PM

@ferrari:
Thank you. I will test tomorrow in the daylight and report back.

loshakova 10-01-2015 04:01 PM

@ferrari:
I just checked the USB connection for the printer/scanner. It was already plugged into a USB 2.0 port on my hard drive.

ferrari 10-01-2015 06:06 PM

Quote:

I just checked the USB connection for the printer/scanner. It was already plugged into a USB 2.0 port on my hard drive.
I think you mean your computer (rather than hard drive). All we have to go on is the output you shared previously. It clearly shows that the host controller is USB 3.0. Refer to the line showing xhci_hcd (as opposed to ehci_hcd.

For example, my laptop has USB 2.0 and 3.0 host controller ports. If I plug a given device in one of two adjacent ports, I get
Code:

[ 7281.269684] usb 3-2: new full-speed USB device number 4 using xhci_hcd
while in another (USB 2.0 port) I get
Code:

[ 7295.296311] usb 1-1.2: new full-speed USB device number 6 using ehci-pci
Ideally any hardware connected will be handled identically, but this is not always the case unfortunately.I still believe you are impacted by this.


All times are GMT -5. The time now is 08:59 PM.