Can't create a printer with HPLIP and CUPS 1.3.4 and other troubles

Asked by Thierry

1/ I use both Linux distributions Debian unstable and slackware current. Both have CUPS 1.3.4 and I use HPLIP sources (tar.gz) 2.7.10.
2/ No trouble with Debian.
3/ Slackware : No problem using hp-* tools in text mode.
4/ Slackware : With GUI mode, I have trouble to find right ppds and to register printer queue in cups.
Usage of hp-toolbox (or hp-toolbox -q en) command gives a Window with "no installed hp devices found" message.
Usage of hp-toolbox -q <lang> (lang <> en) shows the defined printers.
In both cases, it is impossible to register a printer. In text mode, it works.

hp-check -t :
root@x2000:~# hp-check -t

HP Linux Imaging and Printing System (ver. 2.7.10)
Dependency/Version Check Utility ver. 12.0

Copyright (c) 2001-7 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.

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux x2000 2.6.23.8 #1 SMP PREEMPT Thu Nov 22 16:36:20 CET 2007 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.1 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.6 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.3.4

Checking for Reportlab...
warning: Not installed.

----------------
| DEPENDENCIES |
----------------

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: 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)...
warning: NOT FOUND! This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.

Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-devel - Python development files...
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...
warning: NOT FOUND! This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.

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 2.7.10 currently installed in '/usr/share/hplip'.

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

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.7.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-2.7.10
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
foomatic=/usr/share/foomatic

# 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
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-xml-install=yes
foomatic-ppd-install=yes
internal-tag=2.7.10.11

----------------------
| INSTALLED PRINTERS |
----------------------

HP_LaserJet_1200
----------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
PPD: /etc/cups/ppd/HP_LaserJet_1200.ppd
PPD Description: HP LaserJet 1200 Foomatic/hpijs
Printer status: printer HP_LaserJet_1200 is idle. enabled since Thu 22 Nov 2007 02:16:58 PM CET
HP_LaserJet_1200_2
------------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
PPD: /etc/cups/ppd/HP_LaserJet_1200_2.ppd
PPD Description: HP LaserJet 1200 Postscript (recommended)
Printer status: printer HP_LaserJet_1200_2 is idle. enabled since Thu 22 Nov 2007 05:50:33 PM CET

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
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 0x317 at 002:002:
    Device URI: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
    Device node: /dev/bus/usb/002/002
    Mode: 0666

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

error: 4 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Here are debug listing (root and user) - Window with "no installed hp devices found" :
root@x2000:~# hp-toolbox -g

HP Linux Imaging and Printing System (ver. 2.7.10)
HP Device Manager ver. 11.0

Copyright (c) 2001-7 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.

warning: Reportlab not installed. Fax coverpages disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
hp-toolbox[13647]: debug: Using system locale: en_US
hp-toolbox[13647]: debug: Trying to load .qm file for en_US locale.
hp-toolbox[13647]: debug: Name of .qm file: hplip_en_US.qm
hp-toolbox[13647]: debug: Using default 'C' locale
hp-toolbox[13647]: debug: Startup: Trying to connect to hpssd on localhost:2207
hp-toolbox[13647]: debug: Cannot connect to hpssd. Launching...

HP Linux Imaging and Printing System (ver. 2.7.10)
Services and Status Daemon ver. 9.2

Copyright (c) 2001-7 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-toolbox[13647]: debug: Connected to hpssd on localhost:2207
hp-toolbox[13647]: debug: Connected to hpssd on localhost:2207
hp-toolbox[13647]: debug: Initializing toolbox UI...
hp-toolbox[13647]: debug: HPLIP Version: 2.7.10
hp-toolbox[13647]: debug: Loading user settings...
hp-toolbox[13647]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13647]: debug: Use Internal print command: True
hp-toolbox[13647]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal PCard command: True
hp-toolbox[13647]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13647]: debug: Use internal fax command: True
hp-toolbox[13647]: debug: FAB command: hp-fab
hp-toolbox[13647]: debug: Use internal FAB command: False
hp-toolbox[13647]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal copy command: True
hp-toolbox[13647]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13647]: debug: Use internal scan command: False
hp-toolbox[13647]: debug: Email alerts: False
hp-toolbox[13647]: debug: Email to address(es):
hp-toolbox[13647]: debug: Email from address:
hp-toolbox[13647]: debug: Auto refresh: False
hp-toolbox[13647]: debug: Auto refresh rate: 30
hp-toolbox[13647]: debug: Auto refresh type: 0
hp-toolbox[13647]: debug: Loading user settings...
hp-toolbox[13647]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13647]: debug: Use Internal print command: True
hp-toolbox[13647]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal PCard command: True
hp-toolbox[13647]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13647]: debug: Use internal fax command: True
hp-toolbox[13647]: debug: FAB command: hp-fab
hp-toolbox[13647]: debug: Use internal FAB command: False
hp-toolbox[13647]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal copy command: True
hp-toolbox[13647]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13647]: debug: Use internal scan command: False
hp-toolbox[13647]: debug: Email alerts: False
hp-toolbox[13647]: debug: Email to address(es):
hp-toolbox[13647]: debug: Email from address:
hp-toolbox[13647]: debug: Auto refresh: False
hp-toolbox[13647]: debug: Auto refresh rate: 30
hp-toolbox[13647]: debug: Auto refresh type: 0
hp-toolbox[13647]: debug: Loading user settings...
hp-toolbox[13647]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13647]: debug: Use Internal print command: True
hp-toolbox[13647]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal PCard command: True
hp-toolbox[13647]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13647]: debug: Use internal fax command: True
hp-toolbox[13647]: debug: FAB command: hp-fab
hp-toolbox[13647]: debug: Use internal FAB command: False
hp-toolbox[13647]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13647]: debug: Use internal copy command: True
hp-toolbox[13647]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13647]: debug: Use internal scan command: False
hp-toolbox[13647]: debug: Email alerts: False
hp-toolbox[13647]: debug: Email to address(es):
hp-toolbox[13647]: debug: Email from address:
hp-toolbox[13647]: debug: Auto refresh: False
hp-toolbox[13647]: debug: Auto refresh rate: 30
hp-toolbox[13647]: debug: Auto refresh type: 0
hp-toolbox[13647]: debug: FAB command: hp-fab
hp-toolbox[13647]: debug: Tabs_currentChanged()
hp-toolbox[13647]: debug: ScrollView.onUpdate()
hp-toolbox[13647]: debug: ScrollView.onDeviceChange(None)
hp-toolbox[13647]: debug: Unsupported device
hp-toolbox[13647]: debug: Starting GUI loop...
hp-toolbox[13647]: debug: Rescanning device list...
hp-toolbox[13647]: debug: total changes = 0
hp-toolbox[13647]: debug: ScrollView.onDeviceChange(None)
hp-toolbox[13647]: debug: Unsupported device

Here are debug listing (root and user) with -q option :
root@x2000:~# hp-toolbox -g -q fr

HP Linux Imaging and Printing System (ver. 2.7.10)
HP Device Manager ver. 11.0

Copyright (c) 2001-7 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.

warning: Reportlab not installed. Fax coverpages disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
hp-toolbox[13820]: debug: Trying to load .qm file for fr_FR locale.
hp-toolbox[13820]: debug: Name of .qm file: hplip_fr_FR.qm
hp-toolbox[13820]: debug: Using locale: fr_FR
hp-toolbox[13820]: debug: Startup: Trying to connect to hpssd on localhost:2207
hp-toolbox[13820]: debug: Connected to hpssd on localhost:2207
hp-toolbox[13820]: debug: Connected to hpssd on localhost:2207
hp-toolbox[13820]: debug: Initializing toolbox UI...
hp-toolbox[13820]: debug: HPLIP Version: 2.7.10
hp-toolbox[13820]: debug: Loading user settings...
hp-toolbox[13820]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13820]: debug: Use Internal print command: True
hp-toolbox[13820]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal PCard command: True
hp-toolbox[13820]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13820]: debug: Use internal fax command: True
hp-toolbox[13820]: debug: FAB command: hp-fab
hp-toolbox[13820]: debug: Use internal FAB command: False
hp-toolbox[13820]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal copy command: True
hp-toolbox[13820]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13820]: debug: Use internal scan command: False
hp-toolbox[13820]: debug: Email alerts: False
hp-toolbox[13820]: debug: Email to address(es):
hp-toolbox[13820]: debug: Email from address:
hp-toolbox[13820]: debug: Auto refresh: False
hp-toolbox[13820]: debug: Auto refresh rate: 30
hp-toolbox[13820]: debug: Auto refresh type: 0
hp-toolbox[13820]: debug: Loading user settings...
hp-toolbox[13820]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13820]: debug: Use Internal print command: True
hp-toolbox[13820]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal PCard command: True
hp-toolbox[13820]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13820]: debug: Use internal fax command: True
hp-toolbox[13820]: debug: FAB command: hp-fab
hp-toolbox[13820]: debug: Use internal FAB command: False
hp-toolbox[13820]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal copy command: True
hp-toolbox[13820]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13820]: debug: Use internal scan command: False
hp-toolbox[13820]: debug: Email alerts: False
hp-toolbox[13820]: debug: Email to address(es):
hp-toolbox[13820]: debug: Email from address:
hp-toolbox[13820]: debug: Auto refresh: False
hp-toolbox[13820]: debug: Auto refresh rate: 30
hp-toolbox[13820]: debug: Auto refresh type: 0
hp-toolbox[13820]: debug: Loading user settings...
hp-toolbox[13820]: debug: Print command: hp-print -p%PRINTER%
hp-toolbox[13820]: debug: Use Internal print command: True
hp-toolbox[13820]: debug: PCard command: hp-unload -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal PCard command: True
hp-toolbox[13820]: debug: Fax command: hp-sendfax -d %FAX_URI%
hp-toolbox[13820]: debug: Use internal fax command: True
hp-toolbox[13820]: debug: FAB command: hp-fab
hp-toolbox[13820]: debug: Use internal FAB command: False
hp-toolbox[13820]: debug: Copy command: hp-makecopies -d %DEVICE_URI%
hp-toolbox[13820]: debug: Use internal copy command: True
hp-toolbox[13820]: debug: Scan command: xsane -V %SANE_URI%
hp-toolbox[13820]: debug: Use internal scan command: False
hp-toolbox[13820]: debug: Email alerts: False
hp-toolbox[13820]: debug: Email to address(es):
hp-toolbox[13820]: debug: Email from address:
hp-toolbox[13820]: debug: Auto refresh: False
hp-toolbox[13820]: debug: Auto refresh rate: 30
hp-toolbox[13820]: debug: Auto refresh type: 0
hp-toolbox[13820]: debug: FAB command: hp-fab
hp-toolbox[13820]: debug: Tabs_currentChanged()
hp-toolbox[13820]: debug: ScrollView.onUpdate()
hp-toolbox[13820]: debug: ScrollView.onDeviceChange(None)
hp-toolbox[13820]: debug: Unsupported device
hp-toolbox[13820]: debug: Starting GUI loop...
hp-toolbox[13820]: debug: Rescanning device list...
hp-toolbox[13820]: debug: total changes = 1
hp-toolbox[13820]: debug: adding: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
hp-toolbox[13820]: debug: Refresh: ******************** hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX ********************
hp-toolbox[13820]: debug: Device URI: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
hp-toolbox[13820]: debug: Printer: None
hp-toolbox[13820]: debug: URI: backend=hp, is_hp=True, bus=usb, model=HP_LaserJet_1200, serial=00XXXXXXXXXX, dev=, host=, port=1
hp-toolbox[13820]: debug: Model/UI model: HP_LaserJet_1200/HP LaserJet 1200
hp-toolbox[13820]: debug: hpssd socket: 4
hp-toolbox[13820]: debug: (xmit) Sending data on channel (4)
hp-toolbox[13820]: debug: 'msg=setalerts\nusername=root\nemail-from-address=\nemail-to-addresses=\nemail-alerts=False\n'
hp-toolbox[13820]: debug: (xmit) Reading data on channel (4)
hp-toolbox[13820]: debug: 'msg=setalertsresult\nresult-code=0\n'
hp-toolbox[13820]: debug: Cache miss: hp_laserjet_1200
hp-toolbox[13820]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-toolbox[13820]: debug: Searching for section [hp_laserjet_1200] in file /usr/share/hplip/data/models/models.dat
hp-toolbox[13820]: debug: Found section [hp_laserjet_1200] in file /usr/share/hplip/data/models/models.dat
hp-toolbox[13820]: debug: Opening device: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX (not for printing)
hp-toolbox[13820]: debug: I/O mode=6
hp-toolbox[13820]: debug: device-id=1
hp-toolbox[13820]: debug: Opened device: hp (backend=hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX, is_hp=True, bus=usb, model=HP_LaserJet_1200, dev=, serial=00XXXXXXXXXX, host=, port=1)
hp-toolbox[13820]: debug: queryString(5002)
hp-toolbox[13820]: debug: Type 3 LaserJet status
hp-toolbox[13820]: debug: Opening HP-MESSAGE channel...
hp-toolbox[13820]: debug: channel-id=1
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.5.1.1.1 (result code = 0x0) returned: 3
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.2.1.5.1 (result code = 0x0) returned: 2
hp-toolbox[13820]: debug: PML/SNMP GET 2.6.1.1.3.1.1 (result code = 0x0) returned: 4
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.5.1.2.1 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 00 .
hp-toolbox[13820]: debug: ********** Agent: 1 **********
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_TYPE_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.5.1.1 (result code = 0x0) returned: 3
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_LEVEL_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.9.1.1 (result code = 0x0) returned: 254
hp-toolbox[13820]: debug: agent1-level: 254
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_MAX_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.8.1.1 (result code = 0x0) returned: 254
hp-toolbox[13820]: debug: agent1-max: 254
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_COLORANT_INDEX_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.3.1.1 (result code = 0x0) returned: 0
hp-toolbox[13820]: debug: Colorant index: 0
hp-toolbox[13820]: debug: OID_MARKER_COLORANT_VALUE_1
hp-toolbox[13820]: debug: PML/SNMP GET 2.12.1.1.4.1.0 failed (result code = 0x83)
hp-toolbox[13820]: debug: Failed. Defaulting to black.
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_DESCRIPTION_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.6.1.1 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 54 6f 6e 65 72 20 43 61 72 74 72 69 64 67 65 Toner Cartridge
hp-toolbox[13820]: debug: colorant value: Toner Cartridge
hp-toolbox[13820]: debug: OID_MARKER_STATUS_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.10.2.1.15.1.1 (result code = 0x0) returned: 0
hp-toolbox[13820]: debug: agent1: kind=4, type=1, health=0, level=100, level-trigger=0
hp-toolbox[13820]: debug: ********** Agent: 2 **********
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_TYPE_2:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.5.1.2 failed (result code = 0x83)
hp-toolbox[13820]: debug: End of supply information.
hp-toolbox[13820]: debug: printer_status=3
hp-toolbox[13820]: debug: device_status=2
hp-toolbox[13820]: debug: cover_status=4
hp-toolbox[13820]: debug: detected_error_state=0 (0x0)
hp-toolbox[13820]: debug: Printer status=1000
hp-toolbox[13820]: debug: {'photo-tray': 0, 'in-tray2': 1, 'top-door': 4, 'in-tray1': 1, 'agents': [{'level-trigger': 0, 'health': 0, 'kind': 4, 'type': 1, 'level': 100}], 'duplexer': 1, 'supply-door': 1, 'revision': 254, 'media-path': 1, 'status-code': 1000}
hp-toolbox[13820]: debug: Sending data on channel (4)
hp-toolbox[13820]: debug: 'msg=event\nevent-code=1000\nusername=root\ndevice-uri=hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX\nno-fwd=False\nevent-type=event\njob-id=0\nretry-timeout=0\n'
hp-toolbox[13820]: debug: queryString(1000)
hp-toolbox[13820]: debug: {'dev-file': '', 'status-desc': 'The printer is idle.', 'is-hp': True, 'host': '', 'in-tray1': 1, 'cups-printer': 'HP_LaserJet_1200,HP_LaserJet_1200_2', 'serial': '00XXXXXXXXXX', 'error-state': 0, 'device-state': 1, 'panel': 0, 'in-tray2': 1, 'device-uri': 'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX', 'photo-tray': 0, 'panel-line1': '', 'panel-line2': '', 'back-end': 'hp', 'top-door': 4, 'port': 1, 'deviceid': 'MFG:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;MDL:HP LaserJet 1200;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1200;MEM:8MB', 'cups-uri': 'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX', 'duplexer': 1, 'supply-door': 1, 'status-code': 1000, 'media-path': 1, 'revision': 254}
hp-toolbox[13820]: debug: Closing device...
hp-toolbox[13820]: debug: Closing HP-MESSAGE channel...
hp-toolbox[13820]: debug: Result-code = 0
hp-toolbox[13820]: debug: Attempting to load plugin: plugins.HP_LaserJet_1200
hp-toolbox[13820]: debug: No plugin found.
hp-toolbox[13820]: debug: Update: ******************** hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX ********************
hp-toolbox[13820]: debug: Opening device: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX (not for printing)
hp-toolbox[13820]: debug: I/O mode=6
hp-toolbox[13820]: debug: device-id=1
hp-toolbox[13820]: debug: Opened device: hp (backend=hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX, is_hp=True, bus=usb, model=HP_LaserJet_1200, dev=, serial=00XXXXXXXXXX, host=, port=1)
hp-toolbox[13820]: debug: queryString(5002)
hp-toolbox[13820]: debug: Type 3 LaserJet status
hp-toolbox[13820]: debug: Opening HP-MESSAGE channel...
hp-toolbox[13820]: debug: channel-id=1
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.5.1.1.1 (result code = 0x0) returned: 3
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.2.1.5.1 (result code = 0x0) returned: 2
hp-toolbox[13820]: debug: PML/SNMP GET 2.6.1.1.3.1.1 (result code = 0x0) returned: 4
hp-toolbox[13820]: debug: PML/SNMP GET 3.3.5.1.2.1 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 00 .
hp-toolbox[13820]: debug: ********** Agent: 1 **********
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_TYPE_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.5.1.1 (result code = 0x0) returned: 3
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_LEVEL_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.9.1.1 (result code = 0x0) returned: 254
hp-toolbox[13820]: debug: agent1-level: 254
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_MAX_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.8.1.1 (result code = 0x0) returned: 254
hp-toolbox[13820]: debug: agent1-max: 254
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_COLORANT_INDEX_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.3.1.1 (result code = 0x0) returned: 0
hp-toolbox[13820]: debug: Colorant index: 0
hp-toolbox[13820]: debug: OID_MARKER_COLORANT_VALUE_1
hp-toolbox[13820]: debug: PML/SNMP GET 2.12.1.1.4.1.0 failed (result code = 0x83)
hp-toolbox[13820]: debug: Failed. Defaulting to black.
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_DESCRIPTION_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.6.1.1 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 54 6f 6e 65 72 20 43 61 72 74 72 69 64 67 65 Toner Cartridge
hp-toolbox[13820]: debug: colorant value: Toner Cartridge
hp-toolbox[13820]: debug: OID_MARKER_STATUS_1:
hp-toolbox[13820]: debug: PML/SNMP GET 2.10.2.1.15.1.1 (result code = 0x0) returned: 0
hp-toolbox[13820]: debug: agent1: kind=4, type=1, health=0, level=100, level-trigger=0
hp-toolbox[13820]: debug: ********** Agent: 2 **********
hp-toolbox[13820]: debug: OID_MARKER_SUPPLIES_TYPE_2:
hp-toolbox[13820]: debug: PML/SNMP GET 2.11.1.1.5.1.2 failed (result code = 0x83)
hp-toolbox[13820]: debug: End of supply information.
hp-toolbox[13820]: debug: printer_status=3
hp-toolbox[13820]: debug: device_status=2
hp-toolbox[13820]: debug: cover_status=4
hp-toolbox[13820]: debug: detected_error_state=0 (0x0)
hp-toolbox[13820]: debug: Printer status=1000
hp-toolbox[13820]: debug: {'photo-tray': 0, 'in-tray2': 1, 'top-door': 4, 'in-tray1': 1, 'agents': [{'level-trigger': 0, 'health': 0, 'kind': 4, 'type': 1, 'level': 100}], 'duplexer': 1, 'supply-door': 1, 'revision': 254, 'media-path': 1, 'status-code': 1000}
hp-toolbox[13820]: debug: Sending data on channel (4)
hp-toolbox[13820]: debug: 'msg=event\nevent-code=1000\nusername=root\ndevice-uri=hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX\nno-fwd=False\nevent-type=event\njob-id=0\nretry-timeout=0\n'
hp-toolbox[13820]: debug: queryString(1000)
hp-toolbox[13820]: debug: Panel check...
hp-toolbox[13820]: debug: PML/SNMP GET 1.1.2.20.2.1.1 failed (result code = 0x83)
hp-toolbox[13820]: debug: PML/SNMP GET 2.16.5.1.2.1.1 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 52 45 41 44 59 20 20 20 20 20 20 20 20 20 20 20 READY
hp-toolbox[13820]: debug: 0010: 20 20 20 20
hp-toolbox[13820]: debug: PML/SNMP GET 2.16.5.1.2.1.2 (result code = 0x0) returned:
hp-toolbox[13820]: debug: 0000: 20 20 20 20 20
hp-toolbox[13820]: debug: Closing HP-MESSAGE channel...
hp-toolbox[13820]: debug: found: r0-kind4-type1
hp-toolbox[13820]: debug: health=0, level=100, level_trigger=0, status_code=1000
hp-toolbox[13820]: debug: queryString(agent_black_toner)
hp-toolbox[13820]: debug: queryString(agent_health_ok)
hp-toolbox[13820]: debug: {'agent1-kind': 4, 'agent1-hp-ink': False, 'is-hp': True, 'agent1-level': 100, 'top-door': 4, 'in-tray1': 1, 'serial': '00XXXXXXXXXX', 'back-end': 'hp', 'agent1-dvc': 0, 'device-uri': 'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX', 'rr': '000000', 'photo-tray': 0, 'panel-line1': 'READY', 'panel-line2': '', 'port': 1, 'rg': '000', 'agent1-known': False, 'agent1-health': 0, 'status-code': 1000, 'revision': 254, 'dev-file': '', 'status-desc': 'The printer is idle.', 'agent1-health-desc': 'Good/OK', 'host': '', 'agent1-id': 0, 'cups-printer': 'HP_LaserJet_1200,HP_LaserJet_1200_2', 'error-state': 0, 'device-state': 0, 'panel': 1, 'in-tray2': 1, 'agent1-ack': False, 'agent1-virgin': False, 'agent1-level-trigger': 0, 'rs': '000000000', 'agent1-type': 1, 'agent1-desc': 'Black toner cartridge', 'r': 0, 'deviceid': 'MFG:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;MDL:HP LaserJet 1200;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1200;MEM:8MB', 'cups-uri': 'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX', 'duplexer': 1, 'supply-door': 1, 'agent1-sku': 'C7115X', 'media-path': 1}
hp-toolbox[13820]: debug: Closing device...
hp-toolbox[13820]: debug: Result-code = 0
hp-toolbox[13820]: debug: Device state = 0
hp-toolbox[13820]: debug: Status code = 1000
hp-toolbox[13820]: debug: Error state = 0
hp-toolbox[13820]: debug: (xmit) Sending data on channel (4)
hp-toolbox[13820]: debug: 'msg=queryhistory\ndevice-uri=hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX\n'
hp-toolbox[13820]: debug: (xmit) Reading data on channel (4)
hp-toolbox[13820]: debug: 'msg=queryhistoryresult\nresult-code=0\nlength=40\ndata:\n\n2007,11,24,14,13,54,5,328,0,0,root,1000'
hp-toolbox[13820]: debug: queryString(1000)
hp-toolbox[13820]: debug: queryString(1000)
hp-toolbox[13820]: debug: Tabs_deviceChanged()
hp-toolbox[13820]: debug: ScrollView.onDeviceChange(hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX)
hp-toolbox[13820]: debug: fillControls(FuncView)

hp-setup debug listing :
root@x2000:~# hp-setup -g
hp-setup[13980]: debug: param=

HP Linux Imaging and Printing System (ver. 2.7.10)
Printer/Fax Setup Utility ver. 7.0

Copyright (c) 2001-7 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-setup[13980]: debug: Using system locale: en_US
hp-setup[13980]: debug: Trying to load .qm file for en_US locale.
hp-setup[13980]: debug: Name of .qm file: hplip_en_US.qm
hp-setup[13980]: debug: Using default 'C' locale
hp-setup[13980]: debug: Startup: Trying to connect to hpssd on localhost:2207
hp-setup[13980]: debug: Connected to hpssd on localhost:2207
hp-setup[13980]: debug: ******************** showPage(ConnectionPage) ********************
hp-setup[13980]: debug: --> ConnectionPage
hp-setup[13980]: debug: ******************** showPage(ProbedDevicesPage) ********************
hp-setup[13980]: debug: ConnectionPage --> ProbedDevicesPage
hp-setup[13980]: debug: Updating probed devices list...
hp-setup[13980]: debug: usb
hp-setup[13980]: debug: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
hp-setup[13980]: debug: Cache miss: hp_laserjet_1200
hp-setup[13980]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[13980]: debug: Searching for section [hp_laserjet_1200] in file /usr/share/hplip/data/models/models.dat
hp-setup[13980]: debug: Found section [hp_laserjet_1200] in file /usr/share/hplip/data/models/models.dat
hp-setup[13980]: debug: {'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX': ('HP LaserJet 1200', 'HP LaserJet 1200 USB 00XXXXXXXXXX HPLIP', 'MFG:HP;MDL:HP LaserJet 1200;CLS:PRINTER;DES:HP LaserJet 1200;SN:00XXXXXXXXXX;')}
hp-setup[13980]: debug: {'copy-type': 0, 'scan-type': 0, 'fax-type': 0, 'scan-style': 0, 'model2': 'LaserJet 1200se', 'model1': 'LaserJet 1200', 'tech-type': 3, 'support-ver': '0.9.5', 'io-support': 2, 'pcard-type': 0, 'io-mode': 6, 'usb-vid': '03f0', 'r0-agent1-sku': 'C7115X', 'color-cal-type': 0, 'support-released': 1, 'fw-download': 0, 'panel-check-type': 1, 'tech-class': 'LJMono', 'status-dynamic-counters': 0, 'support-type': 2, 'pq-diag-type': 0, 'align-type': 0, 'r-type': 0, 'icon': 'hp_LaserJet_1200.png', 'plugin-library': '', 'status-battery-check': 0, 'r0-agent1-type': 1, 'plugin': 0, 'usb-pid': '0317', 'linefeed-cal-type': 0, 'status-type': 3, 'io-mfp-mode': 6, 'embedded-server-type': 1, 'clean-type': 0, 'r0-agent1-kind': 4}
hp-setup[13980]: debug: hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX
hp-setup[13980]: debug: ******************** showPage(PPDPage) ********************
hp-setup[13980]: debug: ProbedDevicesPage --> PPDPage
hp-setup[13980]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[13980]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[13980]: debug: Foomatic PPD base path = /usr/share/ppd/hpijs
hp-setup[13980]: debug: 1st stage edit distance match
hp-setup[13980]: debug: Min. dist = 2147483647
hp-setup[13980]: debug: {}
hp-setup[13980]: debug: {}
error: PPD not file found.An appropriate PPD file could not be found. Please check your HPLIP install, use <i>Select Other...</i>, or download one from linuxprinting.org.
hp-setup[13980]: debug: 1st stage edit distance match
hp-setup[13980]: debug: dist('laserjet_1200', 'laserjet_1200') = 0
hp-setup[13980]: debug: Min. dist = 0
hp-setup[13980]: debug: {u'/usr/share/ppd/hpijs/HP/HP_LaserJet_1200.ppd.gz': 'HP LaserJet 1200 Postscript (recommended)'}
hp-setup[13980]: debug: {u'/usr/share/ppd/hpijs/HP/HP_LaserJet_1200.ppd.gz': 'HP LaserJet 1200 Postscript (recommended)'}
hp-setup[13980]: debug: /usr/share/ppd/hpijs/HP/HP_LaserJet_1200.ppd.gz
hp-setup[13980]: debug: ******************** showPage(PrinterNamePage) ********************
hp-setup[13980]: debug: PPDPage --> PrinterNamePage
hp-setup[13980]: debug: {}
hp-setup[13980]: debug: HP_LaserJet_1200
hp-setup[13980]: debug: ******************** showPage(FinishedPage) ********************
hp-setup[13980]: debug: PrinterNamePage --> FinishedPage
hp-setup[13980]: debug: addPrinter('HP_LaserJet_1200_Home', 'hp:/usb/HP_LaserJet_1200?serial=00XXXXXXXXXX', 'Home', '/usr/share/ppd/hpijs/HP/HP_LaserJet_1200.ppd.gz', '', 'HP laserjet 1200 Home')
hp-setup[13980]: debug: addPrinter() returned (1, client-error-bad-request)
hp-setup[13980]: debug: {}
error: Printer queue setup failed.Please restart CUPS and try again.
Done.
root@x2000:~#

Any idea to solve these troubles?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Thierry
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Sadly as of yet we don't support Slackware. You an try searching google for some assistance as some other users have reported success.

Debian unstable isn't supported by 2.7.10, however it will be in the next release. But it should still work.

Can you run

su
/etc/init.d/cupsys restart

and post any errors?

I've noticed an oddity with the cups upgrade process that i had to *gasp* reboot to make it work. Not sure why cups is doing that, but it's not an hplip thing. You could try rebooting and re-adding the printer let me know how that goes.

Revision history for this message
Thierry (tsimonnet) said :
#2

Here is the error log of cups :<reboot> and /etc/rc.d/rc.cups restart :

I [26/Nov/2007:07:55:48 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=734)

I don't think trouble is Slackware. HPLIP 2.7.10 worked perfectly with a 11.0. I changed my PC and then upgrade my Slack version to "current". I have the same trouble with Slackware package and with sources I recompiled. I'm not a simple user and I contribute a lot with HP (HP Linux Howto and parisc-linux.org for example) ;-)

HPLIP works perfectly in command line mode (hp-setup -i , hp-levels...)
Trouble is more a bad initialization in GUI mode (trouble with LANG - -q<lang>, bad format of addPrinter command, os.path strange behaviour). Unfortunately I am a sysadmin and not a developer and I have very few knowledge in Python.

Revision history for this message
Thierry (tsimonnet) said :
#3

I read [url]https://bugs.launchpad.net/hplip/+bug/162196[/url] "hplip 2.7.10 is not working with cups 1.3.4". I found it is similar problem.

LC_ALL=$LANG.UTF8 hp-toolbox works

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#4

okay. interesting, so it's working now?

A

Revision history for this message
Thierry (tsimonnet) said :
#5

It works. Thank you for your time. I'm waiting for the next release.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#6

Great. We'll be looking at the cups 1.3.4 problems, this isn't the first time something similar has been reported. Although it wont be fixed in the next release, probably the one after.

Thanks for your support!