HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 02, 2012 02:08AM

I've been using the foo2zjs drivers successfully with the HP 1020 since roundabout Kubuntu 7.04, now I've hit a snag with 12.04.

Kubuntu 12.04 downloads *something* to the printer quite early in the device driver chain, which stops the printer driver (or anything else) from communicating with it. As a result, the foo2zjs firmware can't be downloaded (I assume). I first found this with a brand new install, then with an upgrade install from 11.10 (64-bit in both cases). From the 11.10 install, the printer worked fine, but as soon as 12.04 was active (and the printer reset) no comms.

On the same machine I have an 11.10 (32-bit) partition. If I first boot into that, reset the printer, the correct firmware is downloaded. If I then reboot into 12.04, without switching the printer off, 12.04's broken firmware is not downloaded and I can use the printer.

I've tried uninstalling the hplip software/drivers, but that doesn't seem to help.

Any thoughts?

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: rickrich ()
Date: May 02, 2012 08:50AM

What does this say:
$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;FWVER:20050309;

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 02, 2012 12:44PM

$ usb_printerid /dev/usb/lp0
Error: No such file or directory: can't open '/dev/usb/lp0'

Actually there's no usb directory in /dev

FWIW, I just reset the printer and the following lines come up a million times in the system log:
May 2 18:39:18 XXXXX kernel: [41884.511018] usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 2 18:39:18 XXXXX kernel: [41884.513755] usblp0: removed
May 2 18:39:18 XXXXX /etc/hotplug/usb/hplj1020: foo2zjs: usb://HP/LaserJet%201020?serial=FN2ZA4E... download failed.
May 2 18:39:18 XXXXX kernel: [41884.521279] usb 1-1.3: usbfs: process 12986 (usb) did not claim interface 0 before use
May 2 18:39:18 XXXXX kernel: [41884.521287] usb 1-1.3: usbfs: process 13000 (usb) did not claim interface 0 before use
May 2 18:39:18 XXXXX /etc/hotplug/usb/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /usr/share/foo2zjs/firmware/sihp1020.dl to CUPS USB device ...

Is that sihp1020.dl one of your files?

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: rickrich ()
Date: May 02, 2012 01:17PM

You should have /dev/usb/usblp0.

$ sudo modprobe -r -v usblp
rmmod /lib/modules/2.6.35.14-106.fc14.i686/kernel/drivers/usb/class/usblp.ko

$ ll /dev/usb
total 0
crw------- 1 root root 180, 96 Feb 17 17:32 hiddev0
crw------- 1 root root 180, 97 Feb 17 17:32 hiddev1
crw------- 1 root root 180, 98 Feb 17 17:32 hiddev2
crw------- 1 root root 180, 99 Feb 17 17:32 hiddev3

$ sudo modprobe -v usblp
insmod /lib/modules/2.6.35.14-106.fc14.i686/kernel/drivers/usb/class/usblp.ko
 
$ ll /dev/usb
total 0
crw------- 1 root root 180, 96 Feb 17 17:32 hiddev0
crw------- 1 root root 180, 97 Feb 17 17:32 hiddev1
crw------- 1 root root 180, 98 Feb 17 17:32 hiddev2
crw------- 1 root root 180, 99 Feb 17 17:32 hiddev3
crw-rw-rw- 1 root lp   180,  0 May  2 12:12 lp0

$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;FWVER:20050309;

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 03, 2012 02:27PM

The results:

~$ sudo modprobe -v usblp
insmod /lib/modules/3.2.0-24-generic/kernel/drivers/usb/class/usblp.ko

Still no usb under /dev, so usb_printerid /dev/ubs/lp0 yields nothing.

/dev$ ls
autofs loop0 ram10 sg0 tty22 tty47 ttyS12 ttyS9
block loop1 ram11 sg1 tty23 tty48 ttyS13 uinput
bsg loop2 ram12 sg2 tty24 tty49 ttyS14 urandom
btrfs-control loop3 ram13 sg3 tty25 tty5 ttyS15 usbmon0
bus loop4 ram14 shm tty26 tty50 ttyS16 usbmon1
cdrom1 loop5 ram15 snapshot tty27 tty51 ttyS17 usbmon2
cdrw1 loop6 ram2 snd tty28 tty52 ttyS18 usbmon3
char loop7 ram3 sr0 tty29 tty53 ttyS19 usbmon4
console loop-control ram4 stderr tty3 tty54 ttyS2 vboxdrv
core mapper ram5 stdin tty30 tty55 ttyS20 vboxnetctl
cpu mcelog ram6 stdout tty31 tty56 ttyS21 vboxusb
cpu_dma_latency mei ram7 tty tty32 tty57 ttyS22 vcs
disk mem ram8 tty0 tty33 tty58 ttyS23 vcs1
dvd1 net ram9 tty1 tty34 tty59 ttyS24 vcs2
dvdrw1 network_latency random tty10 tty35 tty6 ttyS25 vcs3
ecryptfs network_throughput rfkill tty11 tty36 tty60 ttyS26 vcs4
fb0 null rtc tty12 tty37 tty61 ttyS27 vcs5
fd nvidia0 rtc0 tty13 tty38 tty62 ttyS28 vcs6
full nvidiactl sda tty14 tty39 tty63 ttyS29 vcsa
fuse oldmem sda1 tty15 tty4 tty7 ttyS3 vcsa1
hidraw0 port sda2 tty16 tty40 tty8 ttyS30 vcsa2
hidraw1 ppp sda3 tty17 tty41 tty9 ttyS31 vcsa3
hidraw2 psaux sda4 tty18 tty42 ttyprintk ttyS4 vcsa4
hpet ptmx sdb tty19 tty43 ttyS0 ttyS5 vcsa5
input pts sdb1 tty2 tty44 ttyS1 ttyS6 vcsa6
kmsg ram0 sdc tty20 tty45 ttyS10 ttyS7 vga_arbiter
log ram1 sdc1 tty21 tty46 ttyS11 ttyS8 zero

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 03, 2012 02:43PM

fwiw, lsusb -v does see the printer.

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: rickrich ()
Date: May 04, 2012 04:17PM

Did this on a Ubuntu 12.04 laptop with all updates and a fresh foo2zjs. Works fine there.

$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;FWVER:20050309;

Don't know why it is doesn't work for you.

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 06, 2012 05:22AM

I also have a done this on a fresh install, albeit Kubuntu.

If I got through the procedure of booting into 11.10, resetting the printer (FW is downloaded), then reboot back into 12.04, I get exactly the same as you from usb_printerid. As soon as I reset the printer,

$ usb_printerid /dev/usb/lp0
Error: No such file or directory: can't open '/dev/usb/lp0'

I've rebuilt and reinstalled the foo2zjs drivers a couple of times, with no luck.

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 18, 2012 09:44PM

OK. I've found something which may help.

I uninstalled the drivers and hotplug:
sudo make uninstall

Then reinstalled the drivers with
make
sudo make install

and did not do
sudo make install-hotplug

I then mounted my Kubuntu 11.10 partition, and went to
/usr/share/foo2zjs/firmware
on that partition. Then, as per this thread I ran this:
cat sihp1020.dl > /dev/usb/lp0

and the printer works as expected. Does this maybe give you an idea what has changed in Kubuntu 12.04?

I will make a little script to do this, and run it when I need to use the printer, so it's not really an issue anymore.

Options: ReplyQuote
Re: HP 1020 and Kubuntu 12.04
Posted by: Bigal-sa ()
Date: May 24, 2012 12:31PM

Just another comment, there's no problem with sihp1020.dl - I installed the hotplug, then copied the sihp1020.dl that I used in the previous post to /usr/share/foo2zjs/firmware and the printer died when I switched it on. There must be something wrong with how KDE pushes the hotplug to the printer.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.