Adjusting typematic delay and rate

From ArchWiki
Revision as of 13:05, 28 April 2009 by Arien (Talk | contribs) (tying to make wording more elegant)

Jump to: navigation, search

Introduction

This article describes tuning of the automatic repeating process of characters when a key on your keyboard is pressed.
The 'typematic delay' indicates the amount of time a key needs to be pressed in order for the repeating process to begin. (typically given in ms)
After the repeating process has been triggered, the character will be repeated with a frequency governed by the 'typematic rate'. (typically given in Hz)

Tuning the typematic behavior in the tty

is done using the 'kbdrate' command. The syntax is:

kbdrate [ -d delay ] [ -r rate ]

if you wanted to set an typematic delay of 200ms and a repeating rate of 30Hz then you would issue this command as root:

kbdrate -d 200 -r 30

returning the typematic settings to their default value is done by issuing the command without arguments:

kbdrate

will return the typematic values to their respective defaults. (currently a delay of 250ms and a rate of 11Hz)

Tuning the typematic behavior in X

is done using the 'xset' command. The syntax adjusting the typematic rate and delay is:

xset r rate delay [rate]

if you wanted to set an typematic delay of 200ms and a repeating rate of 30Hz then you would include this command in your .xinitrc/.xsession:

xset r rate 200 30

returning the typematic settings to their default value is done by issuing the command without specifying the delay and rate:

xset r rate
will return the typematic values to their respective defaults. (currently a delay of 660ms and a rate of 25Hz)