Skip to content

Instantly share code, notes, and snippets.

@codeniko
Created August 19, 2014 01:55
Show Gist options
  • Save codeniko/fc4a8d73e6956c767aeb to your computer and use it in GitHub Desktop.
Save codeniko/fc4a8d73e6956c767aeb to your computer and use it in GitHub Desktop.
Fix the wireless mouse if not responding.
#include <unistd.h>
#include <stdlib.h>
int main() {
setuid(0);
system("/sbin/modprobe -r hid_logitech_dj && /sbin/modprobe hid_logitech_dj");
}
@codeniko
Copy link
Author

compile and place binary into a dir thats in PATH, ex: /usr/local/bin/

chown root:niko /usr/local/bin/mousefix
chmod 4750 /usr/local/bin/mousefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment