Bug 436200 - long wait to locate scanner
Summary: long wait to locate scanner
Status: REPORTED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.1.0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-26 09:07 UTC by Amnon
Modified: 2021-05-06 20:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amnon 2021-04-26 09:07:08 UTC
SUMMARY

It takes Skanlite about 25 seconds to recognize scanning device. 


STEPS TO REPRODUCE
1. put pages in scanner tray
2. open skanlite
3. wait 25 sec !!!
4. when menu shows press scan

OBSERVED RESULT

Scan ok, but very long delay


EXPECTED RESULT

wait 1-5 seconds to ready 


SOFTWARE/OS VERSIONS

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-72-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 15.5 GiB of RAM


ADDITIONAL INFORMATION

Device is HP LaerJet Pro MFP M426fdn
Comment 1 Kåre Särs 2021-04-28 05:58:15 UTC
Thanks for the report.

This time is unfortunately not in the hands of Skanlite (or libksane from KDE).

You can reduce the time significantly by disabling (commenting out) all the scanner backends that you do not use, in /etc/sane.d/dll.conf

Alternatively you can check the backend/instance name for your specific scanner and provide that to Skanlite on the command line.

skanlite -d <your-scanner-id>


We could maybe change this into a "wishlist" for adding an option to always try to open the last active scanner before doing the probe for devices.... We would also need to add a UI mechanism for changing scanner after you have started Skanlite with one scanner.
Comment 2 Amnon 2021-04-28 21:35:33 UTC
I get the same 25 second delay with other scanning programs on my KDE machine, including when starting from the HP interface. 

What I can try is to connect my new laptop (Dell XPS13 with UBUNTU), not the current old desktop machine, to the HP scanner, and see if that's faster. I also have a GNOME system on it and can try that. I wonder if this will be better. 

I shouls say that in the past  (maybe a couple of months ago) this trouble did not exist. It is a new bug.
Comment 3 Kåre Särs 2021-04-29 05:36:05 UTC
Can you run "scanimage -L" in a terminal and time that?

From the output you should get something like:
device 'foo:0' is a ....

you could paste that output here too.

Can you then start skanlite with the corresponding device name/id

skanlite -d <device name/id here>

How much time does it take for skanlite now?
Comment 4 Amnon 2021-05-06 20:58:37 UTC
@Kåre Särs:

1) I tested 
  scanimage -L
and timed 23 seconds. 

2) Then I did 
  skanlite -d hpaio:/usb/HP_LaserJet_MFP_M426fdn?serial=PHB8JC64Z6
and it was immedaite. 

3) commebnted out aLL but hpaio in  /etc/sane.d/dll.conf. 
Now running skanlite from icon is immediate. 

Thanks !!!

I hope this file will not revert when rebooting. 

  Amnon