|
| 1 | +# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json |
| 2 | +# Schema version number |
| 3 | +version: 1 |
| 4 | + |
| 5 | +# The type of configuration schema |
| 6 | +kind: CompositeDevice |
| 7 | + |
| 8 | +# Name of the composite device mapping |
| 9 | +name: Lenovo Legion Go S |
| 10 | + |
| 11 | +# Only allow a single source device per composite device of this type. |
| 12 | +single_source: false |
| 13 | + |
| 14 | +# Only use this profile if *any* of the given matches match. If this list is |
| 15 | +# empty, then the source devices will *always* be checked. |
| 16 | +# /sys/class/dmi/id/product_name |
| 17 | +matches: |
| 18 | + - dmi_data: |
| 19 | + product_name: "83L3" |
| 20 | + sys_vendor: LENOVO |
| 21 | + cpu_vendor: AuthenticAMD |
| 22 | + |
| 23 | +# One or more source devices to combine into a single virtual device. The events |
| 24 | +# from these devices will be watched and translated according to the key map. |
| 25 | +source_devices: |
| 26 | + # Touchpad |
| 27 | + - group: mouse # Gampead Mode |
| 28 | + blocked: true |
| 29 | + evdev: |
| 30 | + vendor_id: "1a86" |
| 31 | + product_id: "e310" |
| 32 | + name: "wch.cn Legion Go S Mouse" |
| 33 | + handler: event* |
| 34 | + |
| 35 | + # Gamepad |
| 36 | + - group: gamepad # Gamepad Mode |
| 37 | + hidraw: |
| 38 | + vendor_id: 0x1a86 |
| 39 | + product_id: 0xe310 |
| 40 | + interface_num: 6 |
| 41 | + - group: gamepad |
| 42 | + blocked: true |
| 43 | + evdev: |
| 44 | + vendor_id: "1a86" |
| 45 | + product_id: "e310" |
| 46 | + name: "QH Electronics Controller" |
| 47 | + handler: event* |
| 48 | + |
| 49 | + # IMU |
| 50 | +# Broken for now --causes IP to hard freeze |
| 51 | +# Enabling only gyro_3d allows the tablet gyro to work without needing kernel patch |
| 52 | +# TODO: Find out why this is broken and swap tablet gyro to controller gyro as default. |
| 53 | +# - group: imu |
| 54 | +# iio: |
| 55 | +# name: accel_3d |
| 56 | +# mount_matrix: |
| 57 | +# x: [0, 1, 0] |
| 58 | +# y: [0, 0, -1] |
| 59 | +# z: [-1, 0, 0] |
| 60 | +# - group: imu |
| 61 | +# iio: |
| 62 | +# name: gyro_3d |
| 63 | +# mount_matrix: |
| 64 | +# x: [0, 1, 0] |
| 65 | +# y: [0, 0, -1] |
| 66 | +# z: [-1, 0, 0] |
| 67 | + |
| 68 | +# Optional configuration for the composite device |
| 69 | +options: |
| 70 | + # If true, InputPlumber will automatically try to manage the input device. If |
| 71 | + # this is false, InputPlumber will not try to manage the device unless an |
| 72 | + # external service enables management of the device. Defaults to 'false' |
| 73 | + auto_manage: true |
| 74 | + |
| 75 | +# The target input device(s) to emulate by default |
| 76 | +target_devices: |
| 77 | + - deck |
0 commit comments