Fedora Linux Support Community & Resources Center
  #1  
Old 23rd January 2012, 04:26 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 66
Posts: 28
linuxfirefox
[Solved] Has anyone got a parallel port printer working in F16?

Mine worked fine with F14. It still does if I hook it up to windoze. system-config-printer sometimes sees it and sometimes not. Wondering if the port itself is broken.

TIA

Last edited by cmsps; 29th February 2012 at 04:00 PM. Reason: solved
Reply With Quote
  #2  
Old 23rd January 2012, 07:34 PM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
Re: Has anyone got a parallel port printer working in F16?

yea, that's a bit strange.

I have had better luck if before I switch on my box I have the printer already on.
I have seen where the system-config-printer and the print dialogs can take a few seconds to show all the printers connected.

Do you get any different results with http://localhost:631/
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #3  
Old 23rd January 2012, 07:59 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 66
Posts: 28
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

Thanks. I get the same result, that is no offer of a parallel port printer, with the web interface to CUPS.

I take it you are using F16?

Thanks
Reply With Quote
  #4  
Old 23rd January 2012, 08:14 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,457
linuxfedorafirefox
Re: Has anyone got a parallel port printer working in F16?

Are you sure the parport_pc module is loaded? If not, and if the printer drivers are not installed (e.g. the hpijs package for HP printers) then the printer won't show up in the CUPS web interface. I have an HP Deskjet 5550 attached to the parallel port on my F16 system, and it works fine. I can see it in the CUPS web interface:
Attached Thumbnails
Click image for larger version

Name:	cups-parallel.png
Views:	138
Size:	69.3 KB
ID:	22565  
__________________
OS: Fedora 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #5  
Old 23rd January 2012, 08:18 PM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
Re: Has anyone got a parallel port printer working in F16?

yes on th f16 but a few years back I got on these el-cheap'o print servers and it's been just great, and now my new mb doesn't have a lpt port, not one I have the connector for.

This was a problem a few versions back too, you would have to install paraport or something like that to get the parallel port working.
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #6  
Old 23rd January 2012, 10:48 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 66
Posts: 28
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

@RupertPupkin Thanks for letting me know of your success with F16.

parport_pc is loaded and hpijs etc are installed. FWIW my printer is a Deskjet 720C. F16 detects it but can't drive it.

Last edited by cmsps; 23rd January 2012 at 10:50 PM.
Reply With Quote
  #7  
Old 24th January 2012, 02:10 AM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,457
linuxfedorafirefox
Re: Has anyone got a parallel port printer working in F16?

Quote:
Originally Posted by cmsps View Post
parport_pc is loaded and hpijs etc are installed. FWIW my printer is a Deskjet 720C. F16 detects it but can't drive it.
Make sure the /dev/lp0 device file exists. If not, create it (as root):
Code:
cd /dev
/sbin/MAKEDEV lp0
You should already have the MAKEDEV package installed (if not, install it via yum).
__________________
OS: Fedora 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #8  
Old 25th January 2012, 03:13 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,318
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

I had no problems using parallel port here on F16 with a HP Laserjet 4300 either.
Reply With Quote
  #9  
Old 29th February 2012, 03:58 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 66
Posts: 28
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

This is an obscure bug for at least one old printer! See: http://ask.fedoraproject.org/question/718
Reply With Quote
  #10  
Old 14th March 2013, 02:10 AM
HowardRoark Offline
Registered User
 
Join Date: Mar 2008
Posts: 38
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

Where can I find parport_pc ?

I'm running F17 and having a bear of a time trying to install a parallel port printer (HP Laserjet 4). (Huge boat anchor but an awesome printer.)

My PC, of course, has no parallel port, so I plugged in a PCI parallel port card, but doesn't seem to be recognized. lsmod shows that modules lp and parport are installed, but not parport_pc, which seems to be needed. Where does one find parport_pc??

Edit: OK, I found "parport_pc.ko" on my system ... some research indicates that this is a "kernel object". Can *this* file be loaded with insmod?

(Sorry for the basic questions. Been using Linux exclusively since about 2001 but have never touched the kernel before. Still learning!)
__________________
HowardRoark,
Running Fedora 8, Fedora 12, Fedora 14, and Fedora 17 on various x86 PCs.

Last edited by HowardRoark; 14th March 2013 at 04:34 PM. Reason: added ".ko" part
Reply With Quote
  #11  
Old 14th March 2013, 09:51 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,076
linuxfirefox
Re: Has anyone got a parallel port printer working in F16?

It's part of the kernel, so

Code:
modprobe parport_pc
should do the trick. The modules are usually located in a place like

Code:
/lib/modules/3.6.11-4.fc16.x86_64/kernel/drivers/parport/parport_pc.ko
Even if your new pc doesn't have no parallel port it might still have a connector where you could connect one.

Are you sure your pci card doesn't require any additional drivers?

You might have better luck with some usb to parallel adapter cable.
Reply With Quote
  #12  
Old 14th March 2013, 06:03 PM
HowardRoark Offline
Registered User
 
Join Date: Mar 2008
Posts: 38
linuxfirefox
Smile Re: Has anyone got a parallel port printer working in F16?

Hey George, thanks for your reply! You are correct about the location of the modules ... got it working now. Here's a summary of my experience in the hope that it will benefit someone else:

After installing F17, I couldn't install my beloved, old HP4 parallel port printer with a usb-to-parallel-printer cable. Futzed around with it for a while but couldn't figure it out. (I'm thinking maybe the usb-to-parallel-printer cable failed? Used it before (under F12) with no problems.

So I plugged in a PCI-parallel port card ("SYBA, PCI-Express, 1 Port Parallel Card"). Figured it would "just work" like most of the other hardware devices that I've plugged into my Linux boxes over the years, and tried system-config-printer, but the printer was not detected. And no LPT showed up either.

So I decided to RTFM.

The manual for this parallel card included many different versions of the device. Apparently you need to look at the actual board to see which chip is on the board to find which set of instructions to follow. Mine had a "MosChip MCS9900" chip on board. 99% of those instructions were for a Serial card, but at the very end were the instructions for installing this parallel card:

Quote:
Steps for setting parallel port :
---------------------------------
1. rmmod lp
2. rmmod parport_pc
3. insmod /usr/lib/modules/2.6.15/kernel/drivers/parport/parport_pc io=0xb000 irq=10.

Note: Here, the io and irq should be noted from lspci -v.
Step 1 was no problem.
Step 2 failed because apparently parport_pc was not already installed, which, in retrospect makes sense because the parallel card was not installed in the system when I installed F17. No problem.
Step 3 is where I got confused. Clearly that command wasn't going to work because it was written for some older version of Linux. I searched for "parport_pc" with no luck. But I did find "parport_pc.ko". Some research indicated that this was indeed a kernel module. Some things must have changed since all the other documentation that I had read. George's suggestion above indicated that I was in the right place.

So I did Step 3 with parport_pc.ko, and got no errors.

Tried system-config-printer again and voila! LPT1 showed up! Installed the printer and everything worked perfectly, except nothing would actually print.

Went back to Step 3 and noticed the cryptic note about how the io and irq should be noted from lspci -v. So I did that, and it showed

Quote:
02:00.0 Parallel controller: NetMos Technology Device 9900 (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, fast devsel, latency 0, IRQ 255
I/O ports at 9c00 [size=8]
I/O ports at 9800 [size=8]
Memory at fdaff000 (32-bit, non-prefetchable) [size=4K]
Memory at fdafe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [800] Advanced Error Reporting
So I repeated Step 2 and then re-did Step 3 with matching parameters like this:

Code:
insmod parport_pc.ko io=0x9c00,0x9800 irq=255
ran system-config-printer again and BIG JOY ... the actual MODEL NUMBER of my printer shows up. Completed the install process and everything works perfectly.

Moral of the story #1: RTFM
Moral of the story #2: Follow the actual instructions in TFM
Moral of the story #3: In the old days, the parallel port was at 0x0378 or something like that, and the IRQ was "7". So I expected to see those numbers somewhere in the instructions. Didn't. This was perplexing and slowed me down a bit. These days, PC hardware is completely different from what it used to be, so forget everything you remember from 30 or 20 or even 10 years ago.

[EDIT#1]
Oops, gotta make that persistent:
# cd /etc/sysconfig/modules/
# cp bluezwhatever.modules MyParallelPort.modules (copied an existing script to modify it.)
edited it to add the command to load the driver:
exec modprobe parport_pc.ko io=0x9c00,0x9800 irq=255
# cp the parport_pc.ko file into this directory so the script can find it when it runs. (not sure if this is necessary)
# chmod +x MyParallelPort.modules (make it executable)

Now I'll reboot and see if it sticks...[EDIT#2] Yes!
__________________
HowardRoark,
Running Fedora 8, Fedora 12, Fedora 14, and Fedora 17 on various x86 PCs.

Last edited by HowardRoark; 15th March 2013 at 01:18 AM. Reason: add persistence
Reply With Quote
Reply

Tags
f16, parallel, port, printer, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F15 parallel port printer? robin108 Hardware & Laptops 2 31st May 2011 12:19 AM
Parallel port printer - Newbie question John Aldred Hardware & Laptops 2 19th November 2010 11:43 PM
Interfacing Printer Parallel Port vze4p6c2 Using Fedora 1 29th August 2007 06:42 AM
Parallel port printer stopped working drramble Hardware & Laptops 1 7th December 2005 11:26 AM


Current GMT-time: 13:13 (Friday, 18-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat