Skip to content

Commit 1cd8eb6

Browse files
uejjidanslcuongnphanaarron-leefewtarius
committed
fix(mount_matrix): Update mount_matrix
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 @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 and Loki Max 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]>
1 parent f870b45 commit 1cd8eb6

File tree

8 files changed

+32
-16
lines changed

8 files changed

+32
-16
lines changed

rootfs/usr/share/inputplumber/devices/50-ayaneo_2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ source_devices:
4545
name: i2c-BMI0160:00
4646
mount_matrix:
4747
x: [0, -1, 0]
48-
y: [0, 0, -1]
49-
z: [1, 0, 0]
48+
y: [-1, 0, 0]
49+
z: [0, 0, -1]
5050

5151
# Optional configuration for the composite device
5252
options:

rootfs/usr/share/inputplumber/devices/50-ayaneo_2s.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ source_devices:
4444
iio:
4545
name: i2c-BMI0160:00
4646
mount_matrix:
47-
x: [0, -1, 0]
48-
y: [0, 0, -1]
49-
z: [1, 0, 0]
47+
# Calculated from observed gyro output
48+
# TODO: Verify on actual hardware
49+
x: [0, 1, 0]
50+
y: [-1, 0, 0]
51+
z: [0, 0, 1]
5052

5153
# Optional configuration for the composite device
5254
options:

rootfs/usr/share/inputplumber/devices/50-ayaneo_air_1s.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ source_devices:
4343
- group: imu
4444
iio:
4545
name: i2c-BMI0160:00
46+
mount_matrix:
47+
# Calculated from observed gyro output
48+
# TODO: Verify on actual hardware
49+
x: [0, -1, 0]
50+
y: [1, 0, 0]
51+
z: [0, 0, 1]
4652

4753
# Optional configuration for the composite device
4854
options:

rootfs/usr/share/inputplumber/devices/50-ayaneo_air_plus.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ source_devices:
5252
name: bmi323-imu
5353
mount_matrix:
5454
x: [0, -1, 0]
55-
y: [0, 0, 1]
56-
z: [-1, 0, 0]
55+
y: [1, 0, 0]
56+
z: [0, 0, 1]
5757

5858
# Optional configuration for the composite device
5959
options:

rootfs/usr/share/inputplumber/devices/50-ayn_loki_max.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ source_devices:
3636
iio:
3737
name: i2c-BMI0160:00
3838
mount_matrix:
39-
x: [1, 0, 0]
40-
y: [0, 0, -1]
41-
z: [0, 1, 0]
39+
# Calculated from observed gyro output
40+
# TODO: Verify on actual hardware
41+
x: [-1, 0, 0]
42+
y: [0, -1, 0]
43+
z: [0, 0, 1]
4244

4345
# Optional configuration for the composite device
4446
options:

rootfs/usr/share/inputplumber/devices/50-gpd_win4.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ source_devices:
3535
- group: imu
3636
iio:
3737
name: i2c-BMI0160:00
38+
mount_matrix:
39+
# Tested on 6800U
40+
# TODO: Verify on other models
41+
x: [-1, 0, 0]
42+
y: [0, -1, 0]
43+
z: [0, 0, 1]
3844

3945
# Optional configuration for the composite device
4046
options:

rootfs/usr/share/inputplumber/devices/50-rog_ally.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ source_devices:
5050
iio:
5151
name: bmi323-imu
5252
mount_matrix:
53-
x: [-1, 0, 0]
54-
y: [0, 0, -1]
55-
z: [0, 1, 0]
53+
x: [1, 0, 0]
54+
y: [0, -1, 0]
55+
z: [0, 0, -1]
5656

5757
# Optional configuration for the composite device
5858
options:

rootfs/usr/share/inputplumber/devices/50-rog_ally_x.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ source_devices:
4949
iio:
5050
name: bmi323-imu
5151
mount_matrix:
52-
x: [-1, 0, 0]
53-
y: [0, 0, -1]
54-
z: [0, 1, 0]
52+
x: [1, 0, 0]
53+
y: [0, -1, 0]
54+
z: [0, 0, -1]
5555

5656
# Optional configuration for the composite device
5757
options:

0 commit comments

Comments
 (0)