Gentoo Archives: gentoo-sparc

From: "张韡武" <zhangweiwu@××××××.com>
To: gentoo-sparc@l.g.o
Subject: [gentoo-sparc] [SOLVED] Re: parallel port printer stop working on 2.6 kernel
Date: Mon, 18 Dec 2006 12:11:29
Message-Id: 1166443872.18581.53.camel@joe.realss.com
In Reply to: [gentoo-sparc] parallel port printer stop working on 2.6 kernel by "张韡武"
1 I finally solved this myself. The trick is, for some reason I am not
2 sure of, I have broken device node /dev/lp0 when doing upgrading. The
3 next time I start to print something, cups send the output to /dev/lp0,
4 creating a normal file there, so I didn't notice /dev/lp0 had been
5 missing.
6
7 The solution is to:
8 # rm /dev/lp0
9 # mknod /dev/lp0 c 6 0
10
11 Then the printer start to work.
12
13 在 2006-12-18一的 20:00 +0800,张韡武写道:
14 > I have been struggling with this issue for a long time: using 2.6
15 > kernel, device /dev/lp0 swallow all input to it without error, and
16 > nothing comes out from the printer.
17 >
18 > example:
19 > $ dmesg > /dev/lp0
20 > $ [no output on commandline, no output from printer, nothing happens]
21 >
22 > also cups running on this server shows every job is completed, nothing
23 > comes out in paper form.
24 >
25 > Here is the dmesg section that seems to be related to this issue:
26 >
27 > [ 5.293312] lp: driver loaded but no devices found
28 > [ 5.340515] rtc_init: no PC rtc found
29 > [ 5.380379] /pci@1f,0/pci@1,1/ebus@1/su@14,3083f8: Keyboard port at 1fff13083f8, irq 6
30 > [ 5.472406] /pci@1f,0/pci@1,1/ebus@1/su@14,3062f8: Mouse port at 1fff13062f8, irq 7
31 > [ 5.561939] parport0: PC-style at 0x1fff13043bc (0x1fff13047bc), irq 8, dma 0 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
32 > [ 5.812374] parport0: Printer, Hewlett-Packard hp LaserJet 3015
33 > [ 5.979388] lp0: using parport0 (interrupt-driven).
34 >
35 > from dmesg it seems kernel not only able to detect parallel port, but
36 > also possible to activate ECP mode and detect printer model (which is
37 > correct). I also have activated all kernel configuration options I can
38 > think of. I attached my kernel configuration file as well as whole dmesg
39 > output hoping that can help.
40 >
41 > The machine is Ultrasparc U5. It has been serving as print server for
42 > more then one year, or probably two years.
43 >
44 --
45 锐业软服(国内业务) http://www.realss.cn
46 Real SoftService http://www.realss.com
47 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
48 English)
49 国际业务(International Sales): 0086 10 8460 6011 (German and English)
50 联系:厦门大学科技园,嘉庚二号楼6楼
51 邮政:厦门大学2312号信箱(邮编361005)

Attachments

File name MIME type
signature.asc application/pgp-signature