On Mon, Sep 13, 2021 at 7:08 PM Samuel Sieb <samuel@xxxxxxxx> wrote: > > > I have recently bought a drawing tablet, which does not come with any > > Linux device driver. > > > > It works perfectly even without any device driver. However, I would > > like to associate a script to each of the tablet buttons. I guess that > > whenever a button is pressed, a signal of such an occurrence can be > > captured by Fedora, but I do not know how. > > Does it cause mouse clicks? > > To find out what events are happening, you can install "evtest". If you > run "evtest" with no arguments, it will give you a list of available > devices. See which one(s) match your tablet and select it. Click the > buttons and see what happens. Thanks, Samuel. Yes, it causes mouse clicks. "evtest" recognizes my drawing tablet, and when I successively hit the express keys I get the following: ---------------------------------------- Event: time 1631556826.892457, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556826.892457, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556826.892457, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1631556826.892457, type 1 (EV_KEY), code 25 (KEY_P), value 1 Event: time 1631556826.892457, -------------- SYN_REPORT ------------ Event: time 1631556826.894445, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556826.894445, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0 Event: time 1631556826.894445, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1631556826.894445, type 1 (EV_KEY), code 25 (KEY_P), value 0 Event: time 1631556826.894445, -------------- SYN_REPORT ------------ ^PEvent: time 1631556828.294629, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556828.294629, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556828.294629, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70008 Event: time 1631556828.294629, type 1 (EV_KEY), code 18 (KEY_E), value 1 Event: time 1631556828.294629, -------------- SYN_REPORT ------------ Event: time 1631556828.296599, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556828.296599, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0 Event: time 1631556828.296599, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70008 Event: time 1631556828.296599, type 1 (EV_KEY), code 18 (KEY_E), value 0 Event: time 1631556828.296599, -------------- SYN_REPORT ------------ ^EEvent: time 1631556829.256745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556829.256745, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556829.256745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1631556829.256745, type 1 (EV_KEY), code 38 (KEY_L), value 1 Event: time 1631556829.256745, -------------- SYN_REPORT ------------ Event: time 1631556829.258738, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556829.258738, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0 Event: time 1631556829.258738, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1631556829.258738, type 1 (EV_KEY), code 38 (KEY_L), value 0 Event: time 1631556829.258738, -------------- SYN_REPORT ------------ ^LEvent: time 1631556830.196848, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004b Event: time 1631556830.196848, type 1 (EV_KEY), code 104 (KEY_PAGEUP), value 1 Event: time 1631556830.196848, -------------- SYN_REPORT ------------ Event: time 1631556830.198836, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004b Event: time 1631556830.198836, type 1 (EV_KEY), code 104 (KEY_PAGEUP), value 0 Event: time 1631556830.198836, -------------- SYN_REPORT ------------ ^[[5~Event: time 1631556831.106955, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004e Event: time 1631556831.106955, type 1 (EV_KEY), code 109 (KEY_PAGEDOWN), value 1 Event: time 1631556831.106955, -------------- SYN_REPORT ------------ ^[[6~Event: time 1631556831.108925, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004e Event: time 1631556831.108925, type 1 (EV_KEY), code 109 (KEY_PAGEDOWN), value 0 Event: time 1631556831.108925, -------------- SYN_REPORT ------------ _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure