Disabling device with udev

I am trying to disable a device with udev and can’t seem to get it right. Has anyone done this? Below is the device I want to disable.

sudo udevadm info /dev/input/event18
P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-WCOM486A:00/0018:056A:486A.0008/input/input28/event18
N: input/event18
L: 0
S: input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-event-mouse
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-WCOM486A:00/0018:056A:486A.0008/input/input28/event18
E: DEVNAME=/dev/input/event18
E: MAJOR=13
E: MINOR=82
E: SUBSYSTEM=input
E: USEC_INITIALIZED=35810527
E: ID_INPUT=1
E: ID_INPUT_TABLET=1
E: ID_INPUT_WIDTH_MM=344
E: ID_INPUT_HEIGHT_MM=193
E: ID_SERIAL=noserial
E: ID_PATH=pci-0000:00:15.0-platform-i2c_designware.0
E: ID_PATH_TAG=pci-0000_00_15_0-platform-i2c_designware_0
E: LIBINPUT_DEVICE_GROUP=18/56a/486a:i2c-WCOM486A:00
E: LIBINPUT_FUZZ_00=4
E: LIBINPUT_FUZZ_01=4
E: DEVLINKS=/dev/input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-event-mouse
1 Like

This is what i have but does not seem to work.
ACTION==“add|change”, KERNEL==“event[0-9]*”, ENV{ID_VENDOR_ID}==“056a”, ENV{ID_MODEL_ID}==“486a”, ENV{LIBINPUT_IGNORE_DEVICE}=“1”

This seems to work.
ACTION==“add|change”, KERNEL==“event[0-9]*”, ENV{ID_INPUT_TABLET}==“1”, ENV{LIBINPUT_IGNORE_DEVICE}=“1”

I think what you want here is ATTR{idVendor}=="056a", ATTR{idProduct}=="486a".

Use udevadm info -a /dev/input/event18 instead to determine things to match.

Oddly I had tried that as well and didn’t work. Matching ID_INPUT_TABLET seems to work fine for now.