xorg小结

xorg小结

8/22/2009 12:04:55 AM
1.设置ubuntu显示分辨率之后,重启之后却出现了问题,登录界面只出现了以前的左上部分,此时用户名输入框根本看不到:
修改方法:

在文件系统中找到这个文件:/etc/X11/xorg.conf ,然后在xorg.conf文件中找到如下区域:

......Section “Screen”

Identifier    “Default Screen”

Monitor        “Configured Monitor”

Device        “Configured Video Device”

Defaultdepth    24

Option        “AddARGBGLXVisuals”    “True”

SubSection “Display”

Depth    24

Virtual     1024    768

.....

以上区域的内容视电脑而异,其实重点是用红色标识的Virtual 这个词后面的数字就是登录界面的分辨率,将其修改为正常或去掉就可以了(注意,不要超出使用的分辨率)

2.在Vmware下正常,正常模式下启动无法进入图形模式:

修改方法:

在root用户有下:

1.init 1

2.Xorg -configure

3.在主目录下应出现x.org.conf.new,用X -xf86config /root/xorg.conf.new

4.用Ctrl+Alt+Backspace可以退出X服务器,如果无法退出,可以直接使用init 1

5.将xorg.conf.new拷贝到/etc/X11/xorg.conf

重新启动电脑即可。注意:用dpkg-reconfigure xserver-xorg方法无效

可以使用displayconfig-gtk,然后再设置显示器和屏幕显示即可。

以下是份网友的参考配置:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder57)  Thu Jul 17 18:39:19 PDT 2008

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Default Screen" 0 0
    InputDevice    "Generic Keyboard" "CoreKeyboard"
    InputDevice    "Configured Mouse" "CorePointer"
EndSection

Section "Module"
    Load           "glx"
    Load           "v4l"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
    VendorName     "Generic CRT Display"
    ModelName      "Monitor 1024x768"
    HorizSync       31.5 - 61.0
    VertRefresh     50.0 - 75.0
    Gamma           1
    ModeLine       "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine       "640x480@72" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
    ModeLine       "640x480@75" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
    ModeLine       "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
    ModeLine       "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
    ModeLine       "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
    ModeLine       "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine       "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -hsync -vsync
    ModeLine       "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine       "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine       "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine       "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "NVIDIA GeForce 6 Series"
    Screen          0
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    DefaultDepth    24
    SubSection     "Display"
        Virtual     1280 960
        Depth       24
        Modes      "800x600@72" "800x600@75" "800x600@56" "800x600@60" "640x480@75" "832x624@75" "640x480@72" "1024x768@75" "640x480@60" "1024x768@70" "1024x768@60" "1280x960@60"
    EndSubSection
EndSection

文章出处:http://www.diybl.com/course/6_system/linux/Linuxjs/200888/135140.html

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值