2011-09-06

Squeeze Xorg 設定

Squeeze Xorg 設定

2011-09-06
  • 先檢查否有xorg.conf設定檔(/etc/X11/xorg.conf)(Squeeze不會自行產生)
    ls -l /etc/X11/xorg.conf
    
  • 檢查 VGA 卡是否找到
    lspci
    
    lspci -v
    
    會出現
    01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 420] (rev a3)
    
  • 不要起動X, 先產生xorg.conf設定檔(/root/xorg.conf.new), copy 到 /etc/X11/xorg.conf
    sudo Xorg -configure
    sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
    
  • 修改 /etc/X11/xorg.conf 設定檔,
    sudo vim /etc/X11/xorg.conf
    
  • 找出螢幕 Frequency (HorizSync,VertRefresh), 我的是
    Frequency   Fh: 30~82kHz, Fv: 50~85Hz
    
  • 在 Section “Monitor” 加入 HorizSync , VertRefresh 兩行
    Section "Monitor"
        Identifier   "ViewSonicAV702"
        VendorName   "View Sonic"
        ModelName    "AV702"
        HorizSync    30.0 - 82.0
        VertRefresh  50.0 - 85.0
    EndSection
    
  • Section “Screen” 加入 Modes “1024×768”, 習慣大字
    Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "ViewSonicAV702"
        SubSection "Display"
            Viewport   0 0
            Depth     24
            Modes    "1024x768"
        EndSubSection
    EndSection
    
  • 起動 X 或 gdm
    startx
    
    sudo /etc/init.d/gdm start
    
  • 終端機 / rxvt 下
    xrandr
    
    可以看到可用的設定


註:
  • 每次重裝都要重設一次解析度, 只好記下來。
  • Frequency 可以不加, 用系統找到的。

沒有留言: