Repeating keystrokes when typing in a Linux virtual machine.

12 users found this article helpful


When I use the keyboard in a Linux virtual machine, sometimes the keys get repeated.


The issue is caused by Repeating Keys feature in Linux.


To resolve the issue, either disable the feature or increase the delay time.

For Gnome 3 based desktops (Debian/Ubuntu/Fedora/CentOS/RHEL):

  1. Open the Activities overview and start typing Settings.

  2. Click Settings.

  3. Click Universal Access in the sidebar.

  4. Scroll down to the Typing section and click Repeat Keys.

  5. Set Repeat Keys switch to off.

  6. Alternatively, you can adjust the Delay slider, gradually increasing the value to the point where the issue disappears.

For other Linux distributions:

To completely disable the feature, open Terminal in the virtual machine and execute one of the following commands:

xset -r


gsettings set org.gnome.desktop.peripherals.keyboard repeat false

To increase the delay time, execute one of the following commands:

xset r rate 1000


gsettings set org.gnome.desktop.peripherals.keyboard delay 1000

(the default the value is usually 500, so you can try different values higher than that).

Was this article helpful?

Tell us how we can improve it.