Usbutil - Ps2

ACTION=="add", SUBSYSTEM=="usb", ATTRSidVendor=="0e8f", ATTRSidProduct=="0003", RUN+="/usr/bin/usbutil ps2 $envDEVNAME" Then reload udev:

# Debian/Ubuntu/Mint sudo apt install usbutils sudo dnf install usbutils Arch sudo pacman -S usbutils Step 1: Identify your adapter Plug in your PS2 controller via the USB adapter. Run:

Plug it in, and... nothing. Or worse, the buttons are scrambled. This is where the unsung hero usbutil ps2 comes into play. usbutil ps2 is a command-line utility found in the usbutils package on Linux (alongside the famous lsusb ). It is specifically designed to query, configure, and initialize PS2 controller to USB adapters that use the HID (Human Interface Device) protocol but often misreport their capabilities. usbutil ps2

Have a stubborn adapter that usbutil ps2 can't fix? Check the lsusb -v output for your device and consult the linux-usb mailing list. Happy gaming. Do you use a PS2 controller on Linux? Let me know your adapter model in the comments below.

lsusb Look for an entry that looks like this: Bus 001 Device 005: ID 0e8f:0003 GreenAsia Inc. MaxFire Joypad Or worse, the buttons are scrambled

If you are a fan of retro gaming on PC, you have likely gone down the rabbit hole of controller adapters. Specifically, the PlayStation 2 controller remains a gold standard for many classic fighting games and platformers. To connect these to a modern PC, we often use a "PS2 to USB" adapter.

sudo udevadm control --reload-rules sudo udevadm trigger Now, every time you plug in the adapter, usbutil ps2 will initialize it automatically. | Issue | Solution | |-------|----------| | usbutil ps2: command not found | You have usbutils installed but your distro compiled it without PS2 support. You may need to compile from source with --enable-ps2 . | | Cannot open HID device | Run the command with sudo . | | Analog sticks work, but D-pad doesn't | This is normal for some adapters. Use xboxdrv or evremap to remap. | | Controller vibrates constantly | Unplug and re-plug after running the command. | Final Thoughts usbutil ps2 is a niche but invaluable tool for the retro gaming community on Linux. It bridges the gap between decades-old hardware and modern kernel drivers. While the PS3/PS4 controllers work natively over Bluetooth, nothing beats the tactile feel of a genuine DualShock 2 on a CRT filter shader in RetroArch. It is specifically designed to query, configure, and

October 26, 2023 | Category: Retro Gaming, Linux Hardware