I am trying to fix my Screen Resolution to a LG Flatron L1919S.
Xorg-Server has a binary that you can use: GTF (calculate VESA GTF mode lines)
So i’ve tried a lot of resolutions and a lot of refresh rates to find the best for my eyes.
In my case is: 1280 x 1024 @ 65.00 Hz
$ gtf 1280 1024 65
# 1280x1024 @ 65.00 Hz (GTF) hsync: 69.09 kHz; pclk: 119.40 MHz
Modeline "1280x1024_65.00" 119.40 1280 1368 1504 1728 1024 1025 1028 1063 -HSync +Vsync
To see if this Modeline is the one try something like this:
xrandr --newmode "1280x1024_65.00" 119.40 1280 1368 1504 1728 1024 1025 1028 1063 -HSync +Vsync
xrandr --addmode VGA-0 "1280x1024_65.00"
xrandr --size "1280x1024_65.00"
Now if everything is fine you can edit your /etc/X11/xorg.conf according to the above video mode.
See an example:
Section “Monitor”
Identifier “Monitor0”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
Modeline “1280×1024_65.00” 119.40 1280 1368 1504 1728 1024 1025 1028 1063 -HSync +Vsync
EndSectionSection “Screen”
Identifier “Screen0”
Device “Card0”
Monitor “Monitor0”
SubSection “Display”
Viewport 0 0
Depth 24
Modes “1280×1024_65.00”
EndSubSection
EndSection
Simple as that!