Modify

Opened 2 years ago

Last modified 22 months ago

#14995 new defect

Triggerhappy repeats commands

Reported by: danitool <dgcbueu@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: triggerhappy buttons HID Cc:

Description

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.

Regards.

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by archetipo

Hi ,
for me is not a bug because is not a repeat data but is a sequence of the press and release action:

i.e.

button "8" on keyboard HID -> press event have flag equal=1:
(flag is after KEY_8)

EV_KEY	KEY_8	1	/dev/input/event1
# KEY_8	1	command


release button "1" have flag equal=0: :

EV_KEY	KEY_8	0	/dev/input/event1
# KEY_8	0	command

other example SHIFT+i= "I":

press shitf and press i:

EV_KEY	KEY_LEFTSHIFT	1	/dev/input/event1
# KEY_LEFTSHIFT	1	command
EV_KEY	KEY_I	1	/dev/input/event1
# KEY_LEFTSHIFT+KEY_I	1	command

after relase shitf and relase i:

EV_KEY	KEY_LEFTSHIFT	0	/dev/input/event1
# KEY_I+KEY_LEFTSHIFT	0	command
EV_KEY	KEY_I	0	/dev/input/event1
# KEY_I	0	command

comment:2 Changed 22 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.