aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2015-11-02 22:03:46 +0000
committerPaul Healy <lmiphay@gmail.com>2015-11-02 22:03:46 +0000
commitaed35963a704f36953d769f5be7f3a51f4cce941 (patch)
tree41b22c0a96312975b0dcb13e047a4bae0a7f50c4 /app-misc/g13/files
parentadd a requirement for the symlink use flag on kernel source packages (diff)
downloadlmiphay-aed35963a704f36953d769f5be7f3a51f4cce941.tar.gz
lmiphay-aed35963a704f36953d769f5be7f3a51f4cce941.tar.bz2
lmiphay-aed35963a704f36953d769f5be7f3a51f4cce941.zip
add uinput G13 driver
Diffstat (limited to 'app-misc/g13/files')
-rw-r--r--app-misc/g13/files/92-uinput-g13.rules1
-rw-r--r--app-misc/g13/files/g13.conf.d5
-rwxr-xr-xapp-misc/g13/files/g13.init.d40
-rw-r--r--app-misc/g13/files/keys.txt141
4 files changed, 187 insertions, 0 deletions
diff --git a/app-misc/g13/files/92-uinput-g13.rules b/app-misc/g13/files/92-uinput-g13.rules
new file mode 100644
index 0000000..1302bb8
--- /dev/null
+++ b/app-misc/g13/files/92-uinput-g13.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="input", KERNEL=="ts[0-9]*|uinput", GROUP="plugdev", MODE:="0660"
diff --git a/app-misc/g13/files/g13.conf.d b/app-misc/g13/files/g13.conf.d
new file mode 100644
index 0000000..2ca3f5b
--- /dev/null
+++ b/app-misc/g13/files/g13.conf.d
@@ -0,0 +1,5 @@
+# /etc/conf.d/g13: configuration for /etc/init.d/g13
+
+# Arguments to pass to g13: g13 <logo>
+#
+G13_ARGS="/usr/share/g13/logo.lpbm"
diff --git a/app-misc/g13/files/g13.init.d b/app-misc/g13/files/g13.init.d
new file mode 100755
index 0000000..35ed6e4
--- /dev/null
+++ b/app-misc/g13/files/g13.init.d
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+description="libusb driver for the g13"
+
+user="g13:plugdev"
+
+cmdpipe="/run/g13-0"
+logfile="/var/log/g13.log"
+
+start_stop_daemon_args="--user $user --stdout $logfile --stderr $logfile"
+
+command="/usr/sbin/g13d"
+command_args="
+ ${G13_ARGS}
+"
+
+command_background=yes
+pidfile=/run/g13.pid
+
+stopsig="SIGINT"
+
+depend() {
+ need localmount
+ after bootmisc
+ provide g13
+}
+
+start_pre() {
+ checkpath --pipe --owner $user --mode 0664 $cmdpipe
+ checkpath --file --owner $user --mode 0644 $logfile
+
+ [ -c /dev/uinput ] || modprobe -q uinput
+ if [ $? -ne 0 ]; then
+ eerror "No uinput support available in kernel"
+ return 1
+ fi
+}
diff --git a/app-misc/g13/files/keys.txt b/app-misc/g13/files/keys.txt
new file mode 100644
index 0000000..3959eae
--- /dev/null
+++ b/app-misc/g13/files/keys.txt
@@ -0,0 +1,141 @@
+Known keys on G13:
+BD
+DOWN
+G1
+G10
+G11
+G12
+G13
+G14
+G15
+G16
+G17
+G18
+G19
+G2
+G20
+G21
+G22
+G3
+G4
+G5
+G6
+G7
+G8
+G9
+L1
+L2
+L3
+L4
+LEFT
+LIGHT
+LIGHT_STATE
+M1
+M2
+M3
+MR
+TOP
+STICK_LEFT
+STICK_RIGHT
+STICK_UP
+STICK_DOWN
+
+Known keys to map to:
+KEY_0
+KEY_1
+KEY_2
+KEY_3
+KEY_4
+KEY_5
+KEY_6
+KEY_7
+KEY_8
+KEY_9
+KEY_A
+KEY_APOSTROPHE
+KEY_B
+KEY_BACKSLASH
+KEY_BACKSPACE
+KEY_C
+KEY_CAPSLOCK
+KEY_COMMA
+KEY_D
+KEY_DELETE
+KEY_DOT
+KEY_DOWN
+KEY_E
+KEY_END
+KEY_ENTER
+KEY_EQUAL
+KEY_ESC
+KEY_F
+KEY_F1
+KEY_F10
+KEY_F11
+KEY_F12
+KEY_F2
+KEY_F3
+KEY_F4
+KEY_F5
+KEY_F6
+KEY_F7
+KEY_F8
+KEY_F9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