LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-08-2017, 03:10 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,199

Rep: Reputation: 47
Printer HP Laserjet 1020 not working after update


I recently updated from Debian 8 to 9 and it is otherwise working very well. However, the above mentioned printer is not working.

On http://localhost:631, when I try to print a document or print a self-test page, it shows "waiting for printer to become available". Since nothing happens further, I switch off and then on the printer. At this stage, the message becomes 'sending data to printer'. The printer gives out some noise but nothing is printed out. The job is then shown to be 'completed'.

I tried to re-install the printer with command:

Code:
sudo hp-setup -i
but it gives an error:

Code:
error: No device selected/specified or that supports this functionality
I have started restarting the printer, but it has not helped.

Basically, it is not finding printer connected via USB.

There is another observation which may be related: if I start computer with printer on, the mouse cursor appears but it is frozen. It starts moving with the mouse only if I switch off the printer. It keeps working if I restart the printer.

The same printer works perfectly well with another Linux distribution installed on another partition of same computer, hence there is no hardware problem.

Where is the problem and how can this be solved? Thanks for your help.

Last edited by rng; 07-08-2017 at 03:24 AM.
 
Old 07-08-2017, 05:46 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
I've been buying cheapo laser b/w printers for my last 2 printers. I had a 1020 or some model close to that number. I got no good out of it whatsoever under slackware until I installed foo2zjs(?). That clashes with some other printer stuff.

I currently have a hp Laserjet p1102w and got no good of that until I found some linux installer on the cd or website. No trouble now, it operates on the network and anything on wifi prints to it.
 
Old 07-09-2017, 12:24 PM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,256
Blog Entries: 21

Rep: Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779Reputation: 4779
This may be the same bug that I found in Crux. Check if you have the usblp module compiled. Cups is supposed to blacklist it but the blacklist doesn't work in the latest version of cups.

You can test by running /usr/lib/cups/backend/usb as root. If you get some message about not being able to uncouple usblp, that's it.
 
Old 07-09-2017, 09:26 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Or, you can try :
Code:
$ lsmod | grep usblp
If it's loaded, try:
Code:
$ modprobe -r usblp
Then, go into /etc/modprobe.d and make a blacklist file for usblp.
 
Old 07-10-2017, 01:20 AM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,199

Original Poster
Rep: Reputation: 47
I get following output:

Code:
# /usr/lib/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 132 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=9
DEBUG2: Printer found with device ID:  Device URI: usb://Unknown/Printer
direct usb://Unknown/Printer "Unknown" "Unknown" "" ""
root@debian-netinst:/home/abcde#
and:
Code:
$ lsmod | grep usblp
usblp                  20480  0
usbcore               184320  6 usbhid,ehci_hcd,uhci_hcd,usblp,btusb,ehci_pci
I am not sure what they mean.

Last edited by rng; 07-10-2017 at 01:23 AM.
 
Old 07-11-2017, 04:38 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Have you gone into http://localhost:631 and added your printer?
 
Old 07-11-2017, 04:57 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Normally the usblp module should not interfere with lisbusb communication, but I'm interested in Hazel's comments about a possible regression here. Anyway, try unloading the unneeded module with
Code:
sudo modprobe -r usblp
then (with your printer plugged in) run the hp backend manually like this
Code:
sudo /usr/lib/cups/backend/hp
What (if anything) is reported?

Last edited by ferrari; 07-11-2017 at 04:01 PM.
 
Old 07-11-2017, 05:30 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Also, with the printer turned on (but disconnected), open a terminal window and run
Code:
dmesg -w
then connect the USB cable and observe/capture what is reported. (CTRL+C to terminate.)
 
Old 07-11-2017, 06:43 AM   #9
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,199

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by business_kid View Post
Have you gone into http://localhost:631 and added your printer?
The printer is not found there also.

Quote:
..try unloading the unneeded module..
I am away from that computer at present. Will try ASAP and give the feedback here.

Last edited by rng; 07-11-2017 at 06:44 AM.
 
Old 07-11-2017, 11:08 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Quote:
The printer is not found there also
Hardly surprising it's not found then. Add it.
 
Old 07-11-2017, 04:04 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
@business_kid: For a locally connected printer, if the CUPS usb backend (or hp backend for printer supported by HPLIP) can't enumerate the printer URI (ref post #5), then there is a more fundamental problem here. That needs to be sorted first.
 
Old 07-11-2017, 10:44 PM   #12
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,199

Original Poster
Rep: Reputation: 47
Quote:
Hardly surprising it's not found then. Add it.
When I try to add it, it is not even detected (printer connected through usb) and is not there in detected printers list, so it cannot be added.

Last edited by rng; 07-11-2017 at 10:45 PM.
 
Old 07-11-2017, 11:20 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Can you please run the commands given in posts #7 and #8. Post back here with the output. A bug report may well be required.
 
Old 07-14-2017, 07:27 AM   #14
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,199

Original Poster
Rep: Reputation: 47
With command 'dmesg -w', on switching on the printer, I get following messages:
Code:
[  431.944033] usb 1-7: new high-speed USB device number 6 using ehci-pci
[  432.112501] usb 1-7: New USB device found, idVendor=03f0, idProduct=2b17
[  432.112506] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  432.112509] usb 1-7: Product: HP LaserJet 1020
[  432.112511] usb 1-7: Manufacturer: Hewlett-Packard
[  432.112514] usb 1-7: SerialNumber: JL1CQE6
[  454.627690] usblp 1-7:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[  454.627744] usbcore: registered new interface driver usblp
Then I performed following commands:
Code:
# modprobe -r usblp
# /usr/lib/cups/backend/hp
direct hp "Unknown" "HP Printer (HPLIP)"
The output as shown above states "unknown".

"hp-setup -i" is still not working. It gives following error:
Code:
error: No device selected/specified or that supports this functionality.

Last edited by rng; 07-14-2017 at 07:32 AM.
 
Old 07-14-2017, 03:36 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Interesting that the printer model and serial number is correctly enumerated in the kernel output, but both the usb and hp backends are not working as expected. A bug report is required here.
 
  


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
HP 1020 Laserjet printer - Error message Wellington912 Linux - Hardware 12 12-01-2014 12:39 PM
[SOLVED] I need a driver for a HP Laserjet 1020 printer lawashington Linux - Hardware 5 09-07-2012 09:45 AM
How to install laserjet 1020 printer in rhel 5 ravinderkc27 Linux - Newbie 2 06-16-2012 02:24 AM
instal hp laserjet 1020 printer in pclinuxos ramly Linux - Newbie 1 02-05-2010 11:55 AM
problems with hp 1020 laserjet printer in fedora 12 dnskdas Linux - Hardware 3 02-05-2010 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration