Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Contrôleur USB / Joueur 2 inaccessible ...

    Manettes/GPIO/Encodeurs
    contrôleur usb joueur inaccessible
    5
    41
    13259
    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.
    • Substring
      Substring @ian57 last edited by

      @ian57 tu pourrais toi aussi passer udevadm info -a -n input/event0 | grep quirk stp ?

      Former dev - Please reply with @substring so that i am notified when you answer me
      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

      1 Reply Last reply Reply Quote 0
      • ian57
        ian57 Staff last edited by

        oui quand tout sera installé.. on pourra comparer

        "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

        1 Reply Last reply Reply Quote 0
        • ian57
          ian57 Staff last edited by ian57

          bon ya bien un soucis avec la version 20pins :

          [   51.141243] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
          [   51.221199] usb 1-1.4: device descriptor read/64, error -32
          [   51.437378] usb 1-1.4: New USB device found, idVendor=16c0, idProduct=75e1
          [   51.437389] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
          [   51.437395] usb 1-1.4: Product: THT 2P arcade controller
          [   51.437400] usb 1-1.4: Manufacturer: THT 2P arcade controller
          [   51.442827] input: THT 2P arcade controller THT 2P arcade controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:16C0:75E1.0002/input/input1
          [   51.443219] hid-generic 0003:16C0:75E1.0002: input,hidraw1: USB HID v1.11 Joystick [THT 2P arcade controller THT 2P arcade controller] on usb-3f980000.usb-1.4/input0
          [  115.341791] usb 1-1.4: USB disconnect, device number 5
          

          et du coup :

          # evtest 
          No device specified, trying to scan all of /dev/input/event*
          Available devices:
          /dev/input/event0:	DragonRise Inc.   Generic   USB  Joystick  
          /dev/input/event1:	THT 2P arcade controller THT 2P arcade controller
          Select the device event number [0-1]:
          

          par contre la version 18 pins c'est ok :

          [  118.481211] usb 1-1.4: new low-speed USB device number 6 using dwc_otg
          [  118.599457] usb 1-1.4: New USB device found, idVendor=16c0, idProduct=05e1
          [  118.599469] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
          [  118.599475] usb 1-1.4: Product: THT Arcade console 2P USB Player
          [  118.599480] usb 1-1.4: Manufacturer: THT
          [  118.620849] input: THT THT Arcade console 2P USB Player as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:16C0:05E1.0003/input/input2
          [  118.621541] input: THT THT Arcade console 2P USB Player as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:16C0:05E1.0003/input/input3
          [  118.621842] xinmo 0003:16C0:05E1.0003: input,hidraw1: USB HID v1.01 Joystick [THT THT Arcade console 2P USB Player] on usb-3f980000.usb-1.4/input0
          

          et

          # evtest 
          No device specified, trying to scan all of /dev/input/event*
          Available devices:
          /dev/input/event0:	DragonRise Inc.   Generic   USB  Joystick  
          /dev/input/event1:	THT THT Arcade console 2P USB Player
          /dev/input/event2:	THT THT Arcade console 2P USB Player
          Select the device event number [0-2]:
          

          je regarde de plus près mais idem pour le quirks

          # udevadm info -a -n input/event0 | grep quirk
              ATTRS{avoid_reset_quirk}=="0"
              ATTRS{quirks}=="0x0"
              ATTRS{avoid_reset_quirk}=="0"
              ATTRS{quirks}=="0x0"
              ATTRS{avoid_reset_quirk}=="0"
              ATTRS{quirks}=="0x0"
          

          "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

          1 Reply Last reply Reply Quote 0
          • borninthe80s
            borninthe80s last edited by

            Juste pour vous dire que j'ai eu le vendeur. Il m'a fait faire une modification dans cmdline.txt, mais cela n'a pas eu d'effet.

            www.facebook.com/assoborninthe80s/ www.borninthe80s.fr

            Substring 1 Reply Last reply Reply Quote 0
            • ian57
              ian57 Staff last edited by ian57

              On est dessus, chez moi ça marche avec des modifs de modules de noyau :

              # evtest 
              No device specified, trying to scan all of /dev/input/event*
              Available devices:
              /dev/input/event0:	THT 2P arcade controller THT 2P arcade controller
              /dev/input/event1:	THT 2P arcade controller THT 2P arcade controller
              Select the device event number [0-1]: ^C
              

              j'ai toujours le descriptor read error mais ça marche avec mes modifs :

              [ 1273.041610] usb 1-1.4: device descriptor read/64, error -32
              [ 1273.257705] usb 1-1.4: New USB device found, idVendor=16c0, idProduct=75e1
              [ 1273.257713] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
              [ 1273.257719] usb 1-1.4: Product: THT 2P arcade controller
              [ 1273.257724] usb 1-1.4: Manufacturer: THT 2P arcade controller
              [ 1273.262643] input: THT 2P arcade controller THT 2P arcade controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:16C0:75E1.0003/input/input4
              [ 1273.263024] input: THT 2P arcade controller THT 2P arcade controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:16C0:75E1.0003/input/input5
              [ 1273.263311] hid-generic 0003:16C0:75E1.0003: input,hidraw0: USB HID v1.11 Joystick [THT 2P arcade controller THT 2P arcade controller] on usb-3f980000.usb-1.4/input0
              

              va falloir refaire un patch kernel
              si tu veux tester de ton coté je peux te filer les fichiers modules à remplacer pour une 4.1

              "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @borninthe80s last edited by

                @borninthe80s cette modif de cmdline il faut la tester sur un 4.0 pas sur une 4.1

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                1 Reply Last reply Reply Quote 0
                • ian57
                  ian57 Staff last edited by

                  yep... ça devrait logiquement marcher sur une 4.0 avec la modif de cmdline.txt. J'essaierai de faire un test cet ap, avec un 4.02

                  "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

                  1 Reply Last reply Reply Quote 0
                  • Substring
                    Substring @ian57 last edited by Substring

                    @ian57 said in Contrôleur USB / Joueur 2 inaccessible ...:

                    va falloir refaire un patch kernel

                    pipi de chat ca. Tu vas dans le rep des sources du kernel,

                    git init
                    git add *
                    

                    le git add * risque de prendre 3 plombes ...

                    Tu appliques tes modifs puis git diff > /path/to/newpatch.patch et tu intègres ca à la place du patch actuel. Après sois tu me fais passer le nouveau patch pour que je l'intègre sois tu fais une MR sur gitlab. De là, moi je peux générer par la CI une image de test

                    Former dev - Please reply with @substring so that i am notified when you answer me
                    Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                    1 Reply Last reply Reply Quote 0
                    • ian57
                      ian57 Staff last edited by

                      yes pas mal du tout la méthode... je te tiens au courant

                      "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

                      1 Reply Last reply Reply Quote 0
                      • borninthe80s
                        borninthe80s last edited by

                        Je vais suivre la solution, mais je pense reprendre un autre adaptateur 🙂 c'est trop hardcore pour moi vos manipulation 🙂

                        www.facebook.com/assoborninthe80s/ www.borninthe80s.fr

                        1 Reply Last reply Reply Quote 0
                        • acris
                          acris last edited by acris

                          @borninthe80s
                          La manip est adressé à ian57
                          Le tps de faire une image pret à l emploi
                          Mais si tu veux depenser encore 20 euros pourquoi pas en esperant que tu n ais pas le meme probleme

                          1 Reply Last reply Reply Quote 0
                          • ian57
                            ian57 Staff last edited by

                            Si tu repasses en 4.02 le controleur fonctionne en ajoutant :

                            usbhid.quirks=0x16c0:0x75e1:0x040
                            

                            au fichier /boot/cmdline.txt

                            dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty3 loglevel=3 elevator=deadline vt.global_cursor_default=0 logo.nologo root=/dev/mmcblk0p7 rootwait fastboot noswap ro usbhid.quirks=0x16c0:0x75e1:0x040
                            

                            la manip est décrite ici : https://forum.recalbox.com/topic/5658/choix-pour-un-encodeur-rasp-pi3-xcsource-2-joueurs-test/7

                            sinon tu attends 1 ou 2 jour le temps que l'on remonte le patch dans la 4.1. Je suis en train de faire le taf

                            "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

                            Substring 1 Reply Last reply Reply Quote 0
                            • Substring
                              Substring @ian57 last edited by

                              @ian57 said in Contrôleur USB / Joueur 2 inaccessible ...:

                              sinon tu attends 1 ou 2 jour le temps que l'on remonte le patch dans la 4.1. Je suis en train de faire le taf

                              on vient de sortir une unstable, je doute qu'on en ponde une qq jours après. HFS dans 1 semaine, on va un peu lever le pied sur les dev je pense

                              Former dev - Please reply with @substring so that i am notified when you answer me
                              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                              1 Reply Last reply Reply Quote 0
                              • borninthe80s
                                borninthe80s last edited by

                                Pour info, le fournisseur me renvoi une version 36 pins au lieu de 40.
                                C'est cool de sa part 🙂
                                Merci de votre aide les gars.

                                ps : on se voit au HFS 🙂 !

                                www.facebook.com/assoborninthe80s/ www.borninthe80s.fr

                                Substring 1 Reply Last reply Reply Quote 0
                                • Substring
                                  Substring @borninthe80s last edited by

                                  @borninthe80s said in Contrôleur USB / Joueur 2 inaccessible ...:

                                  on se voit au HFS 🙂 !

                                  GENIAL !!!

                                  Former dev - Please reply with @substring so that i am notified when you answer me
                                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  Want to support us ?

                                  77
                                  Online

                                  99.6k
                                  Users

                                  28.1k
                                  Topics

                                  187.1k
                                  Posts

                                  Copyright © 2021 recalbox.com