On Sat, Mar 21, 2026 at 07:16:00PM -0500, nwe wrote: > 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
Here as well > echo "Hi, there" | lpr > prints landscape. why? Prints landscape here as well. > echo "Hi" | lpr -o orientation-requested=4 > and > echo "Hi" | lpr -o orientation-requested=5 > still print landscape Both commands are landscape here as well. > echo "HI" | lpr -o orientation-requested=3 > prints portrait Likewise. I also find that $ lpr -o orientation-requested=3 test.txt prints portrait. The value=3 not in man lpr > echo "HI" | lpr -o orientation-requested=6 > prints reverse portrait (rotated 180 degrees) Someone wondered whether lpr commands get to CUPS. Since CUPS test page prints properly, that is a good quewtion. But your result suggest this not the problem. -- Haines Brown

