X Server: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== X.Org Server 1.7 ==
== General Information ==
Releases prior to 1.8 made use of HAL for input device configuration.
Be sure so recompile input/video drivers like nvidia-drivers and xf86-input-evdev against the new server ABI when upgrading.


{{Box File|/etc/X11/xorg.conf|
When there are no available nvidia-drivers which support the recent X.Org Server release you can try to pass the -ignoreABI switch to X, for example the configuration for KDE.
<pre>
Section "Device"
        Identifier  "nvidia"
        Driver      "nvidia"
        Option      "AddARGBGLXVisuals" "true"
        Option      "AllowGLXWithComposite" "true"
        Option      "RenderAccel" "true"
EndSection
</pre>
}}


{{Box File|/etc/hal/fdi/policy/10-x11-input.fdi|
{{File|/usr/share/config/kdm/kdmrc|
<pre>
<pre>
<?xml version="1.0" encoding="UTF-8"?>
ServerCmd=/usr/bin/X -br -novtswitch -quiet -ignoreABI
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>
      <merge key="input.xkb.model" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">de</merge>
      <merge key="input.xkb.variant" type="string">nodeadkeys</merge>
    </match>
  </device>
</deviceinfo>
</pre>
</pre>
}}
}}


== X.Org Server 1.8 ==
== X.Org Server 1.8 and greater ==
This release features udev input device management (HAL will be deprecated in the long run), it also adds xorg.conf.d directory support to simplify configuration. You no longer need a {{Path|/etc/X11/xorg.conf}} or the previous HAL .fdi files.
Since X.Org Server 1.8 udev has superseded HAL, it also adds xorg.conf.d directory support to simplify configuration. You no longer need a {{Path|/etc/X11/xorg.conf}} or the previous HAL .fdi files.


{{Box File|/etc/X11/xorg.conf.d/10-evdev.conf|
{{File|/etc/X11/xorg.conf.d/10-evdev.conf|
<pre>
<pre>
# Catch-all evdev loader for udev-based systems
# Catch-all evdev loader for udev-based systems
Line 77: Line 57:
}}
}}


{{Box File|/etc/X11/xorg.conf.d/50-nvidia.conf|
{{File|/etc/X11/xorg.conf.d/20-nouveau.conf|
<pre>
Section "Device"
        Identifier  "nvidia"
        Driver      "nouveau"
EndSection
</pre>
}}
 
{{File|/etc/X11/xorg.conf.d/50-nvidia.conf|
<pre>
<pre>
Section "Device"
Section "Device"
Line 89: Line 78:
}}
}}


{{Box File|/etc/X11/xorg.conf.d/97-evdev.conf|
{{File|/etc/X11/xorg.conf.d/97-evdev.conf|
<pre>
<pre>
Section "InputClass"
Section "InputClass"

Latest revision as of 13:21, 4 May 2012

General Information

Be sure so recompile input/video drivers like nvidia-drivers and xf86-input-evdev against the new server ABI when upgrading.

When there are no available nvidia-drivers which support the recent X.Org Server release you can try to pass the -ignoreABI switch to X, for example the configuration for KDE.

File: /usr/share/config/kdm/kdmrc
ServerCmd=/usr/bin/X -br -novtswitch -quiet -ignoreABI

X.Org Server 1.8 and greater

Since X.Org Server 1.8 udev has superseded HAL, it also adds xorg.conf.d directory support to simplify configuration. You no longer need a /etc/X11/xorg.conf or the previous HAL .fdi files.

File: /etc/X11/xorg.conf.d/10-evdev.conf
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection
File: /etc/X11/xorg.conf.d/20-nouveau.conf
Section "Device"
        Identifier  "nvidia"
        Driver      "nouveau"
EndSection
File: /etc/X11/xorg.conf.d/50-nvidia.conf
Section "Device"
        Identifier  "nvidia"
        Driver      "nvidia"
        Option      "AddARGBGLXVisuals" "true"
        Option      "AllowGLXWithComposite" "true"
        Option      "RenderAccel" "true"
EndSection
File: /etc/X11/xorg.conf.d/97-evdev.conf
Section "InputClass"
        Identifier "keyboard-all"
        MatchIsKeyboard "on"
        Driver "evdev"
        Option "XkbLayout" "de"
        Option "XkbVariant" "nodeadkeys"
        Option "XkbOptions" "grp:alt_shift_toggle,compose:rwin,terminate:ctrl_alt_bksp"
EndSection