The Xorg.0.log file announces:
[691872.818] (II) config/udev: removing device USB KVM Switch USB KVM Switch
[691872.819] (II) USB KVM Switch USB KVM Switch: Close
[691872.819] (II) UnloadModule: "evdev"
[691872.824] (II) config/udev: removing device USB KVM Switch USB KVM Switch
[691872.825] (II) USB KVM Switch USB KVM Switch: Close
[691872.825] (II) UnloadModule: "evdev"
[691873.007] (II) config/udev: removing device Logitech USB Optical Mouse
[691873.008] (II) Logitech USB Optical Mouse: Close
[691873.008] (II) UnloadModule: "evdev"
[691873.014] (II) config/udev: removing device HID 046a:0001
[691873.015] (II) HID 046a:0001: Close
[691873.015] (II) UnloadModule: "evdev"
[691873.021] (II) config/udev: removing device Logitech USB Optical Mouse
[691873.022] (II) Logitech USB Optical Mouse: Close
[691873.022] (II) UnloadModule: "evdev"
...
[691880.312] (II) config/udev: Adding input device USB KVM Switch USB KVM Switch (/dev/input/event3)
[691880.312] (**) USB KVM Switch USB KVM Switch: Applying InputClass "evdev keyboard catchall"
[691880.312] (**) USB KVM Switch USB KVM Switch: Applying InputClass "LocalKeyboard"
[691880.312] (**) USB KVM Switch USB KVM Switch: always reports core events
[691880.312] (**) USB KVM Switch USB KVM Switch: Device: "/dev/input/event3"
[691880.315] (II) USB KVM Switch USB KVM Switch: Found keys
[691880.315] (II) USB KVM Switch USB KVM Switch: Configuring as keyboard
[691880.315] (II) XINPUT: Adding extended input device "USB KVM Switch USB KVM Switch" (type: KEYBOARD)
[691880.315] (**) Option "xkb_rules" "evdev"
[691880.315] (**) Option "xkb_model" "evdev"
[691880.315] (**) Option "xkb_layout" "us"
But I have to manually restore the xmodmap and xset changes applied via
.xinitrc at login each time I switch back to the Xorg server.
I don't want to add those changes to /etc/X11/xorg.conf.d/ (wouldn't
know how anyway) since those configs like keyboard-repeat-rate and
caps/ctrl-mapping are user-specific...
Is there a way Xorg/udev lets the user run a script when events happen
w/o changing the overall system behaviour?
Thanks
R'