From: Mircea Ciocan <mirceac@interplus.ro>
To: Linux-kernel@vger.kernel.org
Subject: Issues with parport/parport_pc/lp
Date: Tue, 13 Feb 2001 21:45:34 +0200 [thread overview]
Message-ID: <3A898EDE.8A8ED25F@interplus.ro> (raw)
Hi all,
Yesterday I see a request for help from the cups printing system
mentainer:
http://linuxtoday.com/news_story.php3?ltsn=2001-02-12-009-04-OS-CY-HW
Basicly it ask you to read the options from the PJL enabled printer you
may have by running this small shell script:
#!/bin/sh
echo "Writing PJL options into opts.txt"
echo -en "\033%-12345X@PJL\r\n@PJL INFO VARIABLES\r\n" > /dev/lp0
sleep 1
echo "Press Ctrl+C"
cat < /dev/lp0 > opts.txt
on a machine with CONFIG_PRINTER_READBACK enabled, and send the
renamed, non-empty opts.txt to a more intuitive printer_name.txt to
till.kamppeter@gmx.net. (I strongly advise you all to read the link and
do the deed if you like better printing support with Linux)
I've got a Kyocera FS-800 that is PJL compatible and have 2.4.1ac10
with all the parport and printing stuff compiled as modules, and tryed
running the script.
Now the issue:
The script partially works only first time when is runned, any other
time it just blocks and wait for Ctrl-C.
If I remove ALL the modules involved (lp, parport_pc, parport, in that
order) it works again once and so on.
It is working only partialy because it only reads a fixed amount of
data, no matter what the printer have to say :(.
This amount is on my machine ( dual PIII 950, Winbond SUPER-i/o chip,
ECC+EPP dma 3 and irq7 port) always 483 chars.
By booting in the default Mandrake-7.2 kernel (2.2.17-SMP) the script
has a totaly different behaviour:
It returns different amount of data on each run but is not necessary to
remove and reload the modules and the maximum data amount that I can
read back was 1649 chars.
I want to know if this issue could be solved with 2.4.x kernels and I'm
available for testing eventual patches.
Thank you,
Mircea C.
reply other threads:[~2001-02-13 19:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3A898EDE.8A8ED25F@interplus.ro \
--to=mirceac@interplus.ro \
--cc=Linux-kernel@vger.kernel.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