Bug 85099

Summary: Unable to define serial printer correctly using printconf
Product: [Retired] Red Hat Linux Reporter: Pat Lawrence <phl>
Component: redhat-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-07 16:36:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pat Lawrence 2003-02-25 18:10:10 UTC
Description of problem:
Can't define serial printer in printconf.
Attempted to define a new serial printer (same in printconf-gui and printconf-
tui):
Local Printer
     Custom Device: /dev/ttyR7
     Epson 9-pin 80 column (omni driver is only choice)
Note that /dev/ttyR7 is a serial port on a Comtrol Rocketport card that does 
work for a serial terminal, and, once /etc/cups/printers.conf is edited, for 
printing.
I expect I would see the same behavior for /dev/ttyS0 or /dev/ttyS1, since 
there is no option to select either of these ports in printconf, either.
When you look in /etc/cups/printers.conf at the definition lines for the 
printer just created, you see:
DeviceURI file:/dev/ttyR7
and, with this line, if you try to print to the attached serial printer, you 
get some printing sometimes, ususally with lots of garbage characters.
If you edit the line so it looks like:
DeviceURI serial:/dev/ttyR7
you are able to print to the printer without problems.


Version-Release number of selected component (if applicable):
redhat-config-printer-0.6.35-1
[root@award3 phl]# cat /etc/redhat-release
Red Hat Linux release 8.0.93 (Phoebe)
[root@award3 phl]# uname -m
i686

How reproducible:
always

Steps to Reproduce:
1.Define a serial printer using a custom device and a working serial port.
2.Attempt to print (get garbage or job queued but no printing).
3.Edit /etc/cups/printers.conf for the printer you created; change the 
word 'file' to the word 'serial' and the printer will work.

    
Actual results:
Got garbage attempting to print after defining the printer.

Expected results:
Should have gotten a normal printout.

Additional info:

Comment 1 Tim Waugh 2003-02-26 00:33:49 UTC
I think /dev/ttyS* should be okay; the serial: scheme was chosen if the device
name began '/dev/ttyS'.  I changed the test to "begins '/dev/tty'".

Fixed in CVS.

Comment 2 Tim Waugh 2003-07-07 16:36:33 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2003-125.html