9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Frederik Caulier <aediks@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] How to add djet500' driver to gs?
Date: Wed, 20 Jan 2010 02:20:22 +0000	[thread overview]
Message-ID: <cd6983821001191820i21f8172hfdf5f28fccce6ff3@mail.gmail.com> (raw)
In-Reply-To: <dd6fe68a1001190714k4828926bh306ecfae6b3d0c5a@mail.gmail.com>

You were right.

I manually removed /sys/src/cmd/gs/src/plan9.mak, re-run 'mk
fake-make' which then created plan9.mak again but with the new djet500
driver included.

After running 'mk install'  the output of the new gs binary now shows
the djet500.

Printing works generally fine, but with the following caveats: (nothing serious)

The first time I run 'lp textfile' the printer will act as if I had
pushed its reset button and the following error will occur:

cat: write error copying /tmp/gsp227: i/o error

(Note that there is another number instead of '227' each time, e.g.
182 or 7021. )

After that, until the next reboot, the printer will work fine using
the 'lp textfile' command.
Though, it will first send out an empty sheet at the beginning of each
printing job; then it starts printing normally.

Here's the line I use in /sys/lib/lp/devices:

hpdeskjet500	- - /dev/lpt1data - gs!djet500+nohead generic nospool - - - -

I also have a 'LPDEST=hpdeskjet500' in my /usr/$user/lib/profile.

Thanks alot for your help, it is very nice to be able to print on my
Plan 9 desktop system!

Best regards,
F. Caulier



      reply	other threads:[~2010-01-20  2:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19  3:30 Frederik Caulier
2010-01-19 15:14 ` Russ Cox
2010-01-20  2:20   ` Frederik Caulier [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=cd6983821001191820i21f8172hfdf5f28fccce6ff3@mail.gmail.com \
    --to=aediks@gmail.com \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).