Skip to content

Commit

Permalink
Re-enables keyboard via evdev.
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetersson committed May 30, 2016
1 parent fdff968 commit 4cfba40
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
40 changes: 40 additions & 0 deletions ansible/roles/system/files/10-evdev.conf
@@ -0,0 +1,40 @@
#
# 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
9 changes: 8 additions & 1 deletion ansible/roles/system/tasks/main.yml
Expand Up @@ -122,12 +122,19 @@
owner: root
group: root

- name: Copy in evdev
copy:
src: 10-evdev.conf
dest: /usr/share/X11/xorg.conf.d/10-evdev.conf
mode: 0644
owner: root
group: root

- name: Clear out X11 configs (disables touchpad and other unnecessary things)
file:
path: "/usr/share/X11/xorg.conf.d/{{ item }}"
state: absent
with_items:
- 10-evdev.conf
- 50-synaptics.conf
- 10-quirks.conf
- 50-wacom.conf
Expand Down

0 comments on commit 4cfba40

Please sign in to comment.