Skip to content

Instantly share code, notes, and snippets.

@thetrung
Last active August 10, 2026 09:10
Show Gist options
  • Select an option

  • Save thetrung/47955599d18e55a08901c129ab1a0b92 to your computer and use it in GitHub Desktop.

Select an option

Save thetrung/47955599d18e55a08901c129ab1a0b92 to your computer and use it in GitHub Desktop.
Xgpro UDev Rules for Xgecu T48 on Linux/Wine
# 1. Create the missing plugdev group
sudo groupadd plugdev
# 2. Add your user to it
sudo usermod -aG plugdev $USER
# 3. Apply the group change immediately to your current terminal
newgrp plugdev
# 4. Add current user to the required USB access groups
sudo usermod -aG plugdev,dialout $USER
# 2. Create the Udev rules file for XGecu / MiniPRO programmers
sudo tee /etc/udev/rules.d/51-xgpro.rules > /dev/null << 'EOF'
# TL866A / TL866CS
SUBSYSTEM=="usb", ATTR{idVendor}=0x04d8, ATTR{idProduct}=0x005e, MODE="0666", GROUP="plugdev"
# TL866II Plus
SUBSYSTEM=="usb", ATTR{idVendor}=0x04d8, ATTR{idProduct}=0xe11c, MODE="0666", GROUP="plugdev"
# T48 / T56 High-Speed Programmers
SUBSYSTEM=="usb", ATTR{idVendor}=0xa466, ATTR{idProduct}=0x0001, MODE="0666", GROUP="plugdev"
EOF
# 3. Reload the system rules to apply changes instantly
sudo udevadm control --reload-rules && sudo udevadm trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment