Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-08-2017, 03:10 AM
|
#1
|
Senior Member
Registered: Aug 2011
Posts: 1,199
Rep:
|
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:
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.
|
|
|
07-08-2017, 05:46 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528
|
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.
|
|
|
07-09-2017, 12:24 PM
|
#3
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,256
|
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.
|
|
|
07-09-2017, 09:26 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
07-10-2017, 01:20 AM
|
#5
|
Senior Member
Registered: Aug 2011
Posts: 1,199
Original Poster
Rep:
|
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.
|
|
|
07-11-2017, 04:38 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528
|
Have you gone into http://localhost:631 and added your printer?
|
|
|
07-11-2017, 04:57 AM
|
#7
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006
|
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.
|
|
|
07-11-2017, 05:30 AM
|
#8
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006
|
Also, with the printer turned on (but disconnected), open a terminal window and run
then connect the USB cable and observe/capture what is reported. (CTRL+C to terminate.)
|
|
|
07-11-2017, 06:43 AM
|
#9
|
Senior Member
Registered: Aug 2011
Posts: 1,199
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
|
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.
|
|
|
07-11-2017, 11:08 AM
|
#10
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,528
|
Quote:
The printer is not found there also
|
Hardly surprising it's not found then. Add it.
|
|
|
07-11-2017, 04:04 PM
|
#11
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006
|
@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.
|
|
|
07-11-2017, 10:44 PM
|
#12
|
Senior Member
Registered: Aug 2011
Posts: 1,199
Original Poster
Rep:
|
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.
|
|
|
07-11-2017, 11:20 PM
|
#13
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006
|
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.
|
|
|
07-14-2017, 07:27 AM
|
#14
|
Senior Member
Registered: Aug 2011
Posts: 1,199
Original Poster
Rep:
|
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.
|
|
|
07-14-2017, 03:36 PM
|
#15
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006
|
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.
|
|
|
All times are GMT -5. The time now is 12:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|