TTX Tech PS2 with USB dongle left and right triggers don't work.
-
Hello there, so I've run jstest and this is what I've discovered:
I am running off of a Rasberry Pi 4 Model B
The controller is a TTX Tech ps2 controller, and I'm connecting it to my Rasberry Pi with a USB dongle.At rest (not pressing the triggers down) axes 2 (left trigger) and 5 (right trigger) read -32767.
When pressed down Axes 2 and 5 read as + 32767
When pressed buttons 6 (left trigger) and 7 (left trigger) turn on.When selecting Configure Input, pressing either left or right trigger allows me to enter the controller input menu. So it is recognizing these as buttons.
I've tried installing ps3 controller drivers, enabling 3rd party support, and nothing.
I'm about to try and reinstalling retropie on my rasberry pi and starting from scratch but I'd like to know what I can do to fix this. I have a second controller that has the same issue. Same model and everything.
I appreciate the help!
-
I've tried using the xboxdrv and these are my results (any help at this point is helpful):
cat /proc/bus/input/devices
List of Devices:
First Device:
N: Name="Sony PLAYSTATION(R)3 Controller Motion Sensors"
H: Handlers=event1Second Device:
N: Name="Sony PLAYSTATION(R)3 Controller"
H: Handlers=event2 js0
ls /dev/input/by-id/
event location by name for later use
List of Devices:
Fist Device:
usb-Sony_PLAYSTATION_R_3_Controller-event-if00Second Device:
usb-Sony_PLAYSTATION_R_3_Controller-event-joystick
evtest /dev/input/event[•]
I ended up trying evtest /dev/input/event1 for N: Name="Sony PLAYSTATION(R)3 Controller Motion Sensors". This did not work.
evtest /dev/input/event2
This command works.
The device I'll be working with from now on is the following:
Second Device:
N: Name="Sony PLAYSTATION(R)3 Controller"
H: Handlers=event2 js0List of control input buttons and ABS codes begin here.
D-Pad:
BTN_DPAD_UP
BTN_DPAD_DOWN
BTN_DPAD_LEFT
BTN_DPAD_RIGHTButtons:
BTN_SOUTH
BTN_EAST
BTN_WEST
BTN_NORTHBTN_START
BTN_SELECTBumpers:
BTN_TL
BTN_TRTriggers:
BTN_TL2
ABS_Z
BTN_TR2
ABS_RZAnalog Sticks:
BTN_THUMBL
BTN_THUMBRABS_X
ABS_Y
ABS_RX
ABS_RY
In the end, I ended up placing this in the /etc/rc.local file
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-Sony_PLAYSTATION_R_3_Controller-event-joystick \ --silent \ --detach-kernel-driver \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --trigger-as-button \ --mimic-xpad \ --dpad-as-button --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \ --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start,BTN_DPAD_UP=du,BTN_DPAD_DOWN=dd,BTN_DPAD_LEFT=dl,BTN_DPAD_RIGHT=dr \ --ui-buttonmap guide=void \ & exit 0
And even then, I can't get retropie to recognize my controller as anything other than a playstation 3 controller AND now retropie won't finish rebooting.
It gets stuck after a message stating:
"You Xbox/Xbox360 controller should now be available as:
/dev/input/js1
/dev/input/event3Press Ctrl-C to quit"
And then the next 3 lines are about Samba NMB Daemon being Started, Starting, and Started again. At this point the boot ceases all function.
When I try the following command I get the same error message at boot.
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/event2 \ --silent \ --detach-kernel-driver \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --trigger-as-button \ --mimic-xpad \ --dpad-as-button --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \ --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start,BTN_DPAD_UP=du,BTN_DPAD_DOWN=dd,BTN_DPAD_LEFT=dl,BTN_DPAD_RIGHT=dr \ --ui-buttonmap guide=void \ & exit 0
I hope this information helps clarify my issue with this controller.
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.