setup SNES Style USB gamepad on RetroPie 4.8.6 on PI 5- 8 Gb
-
I have installed a faceless Raspberry Pi OS Lite and RetroPie 4.8.6 on PI 5- 8 Gb and setup SNES Style USB gamepad it works fine to navigate RetroPie menus. but not when a game is started. I have 2 gamepad config files is this normal?
TA
one is
input_device = "USB Gamepad"
input_driver = "udev"
input_vendor_id = "121"
input_product_id = "17"and the 2nd one is the mapping
input_left_axis = "-0"
input_left_axis_label = "Dpad Left"
input_state_slot_decrease_axis = "-0"
input_right_axis = "+0"
input_right_axis_label = "Dpad Right"
input_state_slot_increase_axis = "+0"
input_r_btn = "5"
input_r_btn_label = "R"
input_save_state_btn = "5"
input_down_axis = "+1"
input_down_axis_label = "Dpad Down"
input_l_btn = "4"
input_l_btn_label = "L"
input_load_state_btn = "4"
input_y_btn = "3"
input_y_btn_label = "Y"
input_x_btn = "0"
input_menu_toggle_btn = "0"
input_b_btn = "2"
input_reset_btn = "2"
input_a_btn = "1"
input_up_axis = "-1"
input_up_axis_label = "Dpad Up"
input_select_btn = "8"
input_start_btn = "9"
input_exit_emulator_btn = "9"
input_enable_hotkey_btn = "9" -
Do you have install the
xpad
driver? If not, install it and configure again the controller, i hope it works. -
@windg said in setup SNES Style USB gamepad on RetroPie 4.8.6 on PI 5- 8 Gb:
install the xpad driver
I did a clean install of everything and forgot to install xpad driver
but now that I Have installed it,I have the same results.when I start the emulator it says "USB game gad configured on port 1"
but doesn't work to control the gamethanks again
-
@hogger After you install the driver did you reconfigure your controller ?
-
@windg Yes Sir. I even tired remove the existing retroarch.cfg from /opt/retropie/configs/all/retroarch.cfg and re-install RetroArch and reconfiguring the controller again as seen in another post
-
The problem is that you have 2 config files, both incomplete.
The 1st one contains the VID/PID and the name of the device and it's loaded by RetroArch, but it doesn't have any mapping for the buttons/d-pad. The 2nd one contains the mappings, but doesn't have the VID/PID and it's probably not loaded by RetroArch since it does't recognize the device name. I bet the actual name is something likeUSB Gamepad
(with multiple spaces at the end) and RetroArch looks forUSB Gamepad .cfg
, while your config file isUSB Gamepad.cfg
(no spaces befor the extension).What are the names of the
.cfg
files ? Can you run the commandcat /proc/bus/input/devices
and post the output ?
-
@mitu thanks I will take a look and post my findings.I'm just a noob that been read my A$$ off and after futher review I notice the USB drive I set up with SSH and a userconfig.txt to store my roms also now has a BIOS and configs file that contain emulationstation and retroarch config file. so what files are being used? config file from my SD OS card or the file on the USB drive?
-
@mitu The name of the config file are 'USB Gamepad .cfg' there is a space between Gamepad and .cfg which only contains VID/PID and NO mapping
The other 'USB Gamepad.cfg' which contains VID/PID and plus mapping
Here is the output cat /proc/bus/input/devices
I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
N: Name="SIGMACHIP USB Keyboard"
P: Phys=usb-xhci-hcd.0-1/input0
S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.0/0003:1C4F:0002.0001/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff800000000007ff febeffdff3cfffff fffffffffffffffe
B: MSC=10
B: LED=7I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
N: Name="SIGMACHIP USB Keyboard Consumer Control"
P: Phys=usb-xhci-hcd.0-1/input1
S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.1/0003:1C4F:0002.0002/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=1f
B: KEY=306ff 0 0 483ffff17aff32d bfd4444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
B: REL=1040
B: ABS=100000000
B: MSC=10I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
N: Name="SIGMACHIP USB Keyboard System Control"
P: Phys=usb-xhci-hcd.0-1/input1
S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.1/0003:1C4F:0002.0002/input/input2
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=13
B: KEY=c000 10000000000000 0
B: MSC=10I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="pwr_button"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/pwr_button/input/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=3
B: KEY=10000000000000 0I: Bus=0003 Vendor=0079 Product=0011 Version=0110
N: Name="USB Gamepad "
P: Phys=usb-xhci-hcd.0-2/input0
S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-2/1-2:1.0/0003:0079:0011.0004/input/input5
U: Uniq=
H: Handlers=event2 js0
B: PROP=0
B: EV=1b
B: KEY=3ff00000000 0 0 0 0
B: ABS=3
B: MSC=10I: Bus=0003 Vendor=1c4f Product=0034 Version=0110
N: Name="SIGMACHIP Usb Mouse"
P: Phys=usb-xhci-hcd.1-2/input0
S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-2/3-2:1.0/0003:1C4F:0034.0005/input/input6
U: Uniq=
H: Handlers=mouse0 event5
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=903
B: MSC=10I: Bus=001e Vendor=0000 Product=0000 Version=0001
N: Name="vc4-hdmi-0"
P: Phys=vc4-hdmi-0/input0
S: Sysfs=/devices/platform/soc/107c701400.hdmi/rc/rc0/input7
U: Uniq=
H: Handlers=kbd event6
B: PROP=20
B: EV=100017
B: KEY=ffffc000000000 3ff 0 400000320fc200 40830c900000000 0 210300 49d2c040ec00 1e378000000000 8010000010000000
B: REL=3
B: MSC=10I: Bus=001e Vendor=0000 Product=0000 Version=0001
N: Name="vc4-hdmi-1"
P: Phys=vc4-hdmi-1/input0
S: Sysfs=/devices/platform/soc/107c706400.hdmi/rc/rc1/input8
U: Uniq=
H: Handlers=kbd event7
B: PROP=20
B: EV=100017
B: KEY=ffffc000000000 3ff 0 400000320fc200 40830c900000000 0 210300 49d2c040ec00 1e378000000000 8010000010000000
B: REL=3
B: MSC=10 -
@mitu Ok Thank again you guys are awsome >this was driving me nuts. I just deleted the 'USB Gamepad .cfg' and MV (renamed) the 'USB Gamepad.cfg' to 'USB Gamepad .cfg' (with spaces before the extension). have no Idea how a got the 2 config files.but it seems to work now
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.