ETH官方钱包

創作內容

1 GP

[Linux][Fedora14] 調高解析度(分辨率)

作者:game2002│2011-03-10 18:28:49│巴幣:0│人氣:4038
前言:

今天開機時,突然發現Fedora14 的登錄畫面,解析度怪怪的......
本來我是設定為1440x900 ,但不知怎地,竟自動變成1024x768了。
這樣也就算了,要修改螢幕解析度時,意外發現原本1440x900的選項竟然不見了!!
如下圖,最大只能選擇1024x768 ...... 難道原本1440x900的設定是一場夢嗎?



於是我馬上去網路上看看,原來不少人也有這個問題,以下是我實際執行過後,
成功的方法,分享一下!

1.   確認顯示卡是否安裝完成 :
其實我想一般而言,一定都有安裝完成,不然就不會遇到跟我一樣的問題了!

[root@station2 ~]# lspci -v大概在第2段,會有顯卡的安裝說明

00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Device 817a
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at 8800 [size=8]
    Memory at e0000000 (32-bit, prefetchable) [size=256M]
    Memory at dfe80000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [d0] Power Management version 2
    Kernel driver in use: i915
    Kernel modules: i915


2. 使用 gtf 指令產生設定:
[root@station2 ~]# gtf  1440  900  60

  # 1040x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 76.95 MHz
  Modeline "1040x900_60.00"  76.95  1040 1096 1208 1376  900 901 904 932  -HSync +Vsync

[root@station2 ~]# gtf  1440  900  60  >  /root/gtf.org  
上面是將設定輸出成 gtf.org 文件檔,並儲存在 / root 中


3. 產生xorg.conf 設定文件:
很多網路資料都說,設定檔在 /etc/X11/xorg.conf 裡,問題是我的Fedora14好像並沒有
這個設定檔......? 所以就自己生一個出來!

先重新開機,在 grub 開機選單介面,按下鍵盤上的 e 來進行編輯,
在kernel /vmlinuz 這一行,按下 e 鍵進行編輯,然後在這一行的最後面輸入 3 (3 的前面最好保留空白鍵),最後按下Enter ,回到 grub 選單再按 b 鍵重新開機。

重開機後,會進入黑底白字的文字控制臺介面,
以 root  的身分登入,然後輸入 Xorg -configure (X是大寫喔!)
系統會將硬體的設定檔,輸入成一個 xorg.conf.new 並且存放在 root 的家目錄中。
建議最好看一下程式執行的最後一行,會寫名文件檔存放的位置。

然後輸入 reboot 重開機,回到圖形介面。


4. 用文字編輯器(nano , vim)開啟
xorg.conf.new
因為我是要把解析度調成1440x900 ,所以修改如下:
[root@station2 ~]# cat  /root/xorg.conf.new
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "catalogue:/etc/X11/fontpath.d"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "extmod"
    Load  "record"
    Load  "dri2"
    Load  "dbe"
    Load  "glx"
    Load  "dri"
EndSection

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

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
    HorizSync    31.5 - 90.0
    VertRefresh    60.0 - 60.0
    Modeline "1440x900_60.00"  106.47  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
   (還記得剛才存的 gtf.org 檔案嗎?裡面第2行的設定就照貼上來吧!)

EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes "1440x900"    ( 加入1440x900 )
    EndSubSection
EndSection


5. 將 /root/xorg.conf.new 拷貝(copy) 至 /etc/X11/xorg.conf


6. 重開機
重開機後,再去修改設定檔,應該就會多出 1440x900 的選項讓你進行設定了!
下圖為證~




引用網址:http://www.jamesdambrosio.com/TrackBack.php?sn=1253130
All rights reserved. 版權所有,保留一切權利

相關創作

同標籤作品搜尋:解析度|分辨率|Fedora|Linux

留言共 0 篇留言

我要留言提醒:您尚未登入,請先登入再留言

1喜歡★gameculb2002 可決定是否刪除您的留言,請勿發表違反站規文字。

前一篇:[Linux][Cent... 後一篇:[Linux][Fedo...


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情? 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】