On 3/18/26 3:50 PM, 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)
The -o option works
$ lpr -o orientation-requested=3 <file> prints portrait
$ lpr -o orientation-requested=4 <file> prints landscape
When I print a file opened with emacs by means of Ctl-p, the
result is landscape when it should be portrait.
The operating system is a fresh install and so driversĀ are up to
date.
I do:
$ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
orientation-requested=portrait
This has no effect on the operation of lpr
This is interesting. I performed some quick testing:
My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is
printing via CUPS, my print driver according to
http://localhost:631/printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"
lpr myfile.pdf
prints portrait as expected
echo "Hi, there" | lpr
prints landscape. why?
echo "Hi" | lpr -o orientation-requested=4
and
echo "Hi" | lpr -o orientation-requested=5
still print landscape
echo "HI" | lpr -o orientation-requested=3
prints portrait
echo "HI" | lpr -o orientation-requested=6
prints reverse portrait (rotated 180 degrees)
-- nwe