要设置xorg.conf,ubuntu12.04默认没有这个文件,所以要生成它。先ctrl+alt+f1切到文字模式,停掉Xwindow服务,执行
sudo /etc/init.d/lightdm stop
接着生成xorg.conf
sudo X -configure
这样就在主目录下生成了一个xrog.conf.new,这时要是直接把文件复制成/etc/X11/xorg.conf是不够的,没有设置好虚拟屏幕的大小
执行 sudo /etc/init.d/lightdm start 回到xwindow
编辑xorg.conf.new 再复制过去。主要是改了下面这个部分,修改Depth 24这节点,modes是每个屏幕的分辨率,Virtual是所有屏幕(分屏的屏幕)的分辨率总和。
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
Virtual 2048 768
EndSubSection
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050"
Virtual 3360 1050
EndSubSection
EndSection
再ctrl+alt+f1切回文字模式,开关一次lightdm服务
sudo /etc/init.d/lightdm restart
ctrl+alt+f7切回xwindow后,就显示1027x768分辨率了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)