LINUX.ORG.RU

Sane очень медленно сканирует

 , ,


0

1

У меня МФУ HP LaserJet Pro MFP M28-M31, подключено по WiFi.

При сканировании с Android'а - сканирование происходит практически моментально. При сканировании из sane - чувствуются ощутимые задержки (от нажатия на кнопку «сканировать» до начала сканирования проходит секунд 40).

Версии:

  • hplip 3.18.12 (последняя);
  • sane 1.0.27 (последняя).

При старте sane выдаёт такие ошибки:

Dec 17 02:50:55 sabo-probook perl: io/hpmud/model.c 532: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/models.dat
Dec 17 02:50:55 sabo-probook perl: io/hpmud/model.c 543: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat
Dec 17 02:51:00 sabo-probook perl: scan/sane/escl.c 418: escl_open() session=(nil)
Dec 17 02:51:00 sabo-probook perl: common/utils.c 245: unable to load library libm.so: /usr/lib/x86_64-linux-gnu/libm.so: неверный заголовок ELF
...

При сканировании такие:

...
Dec 17 02:49:19 sabo-probook scanimage: io/hpmud/jd.c 694: timeout read_channel sec=10 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.12.4
Dec 17 02:49:29 sabo-probook scanimage: io/hpmud/jd.c 694: timeout read_channel sec=10 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.12.4
Dec 17 02:49:29 sabo-probook scanimage: http.c 153: hpmud_read_channel failed retrying (2) more times)
...

В какую сторону копать? Может ли sane вообще работать быстрее?

★★

Предположу очевидные варианты, разрешение и глубина цвета одинаковые у андроида и онтопика? Различие в 100dpi может сильно замедлить сканирование.

einhander ★★★ ()
Ответ на: комментарий от einhander

Да, и там и там - 300dpi.

Но вопрос не в скорости сканирования а в том времени за которое сканер вообще стартует (около 40 секунд от нажатия на кнопку «сканировать» до фактического начала сканирования).

SaBo ★★ ()
Ответ на: комментарий от WoozyMasta
> hp-check -c
Saving output in log file: /home/sabo/hp-check.log

HP Linux Imaging and Printing System (ver. 3.18.12)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.                               
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.                        
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).                                                                                   

Check types:                                                                                                                                                                                                                                 
a. EXTERNALDEP - External Dependencies                                                                                                                                                                                                       
b. GENERALDEP - General Dependencies (required both at compile and run time)                                                                                                                                                                 
c. COMPILEDEP - Compile time Dependencies                                                                                                                                                                                                    
d. [All are run-time checks]                                                                                                                                                                                                                 
PYEXT SCANCONF QUEUES PERMISSION                                                                                                                                                                                                             

Status Types:
    OK
    MISSING       - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

 
---------------
| SYSTEM INFO |
---------------

 Kernel: 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 GNU/Linux
 Host: sabo-probook
 Proc: 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.18.12
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro  18.04 version 

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.18.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.12
html=/usr/share/doc/hplip-3.18.12
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.18.12
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.18.12



Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1544997637
pending_upgrade_time = 0
latest_available_version = 3.17.10

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.12.4"
printer_name = 
working_dir = .

[commands]
scan = "/usr/bin/gscan2pdf --device=%SANE_URI%"

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list = 

[fax]
voice_phone = 
email_address = 

[installation]
date_time = 21.12.2018 13:28:53
version = 3.18.12


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.12.4' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HP_LaserJet_MFP_M28-M31
-----------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.12.4
PPD: /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd ppd file
PPD Description: 
Printer status: принтер HP_LaserJet_MFP_M28-M31 свободен. Включен с момента Сб 25 авг 2018 04:49:44
Communication status: Good

HP_LaserJet_MFP_M28w_5DC46F_
----------------------------
Type: Unknown
Device URI: ipps://NPI5DC46F.local:631/ipp/print
PPD: /etc/cups/ppd/HP_LaserJet_MFP_M28w_5DC46F_.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_MFP_M28w_5DC46F_.ppd ppd file
PPD Description: 
Printer status: принтер HP_LaserJet_MFP_M28w_5DC46F_ свободен. Включен с момента Пт 21 дек 2018 13:05:28
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.


--------------
| PERMISSION |
--------------

 
-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 0
Total Warnings: 1


Done.
SaBo ★★ ()