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

Đang mở
#1,080 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, shell
Lĩnh vực
desktop, operating-systems

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
1.2k
Fork
58
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ValveSoftware/SteamVR-for-Linux

Tất cả issue của ValveSoftware/SteamVR-for-Linux

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.