HP LaserJet P1102, hp backend failed, open device failed stat=12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Sanjay Kumar | ||
hplip (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
HP LaserJet P1102
Hi, yesterday I successfully installed the printer on the server Debian, it worked, I hooked up the Linux client and windwos-clients, everything worked fine. Worked as long as I'm not pressed the power button on the printer. I turned off and turned on the printer and printer lost. I have error in cups error log:
/usr/lib/
I reinstall hplip and depends, but now i have error:
prnt/backend/hp.c 745: ERROR: open device failed stat=12: hp:/usb/
Now Printer not work :(
Here's the output from the diagnostic commands:
*******
root@debSrv:~# hp-levels -g
warning: hp-levels should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.10.6)
Supply Levels Utility ver. 2.0
Copyright (c) 2001-9 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-levels[17732]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-levels[17732]: debug: Mode=0
hp-levels[17732]: debug: hp:/usb/
hp-levels[17732]: debug: Cache miss: hp_laserjet_
hp-levels[17732]: debug: Reading file: /usr/share/
hp-levels[17732]: debug: Searching for section [hp_laserjet_
hp-levels[17732]: debug: Found section [hp_laserjet_
hp-levels[17732]: debug: {'hp:/usb/
Using device: hp:/usb/
hp-levels[17732]: debug: Device URI: hp:/usb/
hp-levels[17732]: debug: Printer: None
hp-levels[17732]: debug: Not starting dbus: running as root.
hp-levels[17732]: debug: hp:/usb/
hp-levels[17732]: debug: URI: backend=hp, is_hp=True, bus=usb, model=HP_
hp-levels[17732]: debug: Model/UI model: HP_LaserJet_
hp-levels[17732]: debug: hp:/usb/
hp-levels[17732]: debug: Re-reading CUPS printer queue information.
hp-levels[17732]: debug: Opening device: hp:/usb/
hp-levels[17732]: debug: I/O mode=6
error: Unable to communicate with device (code=12): hp:/usb/
hp-levels[17732]: debug: Exception: 2 (Device not found)
error: Error opening device (Device not found). Exiting.
*******
root@debSrv:~# hp-probe
warning: hp-probe should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.10.6)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-9 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.
-------
| SELECT CONNECTION (I/O) TYPE |
-------
Num Connection Description
Type
-------- ---------- -------
0* usb Universal Serial Bus (USB)
1 net Network/
2 par Parallel Port (LPT:)
Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0
Using connection type: usb
-------
| DEVICE DISCOVERY |
-------
warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
warning: check to make sure your devices are properly connected and powered on.
*******
root@debSrv:~# hp-query -d hp:/usb/
warning: hp-query should not be run as root/superuser.
align-type=0
clean-type=0
color-cal-type=0
copy-type=0
embedded-
fax-type=0
fw-download=True
icon=HP_
io-mfp-mode=6
io-mode=1
io-support=2
job-storage=0
linefeed-cal-type=0
model1=HP Laserjet Professional P1102 Printer
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=1
plugin-reason=1
power-settings=0
pq-diag-type=0
r-type=0
r0-agent1-kind=4
r0-agent1-sku=35A
r0-agent1-type=1
scan-style=0
scan-type=0
status-
status-
status-type=8
support-
support-
support-type=2
support-ver=3.10.4
tech-class=
tech-subclass=
tech-type=3
usb-pid=42
usb-vid=1008
wifi-config=0
*******
root@debSrv:~# hp-setup -i
HP Linux Imaging and Printing System (ver. 3.10.6)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-9 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
-------
| SELECT CONNECTION (I/O) TYPE |
-------
Num Connection Description
Type
-------- ---------- -------
0* usb Universal Serial Bus (USB)
1 net Network/
2 par Parallel Port (LPT:)
Enter number 0...2 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
error: No device selected/specified or that supports this functionality.
*******
root@debSrv:~# cat /etc/cups/
# Printer configuration file for CUPS v1.4.4
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_LaserJet_P1102>
Info HP_LaserJet_P1102
Location office
MakeModel HP LaserJet Professional p1102 hpijs, 3.10.6, requires proprietary plugin
DeviceURI hp:/usb/
State Stopped
StateMessage /usr/lib/
StateTime 1313429756
Reason paused
Type 8425484
Filter application/
Filter application/
Filter application/
Filter application/
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
*******
root@debSrv:~# ps aux | grep cups
root 12518 0.0 0.2 78232 3520 ? Ss Aug15 0:01 /usr/sbin/cupsd -C /etc/cups/
root 17787 0.0 0.0 8708 840 pts/0 S+ 08:19 0:00 grep cups
*******
root@debSrv:~# lsusb
Bus 002 Device 004: ID 03f0:002a Hewlett-Packard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
*******
root@debSrv:~# hp-check
HP Linux Imaging and Printing System (ver. 3.10.6)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-9 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...
|/usr/lib/
warnings.
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux debSrv 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
Distribution:
debian 6.0
Checking Python version...
OK, version 2.6.6 installed
Checking PyQt 4.x version...
OK, version 4.7.3 installed.
Checking for CUPS...
Status: планировщик запущен
Version: 1.4.4
error_log is set to level: warn
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.1
-------
| 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...
OK, found.
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.10.6 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.10.6
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
icon=no
cupsbackend=
cupsfilter=
drv=/usr/
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-
hpijs-only-build=no
Current contents of '/var/lib/
# hplip.state - HPLIP runtime persistent variables.
[plugin]
installed=0
eula=0
Current contents of '~/.hplip/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.10.6
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
icon=no
cupsbackend=
cupsfilter=
drv=/usr/
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-
hpijs-only-build=no
-------
| DISCOVERED USB DEVICES |
-------
No devices found.
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
HP_LaserJet_P1102
-----------------
Type: Printer
Device URI: hp:/usb/
PPD: /etc/cups/
PPD Description: HP LaserJet Professional p1102 hpijs, 3.10.6, requires proprietary plugin
Printer /usr/lib/
error: Required plug-in status: Not installed
error: Unable to communicate with device (code=12): hp:/usb/
error: Device not found
error: Communication status: Failed
-------
| SANE CONFIGURATION |
-------
'hpaio' in '/etc/sane.
'hpaio' in '/etc/sane.
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
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).
-------
| 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 0x2a at 002:004:
Device URI: hp:/usb/
Device node: /dev/bus/
Mode: 0777
---------------
| USER GROUPS |
---------------
root lp lpadmin
User member of group 'lp'. Enables print/ scan/ fax.
User member of group 'lpadmin'.
-----------
| SUMMARY |
-----------
error: 2 errors and/or warnings.
Please refer to the installation instructions at:
http://
Done.
root@debSrv:~# hp-probe
warning: hp-probe should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.10.6)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-9 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.
-------
| SELECT CONNECTION (I/O) TYPE |
-------
Num Connection Description
Type
-------- ---------- -------
0* usb Universal Serial Bus (USB)
1 net Network/
2 par Parallel Port (LPT:)
Enter number 0...2 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
-------
| DEVICE DISCOVERY |
-------
warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
warning: check to make sure your devices are properly connected and powered on.
Done.
**And Cups Error Log****
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
D [16/Aug/
I understand how fix it. It Bug? Thanks for your help and sorry for my bad English. =)
affects: | hplip → debian |
affects: | debian → hplip |
Changed in hplip: | |
status: | New → In Progress |
status: | In Progress → Fix Committed |
description: | updated |
summary: |
- hp backend failed, open device failed stat=12 + HP LaserJet P1102, hp backend failed, open device failed stat=12 |
description: | updated |
Changed in hplip: | |
assignee: | nobody → Sanjay Kumar (sanjay-kumar14) |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Hello! I Solved this problem. The problem is that lsusb sees the printer but hplip can not connect with him. Apparently this is due to the fact that the printer is smart. Smart-connect. This technology from HP for automatic install drivers on Windows-clients. The printer has two modes of operation oO: Smart-connect Enable, Smart-connect disable. If Smart-connect enable printer automatic install in Windows, but in Linux her emulate device as CD-ROM, but not the printer. This is totally incomprehensible situation. To hplip could see the printer to disable Smart-connect. This can be done with a tool SIUtility.exe from installation CD. After hplip can see printer and work/print. But... Smart-connect mode can be activated if the pull cable from the printer while it works OR connect printer to Windows system, In this case, Smart-connect also activates. And you have to use the SIUtility.exe again to turn it off . It ugly. =)
For good Work:
1) Disable Smart-connect, use SIUtility.exe on Windows-system.
2) Not disconnect USB-cable while printer work (indicator ON fire).
3) Not connect printer to Windows, it activate Smart-connect again.
4) Set 777 permissions to usb device (printer), use udev rules for idVendor and Model.
5) Set default policy to "Drop job" or @Reject Job", differently after activation Smart-connect printer goes into pause (hplip backend failed), and will need to allow printing from the Web interface.
Lucky Print!