E
E
Evgeny Zalivadny2021-01-24 16:52:05
linux
Evgeny Zalivadny, 2021-01-24 16:52:05

How to set screen resolution via xrandr for password entry screen on Linux Mint 20?

When I logged in, I added the following settings to the ~/.profile file for the second monitor:

xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
xrandr --addmode DVI-I-2 "1280x1024_60.00"
xrandr --output DVI-I-2 --mode "1280x1024_60.00"

Everything works fine, but on the password entry screen, only the second monitor works and in a small window, with a warning about the recommended resolution.
In which file should I write the xrandr settings so that they are applied before entering the password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2021-01-24
@planc

.profile read shells at startup
desktop managers read:
~/.xprofile and /etc/xprofile
https://wiki.archlinux.org/index.php/Xprofile_(%D0...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question