From 8204f087fb816414efa07710de78f37b4864c06f Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Wed, 13 Dec 2017 21:46:01 -0500 Subject: confirmed that adding the metadata allows X11 to autodetect skey_dev --- skey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skey.c b/skey.c index 00432c9..b820e01 100644 --- a/skey.c +++ b/skey.c @@ -149,6 +149,10 @@ static int __init skey_init (void) { set_bit(EV_KEY, skey_dev->evbit); set_bit(EV_REL, skey_dev->evbit); set_bit(KEY_CAPSLOCK, skey_dev->keybit); + /* + * skey_dev->name and skey_dev->id are metadata that are required for X11 + * and libinput to use skey_dev + */ //sets the name of skey_dev skey_dev->name = skey_name; //sets ids -- cgit v1.1