Difference between revisions of "Adjusting typematic delay and rate"

From ArchWiki
Jump to: navigation, search
m (typo)
m (Fix category.)
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==Introduction==
+
[[Category:Keyboards]]
<p>This article describes tuning of the automatic repeating process of characters when a key on your keyboard is pressed.<br>
+
The 'typematic delay' indicates the amount of time, typically in miliseconds, a key needs to be pressed in order for the repeating process to begin. After the repeating process has been triggered, the character will be repeated with a frequency (usually given in Hz governed by the 'typematic rate'.
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)<br>
+
 
After the repeating process has been triggered, the character will be repeated with at a rate which is governed by the 'typomatic rate'. (typically given in Hz)
+
This article describes tuning of the automatic key repeating process.
  
 
==Tuning the typematic behavior in the tty==
 
==Tuning the typematic behavior in the tty==
is done using the 'kbdrate' command. The syntax is:
+
Using the 'kbdrate' command:
  kbdrate [ -d delay ] [ -r rate ]
+
  # 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:
+
If you wanted to set an typematic delay of 200ms and a repeating rate of 30Hz then you would issue:
  kbdrate -d 200 -r 30
+
  # kbdrate -d 200 -r 30
returning the typematic settings to their default value is done by issuing the command without arguments:
+
Issuing the command without arguments:
  kbdrate
+
  # kbdrate
will return the typematic values to their respective defaults. (currently a delay of 250ms and a rate of 11Hz)
+
will return the typematic values to their respective defaults; a delay of 250ms and a rate of 11Hz.
 +
 
 
==Tuning the typematic behavior in X==
 
==Tuning the typematic behavior in X==
is done using the 'xset' command. The syntax adjusting the typematic rate and delay is:
+
:''See also: [[Xorg]]''
  xset r rate delay [rate]
+
Using the 'xset' command:
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 delay [rate]
  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:
+
If you wanted to set an typematic delay of 200ms and a repeating rate of 30Hz, then you would include this command in your {{ic|~/.xinitrc}}:
 +
  $ xset r rate 200 30
 +
 
 +
Issuing the command without specifying the delay and rate:
 
  xset r rate
 
  xset r rate
will return the typematic values to their respective defaults. (currently a delay of 660ms and a rate of 25Hz)
+
will return the typematic values to their respective defaults; a delay of 660ms and a rate of 25Hz.

Revision as of 10:00, 24 May 2012

The 'typematic delay' indicates the amount of time, typically in miliseconds, a key needs to be pressed in order for the repeating process to begin. After the repeating process has been triggered, the character will be repeated with a frequency (usually given in Hz governed by the 'typematic rate'.

This article describes tuning of the automatic key repeating process.

Tuning the typematic behavior in the tty

Using the 'kbdrate' command:

# 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:

# kbdrate -d 200 -r 30

Issuing the command without arguments:

# kbdrate

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

Tuning the typematic behavior in X

See also: Xorg

Using the 'xset' command:

$ 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:

$ xset r rate 200 30

Issuing the command without specifying the delay and rate:

xset r rate

will return the typematic values to their respective defaults; a delay of 660ms and a rate of 25Hz.