linux System Custom Resolution

Keywords: sudo

Open the terminal and enter the following command:

Step 1



Virtual1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm

View the currently connected display device Virtual1

2 Steps

gtf 800 480 60


# 800x480 @ 60.00 Hz (GTF) hsync: 29.82 kHz; pclk: 29.58 MHz
 Modeline "800x480_60.00"  29.58  800 816 896 992  480 481 484 497  -HSync +Vsync

3 Steps

xrandr --newmode  "800x480_60.00"  29.58  800 816 896 992  480 481 484 497  -HSync +Vsync

4 Steps

xrandr --addmode Virtual1 "800x480_60.00"

5 Steps

xrandr --output Virtual1 --mode "800x480_60.00" 

6 Steps

//Following is persistent display mode

Edit Profile ~/.config/Monitors.xmlTo configure the resolution size, but will not take effect until the next reboot

<monitors version="1">
      <output name="Virtual1">
      <output name="Virtual2">
      <output name="Virtual3">
      <output name="Virtual4">
      <output name="Virtual5">
      <output name="Virtual6">
      <output name="Virtual7">
      <output name="Virtual8">

Sudo gedit/etc/X11/xorg.conf//Open (or New)Xorg.confFile, the initial system does not have this file, you can create it.
After opening, add the following to the file:

Section "Monitor"
    Identifier "Configured Monitor"
    Modeline "800x480_60.00"  29.58  800 816 896 992  480 481 484 497  -HSync +Vsync    #Output from command gtf
    Option "PreferredMode" "800x480_60.00"    #The pattern name is "800x480_60.00"

Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"

Section "Device"
    Identifier "Configured Video Device"

Finish, Restart, OK

Posted by casty on Mon, 13 Jul 2020 09:29:58 -0700