Page 1 of 1

HP LaserJet 1018 prints infinite number of copies

Posted: Mon Sep 02, 2013 11:57 am
by kormikez
Hey everyone,

I've flashed my TL-WDR3600 with Gargoyle 1.5.10 a couple of days ago. Working on this system for the first time, I was very positive about it - until I started struggling with the USB printing :)

Making the printer working at all maybe wasn't that trivial, however with uncle Google's help it wasn't a challenge too; it is quite nicely described on many forums. So I put the .dl driver file on the router and created some hotplug.d script to load it into lp0. Happily, the printer responded. And responded again. And again. And again... Apparently, not willing to ever stop printing.
:o
For some reason my LJ1018 prints infinite number of copies of any document I request it to print. Like it doesn't clean its printing queue upon print finish.

Obviously, I do not request to print more than one copy and obviously, it doesn't happen when I connect directly to the printer.

It seems that the only moment I am able to print a single copy of a document is right after I install the printer on the workstation and print a Test Page.

The driver I use is this one: http://oleg.wl500g.info/hplj/sihp1018.dl
The hotplug.d script:

Code: Select all

#!/bin/sh
set -e
# change this to the location where you put the .dl file:
FIRMWARE="/usr/lib/sihp1018.dl"
DEVICE=/dev/usb/lp0
LOGFILE=/var/log/hp
if [ "$PRODUCT" = "3f0/4117/100" -a "$ACTION" = "add" ]; then
 for i in $(seq 30); do
  if [ -c $DEVICE ]; then
   cat $FIRMWARE > $DEVICE
   exit
  fi
 sleep 1
done
fi
I've tested it on 2 workstations, both Windows7 (HP JetDirect, RAW printing).

Have anyone encountered anything like this before? Any ideas, suggestions?
Thanks in advance :)

Re: HP LaserJet 1018 prints infinite number of copies

Posted: Sun Sep 08, 2013 7:07 pm
by leoforti
Hi !
Turn off "bidirectional support" in the printer propierties (from Windows) and it will solve the problem.
I'm intrigued at how do you make the printer work... I've an HP 1020 and a TPLink 4300 running 1.5.10 and I can't make it work in any way.
I tried the exact same script that you show there (and many more) but none of them work.

If you can give me a hand, my problem in detail is in here:

http://www.gargoyle-router.com/phpbb/vi ... f=6&t=4659

Thanks in advance.

Re: HP LaserJet 1018 prints infinite number of copies

Posted: Sun Sep 15, 2013 7:07 am
by kormikez
leoforti wrote:Turn off "bidirectional support" in the printer propierties
Thanks a lot leoforti! This helped indeed :)

Regarding your issue, I will have a look in a minute and try to help as much as I can.

Re: HP LaserJet 1018 prints infinite number of copies

Posted: Mon Oct 07, 2013 6:14 pm
by leoforti
Something I forgot... when you disabled the "bidirectional support" in the printer propierties... is the duplex printing function still working ?