📄 readme.txt
字号:
WIIMOTE LINUX DRIVER INSTALLATION INSTRUCTIONSInstalling the Driver Before you install this driver, there are a few things you need to have ready: 1) bluez should be installed on your system. If not, check out http://www.bluez.org 2) A bluetooth adapter (internal or external). 3) a Wii remote. If you have everything listed above, then all you need to do is: 1) Execute the 'make' command within the wii_source directory i.e. wii_source$ make 2) Execute the start.sh script. You'll need root access since the start.sh script inserts a new driver module into your kernel. You can use sudo to execute start.sh like so: wii_source$ sudo ./start.sh Once the shell prompt returns, take your wii remote and press the number 1 and 2 button at the same time. The blue lights on your wii remote will start flashing and the driver will attemp to establish a connection with the wiimote. If a connection has been established, you'll see a message in your shell that says 'data: 22, len = 5'.USING YOUR WII REMOTE When your Wii remote has been connected, here's what you can do: 1) Tilt the Wii remote up to move the mouse up 2) Tilt the Wii remote down to move the mouse down 3) Twist the Wii remote left to move the mouse left 4) Twist the Wii remote right to move the mouse right 5) Press the A button to left click 6) Press the B button to right click 7) Press the up directional button to scroll up 8) Press the down directional button to scroll down STOPPING AND UNINSTALLING THE WII REMOTE To stop your mouse from being controlled by the wii remote, execute the stop.sh script. You'll need root access to execute this script, so you could try: wii_source$ sudo ./stop.shIf you want to remove the Wiimote Linux driver from your computer, execute the'make clean' command in your shell prompt (i.e. wii_source$ make clean)TROUBLESHOOTING If you run into trouble installing or using the Wii remote, here are a few problems we ran into that might help you out: 1) The Wiimote Linux Driver won't compile - This most likely means that bluez is not installed on your system. You can check out http://www.bluez.org for the packages needed to get bluez onto your system. - The other possibility is the symbolic link 'build' in your /lib/modules/<your kernel version here> isn't pointing to the correct linux headers directory. For instance, the 'build' link on my system looks like: build -> /usr/src/linux-headers-2.6.20-16-generic If you're thinking of changing what your 'build' file points to, make sure it's not already pointing to a directory with the ls -l command. If 'build' is pointing to another directory, make sure to at least record the directory before changing 'build'. You can change your 'build' file to point to your headers directory with the command: ln -s -f -T <header files directory> build 2) The Wii remote doesn't move the mouse - We found during testing that the connection between the Wii remote and a bluetooth adapter is not always clean. This driver doesn't attempt to recover lost data packets, so you might see some lag when using your wii remote. 3) My computer really slows down when I use the wii remote - This is the one compromise we had to make when developing this driver. Time suddenly got really short and we needed a working product, so we decided to create a background daemon process that continuously polls the wii remote for new data. Hopefully it won't slow down your system too much, but any lag you might notice is probably due to this desigh decision.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -