[技术]–gentoo xorg.conf 配置

作者:wojtek 时间:2013-09-25 分类:技术 评论:评论已关闭 浏览:2567

kernel-3.7.10-gentoo_x86_64

#lspci
#00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
#00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
#00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
#00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
#00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
#00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
#00:1c.1 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
#00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
#00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
#00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
#00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
#00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
#02:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 30)
#04:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)

一般在驱动正确安装之后执行一下命令会自动生成xorg.conf文件,如果无法生成文件说明驱动很有可能没有正确安装.

#Xorg -configure

以下大部分参数会自动生产,某些需要手动配置的我会标记出来.

64位系统配置文件
文件:/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/lib64/xorg/modules”
FontPath “/usr/share/fonts/misc/”
FontPath “/usr/share/fonts/TTF/”
FontPath “/usr/share/fonts/OTF/”
FontPath “/usr/share/fonts/Type1/”
FontPath “/usr/share/fonts/100dpi/”
FontPath “/usr/share/fonts/75dpi/”
EndSection
#开启glx dri
Section “Module”
Load “glx”
Load “dri”
EndSection
#XkbLayout 键盘布局,这里us是美国
Section “InputDevice”
Identifier “Keyboard0″
Driver “kbd”
Option “XkbModel” “pc105″
Option “XkbLayout” “us”
EndSection
#ZAxisMapping 4567 是指滚轮
Section “InputDevice”
Identifier “Mouse0″
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/mice”
Option “ZAxisMapping” “4 5 6 7″
EndSection

# Modeline 的设置可以用命令 gtf 1920 1080 60 (1920×1080@60hz),这里要根据自己的显示屏分辨率和刷新率来查看.
# 1920×1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
# Modeline “1920x1080_60.00″ 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

Section “Monitor”
Identifier “Monitor0″
VendorName “Monitor Vendor”
ModelName “Monitor Model”
# HorizSync 30 – 83
# VertRefresh 56 – 75
Modeline “1920x1080_60.00″ 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
#Driver 一项要填自己驱动名称,我在make.conf里面设置好是intel,而且安装正确,这里就自动填上了.
Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/”False”,
### : “String”, : “ Hz/kHz/MHz”,
### : “%”
### [arg]: arg optional
#Option “NoAccel” # []
#Option “AccelMethod” #
#Option “Backlight” #
#Option “DRI” #
#Option “ColorKey” #
#Option “VideoKey” #
#Option “Tiling” # []
#Option “LinearFramebuffer” # []
#Option “SwapbuffersWait” # []
#Option “XvPreferOverlay” # []
#Option “HotPlug” # []
#Option “RelaxedFencing” # []
#Option “Throttle” # []
#Option “ZaphodHeads” #
#Option “DelayedFlush” # []
#Option “TearFree” # []
#Option “PerCrtcPixmaps” # []
Identifier “Card0″
Driver “intel”
BusID “PCI:0:2:0″
EndSection
#这里的设置很简单,参考照着写就可以Depth是指色深,Modes是指分辨率
Section “Screen”
Identifier “Screen0″
Device “Card0″
Monitor “Monitor0″
SubSection “Display”
Viewport 0 0
Depth 24
Modes “1920×1080″ “1024×768″
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 32
Modes “1920×1080″ “1024×768″
EndSubSection

EndSection
#DRI的权限,这个固定 Mode 0666就可以.
Section “DRI”
Mode 0666
EndSection

标签:

相关推荐

评论已关闭。