AIX

 View Only
  • 1.  Printing problem!

    Posted Tue January 17, 2006 11:45 AM

    Originally posted by: SystemAdmin


    Hi,
    I set-up a printer (HP4050) with smitty in aix 5.2.0, but when I am trying to print a document, it prints only 128 columns instead of 132 columns, which is the real setting for this printer. Can somebody tell me what should I do?
    Tks!


  • 2.  Re: Printing problem!

    Posted Mon January 30, 2006 11:10 AM

    Originally posted by: SystemAdmin


    You didn't say what flags that you were printing with. I used the hp-4000 printer to do a quick test printing to a file. (This eliminates any settings on the printer). In default mode, this printed 80 characters, while in landscape (lptest 132 1 | qprt -z+ -Php4000) this printed 116 characters. If I added the -w132 flag to this, then the virtual printer sent 132 characters to the file in the line. The output to the printer (file) actually looks like this:
    ^[%-12345X@PJL SET RESOLUTION = 300
    @PJL ENTER LANGUAGE = PCL
    ^[E^[(s10H^[(8U^[(s0S^[(s0B^[(s4099T^[&l0S^[&l1O^[&k0G^[&l1H^[&l2A^[&l8.00C^[(8U
    132 character line^M
    • So the ci attribute (command to initizlize sends)
    EscE - printer reset
    Esc(s10H - 10 characters per inch (You can change with qprt -p12 for example)
    Esc(8U - character set
    Esc(s0S - don't italisize
    Esc(s0B - Don't make bold
    Esc(s4099T - Courier
    Esc&l0S - Single sided??
    Esc&l1O - Landscape
    Esc&k0G - Don't have printer add cr to lf
    Esc&l1H - I forgot
    Esc&l2A - Paper
    Esc&l8.0C - 8 characters per inch

    This resets the printer after.
    ^[E^[(s10H^[&l0O^[&l0S^[&k0G^[&l6D^[%-12345X

    I like to set ct=&k2G using lsvirprt. Then the printer will add cr to lf if needed, and I can then print text in passthrough and the printer will do all the work instead of the virtual printer. qprt -dp -Php4050.

    By default, the virtual printer adds cr to lf based on the width, pitch, and paper size.


  • 3.  Re: Printing problem!

    Posted Fri February 03, 2006 03:37 PM

    Originally posted by: SystemAdmin


    Ok, I have to admit that you really lost me with all these details, I don't have so much experience in this field. I will try to state my problem in a different way. I have in AIX two print queues (one was in the system when I took over, and the other I created myself. In the AIX SMIT settings, the printer type and hostname is the same for both of them, all other settings are the same, but when I am trying to print (I am using the command "lp-d<print_queue> <file_name>"), new print queue is printing only 128 columns, instead of 132 (which is the setting at "COLUMNS per page" in SMIT), and the old print queue is printing correctly 132 columns. I noticed that the space between characters is different for these two print queues. I am using the same font (courier 12), the same page orientation, the same paper size, I verified and all the settings are the same. But when I print the same file with the print queue I added, the space between characters is larger than with the queue already existing in the system. Could be a different version for courier font on AIX machine?


  • 4.  Re: Printing problem!

    Posted Wed February 08, 2006 02:32 PM

    Originally posted by: SystemAdmin


    No, it will not be a different courier font on AIX, because unlike windows, AIX does not format the file with the font included, except when you use something like enscript to create postscript files.

    In your case, obviously the two print queues are not identical even though you think they are. The difference is likely in the 'virtual printer'. This is the code that sends printer setup commands to the printer.

    $ lpstat
    Queue Dev Status Job Files User PP % Blks Cp Rnk

    -----
    ---
      • ---- --
    • ---
    hp4050 lpx READY

    This shows that my queue is named hp4050 with a queue device of lpx.
    I can see what type of printer definition this was based on with:
    $ lsvirprt -q hp4050 -d lpx -a mN

    Name Description Value
    mN Printer model number hplj-4000

    So I know that this was based on a virtual printer defined by a file
    /usr/lib/lpd/pio/predev/hplj-4000.pcl (assuming it was a PCL printer) or .ps
    if it is a PostScript printer.

    I assume this is text because in PostScript all the characters are
    formatted by the application and not by AIX.

    Make sure that both queues are the same.

    You could use this command to compare the two queues:

    lsvirprt -q queue1 -d qdev > /tmp/queue1.attr
    lsvirprt -q queue2 -d qdev > /tmp/queue2.attr
    diff /tmp/queue2.attr /tmp/queue1.attr

    These should not vary much except for queue name and device name. If they do, then you have not created the same queue.

    There is a way to actually create a predef from the current virtual printer
    and use that to build the new one if that is the way you want to go.


  • 5.  RE: Re: Printing problem!

    Posted Fri December 15, 2023 01:52 PM

    Experiencing printing issues? Ensure your printer is properly connected and has sufficient paper and ink. If problems persist, check for driver updates or consult the printer's troubleshooting guide for solutions.



    ------------------------------
    Jure Teo
    ------------------------------



  • 6.  RE: Re: Printing problem!

    Posted Mon December 18, 2023 10:37 AM

    This solution does not seem to work 



    ------------------------------
    Shisha Vibe
    ------------------------------



  • 7.  RE: Re: Printing problem!

    IBM Champion
    Posted Fri January 12, 2024 07:43 AM

    One of my problems with webforums is that it's relatively easy to miss you're replying to a question that is old enough to drive.

    :-)



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 8.  RE: Printing problem!

    Posted Wed January 10, 2024 03:06 PM

    Any update?



    ------------------------------
    Sofia Conn
    ------------------------------