News/Announcements? (#4) - Timeout plugin (#117) - Message List
I am proud to present my new timeout plugin
It can be downloaded at:
Here's the readme:
Timeout plugin for wminput by Atze van der Ploeg <atzeus@…> This plugin disconnects the wiimote if no button is pushed for a given time to save batteries. It handles the buttons of the wiimote, nunchuck and classic controller. To use: compile and put the .so file in your wminput library and add to your config file: Plugin.timeout.duration = <number of seconds to wait before disconnect for example 55.2>
Use wminput -r -w to reconnect when you press 1+2 after timeout.
The wminput program currently tries to reconnects immediatly to the wiimote. This means that you cannot use the -r function in combination with this plugin when you specify the blue tooth adress as you would expect. After disconnecting wminput immediatly tries to reconnect to the wiimote and since it knows it address and it is still listing it immediately reconnects which is not what we want. It works fine if we don't specify the address of the wiimote tough , but this increases connection latency. As an awful hack, try the following bash script:
while true do <wminput command without -r> sleep 2 done