Choose style:

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

0 Members and 1 Guest are viewing this topic.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1997
  • Karma: 344
  • 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, 05: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: 26290
  • Karma: 2855
  • "-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, 06: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-essential
then
Code: [Select]
mkdir ~/foo2zjs
then
Code: [Select]
cd foo2zjs
then
Code: [Select]
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
then
Code: [Select]
tar zxf foo2zjs.tar.gz
then
Code: [Select]
cd ~/foo2zjs/foo2zjs
then
Code: [Select]
make
then
Code: [Select]
./getweb 1018
then
Code: [Select]
sudo make install
then
Code: [Select]
sudo make install-hotplug
then
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 uninstall
from 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, 06: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: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: unable to recognize HP LJ 1018
« Reply #17 on: May 24, 2017, 08: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: 1997
  • Karma: 344
  • 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, 09: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: 26290
  • Karma: 2855
  • "-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, 10: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: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: unable to recognize HP LJ 1018 (solved)
« Reply #20 on: May 25, 2017, 07: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-essential
then
Code: [Select]
mkdir ~/foo2zjs
then
Code: [Select]
cd foo2zjs
then
Code: [Select]
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
then
Code: [Select]
tar zxf foo2zjs.tar.gz
then
Code: [Select]
cd ~/foo2zjs/foo2zjs
then
Code: [Select]
make
then
Code: [Select]
./getweb 1018
then
Code: [Select]
sudo make install
then
Code: [Select]
sudo make install-hotplug
then
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: 1997
  • Karma: 344
  • 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, 07:28:03 am »
Good stuff, thanks for letting us know :)

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: unable to recognize HP LJ 1018 (solved)
« Reply #22 on: July 08, 2017, 01:38:00 pm »
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)
kolek@kolek-X551MA ~ $ inxi -F
System:    Host: kolek-X551MA Kernel: 4.4.0-81-generic x86_64 (64 bit)
           Desktop: N/A Distro: Peppermint Seven
Machine:   System: ASUSTeK (portable) product: X551MA v: 1.0
           Mobo: ASUSTeK model: X551MA v: 1.0
           Bios: American Megatrends v: X551MA.515 date: 04/15/2015
CPU:       Dual core Intel Celeron N2815 (-MCP-) cache: 1024 KB
           clock speeds: max: 2132 MHz 1: 1160 MHz 2: 1627 MHz
Graphics:  Card: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@59.99hz
           GLX Renderer: Mesa DRI Intel Bay Trail GLX Version: 3.0 Mesa 12.0.6
Audio:     Card Intel Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-81-generic
Network:   Card-1: Qualcomm Atheros AR9485 Wireless Network Adapter
           driver: ath9k
           IF: wlp2s0 state: up mac: 54:27:1e:10:07:2f
           Card-2: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: enp3s0f2 state: down mac: e0:3f:49:30:7b:f6
Drives:    HDD Total Size: 500.1GB (2.2% used)
           ID-1: /dev/sda model: HGST_HTS545050A7 size: 500.1GB
Partition: ID-1: / size: 150G used: 6.4G (5%) fs: ext4 dev: /dev/sda8
           ID-2: swap-1 size: 4.18GB used: 0.00GB (0%) fs: swap dev: /dev/sda9
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 6280.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 158 Uptime: 1:12 Memory: 847.0/3838.7MB
           Client: Shell (bash) inxi: 2.2.35
[close]
« Last Edit: July 08, 2017, 01:40:33 pm by damig »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-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, 02:29:54 pm »
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-modeswitch
which 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, 02:38:07 pm 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: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: unable to recognize HP LJ 1018 (solved)
« Reply #24 on: July 09, 2017, 02:20:53 pm »
hi PCNetSpec and thx for your response.... and sorry for the delay
tried your method but it resolved by unplugging the bt mouse dongle.