Re: [PARPORT] Another Newbie

From: Tom Perkins (tomp@trperkins.2y.net)
Date: Mon Dec 24 2001 - 01:25:34 EST

  • Next message: Jim Boedicker: "Re: [PARPORT] Another Newbie"

    I'm not going to be much help now, I'm afraid. I'd start with gs. You
    can pipe the output to a file and then lpr with the raw option. Once gs
    is working it's down to config stuff somewhere to get lpr to call the
    right filters with the rights options to correctly use gs.

    Good luck.

    Regards,
    Tom

    C. J. Martoff wrote:

    > Thanks to Dave Strauss and Tom Perkins for suggestions. I did a "print to
    > file" under windows and then >cat file.prn > /dev/lp0. This produced
    > correct printed output. I then did >lpr -Plp-raw file.prn (lp-raw is the
    > SuSE setup tool's name for a raw print queue) and this too produced
    > printout. So the problem seems to be with the filter/driver.
    >
    > SuSE sets up apsfilter. The SuSE setup under YAST2 offers Lexmark 3200 as
    > a "known" printer but warns that there are some devices sold under this
    > model number that do work and some that don't work with their setup (?? I
    > find this hard to believe). When I do gs --help I also get lex3200 listed
    > as a useable printer. So I'm betting that the SuSE tool is broken and I
    > can get this thing to work.
    >
    > So now I am trying to figure out what their setup tool is doing when it
    > sets up this printer. The only references to lex3200 I find are in
    > /etc/gs.upp/y2prn_lp.yast2 and y2prn_lp.upp. These are given below.
    > According to /var/lib/apsfilter/bin/y2prn_lp.upp--ascii-lp, the file
    > ..upp is parsed for gs options; .yast2 is not mentioned. Does this look at
    > all right? Maybe I need to delve into the gs options?
    >
    > Thanks again.
    >
    >
    > root@linux:/etc/gs.upp > more y2prn_lp.upp
    > -supModel="Lexmark 3200"
    > -sCOLOR=mono
    > -sDEVICE=lex3200
    > -r600x600
    > -sPAPERSIZE=a4dj
    >
    > root@linux:/etc/gs.upp > more y2prn_lp.yast2
    > "apsfilterrc":$["ENCODING":"", "FEATURE":"2"],
    > "connection":$["device":"/dev/lp0", "type":"parallel"],
    > "gs_upp_changed":false,
    > "manufacturer":"Lexmark",
    > "model":"3200",
    > "names":["lp"],
    > "newer_gs_upp":false,
    > "ps2printer":$["options":[$["default":"-sCOLOR=mono\n-sDEVICE=lex3200
    > \n-r600x600 ", "name":"drivers (using macro 'lex3200')",
    > "values":[$["name":"monochrome driv er 'lex3200' at '600x600' dpi",
    > "value":"-sCOLOR=mono\n-sDEVICE=lex3200\n-r600x6
    > 00"]]], $["default":"-sPAPERSIZE=a4dj", "name":"paper size",
    > "values":[$["name":
    > "'a4' for inkjet printers (using 'a4dj' with bigger margins than 'a4')",
    > "value"
    > :"-sPAPERSIZE=a4dj"], $["name":"'a4'", "value":"-sPAPERSIZE=a4"],
    > $["name":"'let
    > ter' for inkjet printers (using 'letterdj' with bigger margins than
    > 'letter')",
    > "value":"-sPAPERSIZE=letterdj"], $["name":"'letter'",
    > "value":"-sPAPERSIZE=lette
    > r"], $["name":"'a5'", "value":"-sPAPERSIZE=a5"], $["name":"'a6'",
    > "value":"-sPAP
    > ERSIZE=a6"], $["name":"'a7'", "value":"-sPAPERSIZE=a7"], $["name":"'a8'",
    > "value
    > ":"-sPAPERSIZE=a8"], $["name":"'a9'", "value":"-sPAPERSIZE=a9"],
    > $["name":"'a10'
    > ", "value":"-sPAPERSIZE=a10"], $["name":"'archA'",
    > "value":"-sPAPERSIZE=archA"],
    > $["name":"'b4'", "value":"-sPAPERSIZE=b4"], $["name":"'b5'",
    > "value":"-sPAPERSI
    > ZE=b5"], $["name":"'flsa'", "value":"-sPAPERSIZE=flsa"],
    > $["name":"'flse'", "val
    > ue":"-sPAPERSIZE=flse"], $["name":"'halfletter'",
    > "value":"-sPAPERSIZE=halfletter"], $["name":"'legal'",
    > "value":"-sPAPERSIZE=legal"], $["name":"'note'", "value
    > ":"-sPAPERSIZE=note"]]]]],
    > "type":"aps_yast2",
    >
    >
    > ..yast2:
    >
    > ENCODING=""
    > FEATURE="2"
    >
    >
    > ============================================================================
    > C. J. Martoff Phone: (215) 204-3180
    > Professor of Physics, Temple University FAX: (215) 204-5652
    > Barton Hall, Temple University
    > 1900 N. 13-th St.
    > Philadelphia, PA 19122-6082
    >
    > Web Site: http://nimbus.temple.edu/~cmartoff
    > email: cmartoff@nimbus.ocis.temple.edu
    >
    > ============================================================================
    >
    >
    >
    > -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    > -- with the single word "unsubscribe" in the body of the message. --
    >
    >
    >

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Mon Dec 24 2001 - 01:27:39 EST