Author Topic: unable to recognize HP LJ 1018 (solved)  (Read 5386 times)

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2180
  • Karma: 457
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: unable to recognize HP LJ 1018
« Reply #15 on: May 24, 2017, 02:36:25 am »
Maybe removing the printer in the GUI first, then repeating the recipe. Someone in the comments of that blog post has got an LJ1018 working so it should be possible.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: unable to recognize HP LJ 1018
« Reply #16 on: May 24, 2017, 03:07:40 am »
The instructions are here:
http://foo2zjs.rkkda.com/

Open a terminal and run:
Code: [Select]
sudo apt-get install dc vim build-essentialthen
Code: [Select]
mkdir ~/foo2zjsthen
Code: [Select]
cd foo2zjsthen
Code: [Select]
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gzthen
Code: [Select]
tar zxf foo2zjs.tar.gzthen
Code: [Select]
cd ~/foo2zjs/foo2zjsthen
Code: [Select]
makethen
Code: [Select]
./getweb 1018then
Code: [Select]
sudo make installthen
Code: [Select]
sudo make install-hotplugthen
Code: [Select]
sudo make cups


The following is just FYI .. I'm NOT saying run it, it's just for information

If you want to get an idea of what was installed and where, here's the contents of the uninstall script that would be run if you ran:
Code: [Select]
sudo make uninstallfrom that directory:
Code: [Select]
cd osx-hotplug; make PREFIX=/usr uninstall
make[1]: Entering directory '/home/mark/foo2zjs/foo2zjs/osx-hotplug'
( \
echo "g/osx-hplj-hotplug/d"; \
echo "w"; \
) | ex /etc/rc.local
rm -f /usr/bin/osx-hplj-hotplug
make[1]: Leaving directory '/home/mark/foo2zjs/foo2zjs/osx-hotplug'
rm -f /etc/hotplug/usb/hplj1000
rm -f /etc/hotplug/usb/hplj1005
rm -f /etc/hotplug/usb/hplj1018
rm -f /etc/hotplug/usb/hplj1020
rm -f /etc/hotplug/usb/foo2zjs.usermap
(echo "g/^hplj10[02][05]/d"; echo "w") | ex /etc/hotplug/usb.usermap
rm -f /etc/udev/rules.d/11-hplj10xx.rules
rm -f /usr/bin/usb_printerid /bin/usb_printerid /sbin/usb_printerid
rm -f /etc/hotplug/usb/hplj.usermap #
rm -f /etc/udev/rules.d/58-foo2zjs.rules #
rm -f /sbin/foo2zjs-loadfw #
rm -rf /usr/share/doc/foo2zjs/
rm -f /usr/share/man/man1/foo2zjs*.1 /usr/share/man/man1/zjsdecode.1
rm -f /usr/share/man/man1/foo2hp*.1
rm -f /usr/share/man/man1/foo2oak*.1 /usr/share/man/man1/oakdecode.1
rm -f /usr/share/man/man1/foo2lava*.1 /usr/share/man/man1/lavadecode.1
rm -f /usr/share/man/man1/foo2qpdl*.1 /usr/share/man/man1/qpdldecode.1
rm -f /usr/share/man/man1/foo2slx*.1 /usr/share/man/man1/slxdecode.1
rm -f /usr/share/man/man1/foo2xqx*.1 /usr/share/man/man1/xqxdecode.1
rm -f /usr/share/man/man1/opldecode.1 /usr/share/man/man1/rodecode.1
rm -f /usr/share/man/man1/foo2hiperc*.1 /usr/share/man/man1/hipercdecode.1
rm -f /usr/share/man/man1/foo2hbpl*.1 /usr/share/man/man1/hbpldecode.1
rm -f /usr/share/man/man1/foo2ddst*.1 /usr/share/man/man1/ddstdecode.1
rm -f /usr/share/man/man1/gipddecode.1
rm -f /usr/share/man/man1/arm2hpdl.1 /usr/share/man/man1/usb_printerid.1
rm -f /usr/share/man/man1/foo2zjs-icc2ps.1
rm -rf /usr/share/foo2zjs/
rm -rf /usr/share/foo2hp/
rm -rf /usr/share/foo2oak/
rm -rf /usr/share/foo2xqx/
rm -rf /usr/share/foo2lava/
rm -rf /usr/share/foo2qpdl/
rm -rf /usr/share/foo2slx/
rm -rf /usr/share/foo2hiperc/
rm -rf /usr/share/foo2hbpl/
rm -rf /usr/share/foo2ddst/
rm -f /usr/bin/arm2hpdl
rm -f /usr/bin/foo2zjs-wrapper /usr/bin/foo2zjs /usr/bin/zjsdecode
rm -f /usr/bin/foo2oak-wrapper /usr/bin/foo2oak /usr/bin/oakdecode
rm -f /usr/bin/foo2hp2600-wrapper /usr/bin/foo2hp
rm -f /usr/bin/foo2xqx-wrapper /usr/bin/foo2xqx /usr/bin/xqxdecode
rm -f /usr/bin/foo2lava-wrapper /usr/bin/foo2lava /usr/bin/lavadecode
rm -f /usr/bin/foo2qpdl-wrapper /usr/bin/foo2qpdl /usr/bin/qpdldecode
rm -f /usr/bin/foo2slx-wrapper /usr/bin/foo2slx /usr/bin/slxdecode
rm -f /usr/bin/foo2hiperc-wrapper /usr/bin/foo2hiperc
rm -f /usr/bin/hipercdecode
rm -f /usr/bin/foo2hbpl2-wrapper /usr/bin/foo2hbpl2
rm -f /usr/bin/hbpldecode
rm -f /usr/bin/foo2ddst-wrapper /usr/bin/foo2ddst /usr/bin/ddstdecode
rm -f /usr/bin/gipddecode
rm -f /usr/bin/opldecode
rm -f /usr/bin/rodecode
rm -f /usr/bin/foo2zjs-icc2ps
rm -f /usr/bin/foo2zjs-pstops
rm -f /usr/bin/command2foo2lava-pjl
rm -f /usr/lib/cups/filter/command2foo2lava-pjl
rm -f /usr/share/applications/hplj1020.desktop
rm -f /usr/share/pixmaps/hplj1020_icon.png
cd foomatic-db; for i in `find driver opt printer -name "*.xml"`; do \
rm -f /usr/share/foomatic/db/source/$i; \
done
cd PPD; for ppd in *.ppd; do \
    rm -f /usr/share/cups/model/$ppd.gz; \
done;
rm -f /var/cache/foomatic/printconf.pickle
« Last Edit: May 24, 2017, 03:14:29 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 10
  • PeppermintOS daily user
    • View Profile
  • Peppermint version(s): 8
Re: unable to recognize HP LJ 1018
« Reply #17 on: May 24, 2017, 05:57:32 am »
started implementing the written, but it started with errors and continued so.... to make it short: After some install/uninstall of Peppermint5 and 7, went to Mint, unplugged the wireless mouse bt dongle and tried install of the printer and this time it went smooth .

So I think, the culprit is the wireless mouse. I'll have my theory confirmed today, when I visit another P7 installation on another laptop that uses wireless mouse and got problems with the printer same time as I did.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2180
  • Karma: 457
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: unable to recognize HP LJ 1018 (solved)
« Reply #18 on: May 24, 2017, 06:46:09 am »
It's important to look at the content of the errors. If it's saying "package already installed, nothing will be installed" it's not going to be a problem, or if it's just trying to remove a file that turns out not to be there, for safety's sake.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: unable to recognize HP LJ 1018 (solved)
« Reply #19 on: May 24, 2017, 07:25:36 am »
The above instructions were tested as working on PM7 64bit .. obviously I can't test the printer works (don't have that model), but the instructions to install the driver DO work ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 10
  • PeppermintOS daily user
    • View Profile
  • Peppermint version(s): 8
Re: unable to recognize HP LJ 1018 (solved)
« Reply #20 on: May 25, 2017, 04:22:50 am »
Ok, the end result is a success, and I have a printout from my HP LJ 1018 on P7 respin!

On a fresh P7 install, do this:
The instructions are here:
http://foo2zjs.rkkda.com/

Open a terminal and run:
Code: [Select]
sudo apt-get install dc vim build-essentialthen
Code: [Select]
mkdir ~/foo2zjsthen
Code: [Select]
cd foo2zjsthen
Code: [Select]
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gzthen
Code: [Select]
tar zxf foo2zjs.tar.gzthen
Code: [Select]
cd ~/foo2zjs/foo2zjsthen
Code: [Select]
makethen
Code: [Select]
./getweb 1018then
Code: [Select]
sudo make installthen
Code: [Select]
sudo make install-hotplugthen
Code: [Select]
sudo make cups

and then this:
Just went to print on my wifi HP Deskjet 3630 and got a "printer may not be connected" error and no printout.

I found the solution here:

Quote
-opened Firefox and accessed CUPS through http://localhost:631
-In "Administration" (root privileges) I chose "Add Printer" and selected the HP-LaserJet-1300 NOT using HPLIP.

Worked right away! Doing the same and choosing the HPLIP printer resulted to a printer that did not work.

That fixed the issue for me too. Strange, when I installed this printer a few weeks ago it was working.

Thx gus!
this time I removed the bt dongle and using cord mouse. After some time I'll connect the dongle to see if it creates the printer connectivity issue

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2180
  • Karma: 457
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: unable to recognize HP LJ 1018 (solved)
« Reply #21 on: May 25, 2017, 04:28:03 am »
Good stuff, thanks for letting us know :)

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 10
  • PeppermintOS daily user
    • View Profile
  • Peppermint version(s): 8
Re: unable to recognize HP LJ 1018 (solved)
« Reply #22 on: July 08, 2017, 10:38:00 am »
hi guys,
trying to resolve problems with this HP LJ p1102s on P7 and I'm having trouble with this line fron PCNetSpec's latest comment on this post:
Code: [Select]
./getweb 1018 where I changed it to p1102 and 1102 to no avail. It gives me "getweb: Don't know how to get extra stuff for printer 1102 (p1102)'. Can someone help me what to put there?
Here's the inxi:
Spoiler (click here to view / hide)
[close]
« Last Edit: July 08, 2017, 10:40:33 am by damig »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: unable to recognize HP LJ 1018 (solved)
« Reply #23 on: July 08, 2017, 11:29:54 am »
The P1102 doesn't need extra firmware downloading (so you can just skip the "getweb" command altogether), it does however present itself to the system as a Virtual CD-ROM when connected via the USB cable which will need to be disabled

So install usb-modeswitch:
Code: [Select]
sudo apt-get install usb-modeswitchwhich should flip it from Virtual-CD to Printer mode then next time you replug the printer.

Here's the relevant section from the foo2zjs "INSTALL" file:-

Quote
HP SMART INSTALL NOTES
----------------------
    The printers HP LaserJet Pro P1102, HP LaserJet Pro CP1025, and simliar
    models have a virtual CD-ROM (a fake USB CD drive) in USB mode.  You can
    disable this three ways:

    Method 1:
   NOTE: this is a non-open-source method!
   - Connect the printer to a Windows PC and turn it on.
     The fake CD-ROM appears on Windows.
   - Insert the original Driver CD that ships with the printer
   - Run SIUtility.exe or SIUtility64.exe from the UTIL folder and
     COMPLETELY DISABLE THIS "HP SMART INSTALL" FEATURE.

    Method 2:
   - Install usb_modeswitch and usb_modeswitch-data from your distro's
     repository. I.E.:
       # yum install usb_modeswitch usb_modeswitch-data
     OR
       $ sudo apt-get install usb-modeswitch-data
     OR
       Surf to: http://www.draisberghof.de/usb_modeswitch/
   - Power cycle the printer.

    Method 3:
   NOTE: this is a non-open-source method!
   - Execute:
       $ wget http://hplipopensource.com/hplip-web/smartinstall/\
      SmartInstallDisable-Tool.run
       $ sh SmartInstallDisable-Tool.run

which is mentioned on their website
http://foo2zjs.rkkda.com/
« Last Edit: July 08, 2017, 11:38:07 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 10
  • PeppermintOS daily user
    • View Profile
  • Peppermint version(s): 8
Re: unable to recognize HP LJ 1018 (solved)
« Reply #24 on: July 09, 2017, 11:20:53 am »
hi PCNetSpec and thx for your response.... and sorry for the delay
tried your method but it resolved by unplugging the bt mouse dongle.