Skip to content

Conversation

@pastaq
Copy link
Contributor

@pastaq pastaq commented Nov 6, 2025

  • Combine Xbox and standard Ally device configs
  • Simplify evdev matches to not use name

Due to frequent changes to drivers upstream and OOT, there has been a lot of volatility in the configuration for the Ally and Ally X devices. To avoid further meddling by outside actors, drop any hid-asus, his-asus-ally, or asus-ally-hid name attributes and bulk match all devices with the VID/PID pairs.

While at it, reduce the number of device configs.

- Combine Xbox and standard Ally device configs
- Simplify evdev matches to not use name

Due to frequent changes to drivers upstream and OOT, there has been a lot
of volatility in the configuration for the Ally and Ally X devices. To
avoid further meddling by outside actors, drop any hid-asus, his-asus-ally,
or asus-ally-hid name attributes and bulk match all devices with the VID/PID
pairs.

While at it, reduce the number of device configs.
Copy link
Contributor

@LukeShortCloud LukeShortCloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and confirmed this is working on an original Ally and the Xbox Ally X. I removed the 50-rog_xbox_ally* profiles and updated the 50_rog_ally* profiles.

# Ally 1
$ inputplumber device 0 info
╭────┬───────────────┬──────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Composite Device                                                                                                                                                 │
├────┼───────────────┼──────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Id │ Name          │ Profile Name │ Source Devices                                                                                                               │
├────┼───────────────┼──────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 0  │ ASUS ROG Ally │ default      │ ["/dev/hidraw3", "/dev/input/event3", "/dev/input/event4", "/dev/input/event5", "/dev/input/event7", "/dev/iio:device0", ""] │
╰────┴───────────────┴──────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
# Xbox Ally X
$ inputplumber device 0 info
╭────┬─────────────────┬──────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Composite Device                                                                                                                                              │
├────┼─────────────────┼──────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Id │ Name            │ Profile Name │ Source Devices                                                                                                          │
├────┼─────────────────┼──────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 0  │ ASUS ROG Ally X │ default      │ ["/dev/hidraw2", "/dev/hidraw3", "/dev/input/event2", "/dev/input/event3", "/dev/input/event5", "/dev/iio:device0", ""] │
╰────┴─────────────────┴──────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

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.

4 participants