Skip to content

Commit

Permalink
xpadneo: Work around invalid mapping in Steam Link
Browse files Browse the repository at this point in the history
Steam Link has access to the hidraw device using the input group, thus
revoke all access bits from the device to work around the issue.

Fixes: #291
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Oct 19, 2021
1 parent 714c27a commit 2900363
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hid-xpadneo/dkms.post_install
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ echo "Installing modalias database..."
install -D -m 0644 -t /etc/modprobe.d etc-modprobe.d/xpadneo.conf

echo "Installing udev rules..."
install -D -m 0644 -t /etc/udev/rules.d etc-udev-rules.d/50-xpadneo-fixup-steamlink.rules
install -D -m 0644 -t /etc/udev/rules.d etc-udev-rules.d/60-xpadneo.rules

echo "Reloading udev..."
Expand Down
1 change: 1 addition & 0 deletions hid-xpadneo/dkms.post_remove
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ rm -f /etc/modprobe.d/xpadneo.conf

echo "Uninstalling udev rules..."
rm -f /etc/udev/rules.d/60-xpadneo.rules
rm -f /etc/udev/rules.d/50-xpadneo-fixup-steamlink.rules

echo "Reloading udev..."
udevadm control --reload
2 changes: 2 additions & 0 deletions hid-xpadneo/etc-udev-rules.d/50-xpadneo-fixup-steamlink.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#FIXME(issue-291) Work around Steamlink not properly detecting the mappings
ACTION=="add|change", DRIVERS=="xpadneo", SUBSYSTEM=="hidraw", MODE:="0600"

0 comments on commit 2900363

Please sign in to comment.