Skip to content

Instantly share code, notes, and snippets.

@jungin500
Last active July 2, 2023 14:01
Show Gist options
  • Save jungin500/170c004e898878f84973b897520156ae to your computer and use it in GitHub Desktop.
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.
# 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