Install 10-evdev.conf in $(prefix)/etc/X11/xorg.conf.d under udev

udev needs some xorg.conf file to tell it to load a suitable input
driver, 10-evdev.conf is as simple as they come, mapping all evdev
devices to the evdev driver.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2010-04-01 23:44:24 -07:00
parent 02328f190f
commit 24952b7866
3 changed files with 13 additions and 1 deletions

8
config/10-evdev.conf Normal file
View File

@ -0,0 +1,8 @@
#
# Catch-all evdev loader for udev-based systems
#
Section "InputClass"
Identifier "evdev-catchall"
Driver "evdev"
MatchDevicePath "/dev/input/event*"
EndSection

View File

@ -9,6 +9,9 @@ AM_CFLAGS += $(UDEV_CFLAGS)
libconfig_la_SOURCES += udev.c
libconfig_la_LIBADD = $(UDEV_LIBS)
xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
xorgconfd_DATA = 10-evdev.conf
else
if CONFIG_NEED_DBUS
@ -33,4 +36,4 @@ endif # CONFIG_NEED_DBUS
endif # !CONFIG_UDEV
EXTRA_DIST = xorg-server.conf x11-input.fdi
EXTRA_DIST = xorg-server.conf x11-input.fdi 10-evdev.conf

View File

@ -1764,6 +1764,7 @@ if test "x$XORG" = xyes; then
dnl these only go in xorg-config.h
XF86CONFIGFILE="xorg.conf"
XF86CONFIGDIR="xorg.conf.d"
AC_SUBST(XF86CONFIGDIR)
CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
LOGPREFIX="$logdir/Xorg."
AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])