Important: You are required to change your passwords used for Gentoo services and set an email address for your Wiki account if you haven't done so. See the full announcement and Wiki email policy change for more information.

evdev

From Gentoo Wiki
Jump to: navigation, search

evdev is the open source input driver for many input devices like keyboards, mice, joysticks and more.

Installation

Kernel

You need USB support, if you have an USB input device. Also you need to activate the following kernel options:

Kernel configuration

Device Drivers  --->
    Input device support  --->
        <*>   Event interface

        If a mouse is connected to a PS/2 port:
        [*]   Mice  --->
              <*>   PS/2 mouse

       If a keyboard is connected to a PS/2 port:
        -*-   Keyboards  --->
              <*>   AT keyboard

    If an input device is connected to an USB port:
    [*] HID Devices  --->
        -*-   Generic HID support
        <*>   USB Human Interface Device (full HID) support

Some USB mice (e.g. Logitech G5 and Razer Naga 2014) additionally need the following option:

Kernel configuration

Device Drivers  --->
    [*] USB support  --->
        [*]   Improved Transaction Translator scheduling

Driver

Portage uses the variable INPUT_DEVICES for enabling support for various input devices in packages. Setting INPUT_DEVICES to evdev will pull in the correct driver:

File/etc/portage/make.conf

 INPUT_DEVICES="evdev"

After setting this you want to update your system so the changes take effect:

root # emerge --ask --changed-use --deep world

Configuration

Keyboard layout

To set the default layout copy the file 10-evdev.conf to /etc/X11/xorg.conf.d and edit the keyboard section, e.g. for a german layout:

root # cp /usr/share/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/
File/etc/X11/xorg.conf.d/10-evdev.conf

Section "InputClass"
        Identifier "evdev keyboard catchall"
        ...
        Driver "evdev"
        Option "xkb_layout" "de"
EndSection