summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf6
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf40
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend17
3 files changed, 63 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf
new file mode 100644
index 0000000..6fd5298
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf
@@ -0,0 +1,6 @@
1# Initial xorg.conf for the RaspberryPi
2# Most things are setup automatically by magic pixies in the system.
3#
4# It is suggested this file is not used any more and configuration
5# snippets are placed in xorg.conf.d instead.
6#
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf
new file mode 100644
index 0000000..cc83ab2
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi/xorg.conf.d/10-evdev.conf
@@ -0,0 +1,40 @@
1#
2# Catch-all evdev loader for udev-based systems
3# We don't simply match on any device since that also adds accelerometers
4# and other devices that we don't really want to use. The list below
5# matches everything but joysticks.
6
7Section "InputClass"
8 Identifier "evdev pointer catchall"
9 MatchIsPointer "on"
10 MatchDevicePath "/dev/input/event*"
11 Driver "evdev"
12EndSection
13
14Section "InputClass"
15 Identifier "evdev keyboard catchall"
16 MatchIsKeyboard "on"
17 MatchDevicePath "/dev/input/event*"
18 Driver "evdev"
19EndSection
20
21Section "InputClass"
22 Identifier "evdev touchpad catchall"
23 MatchIsTouchpad "on"
24 MatchDevicePath "/dev/input/event*"
25 Driver "evdev"
26EndSection
27
28Section "InputClass"
29 Identifier "evdev tablet catchall"
30 MatchIsTablet "on"
31 MatchDevicePath "/dev/input/event*"
32 Driver "evdev"
33EndSection
34
35Section "InputClass"
36 Identifier "evdev touchscreen catchall"
37 MatchIsTouchscreen "on"
38 MatchDevicePath "/dev/input/event*"
39 Driver "evdev"
40EndSection
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000..04204dc
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,17 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2# Don't forget to bump PRINC if you update the extra files.
3PRINC = "3"
4
5THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
6FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
7
8SRC_URI_append = " file://xorg.conf.d/*"
9
10CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf.d/*"
11
12do_install_append () {
13 install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
14 install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/
15}
16
17FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d" \ No newline at end of file