2008年11月21日 星期五

[筆記][Linux] 設定Ubuntu 8.10 螢幕解析度

設定Ubuntu 8.10 螢幕解析度

以前灌好Ubuntu之後,可以在System>Pref中找到螢幕,先將螢幕改成LCD就可以調整解析度了,現在8.10中,找不到了,
所以要調整解析度,就要透過手動的方式,否則就算安裝好顯卡的驅動程式也是不能調整解析度

1. 安裝顯卡驅動程式
到 系統->管理->硬體驅動程式
先將顯卡裝好

1. 備份xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

2. 修改xorg.conf
sudo gedit /etc/X11/xorg.conf

3. 在xorg.conf中加入下面幾行
特別是垂直及水平掃描率,當這兩個都設定好了,才可設定調整解析度

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       22-82
    VertRefresh     56-76
    Option         "DPMS"
EndSection

4. 以下是完整的設定檔

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       22-82
    VertRefresh     56-76
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Device"
    Identifier     "Device0"
    VendorName     "NVIDIA Corporation"
    Driver    "nvidia"
    Option    "NoLogo"    "True"
EndSection

5. 重起系統之後,就可以在 System->Prefs->Screen Res 調整解析度

Ref:
http://ubuntuforums.org/showthread.php t=783885

沒有留言: