Sunday, October 16, 2016

Evdev Gentoo


Evdev needs two things: 1) kernel support (Input device support ---> <*>
Event interface) and 2) the x11-drivers/xf86-input-evdev package installed.

Also, using HAL for this is purely optional. Im not using it and
continue to manually specify mouse and keyboard settings in xorg.conf.
My setup is the following (you might want to adjust or ignore some of
the settings; the crucial part here is the "AutoAddDevices" "false"
option which disables HAL for keyboard and mouse):

Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "250 30"
Option "XkbRules" "xorg"
Option "XkbModel" "microsoftinet"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "evdev"
Option "Protocol" "auto"
Option "Device" "/dev/input/event4"
Option "AccelerationProfile" "2"
Option "AdaptiveDeceleration" "2"
Option "FilterHalflife" "5"
Option "VelocityCoupling" "0.15"
Option "FilterChainLength" "8"
EndSection

Section "ServerLayout"
# ...
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Available link for download