LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-02-2012, 05:31 AM   #1
Mr Bits
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Rep: Reputation: 0
pci-e parallel port problem


parallel:/dev/usb/lp0

pci-e parallel port problem


I have an old parallel matrix printer that i had connected to my pc by a usb to parallel adaptor because my pc does not have a parallel port. This worked intermitently (as most seem to do) so i bought a pci-e parallel port card.
Pclinuxos seems to detect the card but i cant get the printer to work.
The computer is dual boot with windoze 7 that runs the printer perfectly.

I also tried some old live linux CD`s.

OpenSuse 11 does not detect parallel port.
ubuntu 9.04 works perfectly
ubuntu 10.4 wont print
Pclos detects parallel port but not printer



03:00.0 Parallel controller: Oxford Semiconductor Ltd Device c100 (prog-ECP])
Subsystem: Oxford Semiconductor Ltd Device c100
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at dc00 [size=8]
I/O ports at d880 [size=4]
Capabilities: <access denied>
Kernel driver in use: parport_pc
Kernel modules: parport_pc




Any ideas?

Why dose ubuntu 9 work and ubuntu 10 and other linux does not?

I really don`t want to boot w7 just to print and i dont want a new printer cos i like old dot matrix printers! Mega cheap to run and far more reliable than an ink jet.
 
Old 01-02-2012, 07:00 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Quote:
Kernel driver in use: parport_pc
Run (and post) the o/p of 'lsmod |grep parport_pc' Here's what I see (usb printer attached)
Quote:
parport_pc 21214 0
parport 30087 3 lp,ppdev,parport_pc
Also check your startup logs for what is said about the pcie card when it's found by the kernel.
 
Old 01-02-2012, 07:53 AM   #3
Mr Bits
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Original Poster
Rep: Reputation: 0
j@localhost ~]$ lsmod |grep parport_pc
parport_pc 28023 1
parport 25179 3 lp,ppdev,parport_pc
[j@localhost ~]$
 
Old 01-03-2012, 03:15 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
What's in the logs? (/var/log/messages or syslog)
 
Old 01-03-2012, 05:29 AM   #5
Mr Bits
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Original Poster
Rep: Reputation: 0
syslog is empty
 
Old 01-04-2012, 04:32 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
what happens when you try something like

cat <text-file> > /dev/usb/lp0
 
Old 01-04-2012, 08:41 AM   #7
Mr Bits
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Original Poster
Rep: Reputation: 0
cat t > /dev/usb/lp0
bash: /dev/usb/lp0: Permission denied
 
Old 01-05-2012, 03:30 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
We're at 7 posts here. I'm guessing, and you seem to be making very little effort to solve this.

you may need to be root, you may need to join the lp group, or you may need to do something else.
try
sudo cat <text-file> > /dev/usb/lp0
Join lp group (man usermod)
Search the logd for any mention of /dev/usb/lp0 and let's discuss what the kernel sees.
 
Old 01-05-2012, 12:27 PM   #9
Mr Bits
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for all the advice.
however i have no more time to mess with this problem as i have found that a lot of users are having similar problems on the more recent versions of cups. They seem to bee getting nowhere with their problems as well.
I will boot up w7 when i need to print.
Thanks again!
 
Old 01-07-2012, 08:33 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
After this, I went and recompiled 2.6.37.6. The parallel port came up all over the place. I'll bet you need a kernel recompile.
 
  


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
pci-e parallel port problem Mr Bits Linux - Hardware 1 11-18-2011 03:55 PM
Pci parallel port installation problem in rhel4.4 Rupesh Patel Linux - Hardware 1 01-31-2011 07:44 AM
parallel port PCI card : changing modes slg23 Linux - Hardware 1 06-05-2007 03:32 PM
PCI Parallel Port Card Nerox Linux - Hardware 1 08-25-2004 07:48 AM
Zip Drive Help, PCI parallel port dalton9267 Linux - Hardware 0 03-14-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:58 AM.

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