I finally solved this myself. The trick is, for some reason I am not
sure of, I have broken device node /dev/lp0 when doing upgrading. The
next time I start to print something, cups send the output to /dev/lp0,
creating a normal file there, so I didn't notice /dev/lp0 had been
The solution is to:
# rm /dev/lp0
# mknod /dev/lp0 c 6 0
Then the printer start to work.
在 2006-12-18一的 20:00 +0800，张韡武写道：
> I have been struggling with this issue for a long time: using 2.6
> kernel, device /dev/lp0 swallow all input to it without error, and
> nothing comes out from the printer.
> $ dmesg > /dev/lp0
> $ [no output on commandline, no output from printer, nothing happens]
> also cups running on this server shows every job is completed, nothing
> comes out in paper form.
> Here is the dmesg section that seems to be related to this issue:
> [ 5.293312] lp: driver loaded but no devices found
> [ 5.340515] rtc_init: no PC rtc found
> [ 5.380379] /pci@1f,0/pci@1,1/ebus@1/su@14,3083f8: Keyboard port at 1fff13083f8, irq 6
> [ 5.472406] /pci@1f,0/pci@1,1/ebus@1/su@14,3062f8: Mouse port at 1fff13062f8, irq 7
> [ 5.561939] parport0: PC-style at 0x1fff13043bc (0x1fff13047bc), irq 8, dma 0 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
> [ 5.812374] parport0: Printer, Hewlett-Packard hp LaserJet 3015
> [ 5.979388] lp0: using parport0 (interrupt-driven).
> from dmesg it seems kernel not only able to detect parallel port, but
> also possible to activate ECP mode and detect printer model (which is
> correct). I also have activated all kernel configuration options I can
> think of. I attached my kernel configuration file as well as whole dmesg
> output hoping that can help.
> The machine is Ultrasparc U5. It has been serving as print server for
> more then one year, or probably two years.
Real SoftService http://www.realss.com
销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
国际业务(International Sales): 0086 10 8460 6011 (German and English)