Can't get hplip to recognize my printer.
I am using Mandriva 2008.1 and a HP DeskJet 9800. It is installed on CUPS and working. However the HP toolbox will not recognize it. I have installed the hplip 2.8.4. Currently the printer is installed under CUPS and has an address of usb://HP/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Aaron Albright
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please run
su -c "hp-setup"
To configure the printer. if this doesn't work, run:
hp-check -t
and post the output.
A
Revision history for this message
|
#2 |
Aaron,
thanks. hp-setup fails when I try because it asks me to restart CUPS and try again. I restart (have even rebooted) and install fails again.
Output for hp-check is:
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux localhost 2.6.24.
Distribution:
mandriva 2008.1
HPOJ running?
No, HPOJ is not running (OK).
Checking Python version...
OK, version 2.5.2 installed
Checking PyQt version...
OK, version 3.17 installed.
Checking SIP version...
OK, Version 4.7.3 installed
Checking for CUPS...
Status: scheduler is running
Version: 1.3.6
error_log is set to level: info
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4
-------
| COMPILE AND RUNTIME DEPENDENCIES |
-------
Checking for dependency: cups - Common Unix Printing System...
OK, found.
Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.
Checking for dependency: cups-devel- Common Unix Printing System 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: ppdev - Parallel port support kernel module....
Checking for dependency: PyQt - Qt interface for Python...
OK, found.
Checking for dependency: python-ctypes - A foreign function library for Python...
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 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...
Checking for dependency: scanimage - Shell scanning program...
OK, found.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
-------
| HPLIP INSTALLATION |
-------
Currently installed HPLIP version...
HPLIP 2.8.4 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/
# 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.8.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=yes
pp-build=no
gui-build=yes
scanner-build=no
fax-build=no
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-
foomatic-
foomatic-
internal-
-------
| DISCOVERED USB DEVICES |
-------
Device URI Model
-----
hp:/usb/
M11021046K
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
HPDesJet9800
------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: usb://HP/
PPD: /etc/cups/
PPD Description: HP DeskJet 9800 Foomatic/hpijs, hpijs 2.8.4.2
Printer status: printer HPDesJet9800 is idle. enabled since Sun 27 Apr 2008 05:02:42 PM EDT
HPOffJet6200
------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://192.
HPOJe6200FAX
------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://192.
-------
| PYTHON EXTENSIONS |
-------
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
-----------------
| USB I/O SETUP |
-----------------
Checking for permissions of USB attached printers...
HP Device 0x1212 at 002:002:
Device URI: hp:/usb/
Device node: /dev/bus/
Mode: 0660
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/002
# owner: leon
# group: usb
user::rw-
group::rw-
other::---
Thank you.
Revision history for this message
|
#3 |
The printer is detected by HPLIP, however there is no queue correctly configured to print to the printer.
Please run:
hp-setup
to configure the printer.
Hope this helps.
Aaron
Revision history for this message
|
#4 |
thank you. The problem is when I run hp-setup and try to configure the printer it gives and error that it failed, asks that I restart CUPS and try again. No matter how many times I restart CUPS and try again, the message is always the same. If I configure the printer as an HPLIP printer within CUPS, then I cannot print to it. This may be a problem within CUPS in setting up the queue. The only printer queue set up that works is if I set up the printer within CUPS as an Applesocket/HP Jet Direct printer. Interestingly if I run hp-makeuri and then copy that into the hp-levels -d command, the hp-levels will print out the ink levels. I am running Mandriva 2008.1 with CUPS 1.3.6. I can't find a report of a bug on the CUPS site,but wonder if the problem is CUPS and not HPLIP.
Revision history for this message
|
#5 |
Go here:
http://
and follow the Step 7: Post Installation Steps does this help?
A
Revision history for this message
|
#6 |
Thank you so much. I did as it instructed, but to no avail. Still got the message at the end of set up that I needed to restart cups and the installation had failed. the toolbox says there are no attached printers. When I try to run hp-toolbox from a console I get this message (QSettings: failed to open file '/etc/qt_
Revision history for this message
|
#7 |
Hmm lets try running
hp-setup -g
and post the log. it will be rather lengthy..
A
Revision history for this message
|
#8 |
Here it is. It is lengthy. Thanks for all you are doing.
HP Linux Imaging and Printing System (ver. 2.8.4)
Printer/Fax Setup Utility ver. 7.2
Copyright (c) 2001-8 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[6540]: debug: Using system locale: en_US
hp-setup[6540]: debug: Trying to load .qm file for en_US locale.
hp-setup[6540]: debug: Name of .qm file: hplip_en_US.qm
hp-setup[6540]: debug: Using default 'C' locale
hp-setup[6540]: debug: Loading pixmap 'prog.png' from /usr/share/
hp-setup[6540]: debug: *******
hp-setup[6540]: debug: --> ConnectionPage
hp-setup[6540]: debug: *******
hp-setup[6540]: debug: ConnectionPage --> ProbedDevicesPage
hp-setup[6540]: debug: Updating probed devices list...
hp-setup[6540]: debug: usb
hp-setup[6540]: debug: Probing bus: usb
hp-setup[6540]: debug: hp:/usb/
hp-setup[6540]: debug: Cache miss: deskjet_9800
hp-setup[6540]: debug: Reading file: /usr/share/
hp-setup[6540]: debug: Searching for section [deskjet_9800] in file /usr/share/
hp-setup[6540]: debug: Found section [deskjet_9800] in file /usr/share/
hp-setup[6540]: debug: {'hp:/usb/
hp-setup[6540]: debug: {'copy-type': 0, 'scan-type': 0, 'r6-agent3-kind': 3, 'r4-agent2-kind': 3, 'r3-agent1-type': 1, 'r7-agent2-kind': 3, 'r2-agent1-type': 1, 'pcard-type': 0, 'r1-agent1-type': 1, 'r6-agent4-kind': 3, 'r1-agent4-sku': '100 (C9368AN)', 'r7-agent1-kind': 3, 'color-cal-type': 3, 'r1-agent3-sku': '99 (C9369WN)', 'status-
hp-setup[6540]: debug: hp:/usb/
hp-setup[6540]: debug: *******
hp-setup[6540]: debug: ProbedDevicesPage --> PPDPage
hp-setup[6540]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[6540]: debug: CUPS PPD base path = /usr/share/
hp-setup[6540]: debug: Foomatic PPD base path = /usr/share/ppd
hp-setup[6540]: debug: 1st stage edit distance match
hp-setup[6540]: debug: Min. dist = 2147483647
hp-setup[6540]: debug: {}
hp-setup[6540]: 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[6540]: debug: 1st stage edit distance match
hp-setup[6540]: debug: dist('deskjet_
hp-setup[6540]: debug: Min. dist = 0
hp-setup[6540]: debug: {u'/usr/
hp-setup[6540]: debug: {u'/usr/
hp-setup[6540]: debug: /usr/share/
hp-setup[6540]: debug: *******
hp-setup[6540]: debug: PPDPage --> PrinterNamePage
hp-setup[6540]: debug: {}
hp-setup[6540]: debug: Deskjet_9800
hp-setup[6540]: debug: *******
hp-setup[6540]: debug: PrinterNamePage --> FinishedPage
hp-setup[6540]: debug: addPrinter(
hp-setup[6540]: debug: addPrinter() returned (1, client-
hp-setup[6540]: debug: {}
error: Printer queue setup failed. Please restart CUPS and try again.
hp-setup[6540]: debug: Device URI: hp:/usb/
hp-setup[6540]: debug: Printer: None
hp-setup[6540]: debug: Not starting dbus: running as root.
hp-setup[6540]: debug: URI: backend=hp, is_hp=True, bus=usb, model=Deskjet_9800, serial=
hp-setup[6540]: debug: Model/UI model: Deskjet_9800/HP Deskjet 9800
hp-setup[6540]: debug: Opening device: hp:/usb/
hp-setup[6540]: debug: I/O mode=6
hp-setup[6540]: debug: device-id=1
hp-setup[6540]: debug: Opened device: hp (backend=
hp-setup[6540]: debug: Type 1/2 (S: or VSTATUS:) status
hp-setup[6540]: debug: Num pens=2
hp-setup[6540]: debug: {'photo-tray': 0L, 'in-tray2': False, 'top-door': 1L, 'in-tray1': True, 'agents': [{'index': 0, 'kind': 3L, 'level': 32, 'ack': False, 'hp-ink': False, 'dvc': 15700L, 'level-trigger': 0, 'virgin': True, 'health': 0, 'known': False, 'type': 1, 'id': 16}, {'index': 1, 'kind': 3L, 'level': 54, 'ack': False, 'hp-ink': False, 'dvc': 5220L, 'level-trigger': 0, 'virgin': True, 'health': 0, 'known': False, 'type': 2, 'id': 17}], 'duplexer': 0L, 'supply-door': 0L, 'revision': 3, 'media-path': 3L, 'status-code': 1000}
hp-setup[6540]: debug: {'dev-file': '', 'status-desc': 'The printer is idle.', 'is-hp': True, 'host': '', 'in-tray1': True, 'cups-printer': '', 'serial': 'MY59M11021046K', 'error-state': 0, 'device-state': 1, 'panel': 0, 'in-tray2': False, 'device-uri': 'hp:/usb/
hp-setup[6540]: debug: Closing device...
hp-setup[6540]: debug: Result-code = 0
hp-setup[6540]: debug: Printing file '/root/
hp-setup[6540]: debug: lpr -PDeskjet_9800 -r /root/tmp/tmpk-jC8w
lpr: The printer or class was not found.
error: Print command failed with exit code 256!
Revision history for this message
|
#9 |
Aaron,
Not that I want to confuse you further, but I just set up my printer from the console. I opened a console as root and then did:
hp-setup -i MY59M11021046K (the serial number)
This created a new printer queue in the hp backend and I was able to print the test page. I then opened the cups (localhost:631) and the printer was listed and with an hp backend form (Device URI: hp:/usb/
When I opened the toolbox from the menu, it opened and noted that no device was found! the toolbox does not see the printer.
Also, this new printer works from the cups administrator side and prints a test page (which did not happen when I tried to set up the hp backend under cups). It also prints from an application (OpenOffice).
So we are back to an hp-toolbox issue.
Thank you
Revision history for this message
|
#10 |
lets put cups into debug mode, follow the steps here (issue 2):
http://
Then view the cups log, run hp-setup again and post any messages in the cups log.
Thanks!
Aaron
Revision history for this message
|
#11 |
Here is the output of the errorlog in the debug mode when using the gui toolbox to set up a printer,
each line represents an action from the set up process:
I [03/May/
E [03/May/
E [03/May/
E [03/May/
E [03/May/
E [03/May/
E [03/May/
E [03/May/
E [03/May/
This is from doing the set up from the command line using
hp-setup -i MY59M11021046K including pinting a test page at the end.
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
E [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
I [03/May/
I [03/May/
D [03/May/
D [03/May/
I [03/May/
D [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
D [03/May/
I [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
I [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
I [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
D [03/May/
In both cases I am trying to set up a printer for the hp backend,
The first uses the toolbox gui and fails; the second the command line and succeeds.
Sorry for the long note.
Revision history for this message
|
#12 |
So Aaron, this is apparently the same issue as raised in bug #162196 and is related to the coding and CUPS requirement that it be UTF-8. In that bug it was suggested that hp toolbox be run as LC_ALL=C hp-toolbox. I did this and hp-toolbox found the hp-backend printer set up under CUPS and hp-toolbox had all its functionality EXCEPT printing. I could not print a test page. In fact, had to remove the hp-backend printer, reinstall my other queue and reboot to get a printer back. Somehow hplip and CUPS need to come together on this as it continues to be a problem.
Revision history for this message
|
#13 |
Thanks for the information we are going to be improving the locale problem in the future.
Sorry about that.
Aaron
Revision history for this message
|
#14 |
I guess I will call it "solved" for now. Thanks for your help.