public inbox for gentoo-sparc@lists.gentoo.org
 help / color / mirror / Atom feed
From: 张韡武 <zhangweiwu@realss.com>
To: gentoo-sparc@lists.gentoo.org
Subject: [gentoo-sparc] [SOLVED] Re: parallel port printer stop working on 2.6 kernel
Date: Mon, 18 Dec 2006 20:11:12 +0800	[thread overview]
Message-ID: <1166443872.18581.53.camel@joe.realss.com> (raw)
In-Reply-To: <1166443216.18581.48.camel@joe.realss.com>

[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]

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
missing.

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.
> 
> example:
> $ 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.
> 
-- 
锐业软服(国内业务)  http://www.realss.cn
Real SoftService      http://www.realss.com
销售咨询(Sales Department):    0086 592 20 99987 (Chinese, German,
English)
国际业务(International Sales): 0086 10 8460 6011 (German and English)
联系:厦门大学科技园,嘉庚二号楼6楼
邮政:厦门大学2312号信箱(邮编361005)

[-- Attachment #2: 这是信件的数字签名部分 --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-12-18 12:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-18 12:00 [gentoo-sparc] parallel port printer stop working on 2.6 kernel 张韡武
2006-12-18 12:11 ` 张韡武 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166443872.18581.53.camel@joe.realss.com \
    --to=zhangweiwu@realss.com \
    --cc=gentoo-sparc@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox