为我的Bamboo Ink创建UDEV规则时我做错了什么?

时间:2019-06-02 12:40:38

标签: linux udev

笔连接时我想执行一个程序

udevadm监视器给了我

KERNEL[28370.279162] add      /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:3585 (bluetooth)
UDEV  [28370.405695] add      /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:3585 (bluetooth)
KERNEL[28372.293790] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:3585 (bluetooth)
UDEV  [28372.296560] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:3585 (bluetooth)

到目前为止,我已经尝试过

KERNELS == "1-7", 
SUBSYSTEMS == "usb", 
DRIVERS=="btusb", 
ACTION == "add", 
RUN+="/usr/bin/xournalpp"

根据此帖子How do I trigger a udev rule?

KERNELS == "hic[0-9]*", 
ATTRS{address}=="c0:a4:e9:ae:2d:78" \
ACTION == "add", 
RUN+="/usr/bin/xournalpp"
KERNELS == "hidraw", 
ATTRS{address}=="c0:a4:e9:ae:2d:78" \
ACTION == "add", 
RUN+="/usr/bin/xournalpp"

似乎没有任何效果。我在做什么错了?

0 个答案:

没有答案