X Server

From Q
Revision as of 17:47, 13 January 2011 by Tgurr (talk | contribs)
Jump to navigation Jump to search

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 are out 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.7

Releases prior to 1.8 made use of HAL for input device configuration.

File: /etc/X11/xorg.conf
Section "Device"
        Identifier  "nvidia"
        Driver      "nvidia"
        Option      "AddARGBGLXVisuals" "true"
        Option      "AllowGLXWithComposite" "true"
        Option      "RenderAccel" "true"
EndSection
File: /etc/hal/fdi/policy/10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<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>

X.Org Server 1.8

This release features udev input device management (HAL will be deprecated in future releases), 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.

X.Org Server 1.8 is supported by nvidia drivers >=195.36.24.

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