Skip to content

fix(Hardware Support): Fix rare double input bug on Legion devices#564

Merged
pastaq merged 1 commit intomainfrom
pastaq/go_reset_fix
Apr 1, 2026
Merged

fix(Hardware Support): Fix rare double input bug on Legion devices#564
pastaq merged 1 commit intomainfrom
pastaq/go_reset_fix

Conversation

@pastaq
Copy link
Copy Markdown
Contributor

@pastaq pastaq commented Mar 26, 2026

A somewhat rare event is described in #562 where the entire /dev directory seems to reset during startup after InputPlumber has already started gathering devices. During this event it is possible for the 'new' hidraw file descriptor for an already grabbed hidraw device to be detected before the cleanup has finished for that device. When this happens all of the evdev and iio devices end up on the original CompositeDevice and the hidraw all end up on a new composite device. This leads to duplicate device entries and input events.

To resolve this until a better long-term solution is found, treat the hidraw devices as non-unique for now.

A somewhat rare event is described in #562 where the entire /dev
directory seems to reset during startup after InputPlumber has already
started gathering devices. During this event it is possible for the 'new'
hidraw file descriptor for an already grabbed hidraw device to be detected
before the cleanup has finished for that device. When this happens all of
the evdev and iio devices end up on the original CompositeDevice and the
hidraw all end up on a new composite device. This leads to duplicate
device entries and input events.

To resolve this until a better long-term solution is found, treat the
hidraw devices as non-unique for now.
@pastaq pastaq merged commit 3a2eb72 into main Apr 1, 2026
6 checks passed
@pastaq pastaq deleted the pastaq/go_reset_fix branch April 1, 2026 00:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

🎉 This PR is included in version 0.76.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants