I'm not using huge DE like Gnome or KDE and changing keyboard rate with xset
command:
xset r rate 250 70
But after system suspending (by pm-suspend
) this settings are lost because udev removes and again adds all devices.
I tried to use udev rules:
# /etc/udev/rules.d/00-custom-keyboard.rules ACTION=="add", SUBSYSTEM=="usb", RUN+="/usr/bin/xset r rate 250 70" # Not working ACTION=="add", SUBSYSTEM=="usb", RUN+="touch /tmp/test" # Working pretty!
I think the first rule is not working because
xset
utility requires some context data which is not available in theevdev
context.I tried to use xorg config, but found only the option to change the keyboard layout, namely
XkbLayout
andXkbOptions
Is there some way to automaticaly restore keyboard settings after system suspending?