Skip to content

bluetoothctl devices hangs forever when there's no Bluetooth adapter (pre-flight and launcher window) #6

Done

Description

@David581

Without a Bluetooth adapter, bluetooth.service doesn't start (ConditionPathIsDirectory=/sys/class/bluetooth), and bluetoothctl waits for bluetoothd forever. Two places are affected:

  • The pre-flight in launch-steamvr.sh stops at the controller check (line 179; the cleanup at line 99 has the same call). Line numbers as of 39b1e48.
  • The DriverKit window starts bluetoothctl devices again and again (launcher-gui/src/main.rs, line 565); one of them was still waiting after more than 5 hours.

Suggestion: wrap the calls in timeout 3 bluetoothctl ..., and report "no Bluetooth adapter" when /sys/class/bluetooth is missing.

System: PSVR2-DriverKit 0.3 (AppImage) · CachyOS, kernel 7.3.6 · Intel Arc A770 16 GB (DG2) on xe, Mesa 26.3.1 · niri 26.04 (Wayland) · SteamVR 2.18.4 · PS VR2 firmware 6.00 on Sony's PC adapter

I found and wrote this up with help from an AI assistant (Claude); the logs are from my own machine.

Activity

  1. David581 commented on Dec 1, 2026

    @David581
    Author

    Sorry for skipping the bug report form. Here are the logs and the form fields.

    Logs: issue6-logs.tar.gz: launcher-repro-20261201.txt, a fresh run of the current launcher (39b1e48) against a D-Bus without bluetoothd; the launcher logs of two runs from 2026-11-30, before my USB Bluetooth adapter worked; and bluetoothctl-repro.txt with what I saw then. Serial, addresses and my user name in paths are replaced.

    What happens

    Without a Bluetooth adapter, bluetooth.service doesn't start (ConditionPathIsDirectory=/sys/class/bluetooth), and bluetoothctl devices then waits for bluetoothd forever. The launcher runs it without a timeout:

    • Today, current launcher: I started kit/launch-steamvr.sh from a terminal with DBUS_SYSTEM_BUS_ADDRESS pointing to a private system bus without bluetoothd (so I didn't have to take my adapter out). Pre-flight stopped after [ok] Steam is running; 30 s later bluetoothctl devices was still running under it (process tree in launcher-repro-20261201.txt).
    • Pre-flight (launch-steamvr.sh line 179 at 39b1e48): launcher-steamvr-20261130-151103.log ends right after [ok] Steam is running; the next check is the Bluetooth one. In an earlier run that day, ps showed bluetoothctl devices under launch-steamvr.sh for 4:55 min.
    • After SteamVR exits, controllers_off (line 99): launcher-steamvr-20261130-203413.log collected the logs at 20:52:46 and was still in controllers_off when I rebooted at 21:15:39, 23 minutes later. The reboot's SIGTERM wrote the last lines: Interrupted, stopping SteamVR... and the shell's message for the killed pipeline (Beendet = Terminated).

    The DriverKit app runs the same command without a timeout too (launcher-gui/src/main.rs line 565).

    Steps to reproduce

    1. No Bluetooth adapter (or sudo systemctl stop bluetooth, or the private D-Bus from launcher-repro-20261201.txt)
    2. Start SteamVR from DriverKit
    3. Pre-flight stops after [ok] Steam is running

    Possible fix: timeout 3 bluetoothctl ... (coreutils), or skip the Bluetooth checks when /sys/class/bluetooth is empty. bluetoothctl's own --timeout 3 also ends the wait, but it always takes the full 3 s, even when bluetoothd answers; with coreutils timeout a normal call still takes a few ms.

    Where it happens: SteamVR (the launcher script)
    Version: v0.3 AppImage, Compile Driver on 2026-12-01 (39b1e48); the two launcher logs are from 2026-11-30, lines 99 and 179 are unchanged since
    Distribution, desktop and session type: CachyOS (kernel 7.3.6), niri 26.04, Wayland; no toolbox/distrobox
    Hardware: Intel Arc A770 16 GB on xe (Mesa 26.3.1), AMD Ryzen 9 3900X; Bluetooth now TP-Link UB500

    issue6-logs.tar.gz

  2. mkooner commented on Dec 1, 2026

    @mkooner
    Owner

    OK fixed with a time out check for Bluetooth, then it will proceed. To go to compile tab, check to make sure latest commits are available first, then recompile and test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions