You are not logged in.

#1 2023-11-20 10:00:58

alendra
Member
Registered: 2023-07-15
Posts: 14

Udev won't trigger script

I want to use udev to trigger a script which will turn off my internal keyboard when my specific external keyboard connected. Unfortunately, udev wont trigger my script.

This is my udev rules in /etc/udev/conf.d/01-keychron-events.rules and /etc/udev/rule/01-keychron-events.rules

ACTION=="add", SUBSYSTEM=="usb", ENV{XAUTHORITY}="/run/user/1000/gdm/Xauthority", ENV{DISPLAY}=":1", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="024f", RUN+="/home/alendra/bin/keychron.sh"

ACTION=="remove", SUBSYSTEM=="usb", ENV{XAUTHORITY}="/run/user/1000/gdm/Xauthority", ENV{DISPLAY}=":1", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="024f", RUN+="/home/alendra/bin/keychron.sh"

I already ensure the env same as when i do

$ echo $XAUTHORITY

and

$ echo $DISPLAY

also the idProduct and idVendor using

lsusb

.

and this is my script on /home/alendra/bin/keychron.sh

printf '%s\n' "Script run by udev $( date +%c )" > /tmp/rule-test

deviceName="AT Translated Set 2 keyboard"
builtInId=$(xinput list | grep "$deviceName" | awk '{ print $7 }' | grep -Eo '[0-9]{1,2}' | sort | head -n 1)

case $1 in
    add)  
      /usr/bin/xinput disable "$builtInId"
      ;;
    remove)  
      /usr/bin/xinput enable "$builtInId"
      ;;
    *)
      echo "Usage: $0 {add|remove}"
      exit 1
      ;;
esac

I can run the script manually normally. But, udev wont trigger it,  i've also cat the /tmp/rule-test but it's not filled

I've also tried

udevadm control --reload-rules && udevadm trigger

but it doesn't work

Offline

#2 2023-11-20 10:26:52

mpan
Member
Registered: 2012-08-01
Posts: 1,600
Website

Re: Udev won't trigger script

It’s unlikely your device has `SUBSYSTEM="usb"` and, at the same time, `idVector` and `idProduct` set. Please post the complete output of:

udevadm info --attribute-walk PATH_TO_DEVICE

PATH_TO_DEVICE is likely something in “/dev/input/by-path/”.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2023-11-20 10:47:44

alendra
Member
Registered: 2023-07-15
Posts: 14

Re: Udev won't trigger script

mpan wrote:

It’s unlikely your device has `SUBSYSTEM="usb"` and, at the same time, `idVector` and `idProduct` set. Please post the complete output of:

udevadm info --attribute-walk PATH_TO_DEVICE

PATH_TO_DEVICE is likely something in “/dev/input/by-path/”.

$ ls /dev/input/by-path
pci-0000:00:14.0-usb-0:3:1.0-event-kbd	  pci-0000:00:14.0-usbv2-0:3:1.1-event			  platform-gpio-keys.1.auto-event     platform-i8042-serio-1-mouse
pci-0000:00:14.0-usb-0:3:1.1-event	  pci-0000:00:15.2-platform-i2c_designware.1-event-mouse  platform-i8042-serio-0-event-kbd    platform-pcspkr-event-spkr
pci-0000:00:14.0-usbv2-0:3:1.0-event-kbd  pci-0000:00:15.2-platform-i2c_designware.1-mouse	  platform-i8042-serio-1-event-mouse
$ udevadm info --attribute-walk /dev/input/by-path/pci-0000:00:14.0-usb-0:3:1.0-event-kbd


Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.002C/input/input65/event18':
    KERNEL=="event18"
    SUBSYSTEM=="input"
    DRIVER==""
    ATTR{power/control}=="auto"
    ATTR{power/runtime_active_time}=="0"
    ATTR{power/runtime_status}=="unsupported"
    ATTR{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.002C/input/input65':
    KERNELS=="input65"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{capabilities/abs}=="0"
    ATTRS{capabilities/ev}=="120013"
    ATTRS{capabilities/ff}=="0"
    ATTRS{capabilities/key}=="10000 0 0 0 101007b02001007 ff9f207ac14057ff ffbeffdfffefffff fffffffffffffffe"
    ATTRS{capabilities/led}=="1f"
    ATTRS{capabilities/msc}=="10"
    ATTRS{capabilities/rel}=="0"
    ATTRS{capabilities/snd}=="0"
    ATTRS{capabilities/sw}=="0"
    ATTRS{id/bustype}=="0003"
    ATTRS{id/product}=="024f"
    ATTRS{id/vendor}=="05ac"
    ATTRS{id/version}=="0111"
    ATTRS{inhibited}=="0"
    ATTRS{name}=="Keychron Keychron K3"
    ATTRS{phys}=="usb-0000:00:14.0-3/input0"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{properties}=="0"
    ATTRS{uniq}==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.002C':
    KERNELS=="0003:05AC:024F.002C"
    SUBSYSTEMS=="hid"
    DRIVERS=="apple"
    ATTRS{country}=="00"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0':
    KERNELS=="1-3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="01"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{physical_location/dock}=="no"
    ATTRS{physical_location/horizontal_position}=="left"
    ATTRS{physical_location/lid}=="no"
    ATTRS{physical_location/panel}=="top"
    ATTRS{physical_location/vertical_position}=="upper"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3':
    KERNELS=="1-3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="300mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 2"
    ATTRS{bcdDevice}=="0114"
    ATTRS{bmAttributes}=="a0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="24"
    ATTRS{devpath}=="3"
    ATTRS{idProduct}=="024f"
    ATTRS{idVendor}=="05ac"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Keychron"
    ATTRS{maxchild}=="0"
    ATTRS{physical_location/dock}=="no"
    ATTRS{physical_location/horizontal_position}=="left"
    ATTRS{physical_location/lid}=="no"
    ATTRS{physical_location/panel}=="top"
    ATTRS{physical_location/vertical_position}=="upper"
    ATTRS{power/active_duration}=="224240"
    ATTRS{power/autosuspend}=="2"
    ATTRS{power/autosuspend_delay_ms}=="2000"
    ATTRS{power/connected_duration}=="224240"
    ATTRS{power/control}=="on"
    ATTRS{power/level}=="on"
    ATTRS{power/persist}=="1"
    ATTRS{power/runtime_active_time}=="223978"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/wakeup}=="enabled"
    ATTRS{power/wakeup_abort_count}=="0"
    ATTRS{power/wakeup_active}=="0"
    ATTRS{power/wakeup_active_count}=="0"
    ATTRS{power/wakeup_count}=="0"
    ATTRS{power/wakeup_expire_count}=="0"
    ATTRS{power/wakeup_last_time_ms}=="0"
    ATTRS{power/wakeup_max_time_ms}=="0"
    ATTRS{power/wakeup_total_time_ms}=="0"
    ATTRS{product}=="Keychron K3"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="removable"
    ATTRS{remove}=="(not readable)"
    ATTRS{rx_lanes}=="1"
    ATTRS{speed}=="12"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="679"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0601"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 6.1.56-1-lts xhci-hcd"
    ATTRS{maxchild}=="16"
    ATTRS{power/active_duration}=="10585854"
    ATTRS{power/autosuspend}=="0"
    ATTRS{power/autosuspend_delay_ms}=="0"
    ATTRS{power/connected_duration}=="11349084"
    ATTRS{power/control}=="auto"
    ATTRS{power/level}=="auto"
    ATTRS{power/runtime_active_time}=="10585817"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="763262"
    ATTRS{power/wakeup}=="disabled"
    ATTRS{power/wakeup_abort_count}==""
    ATTRS{power/wakeup_active}==""
    ATTRS{power/wakeup_active_count}==""
    ATTRS{power/wakeup_count}==""
    ATTRS{power/wakeup_expire_count}==""
    ATTRS{power/wakeup_last_time_ms}==""
    ATTRS{power/wakeup_max_time_ms}==""
    ATTRS{power/wakeup_total_time_ms}==""
    ATTRS{product}=="xHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{remove}=="(not readable)"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="0000:00:14.0"
    ATTRS{speed}=="480"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="1178"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0':
    KERNELS=="0000:00:14.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="xhci_hcd"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0330"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0xa36d"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{index}=="3"
    ATTRS{irq}=="126"
    ATTRS{label}=="Onboard - Other"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{local_cpus}=="ff"
    ATTRS{msi_bus}=="1"
    ATTRS{msi_irqs/126}=="msi"
    ATTRS{numa_node}=="-1"
    ATTRS{power/control}=="on"
    ATTRS{power/runtime_active_time}=="11349875"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/wakeup}=="enabled"
    ATTRS{power/wakeup_abort_count}=="0"
    ATTRS{power/wakeup_active}=="0"
    ATTRS{power/wakeup_active_count}=="0"
    ATTRS{power/wakeup_count}=="0"
    ATTRS{power/wakeup_expire_count}=="0"
    ATTRS{power/wakeup_last_time_ms}=="0"
    ATTRS{power/wakeup_max_time_ms}=="0"
    ATTRS{power/wakeup_total_time_ms}=="0"
    ATTRS{power_state}=="D0"
    ATTRS{remove}=="(not readable)"
    ATTRS{rescan}=="(not readable)"
    ATTRS{resource0}=="(not readable)"
    ATTRS{revision}=="0x10"
    ATTRS{subsystem_device}=="0x12bd"
    ATTRS{subsystem_vendor}=="0x1462"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{waiting_for_supplier}=="0"

Offline

#4 2023-11-20 10:49:47

mpan
Member
Registered: 2012-08-01
Posts: 1,600
Website

Re: Udev won't trigger script

Try with:

SUBSYSTEMS=="usb" ATTRS{idProduct}=="024f" ATTRS{idVendor}=="05ac"

Note the difference between `SUBSYSTEM` and `SUBSYSTEMS`.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2023-11-20 10:53:41

alendra
Member
Registered: 2023-07-15
Posts: 14

Re: Udev won't trigger script

mpan wrote:

Try with:

SUBSYSTEMS=="usb" ATTRS{idProduct}=="024f" ATTRS{idVendor}=="05ac"

Note the difference between `SUBSYSTEM` and `SUBSYSTEMS`.

Same result

Offline

#6 2023-11-20 14:01:51

mpan
Member
Registered: 2012-08-01
Posts: 1,600
Website

Re: Udev won't trigger script

Perhaps:

SUBSYSTEMS=="input" ATTRS{id/vendor}=="05ac" ATTRS{id/product}=="024f"

If that doesn’t match: with the keyboard in question disconnected, start the udev monitor (command below), then connect the keyboard and see if it spews out anything.

sudo udevadm monitor

Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#7 2023-11-20 14:23:11

alendra
Member
Registered: 2023-07-15
Posts: 14

Re: Udev won't trigger script

mpan wrote:

Perhaps:

SUBSYSTEMS=="input" ATTRS{id/vendor}=="05ac" ATTRS{id/product}=="024f"

If that doesn’t match: with the keyboard in question disconnected, start the udev monitor (command below), then connect the keyboard and see if it spews out anything.

sudo udevadm monitor

it doesn't work too.

$ sudo udevadm monitor                                                                                                     
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[24367.494417] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::numlock (leds)
KERNEL[24367.494454] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::numlock (leds)
UDEV  [24367.501732] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::numlock (leds)
UDEV  [24367.506376] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::numlock (leds)
KERNEL[24367.514465] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::capslock (leds)
KERNEL[24367.514580] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::capslock (leds)
UDEV  [24367.519234] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::capslock (leds)
UDEV  [24367.524468] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::capslock (leds)
KERNEL[24367.531064] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::scrolllock (leds)
KERNEL[24367.531098] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::scrolllock (leds)
KERNEL[24367.531112] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::compose (leds)
UDEV  [24367.535345] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::scrolllock (leds)
UDEV  [24367.537943] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::compose (leds)
UDEV  [24367.540238] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::scrolllock (leds)
KERNEL[24367.551118] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::kana (leds)
KERNEL[24367.551165] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::kana (leds)
UDEV  [24367.555548] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::kana (leds)
UDEV  [24367.560541] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/input87::kana (leds)
KERNEL[24367.584554] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/event18 (input)
UDEV  [24367.590531] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87/event18 (input)
KERNEL[24367.614453] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87 (input)
KERNEL[24367.614534] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/hidraw/hidraw1 (hidraw)
KERNEL[24367.614573] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042 (hid)
KERNEL[24367.614613] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042 (hid)
KERNEL[24367.614646] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[24367.614678] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV  [24367.618096] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/hidraw/hidraw1 (hidraw)
UDEV  [24367.619139] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042/input/input87 (input)
UDEV  [24367.622343] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042 (hid)
UDEV  [24367.625786] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0042 (hid)
UDEV  [24367.629106] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV  [24367.632072] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[24367.644463] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/input/input88/event19 (input)
UDEV  [24367.650404] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/input/input88/event19 (input)
KERNEL[24367.667848] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/input/input88 (input)
KERNEL[24367.667893] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/hidraw/hidraw2 (hidraw)
KERNEL[24367.667915] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043 (hid)
KERNEL[24367.667940] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043 (hid)
KERNEL[24367.667961] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[24367.667988] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[24367.668350] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
KERNEL[24367.668383] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/wakeup/wakeup38 (wakeup)
KERNEL[24367.668426] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV  [24367.671388] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/hidraw/hidraw2 (hidraw)
UDEV  [24367.671535] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043/input/input88 (input)
UDEV  [24367.674922] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043 (hid)
UDEV  [24367.677446] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0043 (hid)
UDEV  [24367.680358] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV  [24367.683736] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV  [24367.687454] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV  [24367.691498] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3/wakeup/wakeup38 (wakeup)
UDEV  [24367.694558] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
KERNEL[24375.235932] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
KERNEL[24375.236629] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
KERNEL[24375.236645] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[24375.236957] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044 (hid)
KERNEL[24375.237033] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/wakeup/wakeup38 (wakeup)
KERNEL[24375.237101] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89 (input)
KERNEL[24375.294449] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::numlock (leds)
KERNEL[24375.294501] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::numlock (leds)
KERNEL[24375.294531] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::capslock (leds)
KERNEL[24375.294561] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::capslock (leds)
KERNEL[24375.294589] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::scrolllock (leds)
KERNEL[24375.294620] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::scrolllock (leds)
KERNEL[24375.294645] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::compose (leds)
KERNEL[24375.294670] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::kana (leds)
KERNEL[24375.294701] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::kana (leds)
KERNEL[24375.294738] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/event18 (input)
KERNEL[24375.294773] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/hidraw/hidraw1 (hidraw)
KERNEL[24375.294818] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044 (hid)
KERNEL[24375.294867] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
KERNEL[24375.294912] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[24375.295390] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045 (hid)
KERNEL[24375.295695] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/input/input90 (input)
KERNEL[24375.351149] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/input/input90/event19 (input)
KERNEL[24375.351260] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/hidraw/hidraw2 (hidraw)
KERNEL[24375.351285] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045 (hid)
KERNEL[24375.351307] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
KERNEL[24375.351329] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV  [24375.355201] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV  [24375.357829] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)
UDEV  [24375.359700] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV  [24375.360151] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/wakeup/wakeup38 (wakeup)
UDEV  [24375.361064] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV  [24375.361931] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044 (hid)
UDEV  [24375.363957] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045 (hid)
UDEV  [24375.366338] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89 (input)
UDEV  [24375.368038] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/input/input90 (input)
UDEV  [24375.368957] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/hidraw/hidraw1 (hidraw)
UDEV  [24375.370446] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::numlock (leds)
UDEV  [24375.370919] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::capslock (leds)
UDEV  [24375.371629] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/hidraw/hidraw2 (hidraw)
UDEV  [24375.372941] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::kana (leds)
UDEV  [24375.373059] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::numlock (leds)
UDEV  [24375.373108] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::capslock (leds)
UDEV  [24375.373247] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::scrolllock (leds)
UDEV  [24375.373781] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::compose (leds)
UDEV  [24375.375606] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::kana (leds)
UDEV  [24375.375637] change   /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/input89::scrolllock (leds)
UDEV  [24375.425408] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045/input/input90/event19 (input)
UDEV  [24375.427192] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:05AC:024F.0045 (hid)
UDEV  [24375.428932] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1 (usb)
UDEV  [24375.435306] add      /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044/input/input89/event18 (input)
UDEV  [24375.436971] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:05AC:024F.0044 (hid)
UDEV  [24375.439233] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0 (usb)
UDEV  [24375.443555] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-3 (usb)

anyway, are you giving it without a comma? or just typo?

Last edited by alendra (2023-11-20 14:24:15)

Offline

#8 2023-11-20 15:51:06

mpan
Member
Registered: 2012-08-01
Posts: 1,600
Website

Re: Udev won't trigger script

alendra wrote:

it doesn't work too.

Iam out of ideas. hmm

alendra wrote:

anyway, are you giving it without a comma? or just typo?

Neither. Just giving a list of conditions to incorporate into your line.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB