Driver for Laserjet 3100?

Asked by pewe

In HPLIP 2.8.10 I found a driver for the LaserJet 3100. It is also listet as a supportet device. The LJ 3100 is recognized by HPLIP, but the driver does'nt work. Is the LJ 3100 now really supported? And if it is, what can I do to make it function?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Please run hp--check -t and post the output.

Thanks.

Aaron

Revision history for this message
pewe (tx750) said :
#2

HP Linux Imaging and Printing System (ver. 2.8.10)
Dependency/Version Check Utility ver. 14.1

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP
supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed
to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied
package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper
dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check
both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux pewe-desktop 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux

Distribution:
ubuntu 8.10

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt 3.x version...
OK, version 3.17 installed.

Checking PyQt 4.x version...

Checking for CUPS...
Status: Scheduler wird ausgeführt
Version: 1.3.9
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

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

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 2.8.10 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=2.8.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-2.8.10
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp/

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

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
printer_name = HP-LaserJet-3100
device_uri = hp:/par/HP_LaserJet_3100?device=/dev/parport0

[installation]
version = 2.8.10.33
date_time = 12/20/08 15:20:49

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

  Device URI Model
  ----------------------------------- -----------------
  hp:/par/HP_LaserJet_3100?device=/de HP LaserJet 3100
  v/parport0

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

No devices found.

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

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

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

Checking output of 'scanimage -L'...
device `hpaio:/par/HP_LaserJet_3100?device=/dev/parport0' is a Hewlett-Packard HP_LaserJet_3100 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 |
-----------------

Checking for permissions of USB attached printers...

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

No errors or warnings.

Done.

Revision history for this message
pewe (tx750) said :
#3

ups...went out without comment, sorry..

I installed hplip again, as you can see. When installation was ready, hplip tried to print a testpage, without success.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#4

The HP LaserJet 3100 has been supported for a long while.

http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_3100.html

However we don't actively test on parallel because of the age of the devices--but it should work.

Try running

sudo tail -f /var/log/syslog

then try printing and post the output in the log.

A

Revision history for this message
pewe (tx750) said :
#5

...as requested:

pewe@pewe-desktop:~$ sudo tail -f /var/log/syslog
Dec 22 19:59:01 pewe-desktop kernel: [38143.169508] ppdev0: negotiated back to compatibility mode because user-space forgot
Dec 22 19:59:01 pewe-desktop kernel: [38143.169528] ppdev0: released pardevice because user-space forgot
Dec 22 19:59:01 pewe-desktop kernel: [38143.172012] ppdev0: unregistered pardevice
Dec 22 19:59:01 pewe-desktop kernel: [38143.173011] ppdev0: registered pardevice
Dec 22 19:59:01 pewe-desktop python: io/hpmud/pp.c 819: invalid model HP_LaserJet_6L != HP_LaserJet_3100
Dec 22 19:59:01 pewe-desktop kernel: [38143.212239] ppdev0: unregistered pardevice
Dec 22 19:59:01 pewe-desktop python: hp-toolbox(UI)[7824]: error: Unable to communicate with device (code=38): hp:/par/HP_LaserJet_6L?device=/dev/parport0
Dec 22 19:59:01 pewe-desktop python: hp-toolbox(UI)[7824]: warning: Device not found
Dec 22 19:59:28 pewe-desktop kernel: [38170.347875] ppdev0: unregistered pardevice
Dec 22 19:59:41 pewe-desktop kernel: [38183.446298] ppdev0: unregistered pardevice
Dec 22 20:02:59 pewe-desktop kernel: [38381.477116] ppdev0: registered pardevice

# followed by a lot of these 2 lines:

Dec 22 20:05:54 pewe-desktop python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Dec 22 20:05:54 pewe-desktop python: io/hpmud/hpmud.c 608: invalid channel_write state

btw: Thanks for your help, Aaron!
Merry Christmas !

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#6

It looks like there might a be bug with this printer in our models table. I'll have to look into this more after the new year.

Sorry for the delay!

and Happy Holidays to you as well!

Aaron

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

Open for tracking.

Revision history for this message
Chad (chad-m-carr) said :
#8

I have an HP3100 as well, and just ran into the same problem. Right now the *only* reason I have a windows box on my network at all is because of the 3100; as soon as it works under Linux it's bye-bye Billy!

Revision history for this message
pewe (tx750) said :
#9

cc

Revision history for this message
pewe (tx750) said :
#10

sorry for th cc :-/

Aaron, maybe this link will help you somehow: http://www.kivela.net/jaska/projects/lj3100/

I'm just user and have no idea, if this is relevant anyhow for the driver.

Revision history for this message
Jehan (jbruggem) said :
#11

Same problem.

Syslog :

Jan 22 11:16:03 sym python: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 22 11:16:38 sym python: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Success bytesRead=0
Jan 22 11:16:38 sym python: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
Jan 22 11:17:12 sym python: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Success bytesRead=0
Jan 22 11:17:12 sym python: io/hpmud/mlc.c 357: invalid MLCInitReply: cmd=0, result=3 , revision=0
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 589: invalid channel_close state
Jan 22 11:17:12 sym python: io/hpmud/pp.c 585: failed claim_pp fd=9: Invalid argument
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 608: invalid channel_write state
Jan 22 11:17:12 sym python: io/hpmud/pml.c 457: GetPml channel_write failed ret=31
Jan 22 11:17:12 sym python: io/hpmud/hpmud.c 589: invalid channel_close state
Jan 22 11:17:46 sym python: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
Jan 22 11:17:46 sym python: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...

Revision history for this message
David Suffield (david-suffield) said :
#12

Have you tried the USB port instead of parallel? USB support is mush better than parallel support in Linux. If you have a choice always use USB.

Revision history for this message
Jehan (jbruggem) said :
#13

HP Laserjet 3100 does not have a usb port. Parallel only.

Revision history for this message
David Suffield (david-suffield) said :
#14

Ok our documentation is wrong. We will fix that.

Based on your syslog traceback the parport kernel module cannot negotiate software ECP mode only compatibility mode. Since the kernel cannot support ECP mode with your PC, HPLIP cannot use 1284.4/MLC. 1284.4/MLC is needed for multi-function support (ie: scanning and status).

I know no work around for this except try another PC.

If all you care about is printing then you don't need 1284.4/MLC. You can force the printer to print over "raw" instead of 1284.4/MLC. Edit the /usr/share/hplip/data/models/models.dat and find the hp_laserjet_3100 section. Make sure the io_mode is set to “io_mode=1”.

In fact in HPLIP 2.8.12 for all parallel only printers the io_mode is now set to io_mode=1.

Revision history for this message
Jehan (jbruggem) said :
#15

Thanks a lot for your answer. Indeed, printing only would be great :-).

I unfortunately can't try on another PC, so I tried to change io-mode, except io-mode is already set to 1 in models.dat.

When I try to print a test page with the HP Device Manager, it says the job starts and reports as completed after two minutes, but the printer doesn't do anything.

Revision history for this message
David Suffield (david-suffield) said :
#16

Ok, don't use the hp-toolbox. Delete any old print jobs. Use CUPS http://localhost:631 and print a test page. Then send us a copy of any syslog mesages that occured during the print job.

Revision history for this message
Jehan (jbruggem) said :
#17

I get only one line in syslog :

Jan 23 02:25:48 sym hpijs: io/hpmud/pp.c 627: unable to read device-id ret=-110

CUPS tells me the job was completed. I also have a bunch of messages in dmesg which seem related. See : http://www.symzo.be/public/dmesg.hp3100.txt

Revision history for this message
David Suffield (david-suffield) said :
#18

The -110 error means the "hp" backend timed out trying to read the printer device-id. This is basic communication to the printer that needs to work.

Make sure device discovery works which requires device-id. With root permmission run the following command. You should get similar results. This must work every time or there is some hardware problem.

# hp-mkuri -o
direct hp:/par/DESKJET_990C?device=/dev/parport0 "HP DESKJET 990C" "HP DESKJET 990C LPT parport0 HPLIP" "MFG:HEWLETT-PACKARD;MDL:DESKJET 990C;CMD:MLC,PCL,PML;CLS:PRINTER;DES:Hewlett-Packard DeskJet 990C;SN:MX0661T04ZLG;S:00808880800010002C1100052C2080062;P:0800,FL,B0;J: ;"

Revision history for this message
Jehan (jbruggem) said :
#19

Hi,

Once again, thank you for your time !

I don't have an "hp-mkuri" command, but I do have an "hp-makeuri". I suppose it's the same thing :-). Nonetheless, hp-makeuri does not have a "-o" option, and apparently should not be run as root. Anyway, I fiddled a bit with the options, here's the result (the conclusion seems to be that device is correctly recognized) :

----- printer plugged in -------

$ hp-makeuri -g /dev/parport0

HP Linux Imaging and Printing System (ver. 2.8.7)
Device URI Creation Utility ver. 4.4

Copyright (c) [...text removed...]

hp-makeuri[9417]: debug: Gethostbyname() failed. Trying other patterns...
hp-makeuri[9417]: debug: Trying parallel with /dev/parport0
hp-makeuri[9417]: debug: Found: hp:/par/HP_LaserJet_3100?device=/dev/parport0
hp-makeuri[9417]: debug: Cache miss: hp_laserjet_3100
hp-makeuri[9417]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-makeuri[9417]: debug: Searching for section [hp_laserjet_3100] in file /usr/share/hplip/data/models/models.dat
hp-makeuri[9417]: debug: Found section [hp_laserjet_3100] in file /usr/share/hplip/data/models/models.dat
CUPS URI: hp:/par/HP_LaserJet_3100?device=/dev/parport0
SANE URI: hpaio:/par/HP_LaserJet_3100?device=/dev/parport0

----- printer *not* plugged in -------

$ hp-makeuri -g /dev/parport0

HP Linux Imaging and Printing System (ver. 2.8.7)
Device URI Creation Utility ver. 4.4

Copyright (c) [...text removed...]

hp-makeuri[9415]: debug: Gethostbyname() failed. Trying other patterns...
hp-makeuri[9415]: debug: Trying parallel with /dev/parport0
hp-makeuri[9415]: debug: Not found.
error: Device not found

Revision history for this message
David Suffield (david-suffield) said :
#20

If there is no "hp-mkuri" command then run the "hp" backend manually as root. The hp backend will display any locally connected device that it supports. This command should display the parallel device without any syslog error.

# /usr/lib/cups/backend/hp

Revision history for this message
Jehan (jbruggem) said :
#21

Here's what I get (there's nothing in syslog) :

$ sudo /usr/lib/cups/backend/hp
direct hp:/par/HP_LaserJet_3100?device=/dev/parport0 "HP LaserJet 3100" "HP LaserJet 3100 LPT parport0 HPLIP" "MANUFACTURER:Hewlett-Packard;COMMAND SET:HP GDI;MODEL:HP LaserJet 3100;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard LaserJet 3100 MFP;"

Revision history for this message
pewe (tx750) said :
#22

Here the result of "hp-mkuri -o":

direct hp:/par/HP_LaserJet_3100?device=/dev/parport0 "HP LaserJet 3100" "HP LaserJet 3100 LPT parport0 HPLIP" "MANUFACTURER:Hewlett-Packard;COMMAND SET:HP GDI;MODEL:HP LaserJet 3100;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard LaserJet 3100 MFP;"

Revision history for this message
David Suffield (david-suffield) said :
#23

Ok, that looks good. I assume it is still not printing. What are your device permissions set to?

$ ls -l /dev/parport0

Revision history for this message
Jehan (jbruggem) said :
#24

Nope, still not printing :-/.
Here are the permissions :

$ ls -l /dev/parport0
crw-rw---- 1 lp lp 99, 0 2009-01-27 13:52 /dev/parport0

Revision history for this message
Jehan (jbruggem) said :
#25

By the way, there's another message in syslog (not sure it gives you any new information, but who knows?) :

Jan 27 20:02:23 sym parport0: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:02:23 sym parport0: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Jan 27 20:02:26 sym hpijs: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:05:41 sym parport0: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:05:41 sym parport0: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...

This is the result of sending to "print test page" commands from the cups web interface at 20:02 and 20:05.

Revision history for this message
Jehan (jbruggem) said :
#26

By the way, there's another message in syslog (not sure it gives you any new information, but who knows?) :

Jan 27 20:02:23 sym parport0: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:02:23 sym parport0: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Jan 27 20:02:26 sym hpijs: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:05:41 sym parport0: io/hpmud/pp.c 627: unable to read device-id ret=-110
Jan 27 20:05:41 sym parport0: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...

This is the result of sending two "print test page" commands from the cups web interface at 20:02 and 20:05.

Revision history for this message
pewe (tx750) said :
#27

This permission:

ls -l /dev/parport0
crw-rw-rw- 1 root lp 99, 0 2009-01-27 19:41 /dev/parport0

Revision history for this message
pewe (tx750) said :
#28

If I use a Laserjet 6L via parport0 there is no problem.

Revision history for this message
David Suffield (david-suffield) said :
#29

Try increasing the PP_SIGNAL_TIMEOUT timeout to 1sec in io/hpmud/pp.h

from:
#define PP_SIGNAL_TIMEOUT 100000

to:
#define PP_SIGNAL_TIMEOUT 1000000

Then recompile and install.

Revision history for this message
pewe (tx750) said :
#30

I changed the timeout, did "configure", "make", "hplip-install" and finally "hp-setup". After restarting the computer: No difference.

Revision history for this message
David Suffield (david-suffield) said :
#31

Edit the /usr/share/hplip/data/models/models.dat and find the hp_laserjet_3100 section and try setting your io_mode to "io_mode=0”. This will turn off bi-di support for this printer. Give this a try.

Revision history for this message
pewe (tx750) said :
#32

No difference with "io_mode=0".
Also from me: thanks a lot for your help :-)

Revision history for this message
David Suffield (david-suffield) said :
#33

Try using the CUPS "parallel" backend instead of the "hp" backend. This would be "LPT #1" in localhost:631/admin.

Revision history for this message
pewe (tx750) said :
#34

Sorry, I can't find any possibility to change the port in localhost:631/admin.
But I try each test with the hp device manager and with cups (hp closed).

Revision history for this message
dwelch91 (dwelch91) said :
#35

Add a new printer with a different name and choose the parallel (LPT1) port.

On Fri, Jan 30, 2009 at 10:56 AM, pewe
<email address hidden>wrote:

> Question #54810 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54810
>
> Status: Answered => Open
>
> pewe is still having a problem:
> Sorry, I can't find any possibility to change the port in
> localhost:631/admin.
> But I try each test with the hp device manager and with cups (hp closed).
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Jarno Suni (jarnos) said :
#36

Interesting is that http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_3100.html tells the printer is supported with HPLIP version 0.9.5 or later. On the other hand http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_3100 tells there is no proper support: "Reverse-engeneering efforts on the printer's protocol have already started, but were not finished. Anyone who makes this device finally working with free software please report on the the HP Forum here on OpenPrinting."

Revision history for this message
dwelch91 (dwelch91) said :
#37

Information on the HPLIP website is generally more up-to-date and more
accurate than linuxprinting.org. However, in this case, I believe that
support for this device was added in 2.8.10, not 0.9.5. If you have one of
these printers, and can try it under a recent HPLIP version, it would be
helpful if you could report back with your experiences.

On Thu, Feb 19, 2009 at 10:09 AM, Jarno Suni <
<email address hidden>> wrote:

> Question #54810 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/54810
>
> Jarno Suni proposed the following answer:
> Interesting is that http://hplipopensource.com/hplip-
> web/models/laserjet/hp_laserjet_3100.html<http://hplipopensource.com/hplip-%0Aweb/models/laserjet/hp_laserjet_3100.html>tells the printer is supported
> with HPLIP version 0.9.5 or later. On the other hand
> http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_3100
> tells there is no proper support: "Reverse-engeneering efforts on the
> printer's protocol have already started, but were not finished. Anyone
> who makes this device finally working with free software please report
> on the the HP Forum here on OpenPrinting."
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Jarno Suni (jarnos) said :
#38

I am also trying to get the printer work in Linux. Is there any chance to use such a recent driver in ubuntu 8.04? (I have an install CD for that ubuntu release.) Currently I am using ubuntu 7.10 having HPLIP 2.7.7. Even there /usr/share/hplip/data/models/models.dat file contains section "[hp_laserjet_3100]". I tried to install the printer using system-config-printer.py, that recognizes the printer as "HP LaserJet LPT parport0 HPLIP" (or that is at least one of the alternative devices to choose from), but there is no specific driver for the model in the list of HP drivers.

Revision history for this message
Jarno Suni (jarnos) said :
#39

I found two changelog entries concerning "Lj 3100" in http://hplipopensource.com/hplip-web/release_notes.html :
HPLIP 0.9.4: "Removed LJ 3100 from models.xml. There are no plans to support this printer."
HPLIP 2.8.7: "Fixed models.dat entries for LJ 3100 and 3150"

What does models.dat entry for this printer look like in HPLIP 2.8.7?

Revision history for this message
Jarno Suni (jarnos) said :
#40

As an answer to my question, the entry looks like this:

[hp_laserjet_3100]
align-type=0
clean-type=0
color-cal-type=0
copy-type=1
embedded-server-type=1
fax-type=0
fw-download=0
icon=HP_LaserJet_3200M.png
io-mfp-mode=6
io-mode=1
io-support=3
job-storage=0
linefeed-cal-type=0
model1=HP LaserJet 3100
panel-check-type=0
pcard-type=0
plugin=0
power-settings=0
pq-diag-type=0
r-type=0
scan-style=2
scan-type=2
status-battery-check=0
status-dynamic-counters=0
status-type=3
support-released=1
support-type=2
support-ver=0.9.5
tech-class=LJMono
tech-subclass=Normal
tech-type=3
usb-pid=0000
usb-vid=03f0

Revision history for this message
Jarno Suni (jarnos) said :
#41

Xubuntu 8.10 / HPLIP 2.8.7 /
HP LaserJet 3100 LPT parport0 HPLIP with HP LaserJet 3100 Foomatic/hpijs [en] driver.

This is what I get in syslog when trying to print a test page (with no success):

Feb 20 19:05:54 suni-desktop kernel: [ 795.666486] ppdev0: registered pardevice
Feb 20 19:05:58 suni-desktop kernel: [ 799.642491] type=1503 audit(1235149558.691:5): operation="inode_permission" requested_mask="::rw" denied_mask="::rw" fsuid=7 name="/dev/tty" pid=5338 profile="/usr/sbin/cupsd"
Feb 20 19:05:58 suni-desktop kernel: [ 799.925307] sysctl table check failed: /dev/parport/parport0/devices/ppdev0/timeslice Sysctl already exists
Feb 20 19:05:58 suni-desktop kernel: [ 799.925348] Pid: 5341, comm: hpijs Not tainted 2.6.27-11-generic #1
Feb 20 19:05:58 suni-desktop kernel: [ 799.925356] [<c037d236>] ? printk+0x1d/0x1f
Feb 20 19:05:58 suni-desktop kernel: [ 799.925371] [<c014df99>] set_fail+0x59/0x60
Feb 20 19:05:58 suni-desktop kernel: [ 799.925391] [<c014e261>] sysctl_check_table+0x131/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925401] [<c014e270>] sysctl_check_table+0x140/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925410] [<c014e270>] sysctl_check_table+0x140/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925418] [<c014e270>] sysctl_check_table+0x140/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925427] [<c014e270>] sysctl_check_table+0x140/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925435] [<c014e270>] sysctl_check_table+0x140/0x3c0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925444] [<c013a09f>] __register_sysctl_paths+0xcf/0x2f0
Feb 20 19:05:58 suni-desktop kernel: [ 799.925460] [<c018ce88>] ? file_ra_state_init+0x8/0x20
Feb 20 19:05:58 suni-desktop kernel: [ 799.925502] [<c013a2e8>] register_sysctl_paths+0x28/0x30
Feb 20 19:05:58 suni-desktop kernel: [ 799.925511] [<c013a304>] register_sysctl_table+0x14/0x20
Feb 20 19:05:58 suni-desktop kernel: [ 799.925520] [<d098caa4>] parport_device_proc_register+0xb4/0xe0 [parport]
Feb 20 19:05:58 suni-desktop kernel: [ 799.925553] [<d098a951>] parport_register_device+0x151/0x240 [parport]
Feb 20 19:05:58 suni-desktop kernel: [ 799.925568] [<c037f45d>] ? _spin_lock+0xd/0x10
Feb 20 19:05:58 suni-desktop kernel: [ 799.925581] [<d098a604>] ? parport_find_number+0x74/0x90 [parport]
Feb 20 19:05:58 suni-desktop kernel: [ 799.925597] [<d0bcb38b>] register_device+0x8b/0x100 [ppdev]
Feb 20 19:05:59 suni-desktop kernel: [ 799.925611] [<d0bcbc00>] ? pp_irq+0x0/0x60 [ppdev]
Feb 20 19:05:59 suni-desktop kernel: [ 799.925621] [<d0bcb831>] pp_do_ioctl+0x431/0x7b0 [ppdev]
Feb 20 19:05:59 suni-desktop kernel: [ 799.925631] [<d0bcbbdc>] pp_ioctl+0x2c/0x50 [ppdev]
Feb 20 19:05:59 suni-desktop kernel: [ 799.925640] [<d0bcbbb0>] ? pp_ioctl+0x0/0x50 [ppdev]
Feb 20 19:05:59 suni-desktop kernel: [ 799.925650] [<c01bf16d>] vfs_ioctl+0x2d/0x90
Feb 20 19:05:59 suni-desktop kernel: [ 799.925663] [<c01bf356>] do_vfs_ioctl+0x66/0x200
Feb 20 19:05:59 suni-desktop kernel: [ 799.925671] [<c0214df8>] ? cap_file_ioctl+0x8/0x10
Feb 20 19:05:59 suni-desktop kernel: [ 799.925691] [<c01bf55b>] sys_ioctl+0x6b/0x70
Feb 20 19:05:59 suni-desktop kernel: [ 799.925699] [<c0103f7b>] sysenter_do_call+0x12/0x2f
Feb 20 19:05:59 suni-desktop kernel: [ 799.925711] =======================
Feb 20 19:05:59 suni-desktop kernel: [ 799.925718] ppdev0: registered pardevice
Feb 20 19:05:59 suni-desktop hpijs: io/hpmud/pp.c 627: unable to read device-id ret=-110
Feb 20 19:06:59 suni-desktop kernel: [ 860.352227] ppdev0: unregistered pardevice

Revision history for this message
Jarno Suni (jarnos) said :
#42

To apply solution told at http://www.kivela.net/jaska/projects/lj3100/ you need a "printtool" utility but ubuntu does not have it. Is there an equivalent utility in ubuntu?

Revision history for this message
Jarno Suni (jarnos) said :
#43

I found also this: http://www.linuxprinting.org/download/printing/hplj_3100_3150/
lj3100.tar.gz is not identical to http://www.kivela.net's one.

Revision history for this message
LMiller (ldmiller54) said :
#44

Hi:

I am the same situation as Chad I am trying to move from Windows to Xubuntu 8.04. I have a HP Laserjet 3100. I tried installing hplip-3.9.2.run and get the message that the job has started and then that it is finished. Has anyone got this working. My situation this is a standalone desktop PC.

LMiller

Revision history for this message
Till Kamppeter (till-kamppeter) said :
#45

Here is some info and possibilities to make the HP LaserJet 3100/3150 working under Ubuntu:

The HPLIP support for these printers is a bug. The hpijs and hpcups drivers of HPLIP do not support the printer's data format and the PPD files assume that these printers are PCL 5e printers.

A driver which generates the data format which the printer needs is inside GPL Ghostscript. It is named "lj3100sw". You do not need to patch and compile Ghostscript. You can ignore the Ghostscript steps on http://www.kivela.net/jaska/projects/lj3100/ and also the Ghostscript driver files in lj3100.tar.gz.

The communication protocol of these printers seems to be non-standard, no straight through-the-date-into-the-parallel-port, as with most other printers. The lj3100.tar.gz mentioned above contains an implementation of the protocol. But before starting to compile this piece of software, check whether HPLIP at least supports the communication protocol. For this set up the printer with "hp-setup" (you must install the "hplip-gui" to get this utility). Do not let "hp-setup" print a test page and do not print after setting up the printer. The print queue will not work as it uses the wrong data format. Run "hp-toolbox" and check the printer status and the toner level. Run "xsane" or "simple-scan" and try to scan with your printer. If this works, HPLIP supports the communication protocol and you do not need to compile the software in the tarball.

Now generate a file which the printer understands by running the following command in a terminal window:

/usr/bin/gs -dNOPAUSE -dBATCH -q -sPAPERSIZE=a4 -r600 -sDEVICE=lj3100sw -sOutputFile=- /usr/share/system-config-printer/testpage-a4.ps > lj3100.prn

Replace all occurrences of "a4" by "letter" if your paper is Letter-sized. You can print any PostScript or PDF file instead of /usr/share/system-config-printer/testpage-a4.ps (on Lucid you must use another file).

If you could scan and/or check your printer status/toner level with HPLIP, run the following command in a terminal window:

lp -o raw lj3100.prn

Does the printer print your file correctly?

If you could NOT scan and/or check your printer status/toner level with HPLIP, compile the software in lj3100.tar.gz and run the following command in a terminal window:

cat lj3100.prn | lj3100_print

Does the printer print your file correctly?

With this information we can update the information about this printer on OpenPrinting and at HPLIP and also create a correct PPD for it so that future versions of Linux distributions can support it out-of-the-box.

Revision history for this message
W Gadsby (wgadsby) said :
#46

I've got a Laserjet 3100 I'm trying to use with Fedora Linux. I can help diagnose it, if there's still a desire to make the LJ3100 work with hplip.

The printer is on the parallel port and works fine in Windows 2000 and almost fine on XP (occasional BSOD crashes). I first tried it with Fedora 12 on a 32-bit Intel single-core processor system. Fedora 12 uses hplip 3.9.8. It recognized the printer on the parallel port, but scanning and printing don't work. I tried the above steps to try to make it work. When I run sane, it shows the LJ3100 as an option when it starts, but then times out after several minutes and says it can't communicate with the printer. When I check the status via hp-toolbox, it says its ok but doesn't give the toner levels or any further information. I tried the three different parallel port options in BIOS (I think ECP, EPP, PS/2) with similar results. I ran hp-check, and it showed lots of packages missing. Then I tried downloading and compiling the lj3100.tar.gz package and running the lj3100_print routine on a different file (was not able to create the one indicated) with no luck. In order to correct the hp-check problems I tried installing hplip directly. I tried using the auto-installer to upgrade to 3.10.2. Running hp-check showed everything was ok. I gave up on this system when hp-setup wouldn't check for the printer on a parallel port (grayed out). I now realize I needed to compile the tar ball instead. I can restore the printer to this system and check more things, if desired.

I changed the printer to a Fedora 11 system with an AMD 64-bit Sempron processor. Again the printer was recognized by the Fedora (cups?) system, but I'm unable to scan or print. I followed the instructions on this site to download and compile the tarball, then followed the troubleshooting steps to enable parallel port operation. hp-setup doesn't see the printer at all on this machine. I can run system-config-printer and it sees the printer on the parallel port. Sane-find-scanner doesn't find this printer, but claims to find a USB printer. I don't have any other printers connected to this machine, USB or otherwise, as far as I know.

I'd love to help debug this if someone wants to try to fix it.

Here are the results from hp-check:

HP Linux Imaging and Printing System (ver. 3.10.2)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully
compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux albert.localdomain 2.6.30.9-96.fc11.x86_64 #1 SMP Wed Nov 4 00:02:04 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
fedora 11

Checking Python version...
OK, version 2.6.0 installed

Checking PyQt 4.x version...
OK, version 4.7 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.4.2
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

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

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.10.2 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.10.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.10.2
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.10.2rc1.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
[installation]
version = 3.10.2rc1.9
date_time = 03/21/2010 19:59:53

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

No devices found.

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

HP-LaserJet-3100
----------------
Type: Unknown
Device URI: parallel:/dev/lp0
PPD: /etc/cups/ppd/HP-LaserJet-3100.ppd
PPD Description: HP LaserJet 3100, hpcups 3.10.2
Printer status: printer HP-LaserJet-3100 is idle. enabled since Sun 21 Mar 2010 06:24:00 PM EDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

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

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

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

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

---------------
| USER GROUPS |
---------------

wgadsby sys disk lp cdrom audio

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

error: 1 error or warning.

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

Done.

***********************************************************************

The only relevant messages in /var/log/messages I see are as follows:

Mar 21 17:16:46 albert python: hp-setup[2748]: error: No devices found on bus: par
Mar 21 17:20:20 albert python: hp-check[3035]: warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

Mar 21 18:18:58 albert python: hp-setup[2630]: error: No devices found on bus: par
Mar 21 18:20:17 albert kernel: lp0: using parport0 (interrupt-driven).
Mar 21 18:20:17 albert kernel: lp0: console ready

Mar 21 18:24:23 albert python: hp-setup[3128]: error: No devices found on bus: par

Revision history for this message
Fritz (lauchpad-net) said :
#47

I also have got a Laserjet 3100 printer over here and would be interested and willing to get this to work.
I tried to setup the printer with hplip and got pretty the same kernel error messages as Jarno Suni told in his post from 2009-02-20. If i could try something out, please let me know.

Revision history for this message
Stefan Wagner (wagner-stefan) said :
#48

Just confirming: I use xUbuntu 10.04 right now, and don't get the printer to work too. Not as a printer, not as a scanner. It doesn't show up in any of the hp-tools.

Revision history for this message
W Gadsby (wgadsby) said :
#49

Hi Stefan,
     I never received a reply to my original post, but your experience sounds similar to mine. It's been a while since I worked on this, so most of the following is from memory. When I get time, I'm planning on opening a new thread and doing some more troubleshooting. I tried a Fedora automated install, then tried uninstalling and installing hplip manually using the instructions on the hplip web site. I was never able to get the hp-setup (if I remember the name correctly) program to recognize the printer correctly. You need to take extra steps to be sure the parallel support is enabled when configuring/compiling the package. I've tried following specific instructions for installing the laserjet 3100 on linux (I found on web - do a search and I'm sure you will find this page too), but the hp-setup program does not find the printer the way the instructions state. I suspect hplip was updated, and newer versions no longer treat the 3100 properly. My
 plan is to try previous versions of hp-setup until I find one that does treat the printer correctly, then determine where the change was made that broke it. According to the web post, all the software modules should be present in hplip to make the printer work right - it's just a matter of getting them to work together properly. Let me know if you ever manage to get it working.
     Thanks,

     Winston

----- Original Message ----
> From: Stefan Wagner <email address hidden>
> To: <email address hidden>
> Sent: Wed, June 9, 2010 7:02:59 PM
> Subject: Re: [Question #54810]: Driver for Laserjet 3100?
>
> Question #54810 on HPLIP changed:

> href="https://answers.launchpad.net/hplip/+question/54810" target=_blank
> >https://answers.launchpad.net/hplip/+question/54810

Stefan Wagner
> posted a new comment:
Just confirming: I use xUbuntu 10.04 right now, and
> don't get the
printer to work too. Not as a printer, not as a scanner. It
> doesn't show
up in any of the hp-tools.

--
You received this
> question notification because you are a direct
subscriber of the
> question.

Can you help with this problem?

Provide an answer of your own, or ask pewe for more information if necessary.

To post a message you must log in.