Help with xboxdrv not installed in Ubuntu 20.10 (Retropie 4.7.9)
-
Hi,
I am running Retropie 4.7.9 on Ubuntu 20.10 on an amd64 computer. I have a "Trust GXT-540 Wired Gamepad | YULA" and I can play all sorts of videogames of different systems with different libretro cores.
This gamepad has a d-input/x-input swith and I am using d-input switch all the time with no issues.
As d-input, Ubuntu detects it aslsusb Bus 003 Device 005: ID 145f:01c5 Trust Trust Gamepad
sudo dmesg [159085.291533] usb 3-1: USB disconnect, device number 4 [159085.292296] xpad 3-1:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19 [159085.754615] usb 3-1: new full-speed USB device number 5 using ohci-pci [159085.949300] usb 3-1: New USB device found, idVendor=145f, idProduct=01c5, bcdDevice= 2.00 [159085.949310] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [159085.949315] usb 3-1: Product: Trust Gamepad [159085.949321] usb 3-1: Manufacturer: SHANWAN [159085.959441] input: SHANWAN Trust Gamepad as /devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/0003:145F:01C5.0003/input/input15 [159086.019149] hid-generic 0003:145F:01C5.0003: input,hidraw0: USB HID v1.10 Gamepad [SHANWAN Trust Gamepad] on usb-0000:00:12.0-1/input0
I: Bus=0003 Vendor=145f Product=01c5 Version=0110 N: Name="SHANWAN Trust Gamepad" P: Phys=usb-0000:00:12.0-1/input0 S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/0003:145F:01C5.0003/input/input14 U: Uniq= H: Handlers=event12 js1 B: PROP=0 B: EV=1b B: KEY=1fff000000000000 0 0 0 0 B: ABS=30027 B: MSC=10
ls -alh /dev/input/by-id/ lrwxrwxrwx 1 root root 10 feb 23 19:52 usb-SHANWAN_Trust_Gamepad-event-joystick -> ../event12 lrwxrwxrwx 1 root root 6 feb 23 19:52 usb-SHANWAN_Trust_Gamepad-joystick -> ../js1
evtest /dev/input/event12 A BTN_C B BTN_EAST X BTN_NORTH Y BTN_SOUTH LB BTN_WEST RB BTN_Z TL BTN_TL TR BTN_TR SELECT BTN_TL2 HOME BTN_MODE START BTN_TR2 UP ABS_HAT0Y DOWN ABS_HAT0Y LEFT ABS_HAT0X RIGHT ABS_HAT0X LPUSH BTN_SELECT LUP ABS_Y LDOWN ABS_Y LLEFT ABS_X LRIGHT ABS_X RPUSH BTN_START RUP ABS_RZ RDOWN ABS_RZ RLEFT ABS_Z RRIGHT ABS_Z
However, when trying to play PS2 videogames on non-libretro emulator pcsx2, the gamepad is not responsive. I was thinking making use of xboxdrv might help detect the gamepad, specifically in pcsx2. I have followed the steps
https://retropie.org.uk/docs/Universal-Controller-Calibration-%26-Mapping-Using-xboxdrv/
only to note there is no /etc/rc.local in Ubuntu.To make rc.local available and rc-local service enabled and active I have followed
https://linuxmedium.com/how-to-enable-etc-rc-local-with-systemd-on-ubuntu-20-04/Now rc.local is available but installing xboxdrv from EmulationStation > RetroPie > RetroPie setup > Manage packages > drivers > xboxdrv > Install
and then
Configuration / Options > Enable xboxdrv
is not adding any code to /etc/rc.local
and there is no file either in
/opt/retropie/supplementary/xboxdrv/bin/xboxdrvAt this stage I don't know what else to try so any help and advice are much appreciated.
Thank you in advance!
-
@derebo RetroPie logs every installation in
$HOME/RetroPie-Setup/logs
, can you look into the last log file to see if thexboxdrv
installation was successful ? You can also re-run the installation to generate a new log file and then post the log file on pastebin.com.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.