📜 ⬆️ ⬇️

How I introduced the DNS Extreme M-1 mouse to Xubuntu 12.04.2 LTS

After buying the DNS Extreme M-1 mouse, it turned out that it does not work in the Xubuntu 12.04.2 LTS operating system, and on the official website under the Question-Answer heading it is written that this mouse does not support any Linux.

The lsusb team showed the mouse how
Bus 003 Device 002: ID 04d9:a067 Holtek Semiconductor, Inc. 
Intensively googling for about a day, an interesting solution was found at one of the foreign forums .
Open a terminal (by default, Ctrl + Alt + T).
Will execute
 sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev 
to install the necessary packages for building the kernel.
Next, perform
 mkdir ~/source cd ~/source apt-get source linux-image-$(uname -r) 
to get the source code of the current kernel. The source code for the 3.2.48 kernel is approximately 98.7 MB. We'll have to wait a bit.
We'll type
 cd linux 
and press the Tab key to auto-complete the full folder name, then press Enter.
Will execute
 gedit include/linux/hid.h 
and find in the file the line #define HID_MAX_USAGES (To search, you can use the combination Ctrl + F). Change the numeric value to 64000.
Will execute
 cp -vi /boot/config-`uname -r` .config 
to prepare the configuration file of our current operating system.
You can also perform further
 export CONCURRENCY_LEVEL=# 
to speed up the compilation process. # must be replaced by a number greater than 1 than the number of cores in the CPU.
Will execute
 make-kpkg clean 
to prepare the directory for compilation.
Launch a custom kernel compilation
 fakeroot make-kpkg --initrd --append-to-version=-sk kernel-image kernel-headers 

Attention! The compilation process can take a long time (on the Intel U5400 processor, my laptop had to wait a little more than 4 hours).
After the operation is completed, we move to the kernel source code directory, where two deb packages will be waiting for us.
 cd ~/source 

Next we proceed to the installation process of the custom kernel.
In the file manager, go to the path / lib / modules . Open the terminal and execute
 cd ~/source 

Next, perform
 sudo dpkg -i linux-image-*.deb sudo dpkg -i linux-headers-*.deb 

Package names can be found by typing a command by pressing Tab, using auto-complete.
Perform further
 sudo update-initramfs -c -k _) 

You need to replace the name of the new folder that appeared in the file manager. I called it 3.2.48-sk .
Update grub
 sudo update-grub 

For those who use burg, you need to upgrade and burg
 sudo update-burg 

To remove the packages that are no longer needed, run
 sudo apt-get remove fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev 
but I left them in place, you never know.
Will execute
 rm -r ~/source 
to remove the source directory.
Reboot the system by booting by selecting a new kernel.
After booting the system, the mouse is working.
Surely, this instruction can help for other DNS products. Why the value of HID_MAX_USAGES affects the support of the equipment, I myself do not fully understand. I will be glad to hear competent explanations in the comments.

')

Source: https://habr.com/ru/post/189966/


All Articles