summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-04-24 10:22:39 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-04-24 10:22:39 +0200
commit50dbefc2ae98743a349a92f6e9922f2d5743e8c7 (patch)
tree9b089b190e8710fb57fb510442f87d105adbe16d
parent3e2049b48b56f945442b3223e3ac7a48c039fce8 (diff)
downloadltunify-50dbefc2ae98743a349a92f6e9922f2d5743e8c7.tar.gz
ltunify: suggest loading hid-logitech-dj
-rw-r--r--ltunify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltunify.c b/ltunify.c
index 1330bb8..127dd12 100644
--- a/ltunify.c
+++ b/ltunify.c
@@ -921,6 +921,10 @@ int open_hidraw(void) {
"for %s\n", hiddev_name);
} else {
fprintf(stderr, "No Logitech Unifying Receiver device found\n");
+ if (access("/sys/module/hid_logitech_dj", F_OK)) {
+ fprintf(stderr, "Driver is not loaded, try:"
+ " sudo modprobe hid-logitech-dj\n");
+ }
}
}
globfree(&matches);