Sample Header Ad - 728x90

Writing udev rules - wildcards?

1 vote
1 answer
1570 views
Is it possible to use wildcard characters when writing udev rules? I have multiseat and i want to assign every device (keyboard, mouse etc) that gets connected to a certain USB hub - or even better, a specific port on the front of the PC - to seat1. It's kind of cumbersome to have to redo new rules each time i swap stuff around or don't remember in which USB slot each device was connected. Using just simple udev rules, as generated by 'loginctl attach' command: TAG=="seat", ENV{ID_FOR_SEAT}=="usb-pci-0000_00_14_0-usb-0_5_3", ENV{ID_SEAT}="seat1"
Asked by delt (111 rep)
Jul 26, 2023, 03:50 AM
Last activity: Jul 26, 2023, 05:59 PM