no Gamepads Detected
-
@mitu i installed xfce and then the gamepad was detected just fine thank you!.
not sure if i am allowed to ask other questions in this topic. but the n64 controller works fine in emulationstation. but it does not propperly work once i am in a n64 game. it seems i need to go into the retroarch menu once i am inside the rom to actualy change the mapping for n64? -
@yctn Not sure what you mean - once the gamepad is configured in EmulationStation, its configuration is also created for RetroArch.
Is there an issue with the mapping profile for the N64 core - or you have a specific (N64) controller that is not correctly mapped ? You've not given any details about what controllers you have except for the
dmesg
blurb, which is not enough. -
@mitu i have configured a keyboard and i have configure the n64 controller in emulationstation and that works perfectly fine.
but once i enter the mario kart game the keyboard soft of works. but the game controller does not work at all.Joystick (SWITCH CO.,LTD. Usb Controller) has 6 axes (X, Y, Z, Rz, Hat0X, Hat0Y)
if i test the controller with jstest /dev/input/js0 it seems to work perfectly fine.
-
@mitu also when i look at the InputAutoCfg.init it seems to only contains support for the keyboard.
; InputAutoCfg.ini for Mupen64Plus SDL Input plugin
; Keyboard_START
[Keyboard]
plugged = True
plugin = 2
mouse = False
DPad R = key(100)
DPad L = key(97)
DPad D = key(115)
DPad U = key(119)
Start = key(13)
Z Trig = key(122)
B Button = key(306)
A Button = key(304)
C Button R = key(108)
C Button L = key(106)
C Button D = key(107)
C Button U = key(105)
R Trig = key(99)
L Trig = key(120)
Mempak switch = key(44)
Rumblepak switch = key(46)
X Axis = key(276,275)
Y Axis = key(273,274)
; Keyboard_END -
@yctn said in no Gamepads Detected:
but once i enter the mario kart game the keyboard soft of works. but the game controller does not work at all.
Which emulator are you using - the libretro core or the standalone emulator ? Can you please get a verbose log and then post the log file (
/dev/shm/runcommand.log
) on pastebin.com ?@mitu also when i look at the InputAutoCfg.init it seems to only contains support for the keyboard.
I think that's ok, when using the standalone emulator the configuration is generated at runtime, when the game is started.
-
@mitu i see mupen64plus-glide64 as emulator
cat runcommand.info n64 mupen64plus-glide64 /home/test/RetroPie/roms/n64/mario-kart.n64 /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh mupen64plus-video-glide64mk2 "/home/test/RetroPie/roms/n64/mario-kart.n64"
and
cat runcommand.log Parameters: Executing: /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh mupen64plus-video-glide64mk2 "/home/test/RetroPie/roms/n64/mario-kart.n64" grep: /opt/retropie/configs/all/retroarch-joypads/*.cfg: No such file or directory grep: /opt/retropie/configs/all/retroarch-joypads/*.cfg: No such file or directory grep: /opt/retropie/configs/all/retroarch-joypads/*.cfg: No such file or directory /opt/retropie/emulators/mupen64plus/bin/mupen64plus.sh: line 425: /proc/device-tree/compatible: No such file or directory
since the output was quite small i thought it would be okay if i post them here.
-
@yctn said in no Gamepads Detected:
grep: /opt/retropie/configs/all/retroarch-joypads/*.cfg
This means you have no gamepads profiles configured for RetroArch and thus the auto-configuration process didn't work since it uses those profiles to configure the gamepads in Mupen64plus (the standlone emulator). Did you disable the EmulationStation's auto-configuration scripts ?
-
@mitu no i did not disable Emulationstation auto-configuration scripts as far as i know. i just ran the retropie_setup.sh with all the default settings.
-
@yctn i checked in the ./retropie_setup.sh and auto-configuration is set to enabled perfectly fine.
would it matter if i ran ./retropie_setup.sh as root? but emulationstation is running as a non root user?
i already did chmod 777 /opt/retropi -R to make sure my non root user has access to everything there.i am confused about how things should be exactly.
-
@yctn said in no Gamepads Detected:
@yctn i checked in the ./retropie_setup.sh and auto-configuration is set to enabled perfectly fine.
That's not where the auto-configuration is saved, but if you didn't explicitely disable it, I don't understand why the EmulationStation configuration of the gamepad hasn't created the corresponding RetroArch profile(s) - perhaps folder permissions at the time when the configuration was run ?
would it matter if i ran ./retropie_setup.sh as root? but emulationstation is running as a non root user?
While
retropie_setup.sh
needs to haveroot
permissions - but it should run withsudo
, not asroot
- , running EmulationStation/emulators is not.i already did chmod 777 /opt/retropi -R to make sure my non root user has access to everything there.
Please don't change any permissions since they're not needed,
retropie_setup.sh
should handle any needed permissions. Did you ran EmulationStation as root as some point ? Or started asroot
the initial setup ? If the folders under/opt/retropie/configs
do not have the correct permissions, then saving the controller profiles wouldn't work if the folders are/were owned byroot
. -
@mitu i tried to run emulationstation as root but it refuses to do so. so i am running emulatorstation as a user.
no i did not explicitely disable it.
i already tried to reconfigure the controller in emulationstation but that does not seem to save the controller config.
when i open the retroarch menu it also looks pretty.... bugged/strange. i dont know how to proceed from here. -
@yctn I recommend you reinstall the OS and re-do the installation. Start the installation as a regular user with
sudo
, as explained in the installation docs. Start EmulationStation from the rpi shortcut/icon added by the installer - as regular user also. -
@mitu thing is. this is not a raspbarry pi its an a gigabyte brix. anyway its just a regular pc with debian 12. on top of that i have installed the retropi installer thing. i also have 10+ years experience with working with linux so overall i have a pretty good understanding of what i am doing. i just dont know the whole retropi system and what it exactly needs/wants. i can definitly do a reinstall. but i would actualy prefer to learn/understand what is going on and fix it.
-
This post is deleted! -
Then use
retropie-setup
to uninstall RetroPie, then install it again. -
@mitu after the recompile things are looking better. the n64 controller works. sort of inside an n64 game.
i have 2 problems tho. in Emulationsstation i chose the HOME button on my controller as the hotkey button. that does not seem to do anything while ingame.also i have mapper A to the A button. but once inside mario kart it seems to be that i need to use the B button to actualy drive.
please advice. -
@yctn i checked with jstest my HOME button = 12 and A button = 2
input_device = "SWITCH CO.,LTD. Usb Controller" input_driver = "udev" input_vendor_id = "3695" input_product_id = "4371" input_left_btn = "h0left" input_state_slot_decrease_btn = "h0left" input_right_btn = "h0right" input_state_slot_increase_btn = "h0right" input_r_btn = "5" input_save_state_btn = "5" input_down_btn = "h0down" input_l_btn = "4" input_load_state_btn = "4" input_y_btn = "3" input_x_btn = "0" input_menu_toggle_btn = "0" input_b_btn = "1" input_reset_btn = "1" input_a_btn = "2" input_up_btn = "h0up" input_select_btn = "8" input_start_btn = "9" input_exit_emulator_btn = "9" input_l_x_plus_axis = "+0" input_l_y_minus_axis = "-1" input_enable_hotkey_btn = "12" input_l2_btn = "6" input_l_y_plus_axis = "+1" input_l_x_minus_axis = "-0"
so it would seems to be that this correctly configured...
-
@yctn said in no Gamepads Detected:
i have 2 problems tho. in Emulationsstation i chose the HOME button on my controller as the hotkey button. that does not seem to do anything while ingame.
The
hotkey_enable
by itself does nothing, you need to press the corresponding action in combination with it in order to trigger something - see here.
NB: for standalone emulators, this doesn't work, though I think Mupen64plus makes an exception for the Exit hotkey combo.also i have mapper A to the A button. but once inside mario kart it seems to be that i need to use the B button to actualy drive.
Use the libretro core and if you still get this assignment, you can open the menu and remap the buttons as you like, saving an input override for the game system.
-
@mitu it seems i was able to fix the A button by manualy editing /opt/retropie/configs/n64/InputAutoCfg.ini this is not the correct way to do it? when i hit ESC on my keyboard it exits the n64 game perfectly fine. but i dont know which key id the ESC button is so i dont know how to change that in InputAutoCfg.ini
hmm... i thought muten64plus-glide64 is not a libretro core and therefor i can not open the menu to remap the button using a UI?
-
@yctn said in no Gamepads Detected:
hmm... i thought muten64plus-glide64 is not a libretro core and therefor i can not open the menu to remap the button using a UI?
That's why i said to use the libretro core ...
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.