I'm using an Ubuntu server as a printer server for devices in the network, its connected to a TM-T20X (receipt thermal printer) using CUPS and sharing it in the network, everything is working as expected except for one issue, whilst printing the size of the receipt is going as 72mm not 80mm, when checking the printer defaults it does actually say 80mm and when checking the ppd file it also says 80mm, (I'm using the Official drivers by Epson).
But, as you can see in the screenshot, its appearing as 72mm, which isn't even mentioned in the ppd file, and when printing I'm getting the options for 52mm or 72mm, but never 80mm.
I'm not sure where I can change those default options.
Screenshot showing the default set as "72":
Screenshot showing me setting the default as "80":
lpoptions -l
shows me this:
PageSize/Media Size: *RP80x200 RP80x2000 RP58x200 RP58x2000 Custom.WIDTHxHEIGHT
Resolution/Resolution: *203x203dpi
TmxPaperReduction/Paper Reduction: Off Top Bottom *Both
TmxBuzzerAndDrawer/Buzzer/ Cash Drawer: *NotUsed InternalBuzzer ExternalBuzzer OpenDrawer1 OpenDrawer2
TmxPaperCut/Paper Cut: NoCut *CutPerJob CutPerPage
It's giving the correct value that I want, but the actual value isn't being used.
Here is the /etc/cups/printers.conf
:
# Printer configuration file for CUPS v2.4.1
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 2
<DefaultPrinter EPSON_TM-T20X>
PrinterId 1
UUID urn:uuid:c5d73bc5-6c18-30d9-7bee-7605719da925
Info EPSON TM-T20X
Location
MakeModel EPSON TM Thermal (203dpi)
DeviceURI dnssd://EPSON%20TM-T20X%20(068658)._printer._tcp.local/
State Idle
StateTime 1688937367
ConfigTime 1688939896
Type 53252
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</DefaultPrinter>
Here is my .ppd
*PPD-Adobe: "4.3"
*% Copyright (C) Seiko Epson Corporation 2018. All rights reserved.
*%
*% PPD file for TM Series Linux CUPS Printer Driver.
*FormatVersion: "4.3"
*FileVersion: "2.0"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "EPTMBATH.PPD"
*Manufacturer: "EPSON"
*Product: "(ThermalPrinter)"
*ModelName:"EPSON TM Thermal"
*ShortNickName:"TM Thermal"
*NickName: "EPSON TM Thermal (203dpi)"
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*VariablePaperSize: True
*TTRasterizer: Type42
*cupsVersion: 1.2
*cupsManualCopies: True
*cupsModelNumber: 100
*cupsFilter: "application/vnd.cups-raster 0 rastertotmtr"
*cupsLanguages: "en"
*% Printer option settings
*OpenGroup: General/General
*% Page size settings.
*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 *PageSize AnySetup
*DefaultPageSize: RP80x200
*PageSize RP80x200/Roll paper 80 x 200 mm: "<</PageSize[204.3 566.9]/ImagingBBox null>>setpagedevice"
*PageSize RP80x2000/Roll paper 80 x 2000 mm: "<</PageSize[204.3 5669.3]/ImagingBBox null>>setpagedevice"
*PageSize RP58x200/Roll paper 58 x 200 mm: "<</PageSize[149.1 566.9]/ImagingBBox null>>setpagedevice"
*PageSize RP58x2000/Roll paper 58 x 2000 mm: "<</PageSize[149.1 5669.3]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*OrderDependency: 10 *PageRegion AnySetup
*DefaultPageRegion: RP80x200
*PageRegion RP80x200/Roll paper 80 x 200 mm: "<</PageSize[204.3 566.9]/ImagingBBox null>>setpagedevice"
*PageRegion RP80x2000/Roll paper 80 x 2000 mm: "<</PageSize[204.3 5669.3]/ImagingBBox null>>setpagedevice"
*PageRegion RP58x200/Roll paper 58 x 200 mm: "<</PageSize[149.1 566.9]/ImagingBBox null>>setpagedevice"
*PageRegion RP58x2000/Roll paper 58 x 2000 mm: "<</PageSize[149.1 5669.3]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion
*DefaultImageableArea: RP80x200
*ImageableArea RP80x200/Roll paper 80 x 200 mm: "0.0 0.0 204.3 566.9"
*ImageableArea RP80x2000/Roll paper 80 x 2000 mm: "0.0 0.0 204.3 5669.3"
*ImageableArea RP58x200/Roll paper 58 x 200 mm: "0.0 0.0 149.1 566.9"
*ImageableArea RP58x2000/Roll paper 58 x 2000 mm: "0.0 0.0 149.1 5669.3"
*DefaultPaperDimension: RP80x200
*PaperDimension RP80x200/Roll paper 80 x 200 mm: "204.3 566.9"
*PaperDimension RP80x2000/Roll paper 80 x 2000 mm: "204.3 5669.3"
*PaperDimension RP58x200/Roll paper 58 x 200 mm: "149.1 566.9"
*PaperDimension RP58x2000/Roll paper 58 x 2000 mm: "149.1 5669.3"
*% Custom page size settings.
*MaxMediaWidth: "204.3"
*MaxMediaHeight: "5669.3"
*NonUIOrderDependency: 100 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop <</PageSize [ 5 -2 roll ]/ImagingBBox null>>setpagedevice"
*ParamCustomPageSize Width: 1 points 80 204.3
*ParamCustomPageSize Height: 2 points 80 5669.3
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 0 0
*% Resolution settings.
*OpenUI *Resolution/Resolution: PickOne
*OrderDependency: 20 AnySetup *Resolution
*DefaultResolution: 203x203dpi
*Resolution 203x203dpi/203 x 203 dpi: "<</HWResolution[203 203]/cupsRowCount 24/cupsBitsPerColor 1>>setpagedevice"
*CloseUI: *Resolution
*% Horizontal and Vertical motion units.
*TmxMotionUnitHori: "203"
*TmxMotionUnitVert: "203"
*% Paper reduction settings.
*OpenUI *TmxPaperReduction/Paper Reduction: PickOne
*OrderDependency: 30 AnySetup *TmxPaperReduction
*DefaultTmxPaperReduction: Both
*TmxPaperReduction Off/None: ""
*TmxPaperReduction Top/Top: ""
*TmxPaperReduction Bottom/Bottom: ""
*TmxPaperReduction Both/Top & Bottom: ""
*CloseUI: *TmxPaperReduction
*% Buzzer / Cash Drawer settings.
*OpenUI *TmxBuzzerAndDrawer/Buzzer/ Cash Drawer: PickOne
*OrderDependency: 30 AnySetup *TmxBuzzerAndDrawer
*DefaultTmxBuzzerAndDrawer: NotUsed
*TmxBuzzerAndDrawer NotUsed/Not used: ""
*TmxBuzzerAndDrawer InternalBuzzer/Internal buzzer: ""
*TmxBuzzerAndDrawer ExternalBuzzer/External buzzer: ""
*TmxBuzzerAndDrawer OpenDrawer1/Open drawer #1: ""
*TmxBuzzerAndDrawer OpenDrawer2/Open drawer #2: ""
*CloseUI: *TmxBuzzerAndDrawer
*% Paper source settings.
*OpenUI *TmxPaperCut/Paper Cut: PickOne
*OrderDependency: 30 AnySetup *TmxPaperCut
*DefaultTmxPaperCut: CutPerJob
*TmxPaperCut NoCut/No cut: ""
*TmxPaperCut CutPerJob/Cut per job: ""
*TmxPaperCut CutPerPage/Cut per page: ""
*CloseUI: *TmxPaperCut
*CloseGroup: General
*% End