Description The =LEETMOUSE= kernelmodule enables quake-live like acceleration for your mouse on Linux and is heavily inspired by previous works from [[http://accel.drok-radnik.com/old.html][Povohat's mouse driver for Windows.]] =LEETMOUSE= basically fuses the original [[https://github.com/torvalds/linux/blob/master/drivers/hid/usbhid/usbmouse.c][Linux USB mouse driver]] code with the acceleration code-base and has been initially developed by [[https://github.com/chilliams][Christopher Williams]]. Since the [[https://github.com/chilliams/mousedriver][original work]] was in a rough state and seem to have been abandonned, this fork has been started.
Installation & Uninstallation ** Preparation & Configuration
Installation
./scripts/build_arch.sh
sudo pacman -U pkg/build/leetmouse*.zst
All your mice should now be bound to this driver. They will also automatically bind to it after a reboot. If this did not work, run =sudo /usr/lib/udev/leetmouse_manage bind_all=
Uninstallation
sudo pacman -R leetmouse-driver-dkms
All your mice should now be bound to the generic usbhid driver again.
** Other distros Other distributions' package-managers are not yet supported and thus need a manual installation. However Debian based systems are planned. The installation is not yet very polished but eventually will become so.
Installation
Determine the current version of this module by examining the variable =DKMS_VER= in the =Makefile=. It can be e.g. 0.9.0 Run the following commands to build and install the kernel module
sudo make setup_dkms && sudo make udev_install sudo dkms install -m leetmouse-driver -v 0.9.0 # Enter the version you determined from the Makefile earlier in here
All your mice should now be bound to this driver. They will also automatically bind to it after a reboot. If this did not work, run =sudo /usr/lib/udev/leetmouse_manage bind_all= If this still does not work, there is a major problem
Uninstallation
You again need to know then =version= as described above for the installation
sudo /usr/lib/udev/leetmouse_manage unbind_all
sudo dkms remove -m leetmouse-driver -v 0.9.0 sudo make remove_dkms && sudo make udev_uninstall
Unplug and replug your mouse or reboot to have your mice bound back to the generic usbhid.
Manual compile, insmod, bind If you want to compile this module only for testing purposes or development, you do not need to install the whole package to your system
Compile the module, remove previously loaded modules and insert it.
make clean && make sudo rmmod leetmouse sudo insmod ./driver/leetmouse.ko
If you did not install the udev rules before via =sudo make udev_install= you need to manually bind your mouse to this driver. You can take a look at =/scripts/bind.sh= for an example on how to determine your mouse's USB address for that. However using the udev rules for development is advised.
TODOS | GUI to configure the acceleration parameters | Current priority | | AUR package release | Once it reaches version 1.0 (basically after having a working GUI) | | dpkg package for Debian based systems | After AUR release | | Feature parity with Povohats driver and later even RawAccel | When I find time - Definitely after aboves milestones | | External interface for dynamically pushing acceleration parameters | Done | | Fixing the only [[https://github.com/systemofapwne/mousedriver/issues/2][vertical srolling bug]] | Done | | Easier installation & binding | Done | | DKMS support | Done | | PKGBUILD for Arch based systems | Done |