Human Interface Devices

Through the USB port on the DNS-323, one could, theoretically, attach mice, keyboards, joysticks and gamepads to the device.


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: 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: and copy it onto the NAS. Then run this script, or incorporate it into a fun_plug:

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

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