我按照描述关闭了触摸屏这里和这里在我的带有 Debian 的 Lenovo ThinkPad 上Wayland/libinput。
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="5144", ATTR{authorized}="0"' > /etc/udev/rules.d/80-touchscreen.rules
现在我需要使用 ThinkPad Pen Pro,它是用于屏幕/显示器内置平板电脑功能的手写笔。 pen 受 udev 规则影响。取消规则可以使笔正常工作,但也会重新激活触摸。设备中有 idVendor 和 idProduct常见的。
但是,触摸屏和手写笔不是独立运行的吗?因此是否应该可以禁用其中一个而无需另一个? (注意,xinput disable
由于某种原因不起作用,而且我不知道型号是什么xsetwacom --set 'model' Touch off
因为xsetwacom --list devices
没有返回任何内容,所以我无法以这种方式测试它。)至少有人报告笔和平板电脑可以使用时,触摸功能无法使用。
有人可以帮忙指定一个工作udev规则, 有一些?我尝试了以下操作,但两者都已停用。
SUBSYSTEM=="usb", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="5144", ATTR{name}=="Wacom Pen and multitouch sensor Pen", ATTR{authorized}="1"
SUBSYSTEM=="usb", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="5144", ATTR{name}=="Wacom Pen and multitouch sensor Finger", ATTR{authorized}="0"
$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=056a Product=5144 Version=0111
N: Name="Wacom Pen and multitouch sensor Finger"
P: Phys=usb-0000:00:14.0-10/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/0003:056A:5144.0005/input/input32
U: Uniq=
H: Handlers=mouse2 event21
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=260800000000003
I: Bus=0003 Vendor=056a Product=5144 Version=0111
N: Name="Wacom Pen and multitouch sensor Pen"
P: Phys=usb-0000:00:14.0-10/input1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:056A:5144.0006/input/input34
U: Uniq=
H: Handlers=mouse3 event25
B: PROP=2
B: EV=1b
B: KEY=1e03 0 0 0 0 0
B: ABS=1000d000003
B: MSC=1
$ lsusb
Bus 001 Device 007: ID 056a:5144 Wacom Co., Ltd Pen and multitouch sensor
$ inputx --list devices
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:18 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:18 id=7 [slave pointer (2)]
⎜ ↳ xwayland-stylus:18 id=10 [slave pointer (2)]
⎜ ↳ xwayland-eraser:18 id=11 [slave pointer (2)]
⎜ ↳ xwayland-cursor:18 id=12 [slave pointer (2)]
⎜ ↳ xwayland-touch:18 id=9 [slave pointer (2)]
$ xsetwacom --list devices
$ libwacom-list-local-devices
# Device node: /dev/input/event25
[Device]
Name=ISDv4 5144
ModelName=
DeviceMatch=usb:056a:5144;
Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System;
Styli=0x1;0x11;0x19;0x21;0x31;0x39;0x49;0x71;0x221;0x231;0x271;0x421;0x431;0x621;0x631;0x8051;0x805b;0x806b;0x807b;0x826b;0x846b;
[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=false
# StatusLEDs=
NumStrips=0
Buttons=0
---------------------------------------------------------------
# Device node: /dev/input/event21
[Device]
Name=ISDv4 5144
ModelName=
DeviceMatch=usb:056a:5144;
Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System;
Styli=0x1;0x11;0x19;0x21;0x31;0x39;0x49;0x71;0x221;0x231;0x271;0x421;0x431;0x621;0x631;0x8051;0x805b;0x806b;0x807b;0x826b;0x846b;
[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=false
# StatusLEDs=
NumStrips=0
Buttons=0
$ udevadm info /sys/class/input/input32/
P: /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/0003:056A:5144.0005/input/input32
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/0003:056A:5144.0005/input/input32
E: PRODUCT=3/56a/5144/111
E: NAME="Wacom Pen and multitouch sensor Finger"
E: PHYS="usb-0000:00:14.0-10/input0"
E: UNIQ=""
E: PROP=2
E: EV=b
E: KEY=400 0 0 0 0 0
E: ABS=260800000000003
E: MODALIAS=input:b0003v056Ap5144e0111-e0,1,3,k14A,ra0,1,2F,35,36,39,mlsfw
E: SUBSYSTEM=input
E: USEC_INITIALIZED=6838074
E: ID_INPUT=1
E: ID_INPUT_TOUCHSCREEN=1
E: ID_BUS=usb
E: ID_MODEL=Pen_and_multitouch_sensor
E: ID_MODEL_ENC=Pen\x20and\x20multitouch\x20sensor
E: ID_MODEL_ID=5144
E: ID_SERIAL=Wacom_Co._Ltd._Pen_and_multitouch_sensor
E: ID_VENDOR=Wacom_Co._Ltd.
E: ID_VENDOR_ENC=Wacom\x20Co.\x2cLtd.
E: ID_VENDOR_ID=056a
E: ID_REVISION=0003
E: ID_TYPE=hid
E: ID_USB_MODEL=Pen_and_multitouch_sensor
E: ID_USB_MODEL_ENC=Pen\x20and\x20multitouch\x20sensor
E: ID_USB_MODEL_ID=5144
E: ID_USB_SERIAL=Wacom_Co._Ltd._Pen_and_multitouch_sensor
E: ID_USB_VENDOR=Wacom_Co._Ltd.
E: ID_USB_VENDOR_ENC=Wacom\x20Co.\x2cLtd.
E: ID_USB_VENDOR_ID=056a
E: ID_USB_REVISION=0003
E: ID_USB_TYPE=hid
E: ID_USB_INTERFACES=:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:10:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_0
E: ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_10_1_0
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:
$ udevadm info /sys/class/input/input34
P: /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:056A:5144.0006/input/input34
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:056A:5144.0006/input/input34
E: PRODUCT=3/56a/5144/111
E: NAME="Wacom Pen and multitouch sensor Pen"
E: PHYS="usb-0000:00:14.0-10/input1"
E: UNIQ=""
E: PROP=2
E: EV=1b
E: KEY=1e03 0 0 0 0 0
E: ABS=1000d000003
E: MSC=1
E: MODALIAS=input:b0003v056Ap5144e0111-e0,1,3,4,k140,141,149,14A,14B,14C,ra0,1,18,1A,1B,28,m0,lsfw
E: SUBSYSTEM=input
E: USEC_INITIALIZED=6961475
E: ID_INPUT=1
E: ID_INPUT_TABLET=1
E: ID_BUS=usb
E: ID_MODEL=Pen_and_multitouch_sensor
E: ID_MODEL_ENC=Pen\x20and\x20multitouch\x20sensor
E: ID_MODEL_ID=5144
E: ID_SERIAL=Wacom_Co._Ltd._Pen_and_multitouch_sensor
E: ID_VENDOR=Wacom_Co._Ltd.
E: ID_VENDOR_ENC=Wacom\x20Co.\x2cLtd.
E: ID_VENDOR_ID=056a
E: ID_REVISION=0003
E: ID_TYPE=hid
E: ID_USB_MODEL=Pen_and_multitouch_sensor
E: ID_USB_MODEL_ENC=Pen\x20and\x20multitouch\x20sensor
E: ID_USB_MODEL_ID=5144
E: ID_USB_SERIAL=Wacom_Co._Ltd._Pen_and_multitouch_sensor
E: ID_USB_VENDOR=Wacom_Co._Ltd.
E: ID_USB_VENDOR_ENC=Wacom\x20Co.\x2cLtd.
E: ID_USB_VENDOR_ID=056a
E: ID_USB_REVISION=0003
E: ID_USB_TYPE=hid
E: ID_USB_INTERFACES=:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:10:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_10_1_1
E: ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_10_1_1
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:
$ sudo udevadm info -a -p /sys/class/input/input32
$ sudo udevadm info -a -p /sys/class/input/input34