vnc: Set default kbd delay to 10ms
PATCH 1/1 vnc: Set default kbd delay to 10ms
The default keyboard delay time in the input layer is 10ms. I don't know how that number came to be, but empirical tests on some OpenQA driven ARM systems show that 10ms really is a reasonable default number for the delay.
With the current 1ms we're constantly typing faster than the guest receives keyboard events from our XHCI attached USB HID device.
This patch moves the delay to 10ms. That way our default is much safer (good!) and also consistent with the input layer default (also good!).
--- qemu-options.hx | 2 +- ui/vnc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
qemu-options.hx +1 -1
@@ -1730,7 +1730,7 @@ spec but is traditional QEMU behavior. @item key-delay-ms Set keyboard delay, for key down and key up events, in milliseconds. -Default is 1. Keyboards are low-bandwidth devices, so this slowdown +Default is 10. Keyboards are low-bandwidth devices, so this slowdown can help the device and guest to keep up and not lose events in case events are arriving in bulk. Possible causes for the latter are flaky network connections, or scripts for automated testing.
ui/vnc.c +1 -1
@@ -3808,7 +3808,7 @@ void vnc_display_open(const char *id, Error **errp) } lock_key_sync =qemu_opt_get_bool (opts,"lock-key-sync" , true); - key_delay_ms =qemu_opt_get_number (opts,"key-delay-ms" ,1 ); + key_delay_ms =qemu_opt_get_number (opts,"key-delay-ms" ,10 ); sasl =qemu_opt_get_bool (opts,"sasl" , false);#ifndef CONFIG_VNC_SASL if (sasl) {
Signature · 1 line
1.8.5.6
Quoted 1 line · Alexander Graf
The default keyboard delay time in the input layer is 10ms. I don't know
Do you mean "is 1ms"?
Quoted 10 lines
how that number came to be, but empirical tests on some OpenQA driven ARM systems show that 10ms really is a reasonable default number for the delay.
With the current 1ms we're constantly typing faster than the guest receives keyboard events from our XHCI attached USB HID device.
This patch moves the delay to 10ms. That way our default is much safer (good!) and also consistent with the input layer default (also good!).
Signed-off-by Alexander Graf <[email protected]>
Quoted 5 lines · Markus Armbruster
Quoted 1 line · Alexander Graf
The default keyboard delay time in the input layer is 10ms. I don't know
Do you mean "is 1ms"?
Yes, of course :). Sorry.
Alex
Quoted 11 lines
Quoted 11 lines
how that number came to be, but empirical tests on some OpenQA driven ARM systems show that 10ms really is a reasonable default number for the delay.
With the current 1ms we're constantly typing faster than the guest receives keyboard events from our XHCI attached USB HID device.
This patch moves the delay to 10ms. That way our default is much safer (good!) and also consistent with the input layer default (also good!).
Signed-off-by Alexander Graf <[email protected]>
Quoted 10 lines · Alexander Graf
Quoted 6 lines · Markus Armbruster
Quoted 2 lines · Alexander Graf
The default keyboard delay time in the input layer is 10ms. I don't know
Do you mean "is 1ms"?
Yes, of course :). Sorry.
Given the last paragraph of the commit message 10ms looks correct. If you change it to 1ms you also want to change "input layer" to "vnc server" ...
Or, better, move the last paragraph (which points out the inconsistency
between input layer and vnc server defaults) to the top, then it's
easier to read I guess.
cheers,
Gerd
Quoted 18 lines
Alex
Quoted 15 lines
Quoted 15 lines
how that number came to be, but empirical tests on some OpenQA driven ARM
systems show that 10ms really is a reasonable default number for the delay.With the current 1ms we're constantly typing faster than the guest receives
keyboard events from our XHCI attached USB HID device.This patch moves the delay to 10ms. That way our default is much safer (good!)
and also consistent with the input layer default (also good!).Signed-off-by Alexander Graf <[email protected]>
Quoted 9 lines · Gerd Hoffmann
Quoted 7 lines · Alexander Graf
Quoted 5 lines · Markus Armbruster
Quoted 2 lines · Alexander Graf
The default keyboard delay time in the input layer is 10ms. I don't know
Do you mean "is 1ms"?
Yes, of course :). Sorry.
Given the last paragraph of the commit message 10ms looks correct. If
Wow, I guess I wrote the message so confusingly that I even confused myself. Yes, of course 10ms is correct. There is an "input layer" delay and a "vnc" delay. Today "input layer" delay defaults to 10ms while "vnc" delay defaults to 1ms.
Quoted 6 lines
you change it to 1ms you also want to change "input layer" to "vnc server" ...
Or, better, move the last paragraph (which points out the inconsistency
between input layer and vnc server defaults) to the top, then it's
easier to read I guess.
Yeah, I agree.
Alex