Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
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?
"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.
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>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.