Last active
July 2, 2023 14:01
-
-
Save jungin500/170c004e898878f84973b897520156ae to your computer and use it in GitHub Desktop.
udev rules to disable XBOX ACC (Windows Xbox Wireless Dongle) on Linux, Udev rules. Tested on Ubuntu 22.04.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable XBOX ACC, Microsoft Inc., XYZXYZ | |
# -- Run following after saving this file as: /etc/udev/rules.d/00-block-xbox-usb.rules | |
# -- $ sudo udevadm trigger && sudo systemctl restart udev | |
# -- Also, run following to persist for next reboot. | |
# -- $ sudo update-initramfs -u -k all | |
ACTION=="add", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02fe", RUN="/bin/sh -c '[ -f /sys$devpath/authorized ] && echo 0 >/sys$devpath/authorized || true'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment