ubuntu 设置不了分辨率 解决方法

      要设置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分辨率了。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值