Skip to content

Difficulties to map evdev to keyboard #462

@amoweb

Description

@amoweb

Hello,

I would like to map a button from my Wacom tablet to the keyboard Ctrl+Z.

sudo evtest /dev/input/event18 gives me this

Event: time 1764180784.035678, -------------- SYN_REPORT ------------
Event: time 1764180784.442358, type 1 (EV_KEY), code 256 (BTN_0), value 1
Event: time 1764180784.442358, type 3 (EV_ABS), code 40 (ABS_MISC), value 15
Event: time 1764180784.442358, -------------- SYN_REPORT ------------
Event: time 1764180785.432298, type 1 (EV_KEY), code 256 (BTN_0), value 0
Event: time 1764180785.432298, type 3 (EV_ABS), code 40 (ABS_MISC), value 0 

I found examples on github and created a capability file. I suppose I need to copy this to /usr/share/inputplumber/capability_maps. Then I restart inputplumber using systemctl. Sadly, this file doesn't seem to be loaded since there is no error even when I insert a syntax error.

# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
version: 1
kind: CapabilityMap
name: "Wacom Intuos Krita"
id: wacom
description: "Wacom Intuos Krita"

mapping:
  - name: Annuler
    source_event:
      evdev:
        event_type: EV_KEY
        event_code: BTN_0
        value_type: 1
    target_events:
      - keyboard: KeyLeftCtrl
      - keyboard: KeyZ

What can I do?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions