On Fri, Mar 20, 2026 at 10:24:12AM -0500, David Wright wrote:
> On Wed 18 Mar 2026 at 16:50:24 (-0400), Haines Brown wrote:
> > In a new installation, when printing with lpr the output is
> > landscape when it should be portrait.
> >
> > When CUPS prints its test page, it is normal (portrait)
...
> > I tried:
> >
> > $ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
> > orientation-requested=portrait
> What effect does it have in the configuration file. Indeed, what are
> the contents?
Rather long, but you asked. I leave out commented lines.
# nano /etc/cu;s/cupsd.conf
LogLevel warn
PageLogFormat
MaxLogSize 0
ErrorPolicy retry-job
Listen localhost:631
Listen /run/cups/cups.sock
Listen 0.0.0.0:631
Browsing Yes
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
IdleExitTimeout 60
<Location />
Order allow,deny
Allow @ALL
</Location>
<Location /admin>
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
<Location /admin/log>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
<Policy default>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy kerberos>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Negotiate
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
> And do you have any systemwide configuration set?
no, If I understand the question correctly.
> If nothing else works, perhaps read:
>
> https://wiki.debian.org/CUPSPdfToPdf
I did so. Among other things. these commands on a simple file are
both printed landscape.
$ lpr -o landscape test.txt
$ lpr -o portrait test.txt
My ppp directory hold three directories:
1) One of which, rwxrwsr-t 2 root lpadmin 4096 Sep 7 2025 custom, is
empty,
2) /hplip/HP/ holds
HP-Fax2-hpcups.ppd.gz HP-Fax4-hpcups.ppd.gz
HP-Fax3-hpcups.ppd.gz HP-Fax-hpcups.ppd.gz
3) a cupsfilters directory that holds five ppd files. None specifically for
my printer
but thhre is a Generic-PDF_Printer-PDF.ppd and so I look at it.
Every line is preceeded by an asterisk. It that a comment symbol?
Stanzas sometimes start * ..." PickOne.
Dos this mean remove the astserisk to make a line active?
If do, then the file has no active lines.
One line is: *LandscapeOrientation, : Plus90
This this mean 90° from horizonaal? Does this line need its
asterisk rmoved for portait orientation?
--
Haines Brown