Want to change from 2560x1600 to 1920x1200
Preparation:
sudo vim /etc/default/grub
from "#GRUB_GFXMODE=640x480" to GRUB_GFXMODE=1920x1200
sudo /etc/gdm3.custom.conf
from #WaylabdEnable=false to WaylabdEnable=false
Solution1: using xrandr
sudo apt install xrandr
cvt 1920 1200 60
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
sudo xrandr --addmode DP-4 "1600x900_60.00"
or sudo xrandr -s 1920x1200
reboot
Solution2: changing /etc/X11/xorg.conf
sudo nvidia-xconfig # generate a new one
sudo vim /etc/X11/xorg.conf
adding Modes
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1200" "2560x1600"
EndSubSection
EndSection
reboot
Solution3: using nvidia-settings
sudo apt install nvidia-settings
sudo nvidia-settings
XServer Display Configuration > Resolution > 1920x1200 > Apply > Save to X Configuration
reboot
Solution4: using xdiagnose
sudo apt install libgtk-4-dev gtk-4-examples
sudo apt install gir1.2-gtk-3.0
sudo apt install --reinstall python3-gi gir1.2-gtk-3.0
sudo vim /usr/lib/python3/dist-packages/xdiagnose/applet.py
adding version
from gi import require_version
require_version('Gtk', '3.0') # Ensure GTK 3 is used
sudo xdiagonose
reboot
Solution5: using fractional scaling
It can seperately fractional scale the displays. i.g. one for 125% the other for 100%
0 comments:
張貼留言
留言