hp-scan error: sane error during device I/O (code=9)
ARCH = mipsel
hplip version is 3.10.9
device is HP LaserJet M1522NF
when i run "hp-scan -g"
i get output is : error: sane error during device I/O (code=9)
what can i do about this question?
thanks a lot!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sarbeswar Meher
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi,
Can you please install latest hplip-3.12.4 from http://
Please provide the output of 'hp-check' for any error.
Revision history for this message
|
#2 |
Thanks Sarbeswar Meher, that solved my question.
Revision history for this message
|
#3 |
Hi Sarbeswar Meher,
Thank you for your help. but i still can not scanning, because i did not have source code of hplip.
I also have some questiones: 1. Did HP LaserJet M1522NF's driver support mipsel ARCH ? 2. where is source code of hplip, i want download source code.
Thanks a lot!
Revision history for this message
|
#4 |
You can download the source code of hplip from http://
Revision history for this message
|
#5 |
Thanks Sarbeswar Meher,
your information is very important to me .
but i want to make sure that whether mipsel arch is supported?
Revision history for this message
|
#6 |
hi Sarbeswar Meher:
i have already install hplip 3.12.4, it can printing, but still can not scan.
when i run "hp-check"
output :
HP Linux Imaging and Printing System (ver. 3.12.4)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-14 Hewlett-Packard 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).
Saving output in log file: hp-check.log
Initializing. Please wait...
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux localhost.
Distribution:
unknown 0.0
Checking Python version...
OK, version 2.6.4 installed
Checking PyQt 4.x version...
OK, version 4.7.3 installed.
Checking for CUPS...
Status: 调度程序正在运行
Version: 1.4.6
warning: /etc/cups/
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0
-------
| COMPILE AND RUNTIME DEPENDENCIES |
-------
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: CUPS - Common Unix Printing System...
OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.
Checking for dependency: CUPS image - CUPS image development files...
OK, found.
Checking for dependency: DBus - Message bus system...
OK, found.
Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.
Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.
Checking for dependency: libjpeg - JPEG library...
OK, found.
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: libpthread - POSIX threads library...
OK, found.
Checking for dependency: libtool - Library building support services...
OK, found.
Checking for dependency: libusb - USB library...
OK, found.
Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.
Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.
Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.
Checking for dependency: Python devel - Python development files...
OK, found.
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.
Checking for dependency: Python XML libraries...
OK, found.
Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.
Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.
Checking for dependency: Reportlab - PDF library for Python...
OK, found.
Checking for dependency: SANE - Scanning library...
OK, found.
Checking for dependency: SANE - Scanning library development files...
OK, found.
Checking for dependency: scanimage - Shell scanning program...
OK, found.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.
-------
| HPLIP INSTALLATION |
-------
Currently installed HPLIP version...
HPLIP 3.12.4 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.12.4
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
icon=/usr/
cupsbackend=
cupsfilter=
drv=/usr/
# Following values are determined at configure time and cannot be changed.
[configure]
network-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-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-tag=3.12.4
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-
hpijs-only-build=no
Current contents of '/var/lib/
[plugin]
eula = 1
version = 3.12.4
installed = 1
Current contents of '~/.hplip/
[last_used]
printer_name = HP-LaserJet-
working_dir = .
device_uri = hpaio:/
[commands]
scan = /usr/bin/
[upgrade]
latest_
[installation]
version = 3.12.4
date_time = 2012年05月29日 15:50:12
[settings]
systray_messages = 0
systray_visible = 0
[Scanner_plugins]
bb_soap.so = Present
bb_soapht.so = Present
bb_marvell.so = Present
[Printer_plugins]
lj.so = Present
[refresh]
rate = 30
enable = false
type = 1
[fax]
email_address =
voice_phone =
[polling]
enable = false
device_list =
interval = 5
[Fax_plugins]
fax_marvell.so = Present
-------
| DISCOVERED USB DEVICES |
-------
Device URI Model
-----
hp:/usb/
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
warning: No queues found.
-------
| SANE CONFIGURATION |
-------
'hpaio' in '/etc/sane.
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
device `hpaio:
-------
| PYTHON EXTENSIONS |
-------
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
Checking 'scanext' SANE scanning extension...
OK, found.
-----------------
| USB I/O SETUP |
-----------------
Checking for permissions of USB attached printers...
HP Device 0x4c17 at 001:007:
Device URI: hp:/usb/
Device node: /dev/bus/
Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/007
# owner: root
# group: lp
user::rw-
user:test:rw-
group::rw-
group:lp:rw-
mask::rw-
other::r--
---------------
| USER GROUPS |
---------------
test
-----------
| SUMMARY |
-----------
error: 1 error or warning.
Please refer to the installation instructions at:
http://
Done.
thanks again!
Ray
Revision history for this message
|
#7 |
To analyze the issue, can you please do the followings.
- Go to the source code of hplip-3.12.4.
- Open file /io/hpmud/hpmudi.h and uncomment #define HPMUD_DEBUG
- Open file /prnt/backend/hp.c and uncomment #define HP_DEBUG
- In terminal, run 'make' and 'sudo make install'
- Clear the log files by running in terminal
$ sudo cp /dev/null /var/log/syslog
$ sudo cp /dev/null /var/log/messages
- Close any scan apps(xsane or scanimage) if open. Start scanning from the device. Provide us the syslog and messages file.
Revision history for this message
|
#8 |
Hi Sarbeswar Meher,
Thank you for your help!
I have already done what you said.
file /var/log/syslog is null,
/var/log/messages :
May 30 09:37:19 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:37:28 localhost kernel: [ 4338.824218] usb 1-2: new high speed USB device using ehci_hcd and address 5
May 30 09:37:28 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:37:29 localhost kernel: [ 4338.953125] hub 1-2:1.0: USB hub found
May 30 09:37:29 localhost kernel: [ 4338.957031] hub 1-2:1.0: 2 ports detected
May 30 09:37:29 localhost kernel: [ 4339.230468] usb 1-2.1: new high speed USB device using ehci_hcd and address 6
May 30 09:37:29 localhost kernel: [ 4339.324218] usblp0: USB Bidirectional printer dev 6 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4C17
May 30 09:37:29 localhost logger: loading HP Device 001 006
May 30 09:37:29 localhost udevd-work[6376]: missing file parameter for attr
May 30 09:37:29 localhost logger: loading hp_printer_device 001 006
May 30 09:37:29 localhost hp-mkuri: io/hpmud/hpmud.c 363: [6392] hpmud_init()
May 30 09:37:29 localhost hp-mkuri: io/hpmud/model.c 625: unable to find [s{product}] support-type in /usr/share/
May 30 09:37:29 localhost hp-mkuri: io/hpmud/hpmud.c 368: [6392] hpmud_exit()
May 30 09:37:29 localhost udev-configure-
May 30 09:37:30 localhost kernel: [ 4340.308593]
May 30 09:37:30 localhost kernel: [ 4340.308593] BOOT CPU#1...
May 30 09:37:30 localhost kernel: [ 4340.308593] CPU 1, fn=ffffffff8023
May 30 09:37:30 localhost kernel: [ 4340.308593] CPU revision is: 00006305 (ICT Loongson-3)
May 30 09:37:30 localhost kernel: [ 4340.308593] FPU revision is: 00770501
May 30 09:37:30 localhost kernel: [ 4340.308593] c0_config1 = fffffffffee37193
May 30 09:37:30 localhost kernel: [ 4340.308593] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
May 30 09:37:30 localhost kernel: [ 4340.308593] Primary data cache 64kB, 4-way, VIPT, no aliases, linesize 32 bytes
May 30 09:37:30 localhost kernel: [ 4340.308593] c0_config2 = ffffffff80001743
May 30 09:37:30 localhost kernel: [ 4340.308593] Unified secondary cache 4096kB 4-way, linesize 32 bytes, waybit=0.
May 30 09:37:30 localhost kernel: [ 4340.308593]
May 30 09:37:30 localhost kernel: [ 4340.308593] CPU#1 call init_secondary!!!!
May 30 09:37:30 localhost kernel: [ 4340.308593]
May 30 09:37:30 localhost kernel: [ 4340.308593] CPU#1 done init_secondary en=ffffffff!!!!
May 30 09:37:30 localhost kernel: [ 4340.394531]
May 30 09:37:30 localhost kernel: [ 4340.394531] loongson3_
May 30 09:37:31 localhost hp: io/hpmud/hpmud.c 363: [6419] hpmud_init()
May 30 09:37:31 localhost hp[6419]: io/hpmud/hpmud.c 575: [6419] hpmud_probe_
May 30 09:37:31 localhost kernel: [ 4341.156250] usb 1-2.1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
May 30 09:37:31 localhost hp[6419]: io/hpmud/hpmud.c 368: [6419] hpmud_exit()
May 30 09:37:31 localhost python: io/hpmud/hpmud.c 363: [6395] hpmud_init()
May 30 09:37:31 localhost python: io/hpmud/hpmud.c 363: [6390] hpmud_init()
May 30 09:37:31 localhost kernel: [ 4341.871093]
May 30 09:37:31 localhost kernel: [ 4341.871093] BOOT CPU#2...
May 30 09:37:31 localhost kernel: [ 4341.871093] CPU 2, fn=ffffffff8023
May 30 09:37:31 localhost kernel: [ 4341.871093] CPU revision is: 00006305 (ICT Loongson-3)
May 30 09:37:31 localhost kernel: [ 4341.871093] FPU revision is: 00770501
May 30 09:37:31 localhost kernel: [ 4341.871093] c0_config1 = fffffffffee37193
May 30 09:37:31 localhost kernel: [ 4341.871093] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
May 30 09:37:31 localhost kernel: [ 4341.871093] Primary data cache 64kB, 4-way, VIPT, no aliases, linesize 32 bytes
May 30 09:37:31 localhost kernel: [ 4341.871093] c0_config2 = ffffffff80001743
May 30 09:37:31 localhost kernel: [ 4341.871093] Unified secondary cache 4096kB 4-way, linesize 32 bytes, waybit=0.
May 30 09:37:31 localhost kernel: [ 4341.871093]
May 30 09:37:31 localhost kernel: [ 4341.871093] CPU#2 call init_secondary!!!!
May 30 09:37:31 localhost kernel: [ 4341.871093]
May 30 09:37:31 localhost kernel: [ 4341.871093] CPU#2 done init_secondary en=ffffffff!!!!
May 30 09:37:32 localhost kernel: [ 4341.957031]
May 30 09:37:32 localhost kernel: [ 4341.957031] loongson3_
May 30 09:37:32 localhost python: io/hpmud/hpmud.c 363: [6415] hpmud_init()
May 30 09:37:32 localhost python: io/hpmud/musb.c 2102: [6390] hpmud_make_
May 30 09:37:32 localhost python: io/hpmud/hpmud.c 575: [6415] hpmud_probe_
May 30 09:37:32 localhost python: io/hpmud/hpmud.c 575: [6415] hpmud_probe_
May 30 09:37:32 localhost python: io/hpmud/hpmud.c 368: [6415] hpmud_exit()
May 30 09:37:32 localhost udev-configure-
May 30 09:37:32 localhost udev-configure-
May 30 09:37:32 localhost python: io/hpmud/hpmud.c 368: [6395] hpmud_exit()
May 30 09:37:35 localhost python: io/hpmud/hpmud.c 363: [6438] hpmud_init()
May 30 09:37:35 localhost kernel: [ 4345.535156] Disable clock for CPU2
May 30 09:37:37 localhost python: io/hpmud/hpmud.c 368: [6438] hpmud_exit()
May 30 09:37:39 localhost kernel: [ 4349.078125] Disable clock for CPU1
May 30 09:37:39 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:37:39 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:37:40 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:37:43 localhost kernel: [ 4353.312500]
May 30 09:37:43 localhost kernel: [ 4353.312500] BOOT CPU#1...
May 30 09:37:43 localhost kernel: [ 4353.312500] CPU 1, fn=ffffffff8023
May 30 09:37:43 localhost kernel: [ 4353.312500] CPU revision is: 00006305 (ICT Loongson-3)
May 30 09:37:43 localhost kernel: [ 4353.312500] FPU revision is: 00770501
May 30 09:37:43 localhost kernel: [ 4353.312500] c0_config1 = fffffffffee37193
May 30 09:37:43 localhost kernel: [ 4353.312500] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
May 30 09:37:43 localhost kernel: [ 4353.312500] Primary data cache 64kB, 4-way, VIPT, no aliases, linesize 32 bytes
May 30 09:37:43 localhost kernel: [ 4353.312500] c0_config2 = ffffffff80001743
May 30 09:37:43 localhost kernel: [ 4353.312500] Unified secondary cache 4096kB 4-way, linesize 32 bytes, waybit=0.
May 30 09:37:43 localhost kernel: [ 4353.312500]
May 30 09:37:43 localhost kernel: [ 4353.312500] CPU#1 call init_secondary!!!!
May 30 09:37:43 localhost kernel: [ 4353.312500]
May 30 09:37:43 localhost kernel: [ 4353.312500] CPU#1 done init_secondary en=ffffffff!!!!
May 30 09:37:43 localhost kernel: [ 4353.398437]
May 30 09:37:43 localhost kernel: [ 4353.398437] loongson3_
May 30 09:37:43 localhost python: io/hpmud/hpmud.c 363: [6447] hpmud_init()
May 30 09:37:44 localhost python: hp-scan[6447]: warning: No destinations specified. Adding 'file' destination by default.
May 30 09:37:46 localhost python: io/hpmud/hpmud.c 575: [6447] hpmud_probe_
May 30 09:37:46 localhost kernel: [ 4356.281250] usb 1-2.1: usbfs: interface 1 claimed by usblp while 'python' sets config #1
May 30 09:37:47 localhost kernel: [ 4357.660156] Disable clock for CPU1
May 30 09:37:47 localhost python: io/hpmud/hpmud.c 492: [6447,2653,
May 30 09:37:48 localhost python: io/hpmud/musb.c 405: removing usblp driver interface=1
May 30 09:37:48 localhost python: io/hpmud/musb.c 543: claimed 7/1/2 interface
May 30 09:37:48 localhost python: io/hpmud/musb.c 761: read actual device_id successfully fd=1 len=165
May 30 09:37:48 localhost python: io/hpmud/musb.c 569: released 7/1/2 interface
May 30 09:37:48 localhost kernel: [ 4357.968750] usblp0: removed
May 30 09:37:48 localhost python: scan/sane/soapht.c 87: unable to load restricted library /usr/share/
May 30 09:37:48 localhost python: io/hpmud/hpmud.c 520: [6447] hpmud_device_
May 30 09:37:48 localhost python: hp-scan[6447]: error: SANE: Error during device I/O (code=9)
May 30 09:37:48 localhost python: io/hpmud/hpmud.c 368: [6447] hpmud_exit()
May 30 09:37:49 localhost kernel: [ 4359.082031]
May 30 09:37:49 localhost kernel: [ 4359.082031] BOOT CPU#1...
May 30 09:37:49 localhost kernel: [ 4359.082031] CPU 1, fn=ffffffff8023
May 30 09:37:49 localhost kernel: [ 4359.082031] CPU revision is: 00006305 (ICT Loongson-3)
May 30 09:37:49 localhost kernel: [ 4359.082031] FPU revision is: 00770501
May 30 09:37:49 localhost kernel: [ 4359.082031] c0_config1 = fffffffffee37193
May 30 09:37:49 localhost kernel: [ 4359.082031] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
May 30 09:37:49 localhost kernel: [ 4359.082031] Primary data cache 64kB, 4-way, VIPT, no aliases, linesize 32 bytes
May 30 09:37:49 localhost kernel: [ 4359.082031] c0_config2 = ffffffff80001743
May 30 09:37:49 localhost kernel: [ 4359.082031] Unified secondary cache 4096kB 4-way, linesize 32 bytes, waybit=0.
May 30 09:37:49 localhost kernel: [ 4359.082031]
May 30 09:37:49 localhost kernel: [ 4359.082031] CPU#1 call init_secondary!!!!
May 30 09:37:49 localhost kernel: [ 4359.082031]
May 30 09:37:49 localhost kernel: [ 4359.082031] CPU#1 done init_secondary en=ffffffff!!!!
May 30 09:37:49 localhost kernel: [ 4359.167968]
May 30 09:37:49 localhost kernel: [ 4359.167968] loongson3_
May 30 09:37:52 localhost kernel: [ 4362.746093] Disable clock for CPU1
May 30 09:37:56 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:38:06 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:38:06 localhost avahi-daemon[1378]: Invalid query packet.
May 30 09:38:06 localhost avahi-daemon[1378]: Invalid query packet.
-------
>uname -a
Linux localhost.
>scanimage -T
>hp-scan -g
HP Linux Imaging and Printing System (ver. 3.12.4)
Scan Utility ver. 2.2
Copyright (c) 2001-14 Hewlett-Packard 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.
hp-scan[6958]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[6958]: debug: Mode=0
hp-scan[6958]: debug: Device URI ipp://10.
hp-scan[6958]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[6958]: debug: Device URI ipp://10.
hp-scan[6958]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[6958]: debug: Device URI ipp://10.
hp-scan[6958]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[6958]: debug: hp:/usb/
hp-scan[6958]: debug: Cache miss: hp_laserjet_
hp-scan[6958]: debug: Reading file: /usr/share/
hp-scan[6958]: debug: Searching for section [hp_laserjet_
hp-scan[6958]: debug: Found section [hp_laserjet_
hp-scan[6958]: debug: hpfax:/
hp-scan[6958]: debug: Device URI file:///dev/null is invalid/unknown
hp-scan[6958]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[6958]: debug: {'hpaio:
Using device: hpaio:/
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/
Opening connection to device...
error: SANE: Error during device I/O (code=9)
scanimage: open of device hpaio:/
>
Revision history for this message
|
#9 |
Hi Sarbeswar Meher,
when i run"hp-setup", it will update a plug-in, and put this plug-in folder /usr/share/
> ls -al /usr/share/
lrwxrwxrwx 1 root root 50 5月 28 13:37 bb_marvell.so -> /usr/share/
-rwxr-xr-- 1 root root 10488 5月 28 13:37 bb_marvell-
lrwxrwxrwx 1 root root 49 5月 28 13:37 bb_soapht.so -> /usr/share/
-rwxr-xr-- 1 root root 26092 5月 28 13:37 bb_soapht-x86_32.so
lrwxrwxrwx 1 root root 47 5月 28 13:37 bb_soap.so -> /usr/share/
-rwxr-xr-- 1 root root 17552 5月 28 13:37 bb_soap-x86_32.so
all of libs are x86 arch,
i want to ask that did you have libs of mipsel arch?
thank you!
Ray
Revision history for this message
|
#10 |
Hi Ray,
We don't support mipsel arch in HPLIP.
Revision history for this message
|
#11 |
Thanks Sarbeswar Meher, that solved my question.
Revision history for this message
|
#12 |
HI Sarbeswar Meher,
I see , thank you for your support.
Ray