FreeBSD+Intel HD 3000 显卡开启 compiz 所需要的配置

Xorg 默认生成的配置文件是无法开启 compiz 的,还需要额外添加一些选项。我的 /etc/X11/xorg.conf 如下:

Section "ServerLayout"
    Identifier  "X.org Configured"
    Screen 0    "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    Option      "AIGLX" "true"
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/"
EndSection

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

Section "Extensions" 
    Option "Composite" "Enable"
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"
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 "DRI" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "VideoKey" # <i>
    #Option "FallbackDebug" # [<bool>]
    #Option "Tiling" # [<bool>]
    #Option "LinearFramebuffer" # [<bool>]
    #Option "Shadow" # [<bool>]
    #Option "SwapbuffersWait" # [<bool>]
    #Option "TripleBuffer" # [<bool>]
    #Option "XvPreferOverlay" # [<bool>]
    #Option "DebugFlushBatches" # [<bool>]
    #Option "DebugFlushCaches" # [<bool>]
    #Option "DebugWait" # [<bool>]
    #Option "HotPlug" # [<bool>]
    #Option "RelaxedFencing" # [<bool>]
    Option "XAANoOffscreenPixmaps" "true"
    Option "DRI" "true"
    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
  EndSubSection
EndSection