said Thierry de Coulon via tde-users: | On Monday 25 August 2025 10:31:39 Felix Miata via tde-users wrote: | > dep composed on 2025-08-25 06:50 (UTC): | > > I have a line I need to run sometime before the desktop appears on a | > > dinky computer. It's an xrandr command that rotates the screen 90 | > > degrees to the right and sets 168 dpi. What I don't know is where to | > > put it. | > | > If you want it applicable to any and every user of the computer, on | > Debian, Ubuntu, Mint and kin, put it in /etc/X11/Xsession.d/. | | I have a bash script in /etc/X11/Xsession.d that does someting like | that. It reads: | | #!/bin/bash | xrandr --output eDP-1 --primary --mode 1920x1080 | | And sets this Thinkpad (that has high resolution screen) back to | something usable for a desktop. DOn't remember having done something | else.
Thanks. That is probably the location I need, though due to the peculiarities of this screen -- 7 inches, 1920x1200 resolution -- I'll use dpi = 168. I'll also have to add the command to rotate it 90 degrees to the right. Do you know if the commands can go on the same line, or must they be separate?