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.