If I am understanding my log on the previous comment correctly then we receive two HAL events and an Xevent for the single key-press. Specifically we receive a HAL event, then an Xevent, and then a second HAL event:
TI:13:33:22 TH:0x9b13640 FI:gpm-button.c FN:hal_device_condition_cb,430 - condition=ButtonPressed, details=sleep TI:13:33:22 TH:0x9b13640 FI:gpm-button.c FN:emit_button_pressed,374 - emitting button-pressed : sleep TI:13:33:22 TH:0x9b13640 FI:gpm-manager.c FN:button_pressed_cb,1020 - Button press event type=sleep
TI:13:33:47 TH:0x9b13640 FI:gpm-button.c FN:gpm_button_filter_x_events,122 - Key 150 mapped to HAL key suspend TI:13:33:47 TH:0x9b13640 FI:gpm-manager.c FN:button_pressed_cb,1020 - Button press event type=suspend
TI:13:34:08 TH:0x9b13640 FI:gpm-button.c FN:hal_device_condition_cb,430 - condition=ButtonPressed, details=sleep TI:13:34:08 TH:0x9b13640 FI:gpm-button.c FN:emit_button_pressed,374 - emitting button-pressed : sleep TI:13:34:08 TH:0x9b13640 FI:gpm-manager.c FN:button_pressed_cb,1020 - Button press event type=sleep
Need to understand where all of these are coming from.
If I am understanding my log on the previous comment correctly then we receive two HAL events and an Xevent for the single key-press. Specifically we receive a HAL event, then an Xevent, and then a second HAL event:
TI:13:33:22 TH:0x9b13640 FI:gpm-button.c FN:hal_ device_ condition_ cb,430 ButtonPressed, details=sleep button_ pressed, 374 pressed_ cb,1020
- condition=
TI:13:33:22 TH:0x9b13640 FI:gpm-button.c FN:emit_
- emitting button-pressed : sleep
TI:13:33:22 TH:0x9b13640 FI:gpm-manager.c FN:button_
- Button press event type=sleep
TI:13:33:47 TH:0x9b13640 FI:gpm-button.c FN:gpm_ button_ filter_ x_events, 122 pressed_ cb,1020
- Key 150 mapped to HAL key suspend
TI:13:33:47 TH:0x9b13640 FI:gpm-manager.c FN:button_
- Button press event type=suspend
TI:13:34:08 TH:0x9b13640 FI:gpm-button.c FN:hal_ device_ condition_ cb,430 ButtonPressed, details=sleep button_ pressed, 374 pressed_ cb,1020
- condition=
TI:13:34:08 TH:0x9b13640 FI:gpm-button.c FN:emit_
- emitting button-pressed : sleep
TI:13:34:08 TH:0x9b13640 FI:gpm-manager.c FN:button_
- Button press event type=sleep
Need to understand where all of these are coming from.