Gregg's MOTD

Tips & Tricks that I've Encountered Over the Years...

Fixing Screen Resolution on Second Monitor in Linux

May 02, 2023 — Gregg Szumowski

I recently installed a 2nd hard drive in my Macbook Pro dedicated to Linux. When I hooked up a secondary monitor to it I found that I could not get a reasonable resolution. After some research I found that I can add a new mode to the "Display" choices by entering the following in a terminal console:

xrandr # to find the device name
cvt 1920 1080 # to generate the mode for the xrandr program.
xrandr --newmode "1920x108060.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync # to add the new mode to the monitor choices.
xrandr --addmode DP1 1920x1080
60.00 # to associate the new mode to the monitor.

Tags: linux, motd