Linux-Hardware Digest #123, Volume #13 Tue, 27 Jun 00 02:13:05 EDT
Contents:
Re: Ensoniq AudioPCI queuing sounds (Dances With Crows)
Re: LS120 Question ("Gene Heskett")
Re: Linux, Quake2 and a PS/2 Mouse (David Efflandt)
Re: ATI Xpert 2000 (Alex)
Re: Troubles setting up a Compaq Presario 1600 (Jesse F. Hughes)
Infra-red, coin operated, touch screen ("Michael J. Leaver")
Using Linux with an ATA66 controller ([EMAIL PROTECTED])
Re: PDQ drivers for lexmark Optra 40 (Grant Taylor)
Re: Using Linux with an ATA66 controller (Hal Burgiss)
How to manually mark hd sectors as bad? ("paket")
SCSI Module Help (Nick)
Re: Microstar versus asus k7v ("Jr")
Re: Modems (Joe Pfeiffer)
Re: HP, Linux, and tape drives :-( (Alan Mackenzie)
Video card lag ("Dragonia Radar Freedom, C.S.")
Re: PDQ drivers for lexmark Optra 40 (soumyadip ghosh)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Ensoniq AudioPCI queuing sounds
Date: 26 Jun 2000 23:14:06 EDT
Reply-To: [EMAIL PROTECTED]
On Mon, 26 Jun 2000 20:59:42 GMT, sysop
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>gLaNDix wrote:
>> for instance:
>> 1.) play an mp3
>> 2.) open up a term and do 'play <soundfile>'
>> the 'play <soundfile>' command just sits there waiting until i stop
>> the mp3, then it finally plays... this is not the desired effect...
>> i would like it to return something like "device is in use"
>
>btw. i've got a 1371 and the same problem. probably the same driver, or
The ES1371 has two output channels, dsp0 and dsp1 AFAICT, but for some
reason only dsp0 gets used unless you explicitly configure one (or
more) sound-emitting programs to use the other one. DOn't know for sure
what's up with that.
The Enlightenment sound daemon (esd) can mix several audio sources in
software, allowing you to stack sounds. Many programs including xmms can
make use of esd--have you tried that?
--
Matt G / Dances With Crows /\ "Man could not stare too long at the face
\----[this space for rent]-----/ \ of the Computer or her children and still
\There is no Darkness in Eternity \ remain as Man." --David Zindell "So did
But only Light too dim for us to see\ they become Gods, or Usenetters?" --/me
------------------------------
Date: 26 Jun 2000 23:14:32 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: LS120 Question
Unrot13 this;
Reply to: <[EMAIL PROTECTED]>
Gene Heskett sends Greetings to Matthew Mundy;
MM> Hi all.
MM> I recently upgraded to RH 6.2. My LS-120 is no longer reading
MM> superdisks, though it reads 1.44 Meg floppies fine. When I try
MM> to mount a superdisk, I get the following message - hdd: The
MM> drive reports both 737280 and 0 bytes as its capacity hdd: The
MM> drive reports both 737280 and 0 bytes as its capacity mount:
MM> /dev/hdd: can't read superblock Any ideas?
MM> Thanks,
MM> Matt
Did you include the '-t vfat' as part of the mount command? Mine works
just fine, but you have to tell it what filesystem is on the disk.
ISTR you also have to have one of the IDE-floppy options turned on when
you compile the kernel.
Cheers, Gene
--
Gene Heskett, CET, UHK |Amiga A2k Zeus040, Linux @ 400mhz
email gene underscore heskett at iolinc dot net
ISP's please take note: My spam control policy is explicit!
#Any Class C address# involved in spamming me is added to my killfile
never to be seen again. Message will be summarily deleted without dl.
This messages reply content, but not any previously quoted material, is
� 2000 by Gene Heskett, all rights reserved.
--
------------------------------
From: [EMAIL PROTECTED] (David Efflandt)
Crossposted-To: comp.os.linux.misc
Subject: Re: Linux, Quake2 and a PS/2 Mouse
Date: 27 Jun 2000 03:38:19 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 26 Jun 2000 13:43:04 +0100, Ross Goodley <[EMAIL PROTECTED]> wrote:
>I have a similar prob with Q2 and mice with my 3DFx Card, run with svgalib,
>or under X... mouse works fine. Run with mesa or glide... no mouse.. zip
>nada.... any ideas anyone?
Did you try 'killall gpm' first? I haven't run q2 since RH 5.2 (that
drive is not in my computer at the moment), but a PS2 mouse worked fine
with a 3dfx Monster 3D. I used my Glidepad for aiming.
--
David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
From: Alex <[EMAIL PROTECTED]>
Subject: Re: ATI Xpert 2000
Date: Mon, 26 Jun 2000 23:50:05 -0400
Jack Neveau wrote:
>
> I tried installing a Rage Fury Pro (Rage-128 PL) chipset with
> the same
> problem. Some
> sights say that X version 3.3.6 supports the card....others say
> that ATI is
> not supported
I just went to the XFree web site...
Supported ATI card include Rage 128. However, I think Pro is different.
I might be wrong.
http://www.xfree86.org/3.3.6/README3.html#3
However, check the following web site if you haven't done so. They
provide detial information. I did not have much trouble following the
instructions and configuring the card. Beginner's luck?
http://www4.ncsu.edu/~distclai/2daccel.html
http://www4.ncsu.edu/~distclai/rage128-howto.html
DO NOT CROSS POST!
> > I just bought an ATI Xpert 2000 (AGP) card to replace the
> > card I'm
> > currently using. I've tried to install it on my machine, and
> > though it
> > seemed to work fine in VGA mode, when I tried to configure X,
> > Xconfigurator, after testing X, tells me there's an error in
> > my
> > configuration. Xconfigurator can never seem to find how much
> > memory the
> > card has (though it finds the card type when I run it), and so
> > I've
> > tried setting it to 8, 16 and 32 MB, neither of which work.
> > I've also
> > tried various resolution settings, though I don't think this
> > has much to
> > do with anything.
> > I do have the Mach64 driver installed.
Why do you need Mech 64? ATI Xpert 2000 (AGP) use 128 chip set.
Good luck.
Alex.
============================================
The Search for Extraterrestrial Intelligence
http://www.seti.org/
Registered with the Linux Counter. ID# 175126
http://counter.li.org/index.html
------------------------------
Subject: Re: Troubles setting up a Compaq Presario 1600
From: [EMAIL PROTECTED] (Jesse F. Hughes)
Date: Tue, 27 Jun 2000 03:53:45 GMT
Sorry to follow up to my own post, but the sound is now working. I
didn't learn anything. What wasn't working before is working now.
In case anyone else has this card and wants the modprobe line, here's
what worked for me.
/sbin/modprobe sb io=0x220 irq=5 dma=1 mpu_io=0x330
--
Jesse Hughes
"You see 300 of something, anything, and you go `[Man], that's a lot of
stuff.'" -- Jim Bigler, quoted in the Pittsburgh Post-Gazette.
------------------------------
From: "Michael J. Leaver" <[EMAIL PROTECTED]>
Subject: Infra-red, coin operated, touch screen
Date: Tue, 27 Jun 2000 12:02:54 +0800
Reply-To: "Michael J. Leaver" <[EMAIL PROTECTED]>
Hi, simple question: does anyone know of a Linux based box with a
touch-screen,
infra-red, and is coin operated? I can find information on touch screens and
infra-red
no problem, but I cannot find anything on attaching a coin device (I guess
they are
separate units that connect to a serial port?). Thanks for any help.
------------------------------
From: [EMAIL PROTECTED]
Subject: Using Linux with an ATA66 controller
Date: Tue, 27 Jun 2000 03:55:56 GMT
I have tried using Winlinux 2000, PhatLinux, and
Armed Linux. None of them work with my ATA66
controller.
How do I get it to work?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Grant Taylor <[EMAIL PROTECTED]>
Subject: Re: PDQ drivers for lexmark Optra 40
Date: Tue, 27 Jun 2000 04:13:12 GMT
Andrey Vlasov <[EMAIL PROTECTED]> writes:
> soumyadip ghosh wrote:
>> I need the driver and interface files for running pdq to use the
>> optra 40 printer. I quess I could write one as the HowTo instructs,
>> but I figure in the spirit of Linux, I shouldn't wirte anything
>> that may already have been perfected elsewhere by someone else!
> driver for your printer is here and it works perfectly
> http://www.picante.com/~gtaylor/pht/show_printer.cgi?recnum=60800
This is not entirely true; I've been mucking about with my website, so
thew few hand-tooled PDQ drivers I have are in fact not available
right now.
Soon, my database will be able to automagically generate such drivers
for all printers, so I think it's worth it to be broken for a little
while ;)
In the meantime, here's my optra 40 driver:
driver lexmark-optra40-0.9 {
help "This driver converts all files, including text, to
PostScript. It includes options specific to Lexmark
Optra PostScript printers."
option {
var = "PAPERTRAY"
desc = "Paper Source"
default_choice "TRAY1"
choice "TRAY1" {
value = "TRAY1"
desc = "Automatic Feeder"
}
choice "MANUAL" {
value = "MANUALPAPER"
desc = "Manual Feed"
}
}
option {
var = "PRINT_QUALITY"
desc = "Print Quality Options"
default_choice "NORMAL"
choice "QUICKPRINT" {
value = "QUICKPRINT"
desc = "Quick Print"
help = "Speedy draft mode"
}
choice "NORMAL" {
value = "NORMAL"
desc = "Normal Quality"
help = "Normal 600dpi output"
}
choice "PRESENTATION" {
value = "PRESENTATION"
desc = "Presentation"
help = "Presentation 600dpi output"
}
choice "1200IMAGEQ" {
value = "1200IMAGEQ"
desc = "1200 Image Quality"
help = "Pseudo-1200dpi interlaced printing"
}
}
option {
var = "NUP"
desc = "Multipage Printing"
choice = "OFF" {
value = "OFF"
desc = "Off"
help = "Normal one page per page printing"
}
choice = "2UP" {
value = "2UP"
desc = "Two"
help = "Two pages per page"
}
choice = "3UP" {
value = "3UP"
desc = "Three"
help = "Three pages per page"
}
choice = "4UP" {
value = "4UP"
desc = "Four"
help = "Four pages per page"
}
choice = "6UP" {
value = "6UP"
desc = "Six"
help = "Six pages per page"
}
choice = "9UP" {
value = "9UP"
desc = "Nine"
help = "Nine pages per page"
}
choice = "12UP" {
value = "12UP"
desc = "Twelve"
help = "Twelve pages per page"
}
choice = "16UP" {
value = "16UP"
desc = "Sixteen"
help = "Sixteen pages per page (teeny!)"
}
}
option {
var = "COLOR_CORRECTION"
desc = "Color Correction"
choice "COLORNORMAL" {
value = "NORMAL"
desc = "Normal"
help = "No color correction"
}
choice "VIVID" {
value = "VIVID"
desc = "Vivid"
help = "Vivid correction is a good setting for most paper"
}
choice "DISPLAY" {
value = "VIVID"
desc = "Display"
help = "Display correction is a little off on non glossy papers"
}
}
option {
var = "MEDIA_TYPE"
desc = "Paper Type"
choice "PLAIN" {
value = "PLAIN"
desc = "Plain"
help = "Use for regular nonthick uncoated nonglossy papers"
}
choice "COATED" {
value = "COATED"
desc = "Coated"
help = "Use for coated but nonglossy ink jet paper"
}
choice "GLOSSY" {
value = "GLOSSY"
desc = "Glossy"
help = "Use for glossy coated (but not thick, photolike) paper"
}
choice "PHOTO" {
value = "PHOTO"
desc = "Photo"
help = "Use for thick glossy photo paper"
}
choice "TRANSPARENCY" {
value = "TRANSPARENCY"
desc = "Transparency"
help = "Use for plastic viewgraph sheets"
}
}
language_driver ps {
filetype_regx = "postscript"
}
language_driver text {
convert_exec {#!/bin/sh
if [ "$PAPER_SIZE" = "legal" ]; then
PAGE_HEIGHT="14"
LINES_PER_PAGE="85"
elif [ "$PAPER_SIZE" = "A4" ]; then
PAGE_HEIGHT="11.7"
LINES_PER_PAGE="70"
else
PAGE_HEIGHT="11"
LINES_PER_PAGE="66"
fi
echo "%!PS" > $OUTPUT;
echo "/page_height {$PAGE_HEIGHT} def" >> $OUTPUT;
echo "/lpp {$LINES_PER_PAGE} def" >> $OUTPUT;
echo "/Courier findfont 12 scalefont setfont " >> $OUTPUT;
echo "/inch {72 mul} def" >> $OUTPUT;
echo "/dy page_height .5 sub lpp .5 add div inch def " >> $OUTPUT;
echo "/l_marg .4 inch def" >> $OUTPUT;
echo "/t_marg page_height .25 sub inch dy sub def " >> $OUTPUT;
echo "/newp { l_marg t_marg moveto /lc 0 def } def" >> $OUTPUT;
echo "/ceop { lc 66 ge { showpage newp } if /lc lc 1 add def } def" >> $OUTPUT;
echo "/crlf { currentpoint exch pop dy sub l_marg exch moveto } def" >>
$OUTPUT;
echo "newp " >> $OUTPUT;
echo "%%EndProlog" >> $OUTPUT;
expand $INPUT |
tr -s '[\001-\011][\016-\037]' '@' |
sed -e 's/\\/\\\\/g' -e 's/[()]/\\&/g' \
-e 's/^/ceop (/' -e 's/$/) show crlf/' >> $OUTPUT
echo "%%Trailer" >> $OUTPUT
echo "showpage" >> $OUTPUT
}
}
filter_exec {
# requires echo with escape code ability...
echo -ne '\33%-12345X' > $OUTPUT
echo "@PJL SET MEDIATYPE=$MEDIA_TYPE" >> $OUTPUT
echo "@PJL SET LCOLORCORRECTION=$COLOR_CORRECTION" >> $OUTPUT
echo "@PJL SET LPRINTQUALITY=$PRINT_QUALITY" >> $OUTPUT
echo "@PJL SET LMULTIPAGEPRINT=$NUP" >> $OUTPUT
echo "@PJL SET LPAPERSOURCE=$PAPERTRAY" >> $OUTPUT
# last but not least
cat $INPUT >> $OUTPUT
echo -ne '\33%-12345X' >> $OUTPUT
}
}
--
Grant Taylor - gtaylor@picante<dot>com - http://www.picante.com/~gtaylor/
Linux Printing HOWTO and Website: http://www.linuxprinting.org/
I offer consulting in most things Unix/Linux/*BSD/Perl/C/C++
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Subject: Re: Using Linux with an ATA66 controller
Reply-To: [EMAIL PROTECTED]
Date: Tue, 27 Jun 2000 04:21:00 GMT
On Tue, 27 Jun 2000 03:55:56 GMT, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>I have tried using Winlinux 2000, PhatLinux, and
>Armed Linux. None of them work with my ATA66
>controller.
>
>How do I get it to work?
You need a patched kernel. Maybe SuSE or Mandrake, or patch it yourself.
See www.linux-ide.org.
--
Hal B
[EMAIL PROTECTED]
--
------------------------------
From: "paket" <[EMAIL PROTECTED]>
Crossposted-To: comp.ibm.pc.hardware,comp.sys.ibm.pc.hardware.storage
Subject: How to manually mark hd sectors as bad?
Date: Tue, 27 Jun 2000 04:52:02 GMT
I have an old IDE hard drive that I am trying to use. The drive works,
except when it tries to access certain sectors the drive emits a 'ticking'
sound - I am assuming that the heads are flying around. The problem is that
these sectors will survive a format. Is there any way to track down which
sectors they are, and manually mark them as bad?
thanks
allen unrau
------------------------------
From: Nick <buronf*nospam*@clarkson.edu>
Crossposted-To: comp.os.linux.setup
Subject: SCSI Module Help
Date: Tue, 27 Jun 2000 05:03:40 GMT
I am trying to setup RedHat 6.2 on a system, 486DX4-100, 24MB memory.. I
have a 3com NIC, a symbios IDE/FDC Card, a Cirrus Logic VGA Card and an
Adaptec AVA-1505 SCSI card.
I am trying to do a network install and when I try to add the module for
the scsi card (aha152x) It doesn't work. However when I try to specify
the module parameters. aha152x=0x340,11,7,1,1. I get a kernel panic that
says interrupt handlers - not syncing. I have tried all the IRQ's on the
card (it's jumpered) 09,10,11,12. And none seem to make any difference.
RHat says the card is supported. Maybe there is something I am missing.
Thanks very much for your help.
--Nick
------------------------------
From: "Jr" <[EMAIL PROTECTED]>
Crossposted-To: alt.comp.hardware,alt.comp.hardware.homebuilt
Subject: Re: Microstar versus asus k7v
Date: Tue, 27 Jun 2000 00:37:52 -0500
Got a 700 T-bird with Microstar K7-Pro, installed and running perfectly, no
problems. One of the 3 DIMM's is even a 10ns, the other 2 are 8ns. The
board was $115 from TC Computer. Found them on price watch, very pleased
with service and delivery.
"Mark Faine" <[EMAIL PROTECTED]> wrote in message
news:8j861n$gg8$[EMAIL PROTECTED]...
> I have a 700Mhz Athlon and I'm looking for a mobo, I have a price on a
> Microstar for $130.00 and the K7V for $165.00. I know the k7v is supposed
> to be better but I'd like to get some suggestions and 2nd opinions. Also
> compatiblitty questions, I'll be running windows 2k and linux mandrake 7.1
?
>
> -Mark
>
>
------------------------------
From: Joe Pfeiffer <[EMAIL PROTECTED]>
Subject: Re: Modems
Date: 26 Jun 2000 23:29:32 -0600
"Andrew Bates" <[EMAIL PROTECTED]> writes:
> I have had a request to set up linux for someone. They right now do not have
> a 56K modem but wiah to add one. The only catch is they need a PCI modem.
> Which modem would you suggest for the easiest install
>
The 3Com 2976/2977 is a PCI hardware modem, and works great in my
system (the 2976 is a voice modem, the 2977 is without voice. I have
a 2977).
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
VL 2000 Homepage: http://www.cs.orst.edu/~burnett/vl2000/
------------------------------
From: Alan Mackenzie<[EMAIL PROTECTED]>
Subject: Re: HP, Linux, and tape drives :-(
Date: Mon, 26 Jun 2000 17:41:34 +0000
Andrew E. Schulman <[EMAIL PROTECTED]> wrote on Sun, 25 Jun 2000
16:30:09 -0400:
> You don't say whether you're looking for IDE or SCSI. I don't know
> about IDE drives or HP drives in particular, but if you're looking for
> a SCSI drive, as long as you have a working SCSI controller, any drive
> should work. I have a SCSI Seagate Travan NS-20 and it works well.
I was looking at IDE stuff. I've got a spare IDE channel (currently I've
two hard drives and a CD-Rom on the 2 IDE ports), and I really can't see
that I need the speed advantages of SCSI. (Any _compatibility_ advantages
are a different matter, of course :-).
--
Alan Mackenzie (Munich, Germany)
Email: [EMAIL PROTECTED]; to decode, wherever there is a repeated letter
(like "aa"), remove one of them (leaving, say, "a").
------------------------------
From: "Dragonia Radar Freedom, C.S." <[EMAIL PROTECTED]>
Subject: Video card lag
Date: Mon, 26 Jun 2000 22:58:52 -0700
I've got Linux Mandrake 7.1. My video card is an Asus v3800 TNT2 Deluxe
with 32 meg RAM. I've tried both the Riva TNT2 and nVidia TNT2 drivers
and both present me with the same problem.
My video card is snail-slow when doing anything complex like openGL.
The Aqarium screen saver within Gnome goes at around 4 frames a second.
Since I have a K6-3 450 and 256 megs SDRAM, that really shouldn't be the
case.
If anyone can offer any suggestions on improving my video card speed, I
would greatly appreciate it.
------------------------------
From: soumyadip ghosh <[EMAIL PROTECTED]>
Subject: Re: PDQ drivers for lexmark Optra 40
Date: Tue, 27 Jun 2000 02:13:59 -0400
thanks a load, Grant! Just the guy I wanted the driver from (I had started using PDQ
with
the driver I got from your site). Also thought I should let you know that EDO simms
do
work (U had said that u weren't sure about them), but I had a curious problem: the
printer
recognised both a 16mb and a 32mb module as 16mb only...still, pretty happy with the
printer right now.
soumyadip
Grant Taylor wrote:
> Andrey Vlasov <[EMAIL PROTECTED]> writes:
>
> > soumyadip ghosh wrote:
> >> I need the driver and interface files for running pdq to use the
> >> optra 40 printer. I quess I could write one as the HowTo instructs,
> >> but I figure in the spirit of Linux, I shouldn't wirte anything
> >> that may already have been perfected elsewhere by someone else!
>
> > driver for your printer is here and it works perfectly
> > http://www.picante.com/~gtaylor/pht/show_printer.cgi?recnum=60800
>
> This is not entirely true; I've been mucking about with my website, so
> thew few hand-tooled PDQ drivers I have are in fact not available
> right now.
>
> Soon, my database will be able to automagically generate such drivers
> for all printers, so I think it's worth it to be broken for a little
> while ;)
>
> In the meantime, here's my optra 40 driver:
>
> driver lexmark-optra40-0.9 {
>
> help "This driver converts all files, including text, to
> PostScript. It includes options specific to Lexmark
> Optra PostScript printers."
>
> option {
> var = "PAPERTRAY"
> desc = "Paper Source"
> default_choice "TRAY1"
> choice "TRAY1" {
> value = "TRAY1"
> desc = "Automatic Feeder"
> }
> choice "MANUAL" {
> value = "MANUALPAPER"
> desc = "Manual Feed"
> }
> }
>
> option {
> var = "PRINT_QUALITY"
> desc = "Print Quality Options"
> default_choice "NORMAL"
> choice "QUICKPRINT" {
> value = "QUICKPRINT"
> desc = "Quick Print"
> help = "Speedy draft mode"
> }
> choice "NORMAL" {
> value = "NORMAL"
> desc = "Normal Quality"
> help = "Normal 600dpi output"
> }
> choice "PRESENTATION" {
> value = "PRESENTATION"
> desc = "Presentation"
> help = "Presentation 600dpi output"
> }
> choice "1200IMAGEQ" {
> value = "1200IMAGEQ"
> desc = "1200 Image Quality"
> help = "Pseudo-1200dpi interlaced printing"
> }
> }
>
> option {
> var = "NUP"
> desc = "Multipage Printing"
> choice = "OFF" {
> value = "OFF"
> desc = "Off"
> help = "Normal one page per page printing"
> }
> choice = "2UP" {
> value = "2UP"
> desc = "Two"
> help = "Two pages per page"
> }
> choice = "3UP" {
> value = "3UP"
> desc = "Three"
> help = "Three pages per page"
> }
> choice = "4UP" {
> value = "4UP"
> desc = "Four"
> help = "Four pages per page"
> }
> choice = "6UP" {
> value = "6UP"
> desc = "Six"
> help = "Six pages per page"
> }
> choice = "9UP" {
> value = "9UP"
> desc = "Nine"
> help = "Nine pages per page"
> }
> choice = "12UP" {
> value = "12UP"
> desc = "Twelve"
> help = "Twelve pages per page"
> }
> choice = "16UP" {
> value = "16UP"
> desc = "Sixteen"
> help = "Sixteen pages per page (teeny!)"
> }
> }
>
>
> option {
> var = "COLOR_CORRECTION"
> desc = "Color Correction"
>
> choice "COLORNORMAL" {
> value = "NORMAL"
> desc = "Normal"
> help = "No color correction"
> }
> choice "VIVID" {
> value = "VIVID"
> desc = "Vivid"
> help = "Vivid correction is a good setting for most paper"
> }
> choice "DISPLAY" {
> value = "VIVID"
> desc = "Display"
> help = "Display correction is a little off on non glossy papers"
> }
> }
>
> option {
> var = "MEDIA_TYPE"
> desc = "Paper Type"
> choice "PLAIN" {
> value = "PLAIN"
> desc = "Plain"
> help = "Use for regular nonthick uncoated nonglossy papers"
> }
> choice "COATED" {
> value = "COATED"
> desc = "Coated"
> help = "Use for coated but nonglossy ink jet paper"
> }
> choice "GLOSSY" {
> value = "GLOSSY"
> desc = "Glossy"
> help = "Use for glossy coated (but not thick, photolike) paper"
> }
> choice "PHOTO" {
> value = "PHOTO"
> desc = "Photo"
> help = "Use for thick glossy photo paper"
> }
> choice "TRANSPARENCY" {
> value = "TRANSPARENCY"
> desc = "Transparency"
> help = "Use for plastic viewgraph sheets"
> }
> }
>
> language_driver ps {
> filetype_regx = "postscript"
> }
>
> language_driver text {
> convert_exec {#!/bin/sh
>
> if [ "$PAPER_SIZE" = "legal" ]; then
> PAGE_HEIGHT="14"
> LINES_PER_PAGE="85"
> elif [ "$PAPER_SIZE" = "A4" ]; then
> PAGE_HEIGHT="11.7"
> LINES_PER_PAGE="70"
> else
> PAGE_HEIGHT="11"
> LINES_PER_PAGE="66"
> fi
>
> echo "%!PS" > $OUTPUT;
> echo "/page_height {$PAGE_HEIGHT} def" >> $OUTPUT;
> echo "/lpp {$LINES_PER_PAGE} def" >> $OUTPUT;
> echo "/Courier findfont 12 scalefont setfont " >> $OUTPUT;
> echo "/inch {72 mul} def" >> $OUTPUT;
> echo "/dy page_height .5 sub lpp .5 add div inch def " >> $OUTPUT;
> echo "/l_marg .4 inch def" >> $OUTPUT;
> echo "/t_marg page_height .25 sub inch dy sub def " >> $OUTPUT;
> echo "/newp { l_marg t_marg moveto /lc 0 def } def" >> $OUTPUT;
> echo "/ceop { lc 66 ge { showpage newp } if /lc lc 1 add def } def" >>
>$OUTPUT;
> echo "/crlf { currentpoint exch pop dy sub l_marg exch moveto } def" >>
>$OUTPUT;
> echo "newp " >> $OUTPUT;
> echo "%%EndProlog" >> $OUTPUT;
>
> expand $INPUT |
> tr -s '[\001-\011][\016-\037]' '@' |
> sed -e 's/\\/\\\\/g' -e 's/[()]/\\&/g' \
> -e 's/^/ceop (/' -e 's/$/) show crlf/' >> $OUTPUT
>
> echo "%%Trailer" >> $OUTPUT
> echo "showpage" >> $OUTPUT
> }
> }
>
> filter_exec {
>
> # requires echo with escape code ability...
> echo -ne '\33%-12345X' > $OUTPUT
> echo "@PJL SET MEDIATYPE=$MEDIA_TYPE" >> $OUTPUT
> echo "@PJL SET LCOLORCORRECTION=$COLOR_CORRECTION" >> $OUTPUT
> echo "@PJL SET LPRINTQUALITY=$PRINT_QUALITY" >> $OUTPUT
> echo "@PJL SET LMULTIPAGEPRINT=$NUP" >> $OUTPUT
> echo "@PJL SET LPAPERSOURCE=$PAPERTRAY" >> $OUTPUT
>
> # last but not least
> cat $INPUT >> $OUTPUT
>
> echo -ne '\33%-12345X' >> $OUTPUT
>
> }
>
> }
>
> --
> Grant Taylor - gtaylor@picante<dot>com - http://www.picante.com/~gtaylor/
> Linux Printing HOWTO and Website: http://www.linuxprinting.org/
> I offer consulting in most things Unix/Linux/*BSD/Perl/C/C++
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.hardware) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Hardware Digest
******************************