LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2017, 02:58 PM   #1
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Rep: Reputation: Disabled
Parallel port to usb HP laserjet printer


I can't print since a recent upgrade. Im not entirely sure of what upgrade etc. But at the moment I have purged and reinstalled Cups and HPLIP to no avail.

I have a file called /dev/usb/lp1 but not /dev/usb/lp0 which I believe should be there.

I am a computer user not pro. So can anyone tell me where I am going wrong?

Using Ubuntu 16.04 and a HP laserjet 1100 printer with a parallel port cable to usb cable attached to my computer.
 
Old 12-03-2017, 11:35 PM   #2
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
You might want to check which module drives the parallel to USB converter. It's not just a cable. There are electronics inside it. You can use
Code:
$ lsusb
to check the manufacturer and model.
 
Old 12-04-2017, 04:46 AM   #3
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
lsusb -t

The lsusb -t option gives this detail showing it recognises a printer of some sort

Quote:
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
|__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 4, If 0, Class=Printer, Driver=usblp, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M

Whereas lsusb doesn't show a printer at all!!
 
Old 12-04-2017, 05:30 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Recent versions of cups don't like the usb printer module usblp.ko. They use libusb instead.

Blacklisting the driver used to work perfectly well but after more recent updates of cups, I found it was better not to have it built in the first place.
 
Old 12-04-2017, 05:32 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Whereas lsusb doesn't show a printer at all!!
lsusb will only show the USB parallel port adapter.

I would expect if you unplug the adapter, restart the computer and reinsert the adapter that /dev/usb/lp0 will be created. I have not played with a USB parallel port adapter in a while. I would expect that hp-setup to automatically configure the printer.

I assume your cups printer uri is:

parallel:/dev/usb/lp0

The LJ 1100 has a legacy parallel port and is not a USB printer. Not sure why usblp is being used but it might be interfering.

Last edited by michaelk; 12-04-2017 at 05:40 AM.
 
Old 12-04-2017, 05:40 AM   #6
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
not sure

NOt sure but if I go to printers, add printers.

Well no printers are detected at all. I don't really know what a URI address is. There doesn't seem to be an option to search for a URI address.
 
Old 12-04-2017, 05:48 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
URIs are just a more general version of the URLs that your browser uses. You are familiar with URLs of the type http://www.address.com. They consist of an access protocol and an address, separated by a colon and a slash. If you look at the sample URI provided by michaelk, you will see that it follows the same syntax.

If cups can't detect your printer automatically, you will need to add it by providing a suitable URI by hand.

Last edited by hazel; 12-04-2017 at 06:44 AM.
 
Old 12-04-2017, 06:41 AM   #8
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
la suite

thats the part I don't get, where can I put in the URI? With the add printer option its only a network address asked for.

Thanks
 
Old 12-04-2017, 07:40 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I don't know what the latest Ubuntu add printer wizard looks like so not much help except there should be a way specify the port. Does the icon for the printer still exist?
 
Old 12-05-2017, 03:07 AM   #10
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Unhappy hp-check

When I run hp-check -r there seem to be quite a few missing dependencies, here's the output summary

Quote:
Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libcups2' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
None


Total Errors: 11
Total Warnings: 0

Also, if I run hp-setup I can try any of the setup options USB, parallel, eternet etc. but still no device found
 
Old 12-05-2017, 03:26 AM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Your earlier output in post #3 pertains to the adapter device...
Code:
Port 4: Dev 4, If 0, Class=Printer, Driver=usblp, 12M
Open a terminal window and watch the kernel output with
Code:
dmesg -w
then plug in the USB to parallel port adapter and capture the output generated.

Assuming that checks out as expected, if the printer is then attached (and powered up) it should then be able to be detected via the CUPS parallel backend (run manually)...
Code:
sudo /usr/lib/cups/backend/parallel
Any output?
 
Old 12-05-2017, 04:03 AM   #12
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
dmesg -w scrabble

Heres the output from /usr/...../parallel


Quote:
direct parallel:/dev/lp0 "unknown" "LPT #1" "" ""
As far as the dmesg -w command is concerned, I haven t really got a clue what I am looking at or looking for!
 
Old 12-05-2017, 04:09 AM   #13
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
there is a part mentioning lp
Quote:
lp: driver loaded but no devices found

Last edited by Roo7; 12-05-2017 at 04:09 AM. Reason: typo
 
Old 12-05-2017, 05:31 AM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Your missing packages mostly seem to be for development, so you won't actually need them. But not having libcups2 or cups-client looks suspicious to me.
 
Old 12-05-2017, 05:44 AM   #15
Roo7
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
strangely I actually have cups-client 2.1.3.4 installed and also libcups2 2.1.3.4 because if I try to install using synaptic they are listed as installed!!
 
  


Reply



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
[SOLVED] Converting old HP Laserjet 6L from parallel to USB Tresmai1894 Linux - Hardware 4 02-17-2012 09:26 AM
setting up HP LaserJet 4 printer with cups and no parallel port option? JockVSJock Slackware 15 07-02-2006 02:17 PM
HP LaserJet 2100 Parallel Printer on SUSE 10.0 aherm Linux - Hardware 1 10-20-2005 01:16 PM
Converting a parallel port input to a usb printer via a Linux box as a print server GlamZ Linux - Software 3 10-06-2004 11:26 PM
USB-parallel port printer Devenpillay Linux - Laptop and Netbook 1 09-07-2004 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 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