數據線有問題,一般的數據線,在win下正常,在ubuntu22下,無法識別顯示器,只能自定義分辨率:親測:
root@dev-H81M-D2:/etc/X11/xorg.conf.d# cvt 1440 900
# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
root@dev-H81M-D2:/etc/X11/xorg.conf.d#
root@dev-H81M-D2:/etc/X11/xorg.conf.d# xrandr
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
VGA-1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00
800x600 60.32 56.25
848x480 60.00
640x480 59.94
1440x900_60.00 59.89*
HDMI-1 disconnected (normal left inverted right x axis y axis)
root@dev-H81M-D2:/etc/X11/xorg.conf.d#
注意看上面的VGA-1,換成你自己的接口:
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-1 1440x900_60.00
xrandr --output VGA-1 --mode 1440x900_60.00
上面的模式是第一行的CVT出來的,接口換成自己的;
這時,如果正常,就好,如果不正常,提示出錯:我的就出錯了,則:
vim /etc/gdm3/custom.conf
WaylandEnable=false
把這注釋打開,而后,再重復上面的,你會發(fā)現你的顯示端口變了,正常后,就是如何保存了;
root@dev-H81M-D2:/etc/X11/xorg.conf.d# ls
default.sh
root@dev-H81M-D2:/etc/X11/xorg.conf.d# cat default.sh
Section "Monitor"
Identifier "VGA-1"
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
EndSection
root@dev-H81M-D2:/etc/X11/xorg.conf.d#
自己注意看路徑;
如果不想自動改,只是增加一個模式:文章來源:http://www.zghlxwxcb.cn/news/detail-720103.html
root@dev-H81M-D2:/etc/profile.d# cat set-dis.sh
#!/bin/sh
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-1 1440x900_60.00
#xrandr --output VGA-1 --mode 1440x900_60.00
root@dev-H81M-D2:/etc/profile.d#
重啟后,增加了一個分辨率;永久保存則上一步;親測成功;文章來源地址http://www.zghlxwxcb.cn/news/detail-720103.html
root@dev-H81M-D2:/etc/profile.d# uname -a
Linux dev-H81M-D2 5.19.0-21-generic #21-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 12 18:33:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@dev-H81M-D2:/etc/profile.d#
到了這里,關于ubuntu?22?下顯示器分辨率自定義問題xrandr的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!