將Intel整合顯卡GMA HD4000驅動安裝到FreeBSD-10.0 Release系統

來源:互聯網
上載者:User

嘗鮮試用FreeBSD10.0 Release,發現安裝Intel整合顯卡時候跟FreeBSD9.0不同 ,主要就是彈出錯誤:unknown type name GLDEBUGPROCARB。

過程如下:

1、通過portsnap升級ports trees,首次使用通過命令:portsnap fetch extract,否則可以使用命令portsnap update

2、依照http://blog.csdn.net/cheviko/article/details/18909803 rebulid 各個pkg,

 

a) 升級libdrm:portmaster libdrm

b) 升級libGL:portmaster libGL #通過安裝完成的提示可以看出已經同事安裝了libGLU

c) 升級libGLU:如果在上一步同時完成則不用操作,否則:portmaster libGLU

d) 升級dri:portmaster dri

e) 升級xf86-video-intel:portmaster xf86-video-intel #安裝提示現實已升級了xorg-server

f) 升級xorg-server:如果上一步沒有提示已升級則: portmaster xorg-server

但是升級libGL時發現跳出錯誤:unknown type name GLDEBUGPROCARB

 

解決方案:刪除the packages graphics/dri and graphics/libGL

命令:

pkg delete -f dri
pkg delete -f libGL

 

3、Xorg -configure 產生xorg.conf.new檔案,此時可能出現黑屏,不用擔心用 ctrl+alt+del重啟

4、設定檔[FILE]/etc/X11/xorg.conf[/FILE],我的筆記本是1366*768的寬屏設定,從/var/log/Xorg.0.log 中讀取以下資訊:

(II) MGA(0): Supported additional Video Mode:
(II) MGA(0): clock: 69.3 MHz  Image Size:  310 x 174 mm
(II) MGA(0): h_active: 1366  h_sync: 1398  h_sync_end 1430 h_blank_end 1470 h_border: 0
(II) MGA(0): v_active: 768  v_sync: 771  v_sync_end 776 v_blanking: 786 v_border: 0

將按照ModeLine的格式配置:

ModeLine <name> <clock> <4 horiz. timings> <4 vert. timings>

配置結果:

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
        ModeLine    "1366x768" 69.3 1366 1398 1430 1470 768 771 776 786
        Option      "DPMS"
EndSection

5、正常情況下您的鍵盤滑鼠都無法使用,需要更新鍵盤滑鼠驅動:

portmaster xf86-input-mouse 
 
portmaster xf86-input-keyboard 

6、正常情況下,現在您可以正常使用嘍。

下一節描述如何使用MATE介面

我的/etc/X11/xorg.conf內容:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/local/lib/xorg/modules"
        FontPath    "/usr/local/lib/X11/fonts/misc/"
        FontPath    "/usr/local/lib/X11/fonts/TTF/"
        FontPath    "/usr/local/lib/X11/fonts/OTF/"
        FontPath    "/usr/local/lib/X11/fonts/Type1/"
        FontPath    "/usr/local/lib/X11/fonts/100dpi/"
        FontPath    "/usr/local/lib/X11/fonts/75dpi/"
        FontPath    "/usr/local/lib/X11/fonts/wqy"
EndSection

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

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

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

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
        ModeLine    "1366x768" 69.3 1366 1398 1430 1470 768 771 776 786
        Option      "DPMS"
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    "AccelMethod"              # <str>
        #Option    "Backlight"                # <str>
        #Option    "DRI"                      # <str>
        #Option    "ColorKey"                  # <i>
        #Option    "VideoKey"                  # <i>
        #Option    "Tiling"                    # [<bool>]
        #Option    "LinearFramebuffer"        # [<bool>]
        #Option    "SwapbuffersWait"          # [<bool>]
        #Option    "TripleBuffer"              # [<bool>]
        #Option    "XvPreferOverlay"          # [<bool>]
        #Option    "HotPlug"                  # [<bool>]
        #Option    "ReprobeOutputs"            # [<bool>]
        #Option    "XvMC"                      # [<bool>]
        #Option    "ZaphodHeads"              # <str>
        #Option    "TearFree"                  # [<bool>]
        #Option    "PerCrtcPixmaps"            # [<bool>]
        #Option    "FallbackDebug"            # [<bool>]
        #Option    "DebugFlushBatches"        # [<bool>]
        #Option    "DebugFlushCaches"          # [<bool>]
        #Option    "DebugWait"                # [<bool>]
        #Option    "BufferCache"              # [<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    24
        EndSubSection
EndSection

FreeBSD 8上的Rsync同步簡易教程

FreeBSD8.2系統安裝Salt

製作FreeBSD系統定製安裝ISO

FreeBSD搭建NAT並在單網卡上配置多個VLAN

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.