HOWTO force monitor resolution on mxlinux
After recent upgrade, MX Linux could no longer detect my Viewsonic 22 inch monitor.
Due to unknown, the system therefore set the display to a very primitive resolution - VGA 1024x768 (4:3).
According to the monitor spec (from google), natively it should support 1680x1050 (16:10).
run command:
$ cvt 1680 1050
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode DisplayPort-0 1680x1050_60.00
If want to config it every time log in, append the following to .profile
xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode DisplayPort-0 1680x1050_60.00
#xrandr --output DisplayPort-0 --off --output DVI-0 --mode 2048x1536_60.00 --pos 0x0 --rotate normal --output HDMI-0 --off
xrandr --output DisplayPort-0 --mode 1680x1050_60.00 --pos 0x0 --rotate normal