help to complete emergency keyboard remapping

Little Girl littlergirl at gmail.com
Sun Aug 17 18:36:19 UTC 2025


Hey there,

Marco Fioretti wrote:

>xmodmap -e "keycode 105 = Down"
>
>this works, but not continuously. That is, if I need to scroll down
>20 lines, I must press the Control R key 20 separate times, instead
>of keeping it pressed.
>
>What am I missing? Surely something basic, but right now I honestly
>cannot recognize it in the xmodmap documentation I've already checked

== Long answer ==
In the Keyboard section of the System Settings in Kubuntu, the
Hardware tab offers me two choices for what to do when a
key is held: "Repeat the key" or "Do nothing".  The "Do nothing"
choice was the default, so I changed it to "Repeat the key" and have
been happy with it ever since. I did, however, have to go down
beneath that and adjust the delay and the repeat rate. It also
provides me with a little text box in which I can test it out.

I'm not sure where the setting would be in Ubuntu, but I'd start by
doing a search for "repeat" or "keyboard" in your system settings.

== Short answer ==
You can toggle the keyboard repeat for the entire system from a
terminal window with the xset command and it will be remembered until
you reboot. Note that this takes effect instantly:

Turn it on:
xset r on

Turn it off:
xset r off

Turn it on with the specified delay and rate:
xset r rate 200 30
This example set a 200ms delay and a 30 character-per-second rate.

WARNING: Be careful what you choose for these, because you can make
it impossible to type accurately. Have a copy of the command open in
a text file with your current delay and rate already typed in so you
can copy and paste it with the mouse if need be. Or use the mouse to
reboot or bring up a clickable virtual keyboard if you get yourself
completely tangled up.

Just for interest's sake, mine is set to this, but people complain
when they try to use my computer:
xset r rate 172 85

-- 
Little Girl

There is no spoon.



More information about the ubuntu-users mailing list