|
List Info
Thread: hplip setup problems
|
|
| Re: hplip setup problems |

|
2008-03-26 15:07:20 |
On Wed, Mar 26, 2008 at 3:49 PM, Predrag Punosevac <
punosevac math.arizona.edu> 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.m
ushinsky.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.m
ushinsky.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 tomsk.mushinsky.net
> :/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 freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-26 15:35:26 |
Isaac Mushinsky wrote:
> On Wed, Mar 26, 2008 at 3:49 PM, Predrag Punosevac
> <punosevac math.arizona.edu <mailto:punosevac math.arizona.edu>> 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?
>
Actually that is a new information to me. On my OpenBSD 4.3
current
hp-check works like a charm.
You can manually check if you have each one of those
libraries.
You are probably right about the fact that failure to get
serial device
number is the show stopper but that seems
that points again to inability of ugen driver to fully
communicate with
the printer. I started dusting of my C skills (in the real
life I am a
mathematician) in particularly because I want look those
drivers for
USB devices.
Sorry, I could not be of more help. As I said earlier you
can use
printing function if you leave ulpt driver but that
definitely kills the purpose of having all-in-one device.
Best,
Predrag
> 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.m
ushinsky.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.m
ushinsky.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 <http://omsk.mushinsky.
net/>
> 7.0-STABLE FreeBSD 7.0-STABLE #5: Mon Mar 17
> > 22:20:23 EDT 2008
> root tomsk.mushinsky.net:/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
> <http://hplip.conf.in/>
a> 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 <http://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 freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-26 21:15:14 |
On Wednesday 26 March 2008 00:21:12 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.
> 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.m
ushinsky.net/hplip-trouble
>
> Any help is appreciated. Thanks.
>
>
> _______________________________________________
> freebsd-questions freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe freebsd.org"
final piece of information: sane cannot open the HP
all-in-one as a scanner
with same error (getting serial id). However, my Nikon
LS40-ED (a 35mm film
scanner) works fine. So the problem is apparently not my
installation or
libusb.
~> 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=0x04b0 [Nikon], product=0x4000
[LS-40 ED]) at
libusb:/dev/usb2:/dev/ugen1
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.
# You may want to run this program as root to find all
devices. Once you
# found the scanner devices, be sure to adjust access
permissions as
# necessary.
The Nikon scanner works, the HP device fails to return
serial id as above.
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-26 22:31:26 |
Isaac Mushinsky wrote:
> On Wednesday 26 March 2008 00:21:12 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.
>> 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.m
ushinsky.net/hplip-trouble
>>
>> Any help is appreciated. Thanks.
>>
>>
>> _______________________________________________
>> freebsd-questions freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe freebsd.org"
>>
>
> final piece of information: sane cannot open the HP
all-in-one as a scanner
> with same error (getting serial id). However, my Nikon
LS40-ED (a 35mm film
> scanner) works fine. So the problem is apparently not
my installation or
> libusb.
>
>
I would not bet my life on it. There are two ways on which
sane-backend
talk to scanners. Libusb is one of the ways.
I have two Epson scanners. One of them does use libusb one
of them
doesn't not. How do I know. Well in OpenBSD when the scanner
uses libusb
you have to remove uscanner driver from the kernel in order
to use it.
Cheers,
Predrag
> ~> 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=0x04b0 [Nikon],
product=0x4000 [LS-40 ED]) at
> libusb:/dev/usb2:/dev/ugen1
> 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.
>
> # You may want to run this program as root to find
all devices. Once you
> # found the scanner devices, be sure to adjust access
permissions as
> # necessary.
>
> The Nikon scanner works, the HP device fails to return
serial id as above.
> _______________________________________________
> freebsd-questions freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
>
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-26 23:12:09 |
On Wednesday 26 March 2008 23:31:26 you wrote:
> Isaac Mushinsky wrote:
> > On Wednesday 26 March 2008 00:21:12 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.
> >> 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.m
ushinsky.net/hplip-trouble
> >>
> >> Any help is appreciated. Thanks.
> >>
> >>
> >>
_______________________________________________
> >> freebsd-questions freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> >> To unsubscribe, send any mail to
> >> "freebsd-questions-unsubscribe freebsd.org"
> >
> > final piece of information: sane cannot open the
HP all-in-one as a
> > scanner with same error (getting serial id).
However, my Nikon LS40-ED (a
> > 35mm film scanner) works fine. So the problem is
apparently not my
> > installation or libusb.
>
> I would not bet my life on it. There are two ways on
which sane-backend
> talk to scanners. Libusb is one of the ways.
> I have two Epson scanners. One of them does use libusb
one of them
> doesn't not. How do I know. Well in OpenBSD when the
scanner uses libusb
> you have to remove uscanner driver from the kernel in
order to use it.
>
> Cheers,
> Predrag
>
> > ~> 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=0x04b0 [Nikon],
product=0x4000 [LS-40 ED]) at
> > libusb:/dev/usb2:/dev/ugen1
> > 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.
> >
> > # You may want to run this program as root to
find all devices. Once
> > you # found the scanner devices, be sure to adjust
access permissions as
> > # necessary.
> >
> > The Nikon scanner works, the HP device fails to
return serial id as
> > above.
_______________________________________________
> > freebsd-questions freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe freebsd.org"
I do not have uscanner loaded, so assume it must be libusb.
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-26 23:14:47 |
On Wednesday 26 March 2008 23:31:26 Predrag Punosevac
wrote:
> Isaac Mushinsky wrote:
> > On Wednesday 26 March 2008 00:21:12 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.
> >> 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.m
ushinsky.net/hplip-trouble
> >>
> >> Any help is appreciated. Thanks.
> >>
> >>
> >>
_______________________________________________
> >> freebsd-questions freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> >> To unsubscribe, send any mail to
> >> "freebsd-questions-unsubscribe freebsd.org"
> >
> > final piece of information: sane cannot open the
HP all-in-one as a
> > scanner with same error (getting serial id).
However, my Nikon LS40-ED (a
> > 35mm film scanner) works fine. So the problem is
apparently not my
> > installation or libusb.
>
> I would not bet my life on it. There are two ways on
which sane-backend
> talk to scanners. Libusb is one of the ways.
> I have two Epson scanners. One of them does use libusb
one of them
> doesn't not. How do I know. Well in OpenBSD when the
scanner uses libusb
> you have to remove uscanner driver from the kernel in
order to use it.
>
> Cheers,
> Predrag
>
> > ~> 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=0x04b0 [Nikon],
product=0x4000 [LS-40 ED]) at
> > libusb:/dev/usb2:/dev/ugen1
> > 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.
> >
> > # You may want to run this program as root to
find all devices. Once
> > you # found the scanner devices, be sure to adjust
access permissions as
> > # necessary.
> >
> > The Nikon scanner works, the HP device fails to
return serial id as
> > above.
_______________________________________________
> > freebsd-questions freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe freebsd.org"
I have a spare partition, so when I have the time I'll try
to install linux on
it and see. This printer is listed as supported and 'working
perfectly' on
linuxprinting.org
Also, I loaded ulpt and it is able to talk to the printer.
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |

|
2008-03-27 09:22:10 |
Anish Mistry (the port maintainer) has answered below. It
seems that this is
a printer defect after all then. I'll try to patch the code
to fill in the
missing serial id with some fake string, and shall report if
I get the thing
to work.
Is the hp backend the only entry point to libusb, or should
I have to patch
libusb? e.g. cups or sane apps, can they call libusb
directly, or only
through hpaio backend? I would rather have a patch to hplip
distribution
only, because libusb correctly throws an error code for the
missing serial
id. But if some apps query the device directly, the missing
serial id may be
a problem, they will all have to all be patched separately.
> It looks like there is some problem with the C42XX
printers that is
> causing the serial numbers to no be reported. I got a
similar report
> about a HP Photosmart C4200 series a couple weeks ago.
Unfortunately
> I'm VERY busy right now. It will be a couple of week
before I can
> dive into the issue. If you do happen to find a
solution, please let
> me know so I can integrate it into the port and notify
others.
> Thanks,
> --
> Anish Mistry
> amistry am-productions.biz
> AM Productions http://am-productions.biz/
>
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |
  United States |
2008-03-27 09:37:48 |
On Thursday 27 March 2008, Isaac Mushinsky wrote:
> Anish Mistry (the port maintainer) has answered below.
It seems
> that this is a printer defect after all then. I'll try
to patch the
> code to fill in the missing serial id with some fake
string, and
> shall report if I get the thing to work.
>
> Is the hp backend the only entry point to libusb, or
should I have
> to patch libusb? e.g. cups or sane apps, can they call
libusb
> directly, or only through hpaio backend? I would rather
have a
> patch to hplip distribution only, because libusb
correctly throws
> an error code for the missing serial id. But if some
apps query the
> device directly, the missing serial id may be a
problem, they will
> all have to all be patched separately.
See what you can get to work, and then we can decide on what
the
proper fix entails.
>
> > It looks like there is some problem with the
C42XX printers that
> > is causing the serial numbers to no be reported.
I got a similar
> > report about a HP Photosmart C4200 series a couple
weeks ago.
> > Unfortunately I'm VERY busy right now. It will be
a couple of
> > week before I can dive into the issue. If you do
happen to find
> > a solution, please let me know so I can integrate
it into the
> > port and notify others. Thanks,
> > --
> > Anish Mistry
> > amistry am-productions.biz
> > AM Productions http://am-productions.biz/
--
Anish Mistry
amistry am-productions.biz
AM Productions http://am-productions.biz/
|
|
| Re: hplip setup problems |
  United States |
2008-03-28 02:58:58 |
On Thursday 27 March 2008 10:37:48 you wrote:
> On Thursday 27 March 2008, Isaac Mushinsky wrote:
> > Anish Mistry (the port maintainer) has answered
below. It seems
> > that this is a printer defect after all then. I'll
try to patch the
> > code to fill in the missing serial id with some
fake string, and
> > shall report if I get the thing to work.
> >
> > Is the hp backend the only entry point to libusb,
or should I have
> > to patch libusb? e.g. cups or sane apps, can they
call libusb
> > directly, or only through hpaio backend? I would
rather have a
> > patch to hplip distribution only, because libusb
correctly throws
> > an error code for the missing serial id. But if
some apps query the
> > device directly, the missing serial id may be a
problem, they will
> > all have to all be patched separately.
>
> See what you can get to work, and then we can decide on
what the
> proper fix entails.
>
> > > It looks like there is some problem with the
C42XX printers that
> > > is causing the serial numbers to no be
reported. I got a similar
> > > report about a HP Photosmart C4200 series a
couple weeks ago.
> > > Unfortunately I'm VERY busy right now. It
will be a couple of
> > > week before I can dive into the issue. If
you do happen to find
> > > a solution, please let me know so I can
integrate it into the
> > > port and notify others. Thanks,
> > > --
> > > Anish Mistry
> > > amistry am-productions.biz
> > > AM Productions http://am-productions.biz/
I tried to load hplip into debugger, but if I try to trace
the problem, it
works! Serial number is read correctly. It also seems to
work with a non-SMP
kernel (at least the race does not show). The printer has
the serial number
after all.
There appears to be some sort of race condition when calling
usb_control_msg
for product id and then serial id strings in rapid
succession in musb.c. I am
not sure how to deal with that yet, but pausing in between
the calls is a
workaround for now. What can be done in between the calls
other than close
and reopen the device?
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: hplip setup problems |

|
2008-03-28 11:17:18 |
Yes, of course sleep() works. But I am looking for the
*proper* way to fix
it.
My questions at this point are:
1. Does USB standard permit these sequential requests, or
there should be
some reset/synch mechanism utilized in between? I could also
usb_close() and
reopen the device, but is there a softer reset than that? Is
the bug really
in hplip, or libusb, or sys/dev/usb?
2. If the driver, libusb and hplip are acting properly, then
perhaps the
race condition is inside the device? i.e. it should be ready
to accept the
second control msg after the 1st one returned, but for some
reason is not
really ready. So then it is the printer that violates the
protocol, and
there is nothing to do on our side but sleep(). Or
usb_close(), and reopen,
hopefully that will bring the Photosmart to its senses.
I am posting this to freebsd-usb as well, people there are
probably better
equipped to answer this.
On Fri, Mar 28, 2008 at 11:42 AM, Anish Mistry
<amistry am-productions.biz>
wrote:
> On Friday 28 March 2008, you wrote:
> > On Thursday 27 March 2008 10:37:48 you wrote:
> > > On Thursday 27 March 2008, Isaac Mushinsky
wrote:
> > > > Anish Mistry (the port maintainer) has
answered below. It seems
> > > > that this is a printer defect after all
then. I'll try to patch
> > > > the code to fill in the missing serial
id with some fake
> > > > string, and shall report if I get the
thing to work.
> > > >
> > > > Is the hp backend the only entry point
to libusb, or should I
> > > > have to patch libusb? e.g. cups or sane
apps, can they call
> > > > libusb directly, or only through hpaio
backend? I would rather
> > > > have a patch to hplip distribution only,
because libusb
> > > > correctly throws an error code for the
missing serial id. But
> > > > if some apps query the device directly,
the missing serial id
> > > > may be a problem, they will all have to
all be patched
> > > > separately.
> > >
> > > See what you can get to work, and then we can
decide on what the
> > > proper fix entails.
> > >
> > > > > It looks like there is some
problem with the C42XX printers
> > > > > that is causing the serial numbers
to no be reported. I got
> > > > > a similar report about a HP
Photosmart C4200 series a couple
> > > > > weeks ago. Unfortunately I'm VERY
busy right now. It will be
> > > > > a couple of week before I can dive
into the issue. If you do
> > > > > happen to find a solution, please
let me know so I can
> > > > > integrate it into the port and
notify others. Thanks,
> > > > > --
> > > > > Anish Mistry
> > > > > amistry am-productions.biz
> > > > > AM Productions http://am-productions.biz/
> >
> > I tried to load hplip into debugger, but if I try
to trace the
> > problem, it works! Serial number is read
correctly. It also seems
> > to work with a non-SMP kernel (at least the race
does not show).
> > The printer has the serial number after all.
> >
> > There appears to be some sort of race condition
when calling
> > usb_control_msg for product id and then serial id
strings in rapid
> > succession in musb.c. I am not sure how to deal
with that yet, but
> > pausing in between the calls is a workaround for
now. What can be
> > done in between the calls other than close and
reopen the device?
> You could try to call sleep() to see if that fixes it.
> man 3 sleep
>
>
> --
> Anish Mistry
> amistry am-productions.biz
> AM Productions http://am-productions.biz/
>
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
|
|