On Fri, Jul 04, 2025 at 12:01:22PM -0600, David Raymond wrote:
> I used to be able to set my X11 screen resolution on boot by putting
> something like the file
> 
> Section "Screen"
> Identifier "Screen0"
> SubSection "Display"
>   Virtual 1600 900
> EndSubSection
> EndSection

You probably want something like:

Section "Monitor"
Identifier "HDMI-2"
Modeline "1600x1200_60.00"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 
-hsync +vsync
Option "PreferredMode" "1600x1200_60.00"
EndSection

The Identifier should be the port that the display is actually connected to,
which you can find out with xrandr.

And obviously don't use those specific line timings, but use
/usr/X11R6/bin/gtf or /usr/X11R6/bin/cvt to generate suitable timings for your
hardware.

Reply via email to