Thanks, good catch! However, wouldn't it be cleaner to just do this?
-KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{.INPUT_CLASS}" +KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", ATTRS{bInterfaceNumber}=="|00", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{.INPUT_CLASS}"
-KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{.INPUT_CLASS}" +KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", ATTRS{bInterfaceNumber}=="|00", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{.INPUT_CLASS}"
This will result in two rules each responsible for exactly one of the cases (interface 00 or empty, and the other for > 00). Can you please verify that this works?
Thanks!
Thanks, good catch! However, wouldn't it be cleaner to just do this?
-KERNEL= ="mouse* |js*", ENV{ID_BUS}=="?*", ENV{.INPUT_ CLASS}= ="?*", SYMLINK+ ="input/ by-id/$ env{ID_ BUS}-$env{ ID_SERIAL} -$env{. INPUT_CLASS} " ="mouse* |js*", ENV{ID_BUS}=="?*", ENV{.INPUT_ CLASS}= ="?*", ATTRS{bInterfac eNumber} =="|00" , SYMLINK+ ="input/ by-id/$ env{ID_ BUS}-$env{ ID_SERIAL} -$env{. INPUT_CLASS} "
+KERNEL=
-KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_ CLASS}= ="?*", SYMLINK+ ="input/ by-id/$ env{ID_ BUS}-$env{ ID_SERIAL} -event- $env{.INPUT_ CLASS}" CLASS}= ="?*", ATTRS{bInterfac eNumber} =="|00" , SYMLINK+ ="input/ by-id/$ env{ID_ BUS}-$env{ ID_SERIAL} -event- $env{.INPUT_ CLASS}"
+KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_
This will result in two rules each responsible for exactly one of the cases (interface 00 or empty, and the other for > 00). Can you please verify that this works?
Thanks!