diff options
author | Peter Wu <lekensteyn@gmail.com> | 2014-02-19 11:13:40 +0100 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2014-02-19 11:13:40 +0100 |
commit | 1938dc08d1b0111f4eb236e4b920a321e78cb5da (patch) | |
tree | 5e9b4637ba9588a0111e3a4e8c83998c4c87839e | |
parent | f6523bc6bc58665a38b34a8b00bae048f0a0923d (diff) | |
download | ltunify-1938dc08d1b0111f4eb236e4b920a321e78cb5da.tar.gz |
Warn when CONFIG_HIDRAW is disabled
-rw-r--r-- | ltunify.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |