LinuxQuestions.org
Review your favorite Linux distribution.
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-23-2005, 05:15 PM   #1
VorlonInfoTech
Member
 
Registered: Jun 2003
Location: West Grove, PA
Distribution: Gentoo, Debian, SuSE, Mandrake
Posts: 55

Rep: Reputation: 15
Angry Nothing Prints. Problem with /dev/parport0


I'm having trouble getting **anything** to print after building a new AMD64 system with Gentoo Linux. Even low level commands such as

"#cat test.txt > /dev/lp0" causes the LED on my laser printer to blink a little, but nothing prints.

The same command to the parport0 device
"#cat test.txt > /dev/parport0" bombs with
"cat: write error: Invalid argument"


If I do a "ls -la" to the /dev directory, I can see the character device "/dev/parport0". Also, "/dev/lp0" points to "/dev/printers/0".

Running the same commands from SuSE 9.2 works just fine, so I'm sure there are no true hardware problems with my system. I'm logged in as root, so permissions should not be an issue.

I've got every bloody parallel port module loaded that I can find. lsmod shows:
Module Size Used by
ppdev 8200 0
lp 11256 0
parport_pc 29672 1
parport 35852 3 ppdev,lp,parport_pc




dmesg shows the parallel port is up and running (it even recognizes my Samsung laser printer):
parport_pc: Ignoring new-style parameters in presence of obsolete ones
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
parport0: Printer, Samsung ML-1450
lp0: using parport0 (interrupt-driven).
lp0: console ready
lp0: ECP mode
ppdev: user-space parallel port driver
lp0: ECP mode
ppdev0: claim the port first
ppdev0: claim the port first
lp0: ECP mode



If I try to print (from CUPS, the command line, or whatever), the activity LED on my laser printer flashes slowly, but **never** stops, and never prints. (My guess is that nothing actually is getting through the port.)


I'm guessing that somehow the handshaking starts on the parallel port, but no data is actually traversing the port.

I've tried compiling the parallel port drivers into the kernel (2.6.10), or as modules. Neither seems to make much difference.


Anybody have any suggestions for things to try to troubleshoot this problem?
 
Old 01-23-2005, 06:09 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Anybody have any suggestions for things to try to troubleshoot this problem?"

Another possibility is that the print spool may have garbage gunking up the works. Take a look at /var/spool/cups and /var/spool/lpd and see if you are accumulating all of your unsuccessful print attempts on the spool. If so delete all of the files (but not the tmp directory) on the two spools and try again.

-----------------------------
Steve Stites
 
Old 02-09-2005, 10:09 PM   #3
me3
LQ Newbie
 
Registered: Jan 2005
Posts: 28

Rep: Reputation: 15
I've got the same problem. Did you ever solve this problem ?
 
Old 02-20-2005, 01:39 PM   #4
VorlonInfoTech
Member
 
Registered: Jun 2003
Location: West Grove, PA
Distribution: Gentoo, Debian, SuSE, Mandrake
Posts: 55

Original Poster
Rep: Reputation: 15
No. I do suspect a problem with the parport_pc module, however. In my dmesg file there is this funny comment:

"parport_pc: Ignoring new-style parameters in presence of obsolete ones"


One of my attempted fixes was to pass along the "irq=none" parameter on the module line. This parameter appears to have been ignored, and I get this weird, cryptic message.

I saw some traffic on the kernel mailing list that this problem was fixed in 2.6.11. Of course, this may or may not be the source of my problem. <sigh>
 
  


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
accidentally deleted /dev/parport0 ebil Linux - Hardware 5 04-21-2005 07:35 PM
Canon prints SLOWLY, parallel:/dev/unknown-parallel0 netcrawl Linux - Hardware 5 03-26-2005 08:13 PM
Howto accessing parport0 Li... Debian 1 04-10-2004 02:50 PM
/dev/parport0 probs The Yeti Lives Linux - General 0 08-06-2003 02:58 AM
VMware "/dev/parport0" is used by other program alexaltair Linux - Newbie 4 08-04-2003 05:30 PM

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

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