Steam Frame VR keyboard intermittently emits two key presses for one click

Abierto
#1,080 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, shell

Línea de trabajo

Start by comparing the two Steam keyboard paths described in the issue: dashboard/keyboard.js and steamui/virtualkeyboard.js, then trace the native text bridge routes and compositor-to-XWayland delivery. The captures show duplicate key transitions before the application, but do not identify the first duplicated call; completion means locating and explaining that source and confirming one deliberate click yields one key press.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Environment

Component Version
Steam Frame SteamOS 0.6.0, build 20261118.6185619
Frame SteamVR 2.19.4, Linux arm64
Steam client 1795048523
Left and right Frame controllers Firmware 1789082792, matching the installed required version
XRService Build d99559fed1, 2026-11-12 00:21:48
Controller driver SteamVR CV driver (IServerTrackedDeviceProvider_004)

Reproduction

  1. On the Frame, open a local app overlay and focus an unsent text field. The measured case used the Hubchat composer.
  2. Open the SteamVR on-screen keyboard. Aim at the letter A and click it once with the right or left controller trigger. Repeat with a full release and roughly half a second between deliberate clicks.
  3. Repeat with the digital bumper above the trigger. Then use the headset Aux button with head aiming to select keys.
  4. If a PC is streaming to the Frame, disconnect the stream and repeat on the headset.

Expected: Each deliberate click inserts one letter and produces one typing sound.

Actual: Some clicks insert two copies of the selected letter and make two typing sounds. Trigger, bumper, and headset Aux all reproduce it. It persists after PC streaming stops. The reporter has not encountered it when typing on PC SteamVR.

Measured input trace

On 2026-11-20 at about 19:00 UTC, a 60-second XI2 capture on the Frame subscribed to raw key events on XWayland display :0. It filtered to X keycode 38 (A). It recorded server timestamps, press/release state, device IDs and the X repeat flag. No input was injected.

  • In the first 11 distinct timing clusters, seven doubled, yielding 18 complete press/release pairs. The reporter saw exactly 18 characters in the test draft from about 10 deliberate clicks.
  • Across the full capture, 14 timing clusters yielded 22 pairs. Eight clusters doubled. The two presses were 0–7 ms apart, with a median of 2 ms. Each pair had its own release.
  • All 22 presses and releases had master device 3 and source 9 (xwayland-keyboard:21). Every event had the repeat flag clear. None came from XTEST source 5.
  • Example using X server time relative to the first press: 0 ms press, 2 ms release, 2 ms press, 32 ms release.
  • VRLink had shut down at 18:56:33 UTC, before this capture. General system load remained elevated after shutdown.

Local code and log findings

  • SteamVR loaded the default vrcompositor_bindings_frame_controller.json and vrcompositor_bindings_frame_hmd.json. The trigger, bumper and headset Aux all map to /actions/lasermouse/in/leftclick. The trigger uses 0.50 activation and 0.45 deactivation thresholds. The bumper and Aux are digital, and the bumper has no binding in the separate Dual Analog keyboard action set.
  • The dashboard requests ShowKeyboardForOverlay. The native vrwebhelper system.keyboard overlay registers mouse input. The shipped dashboard/keyboard.js invokes the ordinary key handler on mouse-down and passes text to native VRKeyboard.SetKeyboardText. Its mouse-click callback handles Done. The shared button wrapper plays the press sound on mouse-down.
  • Steam also ships a separate steamui/virtualkeyboard.js that can accept mouse-down and gamepad Confirm. We have no event trace showing that the two keyboard implementations handled the same click.
  • vrcompositor.txt sometimes logs Mouse down count is 1 but states are all false. What?. The corresponding branch resets the counter. The warning occurs outside the test and was absent during the 18-pair portion, so we cannot use it as a marker for the duplicate.

Follow-up native trace

A second 60-second capture at about 19:06 UTC combined the same XI2 capture with hardware performance events at two SteamVR compositor call sites and a vrwebhelper call site. It used no ptrace attachment, settings changes, or restart.

Test batch Groups at the compositor click sites Complete XI2 pairs Doubled groups
First batch 10 12 2
Second batch 10 13 3

The two output counts matched the drafts reported after each batch. Each group ran the same two adjacent compositor call sites, one queueing overlay event 301 (MouseButtonDown) and the other entering a distinct follow-on path. They ran about 4–10 μs apart for both ordinary and doubled keys. There was no second invocation of the measured event-301 enqueue site for the five doubled keys. The traced native mouse-button delivery call in the vrwebhelper browser process was active for other dashboard interactions and recorded no samples during either A batch.

Steam's separate floating keyboard accepts both mouse and gamepad confirm events. Its text dispatcher selects one route per call, including SteamClient.OpenVR.Keyboard.SendText or SteamClient.Input.ControllerKeyboardSendText, depending on the active overlay. Which branch the measured Hubchat keyboard used has not been captured.

What the results establish

The duplicate key transitions already exist at XWayland, before the application processes them. Conventional X autorepeat and parallel delivery from XTEST do not fit this trace. The digital alternatives reproduce the issue without using the analog trigger threshold. An active PC stream is unnecessary.

The follow-up narrows the likely duplication to a stage after the traced compositor mouse-down enqueue and at or before XWayland. The separate Steam-hosted keyboard and its native text bridge are candidates. The two typing sounds also make duplicate delivery to a keyboard handler plausible. The trace did not cover every compositor output path or identify the first duplicated call inside the Steam keyboard, the native bridge, or Gamescope.

Lenguaje dominante
Shell
Estrellas
1.2k
Forks
58
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/SteamVR-for-Linux

Todos los issues de ValveSoftware/SteamVR-for-Linux

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.