Configuring HP PSC 950 on Linux
 
Debian "Woody"/"Sarge"    HP PSC 950    Red Hat 7.3    Red Hat 7.2
 
************************************
DEBIAN GNU/LINUX 3.0 "WOODY"/"SARGE"
************************************

I have used the Cups printing system and hpoj 0.8, whose packages
are available in the Woody distribution.

*** 1 ***
I have installed the following packages:

kernel-image-2.4.18-686
kernel-headers-2.4.18-686
devfsd
libusb-0.1-4
libusb-dev
hotplug
usbview (not needed)

hpoj (0.8-11)
hpijs
gimp1.2
gimp1.2-print
gimpprint-doc
libgimp1.2
libgimpprint1
sane
libsane (sane-backends - rebuilt after installation of hpoj)
xsane
cupsys
cupsys-bsd
cupsys-client
cupsys-driver-gimpprint
cupsys-pstoraster

*** 2 ***
I have listed the following modules in /etc/modules :
lp
usb-uhci
printer
(all these modules have to be loaded by the kernel)

*** 3 ***
I have rebuilt the sane-backends to have the hpoj support on sane.
To this end, I have used the official sources of the distribution:
sane-backends_1.0.7.orig.tar.gz
sane-backends_1.0.7-3.2.diff.gz
sane-backends_1.0.7-3.2.dsc
The "debuild" has produced the following packages:
libsane_1.0.7-3.2_i386.deb
libsane-dev_1.0.7-3.2_i386.deb
Packages obtained in this way (i.e. performing the build after installation
of hpoj) differ from the ones available with the distribution as they
are compiled with the hpoj support.
The command
dpkg -i libsane_1.0.7-3.2_i386.deb
replaces the already installed package with the one just rebuilt.

*** 4 ***
The command "ptal-init setup" has correctly found the PSC 950
and set up /etc/ptal-start.conf with the following lines:
ptal-mlcd usb:PSC_900_Series -device /dev/usb/lp* -devidmatch "MDL:PSC 900 Series;" $PTAL_MLCD_CMDLINE_APPEND
ptal-printd mlc:usb:PSC_900_Series $PTAL_PRINTD_CMDLINE_APPEND
At this point, I have issued the command
/etc/init.d/hpoj restart

*** 5 ***
I have configured the sane's hp.conf file with the following lines:
# USB-connected MFP:
mlc:usb:PSC_900_Series
option connect-ptal

*** 6 ***
To print, I have configured Cups through its web-based configuration tool.
I have used a *custom* device, i.e.
/dev/ptal-printd/mlc_usb_PSC_900_Series
(do not use /dev/usb/lp0 !!!)
and selected the following driver (hpijs):
HP Deskjet 900 series, CUPS+GIMP-print v4.2.0 (en)
Then I have restarted cups:
/etc/init.d/cupsys restart
(maybe this is not needed...)

Finally, I have rebuilt the xsane package against the libpng 1.0.12
(provided by the libpng2 package) to overcome a problem due a libpng
version mismatch (the package was compiled with png.h from libpng-1.0.12,
but the application was running with png.c from libpng-1.2.1).

After these steps, I am able to use the HP PSC 950 to contemporarily
scan and print on Debian GNU/Linux 3.0 "Woody".

-------------------------------
NOTES ABOUT "SARGE" / HPOJ-0.90
-------------------------------

Now let us consider Debian "Sarge", i.e. the Debian testing distribution.
Sarge provides packages of hpoj 0.90, which is much improved w.r.t.
hpoj 0.80 and does not require the rebuild of the sane-backends sources.

On Woody, I'm using without any problem the following precompiled packages
taken from Sarge: hpoj_0.90-2_i386.deb and hpoj-xojpanel_0.90-2_i386.deb .
Their installation and configuration on Woody is painless and
straightforward both if you use them to upgrade an already working
environment based on the hpoj 0.80 Woody packages and if you install
them on a Woody system where the HP PSC 950 has never been configured
and the hpoj package has never been installed.
During the hpoj 0.90 package configuration phase, a comfortable wizard
leads you through the needed configuration steps and automagically
does everything is needed :-)
In particular, the above steps *3*, *4*, and *5* are not needed anymore
with these packages.

The hpoj-xojpanel package provides xojpanel, a nice Qt-based application
that shows the contents of the LCD panel :-)

*****************
RED HAT LINUX 7.3
*****************

RH 7.3 provides two printing systems: LPRng, as in RH 7.0, 7.1, and 7.2,
and also Cups; I have setup everything with LPRng; I have not tried
with Cups.
I have done the following steps.

*** 1 ***
I have rebuilt hpoj-0.8-1.src.rpm, i.e. the contrib source package
prepared for RH 7.1; all well also on RH 7.3.
Then I have installed the .i386.rpm package obtained this way,
removed /var/tmp/hpoj-root/usr/lib from /etc/ld.so.conf
and executed ldconfig (that directory is added during the rebuild
of the package, it is not needed after the rebuild).

*** 2 ***
I have rebuilt the sane-backends .src.rpm package to have the hpoj
support on sane, and replaced the sane-backends and sane-backends-devel
packages of the RH distribution with the ones obtained through
the rebuild.

*** 3 ***
Then "ptal-init setup" didn't find anything, I don't know why :-(
I have rebooted; after the reboot, the PSC 950 has been correctly found
by the above command.
Probably the reboot could be avoided some way, but I do not know how
to avoid it in this case and a reboot keeps up only about one minute ;-)
After the reboot, "ptal-init setup" has correctly found the PSC 950
and set up /etc/ptal-start.conf with the following lines:
ptal-mlcd usb:PSC_900_Series -device /dev/usb/lp* -devidmatch "MDL:PSC 900 Series;" $PTAL_MLCD_CMDLINE_APPEND
ptal-printd mlc:usb:PSC_900_Series $PTAL_PRINTD_CMDLINE_APPEND
At this point, I have issued the command
service ptal-init restart

*** 4 ***
I have configured the sane's hp.conf file with the following lines:
# USB-connected MFP:
mlc:usb:PSC_900_Series
option connect-ptal

*** 5 ***
I have commented out "sm3600" in the sane's dll.conf file to avoid
a segfault e.g. with scanimage; I have used GDB to understand where
did the segfault occur; I point out that it is better to comment out
in dll.conf all lines except the one(s) related to your scanner(s);
in practice, you can comment out all lines except the one with "hp".

*** 6 ***
I have added the line
options printer proto_bias=3
to /etc/modules.conf and then I have issued the command
service lpd restart
(I already have a printer working on the system, connected to the
parallel port)

*** 7 ***
I have launched printconf-gui and I have added a printer, chosen
a *custom* device (the autoprobed /dev/usb/lp0 does *not* work and
it also breaks the scanning), i.e.
/dev/ptal-printd/mlc_usb_PSC_900_Series
and then chosen the HP PSC 950 hpijs driver.
Then I have saved changes to the printing configuration
and restarted lpd.

After these steps it is possible to use the HP PSC 950
to contemporarily scan and print on RH 7.3.

*****************
RED HAT LINUX 7.2
*****************

The steps to be done are almost the same as for Red Hat 7.3
(apart from the fact that step 5 has not been needed on Red Hat 7.2);
differences are due to the lack in 7.2 of some packages available in 7.3.
Hence, when I have set up the HP PSC 950 on Red Hat 7.2, I have had
to rebuild the following .src.rpm packages taken from Rawhide:

libusb-0.1.4-1.src.rpm
sane-backends-1.0.6-3.src.rpm
sane-frontends-1.0.6-2.src.rpm

and I have had to recompile hpijs-1.0.tar.gz sources.
W.r.t. hpijs, only a simple configure and make install and all has gone
right; printconf-gui was already able to use the hpijs just recompiled.

Currently, .src.rpm packages available in Red Hat 7.3 could be used
for Red Hat 7.2.


This document is released under the GNU FDL (Free Documentation License).
All its sections have to be considered as Invariant Sections.

Debian Apache Powered by PHP Layers Menu Valid XHTML 1.0! Valid CSS!