RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    no controllers found after update

    Scheduled Pinned Locked Moved Help and Support
    joypad config4.8 rpi4update issue
    26 Posts 2 Posters 4.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mituM
      mitu Global Moderator @nik2208
      last edited by

      @nik2208 said in no controllers found after update:

      I've looked for a solution without luck.
      the folder:

      /opt/retropie/configs/all/retroarch-joypads

      results to be empty and the script to generate them manually (which I'm not able to find anymore but is located int opt folder.. sorry abt that but I'm away from my RPi can cannot look into my bash history) gives command not found for ìniConfig and iniSet entries.

      The scripts that generate the RetroArch auto-configuration profile are not meant to be run directly by an user, they're run from EmulationStation, after you configure your controller there. So if you want the auto-configuration profile(s) to be created, just configure your gamepad (again) in EmulationStation.

      I'm not aware of an update in RetroPie that removes the auto-configuration profiles, what exactly (and how) did you update ?

      1 Reply Last reply Reply Quote 0
      • N
        nik2208
        last edited by nik2208

        The scripts that generate the RetroArch auto-configuration profile are not meant to be run directly by an user, they're run from EmulationStation, after you configure your controller there. So if you want the auto-configuration profile(s) to be created, just configure your gamepad (again) in EmulationStation.

        I found that hint here in the forum, just wanted to see what would have happened

        I'm not aware of an update in RetroPie that removes the auto-configuration profiles, what exactly (and how) did you update ?

        I've run the script update and the update

        just configure your gamepad (again) in EmulationStation.

        even if I can find the gamepads (all of them working) in raspbian (evtest, cat, whatever) emulationstation does not find them, so in configure input whatever I press in the gamepad I get "NO GAMEPAD FOUND" (is that the message..?)

        So I can only configure the keyboard

        Whats also strange is that uninstalling and installing again didnt resolve the issue. is there some configuration file that is not removed by the uninstall script?

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @nik2208
          last edited by mitu

          @nik2208 said in no controllers found after update:

          I found that hint here in the forum, just wanted to see what would have happened

          Which hint are you referring to ?

          even if I can find the gamepads (all of them working) in raspbian (evtest, cat, whatever) emulationstation does not find them, so in configure input whatever I press in the gamepad I get "NO GAMEPAD FOUND" (is that the message..?)

          Please provide some info then about your setup (as detailed in https://retropie.org.uk/forum/topic/3/read-this-first), including what kind of controllers are you using. Did you have to install any driver to make them work ?

          EDIT: Start EmulationStation with

          emulationstation --debug
          

          and provide the debug log with the controller not being detected. Use pastebin.com for the log file.

          N 1 Reply Last reply Reply Quote 0
          • N
            nik2208 @mitu
            last edited by

            Which hint are you referring to ?

            to run the configuration script manually

            Please provide some info then about your setup (as detailed in https://retropie.org.uk/forum/topic/3/read-this-first), including what kind of controllers are you using. Did you have to install any driver to make them work ?

            I didnt put it as a list but is all in the first post

            RPi4 8gb
            power supply is over 3A (but it doesnt affect the problem because the gamepad were working)
            retropie 4.8.7
            installed via install script (not pre made sd)
            controller used: SNES controller, switch pro controller (BT), Wii controller (BT), XBOX 360 controller
            (all of them where working perfectly)

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by mitu

              Start EmulationStation with

              emulationstation --debug
              

              and provide the debug log with the controller(s) not being detected. Use pastebin.com for the log file, since it can be quite large. You can get the log from the terminal output or from $HOME/.emulationstation/es_log.txt.

              You didn't add the info about what image you used to install your system - is this a Bullseye/Buster/Bookworm RaspiOS edition ?

              N 1 Reply Last reply Reply Quote 0
              • N
                nik2208 @mitu
                last edited by

                @mitu thank u very much I'll be back to you tomorrow (I'm not home right now)

                1 Reply Last reply Reply Quote 0
                • N
                  nik2208
                  last edited by nik2208

                  @mitu
                  the image is bookwork

                  PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
                  NAME="Debian GNU/Linux"
                  VERSION_ID="12"
                  VERSION="12 (bookworm)"
                  VERSION_CODENAME=bookworm
                  ID=debian
                  HOME_URL="https://www.debian.org/"
                  SUPPORT_URL="https://www.debian.org/support"
                  BUG_REPORT_URL="https://bugs.debian.org/"

                  here it is the log
                  https://pastebin.com/raw/GkT6ak2W

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by mitu

                    I can see some (virtual) controllers being detected:

                    Jun 05 10:36:26 lvl2: 	Added unconfigured joystick 'Virtual Gamepad (MoltenGamepad)' (GUID: 03000bf1010000000100000001000000, instance ID: 0, device index: 0).
                    Jun 05 10:36:26 lvl2: 	Added unconfigured joystick 'Virtual Gamepad (MoltenGamepad)' (GUID: 03000bf1010000000100000001000000, instance ID: 1, device index: 1).
                    Jun 05 10:36:26 lvl2: 	Added unconfigured joystick 'Virtual Gamepad (MoltenGamepad)' (GUID: 03000bf1010000000100000001000000, instance ID: 2, device index: 2).
                    Jun 05 10:36:26 lvl2: 	Added unconfigured joystick 'Virtual Gamepad (MoltenGamepad)' (GUID: 03000bf1010000000100000001000000, instance ID: 3, device index: 3).
                    Jun 05 10:36:26 lvl2: 	Added unconfigured joystick 'Virtual Keyboard (MoltenGamepad)' (GUID: 0300e018010000000100000001000000, instance ID: 4, device index: 4)
                    

                    You're running a controller remapping application (MoltenGamepad), which may disable the access to the underlying hardware/controllers. I don't think there's an issue here - can you disable MoltenGamepad from running and re-try ?

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      nik2208 @mitu
                      last edited by

                      @mitu It was working correctly even with moltengamepad running (i used it to map my wiimotes)

                      Jun 05 14:11:57 lvl2: 	EmulationStation - v2.11.2rp, built May 25 2024 - 13:24:57
                      Jun 05 14:11:57 lvl2: 	Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamenames.xml"...
                      Jun 05 14:11:57 lvl2: 	Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamebioses.xml"...
                      Jun 05 14:11:57 lvl2: 	Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamedevices.xml"...
                      Jun 05 14:11:57 lvl2: 	Creating window...
                      Jun 05 14:11:57 lvl2: 	Created window successfully.
                      Jun 05 14:11:57 lvl2: 	GL vendor:   Broadcom
                      Jun 05 14:11:57 lvl2: 	GL renderer: V3D 4.2
                      Jun 05 14:11:57 lvl2: 	GL version:  3.1 Mesa 23.2.1-1~bpo12+rpt3
                      Jun 05 14:11:57 lvl2: 	Checking available OpenGL extensions...
                      Jun 05 14:11:57 lvl2: 	 ARB_texture_non_power_of_two: ok
                      Jun 05 14:11:58 lvl2: 	Loading system config file /etc/emulationstation/es_systems.cfg...
                      Jun 05 14:11:58 lvl1: 	System "amstradcpc" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "arcade" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "atari2600" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "atari5200" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "atari7800" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "atari800" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "atarilynx" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "channelf" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "coleco" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "fba" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "fds" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "gamegear" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "gb" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "gba" has no games! Ignoring it.
                      Jun 05 14:11:58 lvl1: 	System "gbc" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "mastersystem" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "megadrive" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "msx" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "ngp" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "ngpc" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "pcengine" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl2: 	Parsing XML file "/home/nicola/.emulationstation/gamelists/retropie/gamelist.xml"...
                      Jun 05 14:11:59 lvl1: 	System "sega32x" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "segacd" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "sg-1000" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "vectrex" has no games! Ignoring it.
                      Jun 05 14:11:59 lvl1: 	System "zxspectrum" has no games! Ignoring it.
                      Jun 05 14:12:00 lvl3: 	SystemView::getViewElements()
                      Jun 05 14:12:00 lvl3: 	fireEvent: system-select mame-libretro gotostart
                      Jun 05 14:12:02 lvl3: 	UIModeController::logInput( Keyboard ):Key Left, isMappedTo= left, , value=1
                      Jun 05 14:12:02 lvl3: 	UIModeController::logInput( Keyboard ):Key Left, isMappedTo= left, , value=0
                      Jun 05 14:12:02 lvl3: 	fireEvent: system-select snes input
                      Jun 05 14:12:03 lvl3: 	UIModeController::logInput( Keyboard ):Key Left, isMappedTo= left, , value=1
                      Jun 05 14:12:03 lvl3: 	UIModeController::logInput( Keyboard ):Key Left, isMappedTo= left, , value=0
                      Jun 05 14:12:03 lvl3: 	fireEvent: system-select retropie input
                      Jun 05 14:12:32 lvl3: 	fireEvent: quit  
                      Jun 05 14:12:32 lvl2: 	EmulationStation cleanly shutting down.
                      

                      this is the dmesg output:

                      [12958.224839] usb 1-1.3.2: new full-speed USB device number 6 using xhci_hcd
                      [12958.359606] usb 1-1.3.2: New USB device found, idVendor=045e, idProduct=028e, bcdDevice= 1.14
                      [12958.359636] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                      [12958.359644] usb 1-1.3.2: Product: Controller
                      [12958.359651] usb 1-1.3.2: Manufacturer: ©Microsoft Corporation
                      [12958.359658] usb 1-1.3.2: SerialNumber: 1638D3A
                      [12958.484392] input: Microsoft X-Box 360 pad as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input21
                      [12958.485803] usbcore: registered new interface driver xpad
                      
                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @nik2208
                        last edited by

                        @nik2208 dmesg shows that only a XBox 360 controller is detected, it doesn't show any Switch Pro or SNES controller. Is the controller working when tested with jstest ?

                        EmulationStation doesn't detect it at all, so it could be a driver issue (if jstest doesn't work at all) or a permission problem. Are you running from a desktop session or from the console ?

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          nik2208 @mitu
                          last edited by

                          @mitu yes I mentiioned I was able to use all of those controllers, now not to make things too complicated I've attached only the 360 controller.

                          The controller is absolutely working

                          nicola@raspberrypi:~ $ sudo jstest /dev/input/js0
                          Driver version is 2.1.0.
                          Joystick (Microsoft X-Box 360 pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
                          and 11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
                          Testing ... (interrupt to exit)
                          Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:  -763  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:  -763  4:  3251  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:  -763  4:  3251  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:  -763  4:  3251  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:offAxes:  0:     0  1: -1168  2:-32767  3:  -763  4:  3251  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
                          

                          @mitu said in no controllers found after update:

                          Are you running from a desktop session or from the console ?

                          I run emulationstation from a console, on a desktop session

                          mituM 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator @nik2208
                            last edited by mitu

                            @nik2208 said in no controllers found after update:

                            nicola@raspberrypi:~ $ sudo jstest /dev/input/js0

                            Why are you using sudo ? EmulationStation is not running as root and your user (nicola) should be able to read the input devices in order for emulators and EmulationStation to work. Can you confirm that jstest works without sudo ?

                            I run emulationstation from a console, on a desktop session

                            Not a configuration we support though. Can you start EmulationStation with the desktop stopped, from a text console ?

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              nik2208 @mitu
                              last edited by

                              Not a configuration we support though.

                              what's strange is that it has always worked until I've updated it, without needing to add my user to input groups or whatever

                              Can you start EmulationStation with the desktop stopped, from a text console ?

                              You mean stopping X server and running emulationstation right?

                              Another question.
                              Ive tried to uninstall and reinstall but the problem persisted.
                              Is there a config file being left on the host taken into account by the installation process?
                              What should I do to install retropie as if it was the first time?

                              thank u, really appreciating your help

                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @nik2208
                                last edited by

                                @nik2208 said in no controllers found after update:

                                what's strange is that it has always worked until I've updated it, without needing to add my user to input groups or whatever

                                I didn't say you need to add your user to the input group. I understand that 'it worked before' . I'm sure that's not a RetroPIe update that's causing this, but some other (possibly unrelated) RaspiOS update or configuration that was working previously but it's not working anymore.

                                You mean stopping X server and running emulationstation right?

                                Yes.

                                Another question.
                                Ive tried to uninstall and reinstall but the problem persisted.

                                Yes, I know, you've said that at the beginning.

                                Is there a config file being left on the host taken into account by the installation process?

                                Not that I know of. Uninstallation will remove the /opt/retropie/config folder, which should contain all the configuration for EmulationStation/RetroArch.

                                What should I do to install retropie as if it was the first time?

                                What do you mean ? Re-installing the entire RaspiOS or .. ?

                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  nik2208 @mitu
                                  last edited by

                                  @mitu on console it behaves exactly the same

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @nik2208
                                    last edited by

                                    @nik2208 said in no controllers found after update:

                                    on console it behaves exactly the same

                                    How about jstest ? Does it work without sudo ?

                                    N 2 Replies Last reply Reply Quote 0
                                    • N
                                      nik2208 @mitu
                                      last edited by nik2208

                                      @mitu trying to. How is SDL involved in gamepad recognition process? can any conflict on sdl cause gamepads not to be recognized?

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        nik2208 @mitu
                                        last edited by nik2208

                                        @mitu actually a new udev rule to access inputs devices as user has solved the issue.
                                        Can't imagine what process could have changed such setting to make it suddenly stop working

                                        mituM 1 Reply Last reply Reply Quote 0
                                        • mituM
                                          mitu Global Moderator @nik2208
                                          last edited by mitu

                                          @nik2208 said in no controllers found after update:

                                          @mitu actually a new udev rule to access inputs devices as user has solved the issue.

                                          Which rule ? Can you be more specific ? I'd like to understand how is related to a RetroPie/RaspiOS upgrade.

                                          N 1 Reply Last reply Reply Quote 0
                                          • N
                                            nik2208 @mitu
                                            last edited by

                                            @mitu said in no controllers found after update:

                                            Which rule ?

                                            nicola@raspberrypi:~ $ ls -la /etc/udev/rules.d/
                                            totale 24
                                            drwxr-xr-x 2 root root 4096  5 giu 17.59 .
                                            drwxr-xr-x 4 root root 4096 25 mar 11.42 ..
                                            -rw-r--r-- 1 root root 2095 15 mag 17.55 72-moltengamepad.rules
                                            -rw-r--r-- 1 root root 1743 13 nov  2023 99-com.rules
                                            -rw-r--r-- 1 root root   47  5 giu 17.56 99-gamepad.rules
                                            -rw-r--r-- 1 root root   47  9 mag 21.34 99-input.rules
                                            

                                            99-gamepad.rules is the rule I've added.

                                            99-input.rules is

                                            SUBSYSTEM=="input", GROUP="input", MODE="0660"
                                            

                                            but actually seems not to do the job.

                                            The new rule is
                                            99-gamepad.rules

                                            KERNEL=="js[0-9]*", MODE="0660", GROUP="input"
                                            
                                            mituM 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            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.