我没有使用像Gnome或KDE这样的大型桌面环境,并且使用xset
命令来更改键盘速率:
xset r rate 250 70
但是在系统挂起(通过 pm-suspend
)后,这些设置会丢失,因为udev会删除并重新添加所有设备。
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