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

オープン
#1,080 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, shell

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Shell
スター
1.2k
フォーク
58
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/SteamVR-for-Linux のほかの issue

ValveSoftware/SteamVR-for-Linux の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。