Re: hplip setup problems



On Wed, Mar 26, 2008 at 3:49 PM, Predrag Punosevac <
punosevac@xxxxxxxxxxxxxxxx> wrote:

Isaac Mushinsky wrote:
Obviously the device can not communicate with the kernel. My first hunch
would be to blame on ugen driver
of BSD but look at this lines from hp-check that I copied from you
message.
You are missing slue of REQUIRED libraries.


Well, hp-check seems broken, so I wouldn't take it all that seriously. It
probably only works on linux. How can it complain of missing libusb and then
proceed to use it?

hplip finds the device correctly, and gets the vendor/product id. The
immediate show stopper is failure to get serial number of the device. Or is
it? it seems to be the only place where a libusb call fails. I am not sure
if it is HP's fault or an hplip/io/hpmud problem, though.

Are you running CUPS development version.

I am running on a standard cups from ports. It was installed as requirement
by KDE or something. Besides, there seems to be no problem with cups itself.


You are not supposed to do that. You can try to install
each of the missing libraries by hand and then try hp-setup. Something
is very WRONG with your installation.
Even better. If you have a spare machine to for testing. Try one more
time to install things. Install firstly CUPS and SANE-backends and then
install HPLIP (nothing else). If you see the same output from hp-check
try installing
missing libraries by hand. If after all everything works I would reports
HPLIP port as broken as the required libraries
should be installed as dependencies. On the positive side SANE seems
see the scanner. Can you scan?


Didn't even try to scan yet. It doesn't matter at this point. I have another
(film) scanner that works, though.
hplip printer driver seems to see the printer too, seeing is clearly not the
problem.



Checking output of 'scanimage -L'...
device `hpaio:/usb/Photosmart_C4200_series?serial=0' is a Hewlett-Packard
Photosmart_C4200_series all-in-one

found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200
series]) at libusb:/dev/usb3:/dev/ugen0



Checking for dependency: cups-devel- Common Unix Printing System
development
files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
make
sure that this dependency is installed before installing or running HPLIP.


Checking for dependency: libcrypto - OpenSSL cryptographic library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.


Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

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...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

Checking for dependency: make - GNU make utility to maintain groups of
programs...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
make
sure that this dependency is installed before installing or running HPLIP.
dependency is installed before installing or running HPLIP.

Checking for dependency: python-devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
make
sure that this dependency is installed before installing or running HPLIP.






On Wednesday 26 March 2008 04:29:45 you wrote:

Isaac Mushinsky wrote:

On Wednesday 26 March 2008 02:49:52 you wrote:

fOn Wed, 26 Mar 2008, Isaac Mushinsky wrote:

I am close to assasinating my HP Photosmart C4280 in frustration.

1. This is an all-in-one device. (I did not try the scanner setup
yet)
2. ulpt, umass, uscanner modules are not in kernel and not
kld-loaded.

So far as I can determine, there is no reason to avoid uscanner in
the kernel --- uscanner does not/should not grab the scanner function
of your all-in-one. It should then be possible to attach your single
function scanner with sane --- although it is sensible to get hplip
up
without that complication first.


3. Machine is FreeBSD 7-stable/amd64.
4. hplip is 2.8.2

$ usbdevs
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
addr 2: Photosmart C4200 series, HP
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel

There is a ppd file for these series with the hplip distribution.

hpssd, cups started in the order needed. hp-setup detects the
printer,
and then says 'Unable to create queue'. CUPS web interface actually
adds the printer, but then cannot print test page to it. cups user
runs
hpssd (I tried root too).

/var/log/messages has:
Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk
python: io/hpmud/musb.c 1951: invalid serial id string ret=-5

Here is all relevant output:
http://omsk.mushinsky.net/hplip-trouble

A lot of stuff advertised here doesn't seem to be visible/existent to
lynx.

devfd.rules looks right
check group --- have you added whoever is using the printer to group
cups (at least root and/or toor to print the test page)?

yes


since you say you cannot print the test page, I assume you ran
hp-setup
from a gui and can get into cups admin afterwards --- have you set
the
printer you defined in hp-setup as the default printer in cups admin?

Is the printer ready (accepting jobs) according to cups admin?

yes, cups thinks the printer is up and 'ready', and accepts jobs for
it.


if your failed test pages are showing up in the job queue, it may be
desirable to kill some of them in case you do something that does
make
it work.


Any help is appreciated. Thanks.

That's all I can think of off the top of my head.

I think the trouble is somewhere in usb or libusb:
hp:/usb/Photosmart_C4200_series?serial=0 does not look right. The
libusb
exception seems to occur while trying to obtain the 'serial number'.
Whatever that means -- is the device expected to provide it?

My understanding is that you didn't succeed to print from that printer.
You have to get printing function first
before you can get scanning.
It is easily to use your device as only printer if you live ulpt driver
inside the kernel but ugen driver is used to communicate and give you
information as the ink level for instance. If you live ulpt driver you
will not be able to scan
libusb is used to communicate with the scanner. That is one of two ways
that scanners talk to kernel.


Could you give me the output of


All of these things I posted on http://omsk.mushinsky.net/hplip-trouble

# /usr/local/libexec/cups/backend/hp (make sure you have the right
path
this is mine on OpenBSD 4.3 current)

You already saw that: doesn't hp-setup call it? Added it to exhibit page
too:

$ /usr/local/libexec/cups/backend/hp
usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_busses: Found /dev/usb3
usb_os_find_busses: Found /dev/usb4
usb_os_find_busses: Found /dev/usb5
usb_os_find_busses: Found /dev/usb6
usb_os_find_busses: Found /dev/usb7
usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 512 0 0x7fffffff8600 8 1000
usb_control_msg: 128 6 512 0 0x802213080 124 1000
usb_control_msg: 128 6 770 1033 0x7fffffff8570 255 5000
usb_control_msg: 128 6 771 1033 0x7fffffff8570 255 5000
USB error: error sending control message: Input/output error
direct hp:/usb/Photosmart_C4200_series?serial=0 "HP Photosmart C4200
series" "HP Photosmart C4200 series USB 0 HPLIP" "MFG:HP;MDL:Photosmart
C4200
series;CLS:PRINTER;DES:Photosmart C4200 series;SN:;"
You have new mail in /var/mail/root


If you get something like
direct hp "Unknown" HP printer (*HPLIP*)"

means that ugen driver cannot get VedorName and Product ID

Give me also outputs of

#hp-info


~> hp-info

HP Linux Imaging and Printing System (ver. 2.8.2)
Device Information Utility ver. 3.4

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.

Using device: hp:/usb/Photosmart_C4200_series?serial=0

hp:/usb/Photosmart_C4200_series?serial=0

error: Unable to communicate with device (code=12):
hp:/usb/Photosmart_C4200_series?serial=0
error: Error opening device (Device not found). Exiting.


and

#hp-check -t


HP Linux Imaging and Printing System (ver. 2.8.2)
Dependency/Version Check Utility ver. 13.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.

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...
warning: Invalid ppd_dir value: None

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

Basic system information:
FreeBSD omsk.mushinsky.net 7.0-STABLE FreeBSD 7.0-STABLE #5: Mon Mar 17
22:20:23 EDT 2008 root@xxxxxxxxxxxxxxxxxxx
:/usr/obj/usr/src/sys/K20080316
amd64

Distribution:
unknown 0.0

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.4 installed

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


------------------------------------
| 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-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some
HPLIP
functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System
development
files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency.
Please make
sure that this dependency is installed before installing or running
HPLIP.

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...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

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...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
this
dependency is installed before installing or running HPLIP.

Checking for dependency: make - GNU make utility to maintain groups of
programs...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency.
Please make
sure that this dependency is installed before installing or running
HPLIP.

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: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY 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...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency.
Please make
sure that this dependency is installed before installing or running
HPLIP.

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...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please
make sure
that this dependency is installed before installing or running HPLIP.

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency.
Please make
sure that this dependency is installed before installing or running
HPLIP.

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

Current contents of '/usr/local/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.8.2

[dirs]
home=/usr/local/share/hplip
run=/var/run
ppd=/usr/local/share/ppd/HP
ppdbase=/usr/local/share/ppd
doc=/usr/local/share/doc/hplip-2.8.2
icon=/usr/local/share/applications
cupsbackend=/usr/local/libexec/cups/backend
cupsfilter=/usr/local/libexec/cups/filter
drv=/usr/local/libexec/cups/driver

# Following values are determined at configure time and cannot be
changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.2.10


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

Device URI Model
----------------------------------------
----------------------------------
hp:/usb/Photosmart_C4200_series?serial=0 HP Photosmart C4200 series

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------


Photosmart_C4200
----------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Photosmart_C4200_series?serial=0
error: Unable to communicate with device (code=12):
hp:/usb/Photosmart_C4200_series?serial=0
error: Device not found


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

'hpaio' in '/usr/local/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/Photosmart_C4200_series?serial=0' is a
Hewlett-Packard
Photosmart_C4200_series all-in-one


---------------------
| 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 |
-----------------


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

error: 14 errors and/or warnings.

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


Out of curiosity what is the output of

#sane-find-scanner

I did not setup anything yet. But it can see the scanner:
~> sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make
sure
that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200
series]) at libusb:/dev/usb3:/dev/ugen0
# Your USB scanner was (probably) detected. It may or may not be
supported
by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary
ports
# can't be detected by this program.
~



Could it be that the missing serial number is just HP's fault, and I should
patch libusb to return a random fake one?
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: laserjet 1020+usb
    ... I suspect you installed HPLIP from source.  ... Please make sure that this dependency is installed before installing or running HPLIP. ...
    (Debian-User)
  • HPLIP and FreeBsd
    ... Checking for dependency libcrypto - OpenSSL cryptographic library... ... This is a REQUIRED dependency. ... installed before installing or running HPLIP. ...
    (freebsd-questions)
  • Re: hplip setup problems
    ... try installing ... Checking for dependency: ... This is a REQUIRED/COMPILE TIME ONLY dependency. ... dependency is installed before installing or running HPLIP. ...
    (freebsd-questions)
  • Re: hplip setup problems
    ... Checking for dependency: cups-devel- Common Unix Printing System development files... ... This is a REQUIRED/COMPILE TIME ONLY dependency. ... Please make sure that this dependency is installed before installing or running HPLIP. ...
    (freebsd-questions)
  • Re: laserjet 1020+usb
    ... Checking for dependency: CUPS DDK - CUPS driver development kit... ... Please make sure that this dependency is installed before installing or running HPLIP. ... PIL - Python Imaging Library... ...
    (Debian-User)