You are not logged in.
Pages: 1
There are some related threads in this forum, but I still can't figure out what is my problem (printer works in some situations - printing a pdf in evince or a webpage in chromium - but in others not, e.g. printing from emacs), and there are error messages from hp-check.
Here are two command-line checks:
[tj@arch ~]$ lpstat
[tj@arch ~]$ hp-probe
HP Linux Imaging and Printing System (ver. 3.12.2)
Printer Discovery Utility ver. 4.1
[...]
Using connection type: usb
--------------------
| DEVICE DISCOVERY |
--------------------
Device URI Model
----------------------------------------- ------------------
hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7 HP LaserJet P2055d
Found 1 printer(s) on the 'usb' bus.Here is what the CUPS webinterface at localhost:631 says:
HP_LaserJet_P2055d (Idle, Accepting Jobs, Not Shared)
Description: HP_LaserJet_P2055d
Location:
Driver: HP LaserJet P2055 Postscript (recommended) (grayscale, 2-sided printing)
Connection: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=one-sidedAnd here is the output from hp-checks, with 4 errors, the 2 most prominent of them extracted first:
[...]
warning: No queues found.
[...]
Checking for permissions of USB attached printers...
HP Device 0x5c17 at 001:004:
Device URI: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
error: Unable to connect to dbus session bus.
Device node: /dev/bus/usb/001/004
Mode: 0664
getfacl: Entferne f?hrende '/' von absoluten Pfadnamen
# file: dev/bus/usb/001/004
# owner: root
# group: lp
user::rw-
group::rw-
other::r--[tj@arch ~]$ hp-check
HP Linux Imaging and Printing System (ver. 3.12.2)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2011-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 arch 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
Distribution:
unknown 0.0
Checking Python version...
OK, version 2.7.2 installed
Checking PyQt 4.x version...
OK, version 4.9.1 installed.
Checking for CUPS...
Status:
Version: 1.5.2
error_log is set to level: warn
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.84.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...
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/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY 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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
----------------------
| HPLIP INSTALLATION |
----------------------
Currently installed HPLIP version...
HPLIP 3.12.2 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.12.2
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.2
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
# 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-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.12.2
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-only-build=no
hpijs-only-build=no
Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.
[plugin]
installed=0
eula=0
Current contents of '~/.hplip/hplip.conf' file:
[settings]
systray_visible = 0
systray_messages = 0
[last_used]
device_uri =
printer_name = HP_LaserJet_P2055d
working_dir = .
[commands]
scan =
[refresh]
rate = 30
enable = false
type = 1
[polling]
enable = false
interval = 5
device_list =
[fax]
voice_phone =
email_address =
[installation]
date_time = 04/03/12 12:29:03
version = 3.12.2
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
Device URI Model
-------------------------------- ------------------
hp:/usb/HP_LaserJet_P2055d?seria HP LaserJet P2055d
l=S1663Y7
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
warning: No queues found.
----------------------
| SANE CONFIGURATION |
----------------------
'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
device `v4l:/dev/video0' is a Noname USB Camera (046d:08da) virtual device
---------------------
| 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 0x5c17 at 001:004:
Device URI: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
error: Unable to connect to dbus session bus.
Device node: /dev/bus/usb/001/004
Mode: 0664
getfacl: Entferne f?hrende '/' von absoluten Pfadnamen
# file: dev/bus/usb/001/004
# owner: root
# group: lp
user::rw-
group::rw-
other::r--
---------------
| USER GROUPS |
---------------
lp wheel games video audio optical storage scanner power users www
-----------
| SUMMARY |
-----------
error: 4 errors and/or warnings.
Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html
Done.Maybe there is something wrong with my dbus anyway? I get a lot of org.freedesktop.xyz not found messages in many situations.
Thanks for any hints.
Last edited by 4on6 (2012-04-03 14:16:14)
Offline
Just out of curiosity - is this a question difficult to answer, or is it too trivial to adress? [This is not a rhethorical question]
Offline
it's not an easy question (printing related questions rarely are easy on any OS).
what WM/DE are you running ?
Which polkit packages do you have installed ?
Last edited by Lone_Wolf (2012-04-04 20:04:34)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Did you run the hp-check as your normal user (so you are definitely in the lp group)?
Do you have ACLs enabled?
I did see a thread recently where somebody said they had to make the device writeable by other as well as group, even though group should have been sufficient. I have to admit this didn't help with my printing problems but maybe it will help with yours.
What happens if you print a test page from within the cups web interface?
Anything in the logs (especially those under /var/log/cups/)?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Try to do this:
1. install the hplip package
2. load the cups daemon in rc.conf
3. an then go to http://localhost:631/ to set the laserjet configurations.
Offline
There are some related threads in this forum, but I still can't figure out what is my problem (printer works in some situations - printing a pdf in evince or a webpage in chromium - but in others not, e.g. printing from emacs).
The distinction that comes to mind here is that emacs (and some others) will print via lp. I suspect that the default printer for lp is not set, and therefore the print job is lost.
To test this, create ~/.cups/lpoptions (if you don't already have it) with the content:
Default <The_Name_Of_My_Printer_In_CUPS>And see if that helps.
Offline
Pages: 1