This shows you the differences between the selected revision and the current version of the page.

howto:hid 2011/10/20 19:08 howto:hid 2017/09/06 18:38 current
Line 1: Line 1:
-Wham bam thank you, ma'am, my questions are anwseerd!+====== Human Interface Devices ====== 
 +Through the USB port on the DNS-323, one could, theoretically, attach mice, keyboards, joysticks and gamepads to the device. 
 +===== Information ===== 
 +To use devices with the linux kernel we need two things: a kernel object file for that specific device, and the relevant device node numbers. Kernel modules can be compiled from the GPL files, but if you can't be bothered, a selection of precompiled files can be found here: [[http://dev.skcserver.de/dns323/modules_v1.03/kernel/drivers/]]. The device node numbers can also be found in the GPL files, in  linux- or on the internet. 
 +===== USB Mice ===== 
 +First, download the driver here: [[http://dev.skcserver.de/dns323/modules_v1.03/kernel/drivers/usb/input/usbmouse.ko]] and copy it onto the NAS. Then run this script, or incorporate it into a fun_plug: 
 +<code bash>insmod /mnt/HD_a2/usbmouse.ko # Load driver 
 +mkdir /dev/input 
 +mknod /dev/input/mouse0 c 13 32 # Add individual mice 
 +mknod /dev/input/mouse1 c 13 33 
 +# Add more mice to suit 
 +mknod /dev/input/mice c 13 63 # Unified mice 
 +rm -f /dev/mouse 
 +ln -s /dev/input/mice /dev/mouse</code> 
 +By using "cat /dev/mouse" you will be able to check if a mouse is present and working, as some funny characters should appear when you move it.


Personal Tools