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.
    • borninthe80s
      borninthe80s last edited by

      j'ai retrouvé ma commande

      http://www.ebay.fr/itm/111909944631?euid=7b1522a834bf4797b94904bd19740701&bu=43843339450&cp=1&sojTags=bu=bu

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

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

        un truc m'intrigue ...

        Moi j'ai câblé comme ca >> http://www.smallcab.net/download/manuel/manuel-encodeur-joystick-deux-joueurs-3H.pdf

        hors la il ne dise pas la meme chose >> https://github.com/recalbox/recalbox-os/wiki/Xin-mo-(FR)

        Pourquoi ?

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

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

          Ce nest pas la meme version de xin mo
          Le lien sur le wiki est pour xin mo 18 pins

          Tu as la version 20 pins dispo depuis 6mois.

          Le principal est davoir un cablage identique pour J1 et J2
          Car comme on configure uniquement un joueur
          La configuration joueur 1 est appliqué automatiquement au joueur2.

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

            Je pige pas ce que veux dire la meme configuration ...
            Moi j'ai cablé comme indiqué la >> http://www.smallcab.net/download/manuel/manuel-encodeur-joystick-deux-joueurs-3H.pdf

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

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

              Voila le résultat de la commande demandé ...

              login as: root
              root@192.168.1.21's password:

              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"
              

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

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

                alt text

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

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

                  Salut
                  à tout hazard tu as remplacé ton cable usb pour voir ?

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

                    j'ai les 2 versions smallcab (18 et 20 pins) pour faire un test demain

                    "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 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
                                            • First post
                                              Last post

                                            Want to support us ?

                                            76
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com