summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2014-02-19 11:13:40 +0100
committerPeter Wu <lekensteyn@gmail.com>2014-02-19 11:13:40 +0100
commit1938dc08d1b0111f4eb236e4b920a321e78cb5da (patch)
tree5e9b4637ba9588a0111e3a4e8c83998c4c87839e
parentf6523bc6bc58665a38b34a8b00bae048f0a0923d (diff)
downloadltunify-1938dc08d1b0111f4eb236e4b920a321e78cb5da.tar.gz
Warn when CONFIG_HIDRAW is disabled
-rw-r--r--ltunify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltunify.c b/ltunify.c
index ee99a17..d5c7a54 100644
--- a/ltunify.c
+++ b/ltunify.c
@@ -1208,6 +1208,10 @@ int open_hidraw(void) {
"for %s\n", hiddev_name);
} else {
fprintf(stderr, "No Logitech Unifying Receiver device found\n");
+ if (access("/sys/class/hidraw", R_OK)) {
+ fputs("The kernel must have CONFIG_HIDRAW enabled.\n",
+ stderr);
+ }
if (access("/sys/module/hid_logitech_dj", F_OK)) {
fprintf(stderr, "Driver is not loaded, try:"
" sudo modprobe hid-logitech-dj\n");