[转] ubuntu更改屏幕分辨率为800x600
- 打开terminal
- 显示现有的分辨率
~$ xrandr
出现所有的设置列表,
-
~$ xrandr -s 800x600
如果没有,可以用cvt自己设定。列出分辨率如:
-
~$ cvt 1280 1024 60
设置新的分辨率
-
~$ xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
添加新的模式
-
~$ xrandr --addmode Virtual1 "1280x1024_60.00"
Virtual1 是指定的设备
- 指定输出设备
~$ xrandr --output Virtual1 --mode "1280x1024_60.00"
or
~$ xrandr -s 1280x1024_60.00
作者:trista_lee
链接:https://www.jianshu.com/p/9e8f7fc15d3d
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
————————————————————————
其它设置
ubuntu 安装NVDIA 显卡后分辨率改变成800*600。折腾了一下午各种方法都试了没成功,最后改了ubuntu 下的xorg.conf配置就ok了。
在终端输入:sudo gedit /etc/X11/xorg.conf
%后面是注释,表示修改的地方,在豆瓣中没有颜色标志什么的,只好出此下策。改了3个地方。前两个%的那个4个值是参考
http://linux.chinaunix.net/techdoc/system/2008/08/03/1023252.shtml
(可能不用该也是可以的,我改过之后忘了原来的值,只好如此保存)
Modes "1024×768" 是分辨设置。自行添加进去之后,重启即可。
以下是部分内容
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 31.5 - 61.0 %这个地方修改
VertRefresh 50.0 - 75.0 %这个地方修改
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024×768" % 原先没有这一句添加进去的
EndSubSection
EndSection
xrandr 可看分辨率
lspci | grep VGA 看显卡是否关闭
在终端输入:sudo gedit /etc/X11/xorg.conf
%后面是注释,表示修改的地方,在豆瓣中没有颜色标志什么的,只好出此下策。改了3个地方。前两个%的那个4个值是参考
http://linux.chinaunix.net/techdoc/system/2008/08/03/1023252.shtml
(可能不用该也是可以的,我改过之后忘了原来的值,只好如此保存)
Modes "1024×768" 是分辨设置。自行添加进去之后,重启即可。
以下是部分内容
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 31.5 - 61.0 %这个地方修改
VertRefresh 50.0 - 75.0 %这个地方修改
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024×768" % 原先没有这一句添加进去的
EndSubSection
EndSection
xrandr 可看分辨率
lspci | grep VGA 看显卡是否关闭

浙公网安备 33010602011771号