Skip to content

Commit

Permalink
fix(mount_matrix): Update mount_matrix
Browse files Browse the repository at this point in the history
Update mount_matrix to match Steam Deck gyroscope output, per discussion with @pastaq

Thanks to:
@dansl and @cuongnphan for providing gyro data on Air 1S 7840U
@aarron-lee for providing gyro data and testing on Win 4 6800U
.bastardgoose on Discord for providing gyro data and testing on Ally X
@fewtarius for providing gyro data on 2S, Flip KB and Loki Max
@pastaq for providing gyro testing on Air, 2021 and Loki Max
@winghugs for providing gyro testing on Air 1S 8840U

Co-Authored-By: Dan Long <[email protected]>
Co-Authored-By: cuongnphan <[email protected]>
Co-Authored-By: Aarron Lee <[email protected]>
Co-Authored-By: fewtarius <[email protected]>
Co-Authored-By: Derek J. Clark <[email protected]>
Co-Authored-By: Kin <[email protected]>
  • Loading branch information
7 people committed Nov 22, 2024
1 parent 65eb5fa commit 1b2ca4a
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 22 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ source_devices:
name: i2c-BMI0160:00
mount_matrix:
x: [0, -1, 0]
y: [0, 0, -1]
z: [1, 0, 0]
y: [-1, 0, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
4 changes: 2 additions & 2 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_2021.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ source_devices:
name: i2c-10EC5280:00
mount_matrix:
x: [0, -1, 0]
y: [0, 0, -1]
z: [1, 0, 0]
y: [-1, 0, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
8 changes: 5 additions & 3 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_2s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ source_devices:
iio:
name: i2c-BMI0160:00
mount_matrix:
x: [0, -1, 0]
y: [0, 0, -1]
z: [1, 0, 0]
# Calculated from observed gyro output
# TODO: Verify updated matrix on actual hardware
x: [0, 1, 0]
y: [-1, 0, 0]
z: [0, 0, 1]

# Optional configuration for the composite device
options:
Expand Down
4 changes: 2 additions & 2 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_air.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ source_devices:
# name: i2c-BMI0160:00
# mount_matrix:
# x: [0, -1, 0]
# y: [0, 0, -1]
# z: [1, 0, 0]
# y: [-1, 0, 0]
# z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
6 changes: 6 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_air_1s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ source_devices:
- group: imu
iio:
name: i2c-BMI0160:00
mount_matrix:
# Tested on Air 1S 8840U
# TODO: Verify on 7840U
x: [0, -1, 0]
y: [-1, 0, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
4 changes: 2 additions & 2 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_air_plus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ source_devices:
name: bmi323-imu
mount_matrix:
x: [0, -1, 0]
y: [0, 0, 1]
z: [-1, 0, 0]
y: [1, 0, 0]
z: [0, 0, 1]

# Optional configuration for the composite device
options:
Expand Down
8 changes: 5 additions & 3 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_flip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ source_devices:
iio:
name: i2c-BMI0160:00
mount_matrix:
x: [0, -1, 0]
y: [0, 0, -1]
z: [1, 0, 0]
# Calculated from observed gyro output
# TODO: Verify updated matrix on actual hardware
x: [0, 1, 0]
y: [-1, 0, 0]
z: [0, 0, 1]

# Optional configuration for the composite device
options:
Expand Down
4 changes: 2 additions & 2 deletions rootfs/usr/share/inputplumber/devices/50-ayn_loki_max.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ source_devices:
name: i2c-BMI0160:00
mount_matrix:
x: [1, 0, 0]
y: [0, 0, -1]
z: [0, 1, 0]
y: [0, -1, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
6 changes: 6 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-gpd_win4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ source_devices:
- group: imu
iio:
name: i2c-BMI0160:00
mount_matrix:
# Tested on 6800U
# TODO: Verify on other models
x: [-1, 0, 0]
y: [0, -1, 0]
z: [0, 0, 1]

# Optional configuration for the composite device
options:
Expand Down
6 changes: 3 additions & 3 deletions rootfs/usr/share/inputplumber/devices/50-rog_ally.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ source_devices:
iio:
name: bmi323-imu
mount_matrix:
x: [-1, 0, 0]
y: [0, 0, -1]
z: [0, 1, 0]
x: [1, 0, 0]
y: [0, -1, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down
6 changes: 3 additions & 3 deletions rootfs/usr/share/inputplumber/devices/50-rog_ally_x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ source_devices:
iio:
name: bmi323-imu
mount_matrix:
x: [-1, 0, 0]
y: [0, 0, -1]
z: [0, 1, 0]
x: [1, 0, 0]
y: [0, -1, 0]
z: [0, 0, -1]

# Optional configuration for the composite device
options:
Expand Down

0 comments on commit 1b2ca4a

Please sign in to comment.