Skip to content

fix(ffb): aim the proxy at the wheel, log its reasons, reload udev on install - #110

Merged
mescon merged 1 commit into
masterfrom
launcher/ffb-aim-and-log
Sep 19, 2026
Merged

mescon merged 1 commit into
masterfrom
launcher/ffb-aim-and-log

Conversation

@mescon

@mescon mescon commented Sep 19, 2026

Copy link
Copy Markdown
Owner

For #105. Three defects on our side: the launcher never aimed logi-ffb (logical cd .. through a sysfs symlink, verified on this machine), logi-ffb's start-up error never reached the launcher log, and the deb/rpm packages never reloaded udev so /dev/uhid stayed root-only until reboot. logi-ffb tests (72) and core tests pass; clippy clean; shellcheck unchanged.

… install

Three faults behind one report (#105), where the DirectInput proxy
route left DiRT Rally 2.0 not starting and nothing in the log said why.

The launcher's lookup of the wheel's USB parent, used to aim logi-ffb
at the session's wheel, ran cd on a sysfs symlink and resolved the
parent logically, landing in /sys/bus/hid; nothing below matched, so
the aim never fired on any machine and the proxy fell back to its own
scan. readlink -f gives the real parent.

logi-ffb's messages, including the one reason it refused to start,
went to stderr, which under Steam is a console nobody reads; the lines
that do reach the launcher log come from the daemon's redirected
stderr, not the game's. The proxy now mirrors every user-facing
message into the file LOGI_LAUNCH_LOG names, and the launcher exports
that for its children. Debug traces stay on stderr.

The Debian and RPM packages never reloaded udev after installing their
rules, so /dev/uhid kept its root-only mode until the next reboot and
the proxy could not create its virtual wheel. Both now reload and
re-trigger misc, hidraw and input; Arch's own udev-reload hook and the
from-source installer already did. The Arch install notice also
stops telling people to set PROTON_ENABLE_HIDRAW by hand.
@mescon
mescon enabled auto-merge September 19, 2026 23:36
@sonarqubecloud

Copy link
Copy Markdown

@mescon
mescon merged commit ec1b5c7 into master Sep 19, 2026
23 checks passed
@mescon
mescon deleted the launcher/ffb-aim-and-log branch September 22, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant