commands to use: XRANDR,CVT
1. First look at the resolution settings currently available:Xrandr (without any parameters)
1 Xrandr
2. Use CVT to generate the specified resolution.
1 CVT 1920 1080
3. Enable 1920 1080 resolution
1 2 sudo xrandr--newmode "1920x1080_60.00" 173.00 1920x1080 2048 2248 2576 1083 1088 1120-hsync +Vsyn C3 4 #MitchellChu ' Blog: Add a new mode,--addmode after the first parameter is displayed in the list Xrandr, you want to change the target output of the device name, This is Virtual1. If it is directly connected to the monitor, it may be VGA1. 5 sudo xrandr--addmode Virtual1 "1920x1080_60.00" #MitchellChu ' Blog: When you are finished adding, you need to apply the resolution to the specified output device. 6 7 sudo xrandr--output Virtual1--mode "1920x1080_60.00" #MitchellChu ' Blog: So far, You can see that your display resolution has been displayed at a custom resolution.
At this point, the custom settings for the resolution are complete.
If you use Xrandr again to display it, you will find that the resolution you have just set has been added.
Ubuntu Kylin Setting Custom desktop resolution