summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2017-03-20 15:17:32 +0900
committerINSUN PYO <insun.pyo@samsung.com>2017-03-20 15:25:15 +0900
commitec8b68bbbf9778d953b59b7bfb1eba7ad0867a1b (patch)
treeeb134e6bf0f4a49005a6fb637bf8798d7f31b15f
parent5b00df1d8c4b5045980e56bba269172b9bf4ba5b (diff)
downloadsystem-plugin-ec8b68bbbf9778d953b59b7bfb1eba7ad0867a1b.tar.gz
system-plugin-ec8b68bbbf9778d953b59b7bfb1eba7ad0867a1b.tar.bz2
system-plugin-ec8b68bbbf9778d953b59b7bfb1eba7ad0867a1b.zip
Add keymapping table for WinTV-HVR 950Q This patch converts Exit keycode to Back key. Strangely, it is printed as Back in the remote control, but kernel put the Exit keycode. Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I284d883e4e9feadccec2ec8bc86f7c6d41b18f43
-rw-r--r--packaging/system-plugin.spec8
-rw-r--r--rules/60-evdev.hwdb3
2 files changed, 11 insertions, 0 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index a19cb7b..d8ae794 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -14,6 +14,7 @@ Source1: %{name}.manifest
Source2: liblazymount.manifest
Requires(post): /usr/bin/systemctl
+Requires(post): /usr/bin/udevadm
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(libsystemd)
@@ -154,6 +155,9 @@ install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/ud
install -m 644 rules/51-system-plugin-spreadtrum.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
install -m 644 rules/99-usb-ethernet.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
+mkdir -p %{buildroot}%{_prefix}/lib/udev/hwdb.d/
+install -m 644 rules/60-evdev.hwdb %{buildroot}%{_prefix}/lib/udev/hwdb.d/
+
# fstab
mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 etc/fstab %{buildroot}%{_sysconfdir}
@@ -219,6 +223,10 @@ systemctl daemon-reload
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service
%{_sysconfdir}/fstab
+%{_prefix}/lib/udev/hwdb.d/60-evdev.hwdb
+
+%post u3
+%{_prefix}/bin/udevadm hwdb --update
%files n4
%manifest %{name}.manifest
diff --git a/rules/60-evdev.hwdb b/rules/60-evdev.hwdb
new file mode 100644
index 0000000..3cdcda3
--- /dev/null
+++ b/rules/60-evdev.hwdb
@@ -0,0 +1,3 @@
+# WinTV-HVR 950Q HYBRID TV STICK
+evdev:name:*Hauppauge*:*
+ KEYBOARD_KEY_1c1f=back