Triggerhappy repeats commands
|Reported by:||danitool <dgcbueu@…>||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||triggerhappy buttons HID||Cc:|
The thd daemon used for usb HID keys is repeating commands once configured. Steps to reproduce.
- Build the firmware with triggerhappy included and USB HID support.
- Configue a key to trigger a command
- Power on the router with the USB HID device already plugged
- Press the key, the command is triggered twice.
This is caused by the triggerhappy.hotplug script. When loading the system, thd autostarts to listen at /dev/input/event*, then the hotplug daemon offers again /dev/input/event* to thd, and it accepts it. As a result of this, triggerhappy is listening twice at /dev/input/event* for events.
Removing triggerhappy.hotplug from the system solves the problem.
I used Attitude adjustment, but I suspect trunk revisions are also affected.