mirror of
https://github.com/safijari/openpuck.git
synced 2026-11-03 22:30:22 +00:00
[PR #249] [MERGED] Restore Switch Pro gyro after Steam use #258
Labels
No labels
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
safijari/openpuck#258
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/safijari/openpuck/pull/249
Author: @jmt-gh
Created: 8/23/2026
Status: ✅ Merged
Merged: 9/4/2026
Merged by: @safijari
Base:
main← Head:fix/filter-imu-setting-forwarding📝 Commits (1)
612a204Restore Switch Pro gyro after Steam use📊 Changes
4 files changed (+35 additions, -2 deletions)
View changed files
📝
OpenPuck/haptics.cpp(+13 -1)📝
OpenPuck/steam_commands.h(+2 -0)📝
docs/PROTOCOL.md(+3 -1)📝
docs/TESTING_GUIDE.md(+17 -0)📄 Description
Summary
Restore motion controls when OpenPuck presents the Steam Controller 2 as a
Switch Pro controller, including when connected to a Switch 2.
This is a regression introduced in
0.9.43. After Steam initializes thecontroller, buttons and sticks continue working in Switch Pro mode, but gyro
input is missing.
Root cause
Steam writes the controller's
IMU_MODEsetting while using OpenPuck as anative Steam puck. This setting persists on the controller across firmware
changes and ordinary power cycles.
Switch Pro mode depends on raw accelerometer and gyroscope samples, but it did
not explicitly request them. Consequently, a controller previously configured
by Steam could remain in an IMU mode that suppresses the RF motion samples
needed to construct Switch Pro motion reports.
This persistence also explains why downgrading to a previously working firmware
without a factory reset can leave gyro broken.
Fix
IMU_MODEto
0x18(raw accelerometer + raw gyroscope).This keeps native Steam behavior intact while making Switch Pro mode explicitly
request the input data it requires.
Regression findings
0.9.49did not have working gyro.0.9.43as the first affected version.gyro, confirming that the controller retains the relevant IMU state.
Hardware verification
Tested with the following sequence:
Gyro worked with this build.
Validation
make check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.