星期二, 1月 20, 2009

解決ubuntu解析度過小的問題

前陣子朋友拿了台power壞掉的電腦過來給我
於是我將家裡殺肉機拆拆組組拼湊出一台下載機

我很努力試著去使用Windows XP,但我和它的電波似乎真的不合
總是會給我鬧彆扭,於是我轉向了那無謂的山羊-ubuntu 8.10
在這之前我也曾經安裝過,對於一個新的系統要再次的上手我想當然會有所謂的陣痛期
但我沒想到我一開始經歷的不是陣痛期,而是不得其門而入

原因在於我使用的是舊的電腦設備,顯示卡為Nvidia FX5200 搭配Mozo V701的17吋LCD
原本沒安裝驅動程式之前的解析度是800x600,而安裝完驅動程式之後竟然變成640x480
原因似乎在於Nvidia FX5200認不出我的螢幕,所以採用了最保險的解析度來進入系統
而在系統\偏好設定\螢幕解析度 設定中只剩下640x480和320x240可以選擇!
我試著重新安裝ubuntu 8.04和8.10,顯示卡也拿另外一張閒置的Nvidia MX440來交叉測試
就連驅動程式我也使用系統自動安裝和Envy手動快速安裝,問題都不能排除。

這個問題我真的花了相當多的時間去解決,原本看到網路上對於Ubuntu是多麼的讚賞和好用
這下子著著實實的k了我一拳!!
最後還是被Google大神給救活了

ubuntu 8.04的解決辦法可參考Ubuntu 8.04+Nvidia 5200的解析度異常解決法
以下引述MGdesigner的作法
我本身的桌機是這個,上星期更新了桌機,遇過這個問題,解決以後,這星期看到Linux轉信版有網友也提到這個問題,但隔幾個小時,我想去回時,該篇不知被衝到哪裡去了XD,我在這裡貼上我的作法:

這一版Ubuntu有一個怪問題,當換上NVidia的restricted driver以後,重開以後(其實不一定要真的重開,文字終端機下sudo init 1再init 2也可以,就不用重開機了),回到圖形介面以後會發現解析度降成只有640*480可以用。

我試了很多方法,找到了可重複的解法(上上星期才作過,應該記憶沒有錯XD),我的網誌上同步放上本篇:
sudo apt-get install nvdia-settings;(裝nvidia顯示卡設定程式) sudo displayconfig-gtk,然後很重要的一點,請自己設定一個新的螢幕,這個螢幕必須跟你的實際螢幕的規格是一樣的。

設 完按ctrl+shift+backspace會重新啟動xiwndow,然後只要看到一個大到破表的登入畫面就對了,其實這還是錯的,登入畫面錯,但是 盲打你的帳號密碼(超出螢幕之外XD),進入桌面會是正確的了,然後執行下拉選單中的系統-管理-Nvdia X serversettings選成你喜歡的解析度。

最後請sudo nano /etc/X11/xorg.conf

找到
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual XXXX OOOO
Modes "1024x768@60" "1152x864@75" "1024x768@70" $
EndSubSection
EndSection

把其中的XXXX OOOO換成你平常用的解析度(這是Nvidia的偵測程式幹的笨蠢事,他用了超級到的解析度),或是最沒有問題的640 480,儲存,重開xwindow,登入畫面(GDM)就可以了。
ubuntu 8.10 的解決辦法可參考Geforce FX 5200 In Ubuntu Intrepid Ibex 8.10

首先按<ALT>+F2
出現的視窗欄位填入

gksudo gedit /etc/X11/xorg.conf

之後將底下複製貼上之後儲存重開機即可
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
#
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
#
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
#
Section "Device"
Identifier "Configured Video Device"
Boardname "nvidia"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
EndSection
#
Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Dell"
Modelname "Dell E196FP"
Horizsync 31.0-83.0
Vertrefresh 56.0-76.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
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 -vsync -hsync
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 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
modeline "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
modeline "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
modeline "1400x1050@75" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
modeline "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1792x1344@60" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
Gamma 1.0
EndSection
#
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1792 1344
Modes "1280x1024@60" "1280x960@75" "1280x960@60" "1400x1050@60" "1280x1024@75" "1400x1050@75" "1152x864@75" "1600x1200@65" "1024x768@60" "1600x1200@60" "1024x768@70" "1792x1344@60" "1024x768@75" "832x624@75" "800x600@60" "800x600@75" "800x600@72" "800x600@56" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
#
Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
EndSection
Section "Module"
Load "glx"
Load "v4l"
EndSection
Section "device" #
Identifier "device1"
Boardname "nvidia"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 1
EndSection
Section "screen" #
Identifier "screen1"
Device "device1"
Defaultdepth 24
Monitor "monitor1"
EndSection
Section "monitor" #
Identifier "monitor1"
Gamma 1.0
EndSection
Section "ServerFlags"
EndSection
或許這個方法在許多熟稔Linux系統指令的人看來可能不是一個好的方法
不過這的確解決了我的問題。

我現在是三系統流,主力當然還是Mac OS

2 則留言:

  1. 今天電腦遇到麻煩進行重灌,遇到了奇怪的問題,搜尋Google時,發現到你這一篇,很高興我過去的經驗有幫助到人。

    不過這個問題,總的來說,是Nvidia,而不是Ubuntu的問題,Nvidia從去年開始對開源系統的支持就越來月不友善(但是效能很漂亮XD)。以後要買新電腦,顯示卡最好買ATI或是intel的比較安全,買Nvidia的話,要先看看網路上的白老鼠經驗。XD

    回覆刪除
  2. 魔法設計師 你好
    非常謝謝你在ubuntu-tw寫這篇問題解決的方法~
    對於我這指令全都不懂的新手真的幫助很大。
    但是ATI顯卡在ubuntu的支援下似乎比Nvidia的驅動安裝顯得麻煩一點(google到的經驗)

    我剛才發現之前有到過你的blog,我是從C-Chat裡面的初音咪哭文連進去的。
    原來是鄉民~握

    回覆刪除