disconnecting my USB keyboard and reconnecting it causes the repeat rate, and xmodmap settings to be reset to their defaults.
Normally, I don't often disconnect and reconnect this keyboard, except that hibernating has the same effect, and I do hibernate this machine on a regular basis.
how did you configure everything?
> how did you configure everything?
Not sure what configuration you mean, but it's a Debian testing system.
The xorg.conf file is mostly empty. The keyboard settings are set with
xmodmap and "xset r".
sorry, this is a WONTFIX (or rather a CANTFIX).
X has two types of devices, master devices and slave devices. slave devices are the physical keyboards and they dictate the layout. events from slave devices are routed through the master device - core applications only ever see events from these master devices (or "core devices").
If you have two phys. keyboards, one may be configured with layout "us", one with layout "de". Depending on which keyboard you type on, the master device will change layout to accommodate for the slave device. if you change anything with xset or xmodmap, you're changing the master device. This setting gets overwritten whenever you change the slave keyboard - including replugging the same keyboard device.
If you have a desktop environment that sets these settings it should both set it on the slave devices instead of the master devices and also re-apply them whenever a new keyboard is found. If you set it manually (or with a script), you'll have to reapply it yourself.