Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xorg 1.8/udev: xset/xmodmap changes are lost after KVM switch

96 views
Skip to first unread message

Ralf Fassel

unread,
Oct 27, 2010, 2:15:53 PM10/27/10
to
In Xorg 1.8, changes mode via xmodmap or xset are lost whenever a
KVM-switch is used to toggle between two computers.

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'

rei...@gmail.com

unread,
Jan 9, 2012, 6:09:04 PM1/9/12
to
I'm also interested in the answer to this question, I have exactly the same problem/.
0 new messages