On Thu, Jul 17, 2025 at 06:53:33PM +0200, Arnt Karlsen wrote:
> On Thu, 17 Jul 2025 09:29:18 -0400, Haines wrote in message
> <aHj6rjhiJZFzE8JE@???>:
>
> > Sorry for a question only marginally related to Devuan, but my
> > problem arose only with a reinstall of daedalus. I have no DE.
> >
> > Simply put, pdf files print in portrait mode as they should, but
> > text files print landscape. I have a HP LaserJet connected
> > wirelessly. The printer test page prints as it should.
> > Printing with $ lp -o requested-orientation=6 prints portrait as it
> > should. So it seems the default orenitantion is landscape.
>
> ..man lp() suggestion: mess around with numbers, like:
> -o orientation-requested=4 or
> -o orientation-requested=5 or
> -o orientation-requested=6 etc.
My message had typo. I meant -o orientation-requested=6, not
lp -o requested-orientation=6.
According to lpoptions manual I can set options if the command is
run by root. So I do
# lpoptions -o orientation-requested=6
That enasbles root to print a text file portait, but not user
Man loptions says:
FILES
~/.cups/lpoptions - user defaults and instances created by non-root
users.
/etc/cups/lpoptions - system-wide defaults and instances created by the
root user.
I have no /etc/cups/lpoptions, but rather a binary file /usr/bin/loptions.
I construct ~/.cups/lpoptions and place in it the line:
orientation-requested=6. Then I restart the CUPS daemon.
This did not help. Root prints text files portait but for user
they are landscape. User is in the lp and lpadmin groups
I do not have the file: /dev/lpn. Should I?
--
Haines Brown