LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2016, 11:03 AM   #16
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled

When I went step by step to the cups/backend, I discovered that the hp icon there was crossed. Is that significant?
 
Old 04-10-2016, 01:28 PM   #17
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
Just now, after deleting one of the printers - the "serial" one, as advised - I ran the lpstat command that I had run earlier, the output this time was as follows:

lpstat -t
scheduler is running
system default destination: HP-LaserJet-1020
device for HP-LaserJet-1020: hp:/usb/HP_LaserJet_1020?serial=JL2MNL6
HP-LaserJet-1020 accepting requests since Sunday 10 April 2016 08:27:00 PM IST
printer HP-LaserJet-1020 is idle. enabled since Sunday 10 April 2016 08:27:00 PM IST
 
Old 04-10-2016, 04:14 PM   #18
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Quote:
When I ran /usr/lib/cups/backend/hp with sudo, I got this output -

direct hp "Unknown" "HP Printer (HPLIP)"
This means that no HP printer is detected. I get the same with no printer attached. Try changing to another USB port. BTW, are they USB 2.0 or USB 3.0 ports?

Disconnect and reconnect the printer to the USB port, then immediately run
Code:
dmesg|tail
and capture the output.
 
Old 04-10-2016, 10:28 PM   #19
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
USB 2.0, alas.

And here is the output:

dmesg|tail
[10151.961522] perf interrupt took too long (10020 > 10000), lowering kernel.perf_event_max_sample_rate to 12500
[12325.507494] usb 1-6: USB disconnect, device number 6
[44731.909126] usb 1-5: new high-speed USB device number 7 using ehci-pci
[44732.060883] usb 1-5: New USB device found, idVendor=03f0, idProduct=2b17
[44732.060891] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[44732.060896] usb 1-5: Product: HP LaserJet 1020
[44732.060901] usb 1-5: Manufacturer: Hewlett-Packard
[44732.060905] usb 1-5: SerialNumber: JL2MNL6
[44732.064135] usblp 1-5:1.0: usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[44736.015209] usblp1: removed
*

Any better?
 
Old 04-10-2016, 10:34 PM   #20
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
And, by the way, I tried printing again - no go. I get a message on the screen that the printer is printing, and then that the job has been completed - but there has been no activity in the printer itself.

Meanwhile, now that I am getting relatively less ignorant (!), I ran lsusb from the terminal, and sure enough, the HP Printer was there alright. Here is that output:

lsusb
Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 007: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 005: ID 046d:081b Logitech, Inc. Webcam C310
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04ca:0060 Lite-On Technology Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
Old 04-10-2016, 10:38 PM   #21
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
Meanwhile, here's the new output for the "backend" command:

sudo /usr/lib/cups/backend/hp
[sudo] password for alok:
direct hp "Unknown" "HP Printer (HPLIP)"
 
Old 04-10-2016, 10:48 PM   #22
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
I tried running hp-setup again. It failed to find any device.
 
Old 04-11-2016, 08:05 AM   #23
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
Still fiddling around - unable to print - I got an error message: Device Communication Error 5012. I believe that it is a known problem. Solution?
 
Old 04-11-2016, 04:18 PM   #24
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Well, your first two attempts showed no printer in the output, but your third did enumerate it? Was that because it wasn't connected or turned on? Or perhaps a fault USB cable? You might want to check on that. Anyway, when it was working, your dmesg output is as expected.

Running the HPLIP 'hp' backend manually, should enumerate details about the printer attached. Since it doesn't, there does seem to be a communication problem with the USB subsystem somehow. So, 'hp-setup' i never going to find it. It's strange that this manifested after you say you upgraded from Mint 17.2 to Mint 17.3, but maybe the upgrade is not complete somehow?
 
Old 04-11-2016, 04:30 PM   #25
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian, CentOS
Posts: 578

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by Alok Rai View Post
However, when I am able to print from the printer using another computer - also running an earlier version of Linuxmint. And the computer, too, is able to print successfully to another printer. So it appears that the problem is a sort of stand-off between computer and printer. Puzzling.

I went to localhost:631 and did the AddPrinter routine - successfully, but when I tried to print a testpage, it didn't go through and gave a message "Filter failed".
Are both machines using the same driver? Have you tried another driver? Try one of the Generics within cups webpage page, or run the command:
Code:
erik@mypc:~$ system-config-printer
and configure from here.
 
Old 04-11-2016, 04:30 PM   #26
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Another thought that I had - check that you have the udev rules file (/etc/udev/rules.d/56-hpmud.rules) present from HPLIP. Perhaps, also consider reinstalling the HPLIP packages again.
 
Old 04-11-2016, 06:21 PM   #27
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Quote:
Are both machines using the same driver? Have you tried another driver? Try one of the Generics within cups webpage page, or run the command:
I don't think such an option exists for this model. The HP120 is a 'host-based' printer, using a proprietary protocol, unlike other HP models using PCL etc. The question is why the 'hp' backend cannot explicitly detect the device as a valid printer.
 
Old 04-11-2016, 06:40 PM   #28
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Hmmm....I stumbled across this interesting Red Hat bug report where a user trying to configure the same model reported that 'hp-setup' couldn't detect the printer, until they power-cycled the printer while connected to the USB port. It seems that this caused the required firmware to be loaded first.
Quote:
Right after logging in I started hp-setup, to see whether it is able to create a queue for this printer and then I got the bug reproduced. hp-setup needed longer time to search for USB printers and in the end no printer was found, so it did not see my printer. "lsusb" lists my printer though.

Now I power-cycled the printer. It made noise once for its startup and a second time for receiving its firmware from the computer. After that it was again listed by "lsusb" but this time hp-setup could find it. I also could print.

So the problem seems booting with the printer turned on. It works if turning it on after boot or power-cycling it after a boot with the printer already turned on.
 
Old 04-11-2016, 10:23 PM   #29
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Here's a similar Ubuntu bug report discussing the same issue with a similar (HP-1018) model. There are some workarounds discussed there.
 
Old 04-12-2016, 01:34 AM   #30
Alok Rai
Member
 
Registered: Aug 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thank you, people! This is becoming quite an epic! Let me try and summarize my current state of knowledge:

1. The suspicion that the problem might lie with a faulty USB cable appears misplaced, because the same USB cable, attached to a separate computer, manages to print perfectly well on the same printer. This second computer is running an earlier version of LinuxMint;

2. The problem might lie with a mismatch between the Ubuntu version that LinuxMint 17.3 runs on, and the latest HPLIP version. This might be solved by deleting the latest HPLIP version, and going back to an earlier version of it.

3. The problem might lie with HPLIP itself - in which case, the thing to do would be to delete HPLIP altogether, and install that other foo-something.

However, with both 2. and 3., I am at the outer limit of my competence, and would welcome - indeed, be grateful for - detailed instructions about how to proceed.

Many thanks, again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printer HP 1020 problem Alok Rai Linux - Newbie 17 02-03-2016 06:55 AM
Unable to shutdown computer running Linuxmint 10 rc Clived Linux Mint 5 11-11-2010 11:42 AM
HP 1020 usb printer keiffee30 Linux - Hardware 1 07-07-2007 10:19 PM
Need help buying a printer for computer running ubuntu izquierdista Ubuntu 2 06-19-2007 10:35 PM
hp 1020 printer problem mohit.chugh Linux - Software 1 11-22-2006 07:29 AM


All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration