歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> kernel 2.6.10安裝ATI 8.8.25驅動

kernel 2.6.10安裝ATI 8.8.25驅動

日期:2017/2/27 9:30:27   编辑:更多Linux

小弟今天經過痛苦的摸索終於解決了ATI驅動的安裝問題,感謝ATI的新驅動和rage3d.org上面各位大蝦的補丁,終於可以玩tux racer了,雖然不好玩(個人觀點).不敢獨享,特將過程寫再者裡,以防菜鳥在遇到同樣的困難:

1.下載 ATI最新的驅動程序,http://www.ati.com/support/driver.Html 選擇你需要的驅動版本,我這裡針對的是xorg 6.8,kernel 2.6.10的驅動,要確認你的內核和x的版本,運行http://www2.ati.com/drivers/Linux/Check.sh和 uname -a

2.下載這個補丁,來自www.rage3d.org

3.安裝rpm包 rpm -Uh --force 下載的軟件包的名字.rpm 主意看這裡出現的錯誤信息.

4.打補丁 如果是FC系列的話,cd /lib/modules/fglrx/,patch -p0 < 下載的補丁的路徑和文件名注意看是不是有兩行輸出表示patch 成功了.進入下一步.不行檢查路徑.

5.cd /lib/modules/fglrx/build_mod 運行 sh make.sh注意出錯的話請不要繼續cd ..sh make_install.sh

6.備份原來的 xorg.conf(非常重要的一步,別怪我沒警告你)cp /etc/X11/xorg.conf /隨便你放在哪裡

7.fglrxconfig 配置顯卡,隨便選擇吧,也可以參考我的,基本上都可以回車,只是注意顯示器的刷新率,好好想想,最好別超過85

8.別忙著重新啟動,肯定不行,生成的配置文件在 /etc/X11 下面,叫做 XF86Config-4,這是給XFree86用的,我現在用的是xorg.6.8,對應的配置文件是xorg.conf,你剛才備份吧,所以運行cd /etc/X11cp XF86Config-4 xorg.conf

9.還有一個地方,個人感覺很變態,重起之後,x起不來,進入字符界面下面,x的log指出鼠標和鍵盤出錯,沒辦法,修改xorg.conf,這個文件是分Section的Section "InputDevice"中間一堆什麼注釋阿,亂七八糟的後面有一行EndSection表示這一個Section結束了這樣的 "InputDevice" Section有兩個,一個是描述鼠標的一個是描述鍵盤的,把新的xorg.conf裡的這兩段都用舊的替換(我們備份的文件xorg.conf裡面有同樣的"InputDevice"Section

10.重新啟動的時候到了.順利進入圖形界面,恭喜你成功了,請跳到 13步繼續,我得跟不幸的人先說幾句.

11,如果黑屏閃動,出現錯誤提示,不要慌張,先看看錯誤信息,給自己到杯水,把這個信息抄下來找我.我可沒說一定有辦法解決.

12.顯恢復了再說,把之前備份的文件復制回去, cp /你放的哪了/xorg.conf /etc/X11/

13. 運行兩個重要的命令,確認我們的3d好用了,運行 flgrxinfor 看輸出是不是[root@robin X11]# fglrxinfodisplay: :0.0 screen: 0OpenGL vendor string: ATI Technologies Inc.OpenGL renderer string: RADEON 9550 GenericOpenGL version string: 1.3.4769 (X4.3.0-8.8.25)類似的.[root@robin X11]# dmesg grep agpLinux agpgart interface v0.100 (c) Dave Jonesagpgart: Detected NVIDIA nForce2 chipsetagpgart: Maximum main memory to use for agp memory: 203Magpgart: AGP aperture is 128M @ 0xd0000000agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x modeagpgart: Putting AGP V3 device at 0000:02:00.0 into 8x mode看看你的3d和AGP開好了沒有.如果AGP有錯誤,請接著修改你的xorg.conf文件,找到一行寫著

Option "UseInternalAGPGART" "yes"




改成Option "UseInternalAGPGART" "no"

再重起看看,有些帖子建議使用init 3,或者telinit 3,這個經過測試,有些系統沒辦法正確運行這個命令,所以重新啟動更加方便快捷.

附:fglrx8.08-2.6.10.patch--- agpgart_be.c 2005-01-06 9:05:02.000000000 +0100+++ agpgart_be.c 2005-01-06 9:19:16.000000000 +0100

@@ -255,6 +255,12 @@ } #endif

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+#define firegl_pci_find_class(class,from) pci_get_class(class,from)+#else+#define firegl_pci_find_class(class,from) pci_find_class(class,from)+#endif+ int agp_backend_acquire(void) { if (agp_bridge.type == NOT_SUPPORTED) {@@ -718,7 +724,7 @@ * AGP devices and collect their data. */

- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,+ while ((device = firegl_pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, device)) != NULL) { pci_read_config_dWord(device, 0x04, &scratch);

@@ -794,6 +800,13 @@ command &= ~0x00000001; } }++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ // the reference count has been increased in agp_backend_initialize.+ if (device)+ pci_dev_put(device);+#endif+ /* * PASS2: Figure out the 4X/2X/1X setting and enable the * target (our motherboard chipset).@@ -839,8 +852,9 @@ * command registers. */

- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,+ while ((device = firegl_pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, device)) != NULL) {+ pci_read_config_dword(device, 0x04, &scratch);

if (!(scratch & 0x00100000))@@ -871,6 +885,12 @@ } }

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ // the reference count has been increased in agp_backend_initialize.+ if (device)+ pci_dev_put(device);+#endif+ return 0; /* sUCcess */ }



@@ -5119,8 +5139,9 @@ * AGP devices and collect their data. */

- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,+ while ((device = firegl_pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, device)) != NULL) {+ pci_read_config_dword(device, 0x04, &scratch);

if (!(scratch & 0x00100000))@@ -5187,6 +5208,13 @@ command &= ~0x00000001; } }++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ // the reference count has been increased in agp_backend_initialize.+ if (device)+ pci_dev_put(device);+#endif+ /* * PASS2: Figure out the 4X/2X/1X setting and enable the * target (our motherboard chipset).@@ -5217,8 +5245,9 @@ * command registers. */

- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,+ while ((device = firegl_pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, device)) != NULL) {+ pci_read_config_dword(device, 0x04, &scratch);

if (!(scratch & 0x00100000))@@ -5249,6 +5278,12 @@ } }

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ // the reference count has been increased in agp_backend_initialize.+ if (device)+ pci_dev_put(device);+#endif+ return(0); /* success */ }

@@ -6494,10 +6529,10 @@ // locate host bridge device #ifdef __x86_64__ do {- dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, dev);+ dev = firegl_pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, dev); } while((dev) && !agp_check_supported_device(dev)); #else- if ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) == NULL)+ if ((dev = firegl_pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) == NULL) return -ENODEV; #endif



@@ -7040,8 +7075,12 @@ &agp_bridge.mode); return hp_zx1_setup(dev); }- dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, dev);+ dev = firegl_pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, dev); } while (dev);++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ if(dev) pci_dev_put(dev);+#endif return -ENODEV; } #endif /* __ia64__ */@@ -7462,6 +7501,11 @@ agp_bridge.free_gatt_table(); vfree(agp_bridge.key_list);

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)+ // decrease the reference count.+ pci_dev_put(agp_bridge.dev);+#endif+ if (agp_bridge.needs_scratch_page == TRUE) { agp_bridge.scratch_page &= ~(0x00000fff); agp_bridge.agp_destroy_page((unsigned long)

--- firegl_public.c 2005-01-06 9:05:02.000000000 +0100+++ firegl_public.c 2005-01-06 9:19:16.000000000 +0100@@ -88,6 +88,7 @@ #include <linux/smp_lock.h> // newer SuSE kernels need this #include <linux/highmem.h>+#include <linux/pagemap.h> // for lock_page and unlock_page

#if defined(__ia64__) #include <linux/vmalloc.h>

-----------------xorg.conf# File: XF86Config-4# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.

# Note by ATI: the below copyright notice is there for servicing possibly# pending third party rights on the file format and the instance of this file.## Copyright (c) 1999 by The XFree86 Project, Inc.## Permission is hereby granted, free of charge, to any person oBTaining a# copy of this software and associated documentation files (the "Software"),# to deal in the Software without restriction, including without limitation# the rights to use, copy, modify, merge, publish, distribute, sublicense,# and/or sell copies of the Software, and to permit persons to whom the# Software is furnished to do so, subject to the following conditions:## The above copyright notice and this permission notice shall be included in# all copies or substantial portions of the Software.## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE# SOFTWARE.## Except as contained in this notice, the name of the XFree86 Project shall# not be used in advertising or otherwise to promote the sale, use or other# dealings in this Software without prior written authorization from the# XFree86 Project.#



# **********************************************************************# Refer to the XF86Config(4/5) man page for details about the format of# this file.# **********************************************************************

# **********************************************************************# DRI Section# **********************************************************************Section "dri"# Access to OpenGL ICD is allowed for all users: Mode 0666# Access to OpenGL ICD is restricted to a specific user group:# Group 100 # users# Mode 0660EndSection

# **********************************************************************# Module section -- this section is used to specify# which dynamically loadable modules to load.# **********************************************************************#Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables# initialisation of the XFree86-DGA extension within that module. SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection

# This loads the Type1 and FreeType font modules Load "type1" Load "freetype"

# This loads the GLX module Load "glx" # libglx.a Load "dri" # libdri.a

EndSection

# **********************************************************************# Files section. This allows default font and rgb paths to be set# **********************************************************************

Section "Files"

# The location of the RGB database. Note, this is the name of the# file minus the extension (like ".txt" or ".db"). There is normally# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),# as well as specifying multiple comma-separated entries in one FontPath# command (or a combination of both methods)## If you don't have a floating point coprocessor and emacs, Mosaic or other# programs take long to start up, try moving the Type1 and Speedo Directory# to the end of this list (or comment them out).#



FontPath "/usr/X11R6/lib/X11/fonts/local/" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path. The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************# Server flags section.# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is# received. This may leave the console in an unusable state, but may# provide a better stack trace in the core dump to aid in debugging

# Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence# This allows clients to receive this key event.

# Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching# sequences. This allows clients to receive these key events.

# Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With# it the client can still run and fetch card and monitor attributes,# but it will not be allowed to change them. If it tries it will# receive a protocol error.

# Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

# Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device# (mouse and keyboard) settings.

# Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to# change the keyboard or mouse settings (currently only xset).

# Option "AllowNonLocalModInDev"

EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))# Option "Xleds" "1 2 3"# To disable the XKEYBOARD extension, uncomment XkbDisable.# Option "XkbDisable"# To customise the XKB settings to suit your keyboard, modify the# lines below (which are the defaults). For example, for a non-U.S.# keyboard, you will probably want to use:# Option "XkbModel" "pc102"# If you have a US Microsoft Natural keyboard, you can use:# Option "XkbModel" "microsoft"## Then to change the language, change the Layout setting.# For example, a german layout can be obtained with:# Option "XkbLayout" "de"# or:# Option "XkbLayout" "de"# Option "XkbVariant" "nodeadkeys"## If you'd like to switch the positions of your capslock and# control keys, use:# Option "XkbOptions" "ctrl:swapcaps"# Or if you just want both to be control, use:# Option "XkbOptions" "ctrl:nocaps"# Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us"EndSection



Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "yes"EndSection

# Any number of monitor sections may be present

Section "Monitor" Identifier "Monitor0" HorizSync 31.5 - 68.7 VertRefresh 60 - 85 Option "DPMS"

# === mode lines based on GTF ===# VGA @ 100Hz# Modeline "640x480@100" 43.163 640 680 744 848 480 481 484 509 +hsync +vsync# SVGA @ 100Hz# Modeline "800x600@100" 68.179 800 848 936 1072 600 601 604 636 +hsync +vsync# XVGA @ 100Hz# Modeline "1024x768@100" 113.309 1024 1096 1208 1392 768 769 772 814 +hsync +vsync# 1152x864 @ 60Hz# Modeline "1152x864@60" 81.642 1152 1216 1336 1520 864 865 868 895 +hsync +vsync# 1152x864 @ 85Hz# Modeline "1152x864@85" 119.651 1152 1224 1352 1552 864 865 868 907 +hsync +vsync# 1152x864 @ 100Hz# Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vsync# 1280x960 @ 75Hz# Modeline "1280x960@75" 129.859 1280 1368 1504 1728 960 961 964 1002 +hsync +vsync# 1280x960 @ 100Hz# Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017 +hsync +vsync# SXGA @ 100Hz# Modeline "1280x1024@100" 190.960 1280 1376 1520 1760 1024 1025 1028 1085 +hsync +vsync# SPEA GDM-1950 (60Hz,64kHz,110MHz,-,-): 1280x1024 @ V-freq: 60.00 Hz, H-freq: 63.73 KHz# Modeline "GDM-1950" 109.62 1280 1336 1472 1720 1024 1024 1026 1062 -hsync -vsync# 1600x1000 @ 60Hz# Modeline "1600x1000" 133.142 1600 1704 1872 2144 1000 1001 1004 1035 +hsync +vsync# 1600x1000 @ 75Hz# Modeline "1600x1000" 169.128 1600 1704 1880 2160 1000 1001 1004 1044 +hsync +vsync# 1600x1000 @ 85Hz# Modeline "1600x1000" 194.202 1600 1712 1888 2176 1000 1001 1004 1050 +hsync +vsync# 1600x1000 @ 100Hz# Modeline "1600x1000" 232.133 1600 1720 1896 2192 1000 1001 1004 1059 +hsync +vsync# 1600x1024 @ 60Hz# Modeline "1600x1024" 136.385 1600 1704 1872 2144 1024 1027 1030 1060 +hsync +vsync# 1600x1024 @ 75Hz# Modeline "1600x1024" 174.416 1600 1712 1888 2176 1024 1025 1028 1069 +hsync +vsync# 1600x1024 @ 76Hz# Modeline "1600x1024" 170.450 1600 1632 1792 2096 1024 1027 1030 1070 +hsync +vsync# 1600x1024 @ 85Hz# Modeline "1600x1024" 198.832 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +vsync# 1920x1080 @ 60Hz# Modeline "1920x1080" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync -vsync# 1920x1080 @ 75Hz# Modeline "1920x1080" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +vsync# 1920x1200 @ 60Hz# Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +vsync# 1920x1200 @ 75Hz# Modeline "1920x1200" 246.590 1920 2064 2272 2624 1200 1201 1203 1253 +hsync +vsync# 2048x1536 @ 60# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync# 2048x1536 @ 60# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync# 1400x1050 @ 60Hz M9 Laptop mode# ModeLine "1400x1050" 122.000 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync# 1920x2400 @ 25Hz for IBM T221, VS VP2290 and compatible display devices# Modeline "1920x2400@25" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync +vsync# 1920x2400 @ 30Hz for IBM T221, VS VP2290 and compatible display devices# Modeline "1920x2400@30" 149.250 1920 1928 1982 2044 2400 2402 2404 2434 +hsync +vsync



EndSection

# **********************************************************************# Graphics device section# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device" Identifier "Standard VGA" VendorName "Unknown" BoardName "Unknown"

# The chipset line is optional in most cases. It can be used to override# the driver's chipset detection, and should not normally be specified.

# Chipset "generic"

# The Driver line must be present. When using run-time loadable driver# modules, this line instructs the server to load the specified driver# module. Even when not using loadable driver modules, this line# indicates which driver should interpret the information in this section.

Driver "vga"# The BusID line is used to specify which of possibly multiple devices# this section is intended for. When this line isn't present, a device# section can only match up with the primary video device. For PCI# devices a line like the following could be used. This line should not# normally be included unless there is more than one video device# installed.

# BusID "PCI:0:10:0"

# VideoRam 256

# Clocks 25.2 28.3

EndSection

# === ATI device section ===

Section "Device" Identifier "ATI Graphics Adapter" Driver "fglrx"# ### generic DRI settings #### === disable PnP Monitor === #Option "NoDDC"# === disable/enable XAA/DRI === Option "no_accel" "no" Option "no_dri" "no"# === misc DRI settings === Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr# ### FireGL DDX driver module specific settings #### === Screen Management === Option "DesktopSetup" "0x00000000" Option "MonitorLayout" "AUTO, AUTO" Option "IgnoreEDID" "off" Option "HSync2" "unspecified" Option "VRefresh2" "unspecified" Option "ScreenOverlap" "0"# === TV-out Management === Option "NoTV" "yes" Option "TVStandard" "NTSC-M" Option "TVHSizeAdj" "0" Option "TVVSizeAdj" "0" Option "TVHPosAdj" "0" Option "TVVPosAdj" "0" Option "TVHStartAdj" "0" Option "TVColorAdj" "0" Option "GammaCorrectionI" "0x00000000" Option "GammaCorrectionII" "0x00000000"# === OpenGL specific profiles/settings === Option "Capabilities" "0x00000000"# === Video Overlay for the Xv extension === Option "VideoOverlay" "on"# === OpenGL Overlay ===# Note: When OpenGL Overlay is enabled, Video Overlay# will be disabled automatically Option "OpenGLOverlay" "off"# === Center Mode (Laptops only) === Option "CenterMode" "off"# === Pseudo Color Visuals (8-bit visuals) === Option "PseudoColorVisuals" "off"# === QBS Management === Option "Stereo" "off" Option "StereoSyncEnable" "1"# === FSAA Management === Option "FSAAEnable" "no" Option "FSAAScale" "1" Option "FSAADisableGamma" "no" Option "FSAACustomizeMSPos" "no" Option "FSAAMSPosX0" "0.000000" Option "FSAAMSPosY0" "0.000000" Option "FSAAMSPosX1" "0.000000" Option "FSAAMSPosY1" "0.000000" Option "FSAAMSPosX2" "0.000000" Option "FSAAMSPosY2" "0.000000" Option "FSAAMSPosX3" "0.000000" Option "FSAAMSPosY3" "0.000000" Option "FSAAMSPosX4" "0.000000" Option "FSAAMSPosY4" "0.000000" Option "FSAAMSPosX5" "0.000000" Option "FSAAMSPosY5" "0.000000"# === Misc Options === Option "UseFastTLS" "0" Option "BlockSignalsOnLock" "on" Option "UseInternalAGPGART" "no" Option "ForceGenericCPU" "no"# BusID "PCI:1:0:0" # no device found at config time Screen 0EndSection



# **********************************************************************# Screen sections# **********************************************************************

# Any number of screen sections may be present. Each describes# the configuration of a single screen. A single specific screen section# may be specified from the X server command line with the "-screen"# option.Section "Screen" Identifier "Screen0" Device "ATI Graphics Adapter" Monitor "Monitor0" DefaultDepth 24 #Option "backingstore"

Subsection "Display" Depth 24 Modes "1024x768" ViewPort 0 0 # initial origin if mode is smaller than desktop# Virtual 1280 1024 EndSubsectionEndSection

# **********************************************************************# ServerLayout sections.# **********************************************************************

# Any number of ServerLayout sections may be present. Each describes# the way multiple screens are organised. A specific ServerLayout# section may be specified from the X server command line with the# "-layout" option. In the absence of this, the first section is used.# When now ServerLayout section is present, the first Screen section# is used alone.

Section "ServerLayout"

# The Identifier line must be present Identifier "Server Layout"

# Each Screen line specifies a Screen section name, and optionally# the relative position of other screens. The four names after# primary screen name are the screens to the top, bottom, left and right# of the primary screen.

Screen "Screen0"

# Each InputDevice line specifies an InputDevice section name and# optionally some options to specify the way the device is to be# used. Those options include "CorePointer", "CoreKeyboard" and# "SendCoreEvents".

InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard"

EndSection

### EOF ###



Copyright © Linux教程網 All Rights Reserved