Sharkoon Drakonia Gaming Mouse doesn't work at all
I've got a new Mouse "Sharkoon Drakonia", a gaming mouse with 11 buttons and high changable resolution.
The problem is, that the mouse doesn't work. Only the LEDs are visible, but wether the buttons nor the mouse movement ist recognized. Under Windows the mouse works out of the box (main buttons, movement, forward and backward, the other buttons not yet tested).
Also the lsusb seems not to see it right:
Bus 003 Device 002: ID 04d9:a067 Holtek Semiconductor, Inc.
This solution should work with all Sharkoon mice at the time of writing this revision.
Recompiling Ubuntu Kernel for Sharkoon support
- Open a Terminal window (Ctrl + Alt + T)
- Run
sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev
to get required packages for kernel building. You canapt-get remove <package name>
these packages if you do not want them afterwards. -
Run the following to create a folder for the kernel source:
mkdir ~/source cd ~/source apt-get source linux-image-$(uname -r)
Type in
cd linux
and press Tab to fill in the rest of the folder's name before pressing Enter.- Type in
gedit include/linux/hid.h
and find the string (Ctrl + F) "#define HID_MAX_USAGES" and change the value of it to '64000'. - Run
cp -vi /boot/config-`uname -r` .config
to get the config file from your current system. - (Opt) To speed up compiling, you can set the concurrency level. Run
export CONCURRENCY_LEVEL=#
Replace "#" with the number of cores on your CPU + 1. (Dual-core will be "3") - Run
make-kpkg clean
to prepare the directory for compiling. - Run
fakeroot make-kpkg --initrd --append-to-version=-sk kernel-image kernel-headers
to start compiling the kernel. This will take a long time. If you have to interrupt the process, you will have to runrm ~/source
and start from Step 3.
The kernel binaries (.deb) will be in the folder ~/source
.
Installing the custom kernel
- Open a File Manager window and navigate to
/lib/modules
. - Open a Terminal Window and
cd ~/source
-
Run the following using Tab to autocomplete the names:
sudo dpkg -i linux-image-(REPLACE_ME).deb sudo dpkg -i linux-headers-(REPLACE_ME).deb
Run
sudo update-initramfs -c -k (REPLACE_ME[DIFFERENT])
replacing with the name of the new folder (should end with "-sk" in the File Manager window.- Run
sudo update-grub
. - Restart your computer.
You should now be running with your new, custom-compiled kernel.
(Opt) Cleaning up
- Open a Terminal window
- Run
sudo apt-get remove fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev
- Run
rm ~/source
(Or you could delete the directory from a file manager)
Driver for the mouse exist in the 3.11.2 stable kernel. kernel mailinglist
Increase the HID_MAX_USAGES
is just a workaround.