Skip to content

Mouse buttons are set to autorepeat #13

Closed
@agoode

Description

When I use evtest, I get this:

Event: time 1414638611.239038, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1414638611.239038, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1414638611.239038, -------------- SYN_REPORT ------------
Event: time 1414638611.488596, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.488596, -------------- SYN_REPORT ------------
Event: time 1414638611.521540, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.521540, -------------- SYN_REPORT ------------
Event: time 1414638611.554536, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.554536, -------------- SYN_REPORT ------------
Event: time 1414638611.587540, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.587540, -------------- SYN_REPORT ------------
Event: time 1414638611.620542, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.620542, -------------- SYN_REPORT ------------
Event: time 1414638611.653542, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.653542, -------------- SYN_REPORT ------------
Event: time 1414638611.686542, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.686542, -------------- SYN_REPORT ------------
Event: time 1414638611.719543, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.719543, -------------- SYN_REPORT ------------
Event: time 1414638611.752542, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.752542, -------------- SYN_REPORT ------------
Event: time 1414638611.785557, type 1 (EV_KEY), code 272 (BTN_LEFT), value 2
Event: time 1414638611.785557, -------------- SYN_REPORT ------------
Event: time 1414638611.815027, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1414638611.815027, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1414638611.815027, -------------- SYN_REPORT ------------

Probably it's this line in hid-lenovo.c (line 65):
set_bit(EV_REP, hi->input->evbit);

Probably you want to only set this conditionally.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions