Set backlight level for the A4Tech Bloody mice.
Initial idea, reverse-engineering and all credit goes to the original project: https://github.com/maxmati/a4tech-bloody-linux-driver.
This utility is written in C, built with a simple Makefile, accepts a command line option and includes a systemd unit file.
If you want to help reverse-engineer the mice protocol or contribute in a meaningful way, please consider https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver instead.
Compile and install on distributions with systemd:
make
sudo cp bloody /usr/local/bin
sudo cp mousebacklight.service /etc/systemd/system
sudo systemctl enable --now mousebacklight
bloody [0|1|2|3]
0 turns off backlight completely, while 3 sets it to the maximum brightness.
Look into the source code.
This utility changes the backlight level for all supported mice simultaneously.