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

    Juyao Dual Arcade 2 player on Ubuntu

    Scheduled Pinned Locked Moved Help and Support
    juyao2 playerubuntu
    30 Posts 3 Posters 5.4k 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.
    • D
      Dennis
      last edited by

      hi there, i know the fix "Add the following to /boot/cmdline.txt"... but where to add the line in retropie on a ubuntu installation?

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

        It's already explained in the Doc page:

        An alternate configuration method is to create a kernel module configuration file for the usbhid driver. Create a new file by running sudo nano /etc/modprobe.d/rp-usbhid-quirks.conf (the file name is not important, but the file extension is), with the contents

        options usbhid quirks=0x0314:0x0328:0x040
        

        This method works for both Raspberry Pi and PC based installations.

        D 1 Reply Last reply Reply Quote 0
        • D
          Dennis @mitu
          last edited by

          @mitu i am currently reinstalling Retropie on ubuntu... will try that as soon as it is done!! thank you for the awesome and quick reply!

          I will let you know :)

          ps: I have one other issue with this controller, i can set it up in the input configuration.. but when i am done in the menu (cant get to a game) if i ie: press down, it doesnt go down 1 step but flipt out and goes all the way to the last option.. any idea?

          ps: thats why i am reinstalling

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

            @Dennis said in Juyao Dual Arcade 2 player on Ubuntu:

            ps: I have one other issue with this controller, i can set it up in the input configuration.. but when i am done in the menu (cant get to a game) if i ie: press down, it doesnt go down 1 step but flipt out and goes all the way to the last option.. any idea?

            What controller is this ? A lot of arcade kits have the same chip and the same name.
            Are you referring to the joystick up/down movements ?

            D 1 Reply Last reply Reply Quote 0
            • D
              Dennis @mitu
              last edited by

              @mitu i didnt buy it originaly myself... they are identified as 'Juyao Dual Arcade'.. yeah up and down, but also left and right... i don't know how to explain in english (dutch myself) but after configuration it goes all spastic.. doing one click to the left in real life. make the menu skip like 3 or 4 clicks... in the retropie menu doing one click down makes it skip the the last option... if i go to the retropie setup menu, where you can add emulators and update the script etc, i can use the controller just fine

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

                Have you mapped the joystick axis as D-Pad buttons or as Analog controls ?

                D 2 Replies Last reply Reply Quote 0
                • D
                  Dennis @mitu
                  last edited by

                  @mitu d-pad is the first option right?? that one then

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dennis
                    last edited by

                    by the way... i did what you said in your first post, pressen ctrl+c to save the file... restarted retropie but it still says one controller found... although it doesnt work any good as described above

                    1 Reply Last reply Reply Quote 0
                    • D
                      Dennis @mitu
                      last edited by

                      @mitu ok i think the problem lies that i cant get it to work to show 2 controllers.... if i test it using jtest both controllers work as one resulting in multiple clicks...

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

                        Please run cat /proc/bus/input/device from the command line and post the output here.
                        Are you sure you saved the options file correctly ? Ctrl+C does not save the file, Ctrl+O saves it (or you can use Ctrl+X to exit and you'll be prompted to save the file). Did you restart after creating the file ?

                        1 Reply Last reply Reply Quote 0
                        • D
                          Dennis
                          last edited by

                          if i run that from the terminal it says path does not exist.... i think thats also the problem with the: sudo nano /etc/modprobe.d/rp-usbhid-quirks.conf file? which is indeed saved now but doesnt work.... i have ubuntu running

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

                            @Dennis said in Juyao Dual Arcade 2 player on Ubuntu:

                            if i run that from the terminal it says path does not exist..

                            Yes, it's missing a letter:

                            cat /proc/bus/input/devices
                            
                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Dennis @mitu
                              last edited by

                              @mitu ahhhh lol.. i also have a xbox one hooked up:
                              I: Bus=0019 Vendor=0000 Product=0001 Version=0000
                              N: Name="Power Button"
                              P: Phys=PNP0C0C/button/input0
                              S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
                              U: Uniq=
                              H: Handlers=kbd event0
                              B: PROP=0
                              B: EV=3
                              B: KEY=10000000000000 0

                              I: Bus=0019 Vendor=0000 Product=0003 Version=0000
                              N: Name="Sleep Button"
                              P: Phys=PNP0C0E/button/input0
                              S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
                              U: Uniq=
                              H: Handlers=kbd event1
                              B: PROP=0
                              B: EV=3
                              B: KEY=4000 0 0

                              I: Bus=0019 Vendor=0000 Product=0001 Version=0000
                              N: Name="Power Button"
                              P: Phys=LNXPWRBN/button/input0
                              S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
                              U: Uniq=
                              H: Handlers=kbd event2
                              B: PROP=0
                              B: EV=3
                              B: KEY=10000000000000 0

                              I: Bus=0019 Vendor=1283 Product=0000 Version=0000
                              N: Name="ITE8713 CIR transceiver"
                              P: Phys=
                              S: Sysfs=/devices/virtual/rc/rc0/input8
                              U: Uniq=
                              H: Handlers=kbd event3
                              B: PROP=0
                              B: EV=100017
                              B: KEY=fff 0 4200108fc32e 237605100000000 0 700158000 419200004001 8e968000000000 10000000
                              B: REL=3
                              B: MSC=10

                              I: Bus=0003 Vendor=045e Product=02d1 Version=0203
                              N: Name="Microsoft X-Box One pad"
                              P: Phys=usb-0000:00:14.0-2/input0
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/input/input9
                              U: Uniq=
                              H: Handlers=event8 js0
                              B: PROP=0
                              B: EV=20000b
                              B: KEY=7cdb000000000000 0 0 0 0
                              B: ABS=3003f
                              B: FF=107030000 0

                              I: Bus=0019 Vendor=0000 Product=0006 Version=0000
                              N: Name="Video Bus"
                              P: Phys=LNXVIDEO/video/input0
                              S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input10
                              U: Uniq=
                              H: Handlers=kbd event9
                              B: PROP=0
                              B: EV=3
                              B: KEY=3e000b00000000 0 0 0

                              I: Bus=0000 Vendor=0000 Product=0000 Version=0000
                              N: Name="HDA Intel PCH Mic"
                              P: Phys=ALSA
                              S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input11
                              U: Uniq=
                              H: Handlers=event10
                              B: PROP=0
                              B: EV=21
                              B: SW=10

                              I: Bus=0000 Vendor=0000 Product=0000 Version=0000
                              N: Name="HDA Intel PCH Headphone"
                              P: Phys=ALSA
                              S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
                              U: Uniq=
                              H: Handlers=event11
                              B: PROP=0
                              B: EV=21
                              B: SW=4

                              I: Bus=0000 Vendor=0000 Product=0000 Version=0000
                              N: Name="HDA Intel PCH HDMI/DP,pcm=3"
                              P: Phys=ALSA
                              S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input13
                              U: Uniq=
                              H: Handlers=event12
                              B: PROP=0
                              B: EV=21
                              B: SW=140

                              I: Bus=0003 Vendor=0314 Product=0328 Version=0110
                              N: Name="D_R_M JUYAO Dual Arcade"
                              P: Phys=usb-0000:00:14.0-1/input0
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/0003:0314:0328.000E/input/input26
                              U: Uniq=
                              H: Handlers=event4 js1
                              B: PROP=0
                              B: EV=1b
                              B: KEY=3fff000000000000 0 0 0 0
                              B: ABS=30027
                              B: MSC=10

                              I: Bus=0003 Vendor=046d Product=c077 Version=0111
                              N: Name="Logitech USB Optical Mouse"
                              P: Phys=usb-0000:00:14.0-3.1/input0
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.1/2-3.1:1.0/0003:046D:C077.000F/input/input27
                              U: Uniq=
                              H: Handlers=mouse0 event5
                              B: PROP=0
                              B: EV=17
                              B: KEY=70000 0 0 0 0
                              B: REL=903
                              B: MSC=10

                              I: Bus=0003 Vendor=03f0 Product=034a Version=0110
                              N: Name="Chicony HP Elite USB Keyboard"
                              P: Phys=usb-0000:00:14.0-3.4/input0
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.4/2-3.4:1.0/0003:03F0:034A.0010/input/input28
                              U: Uniq=
                              H: Handlers=sysrq kbd event6 leds
                              B: PROP=0
                              B: EV=120013
                              B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
                              B: MSC=10
                              B: LED=7

                              I: Bus=0003 Vendor=03f0 Product=034a Version=0110
                              N: Name="Chicony HP Elite USB Keyboard System Control"
                              P: Phys=usb-0000:00:14.0-3.4/input1
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.4/2-3.4:1.1/0003:03F0:034A.0011/input/input29
                              U: Uniq=
                              H: Handlers=kbd event7
                              B: PROP=0
                              B: EV=13
                              B: KEY=c000 10000000000000 0
                              B: MSC=10

                              I: Bus=0003 Vendor=03f0 Product=034a Version=0110
                              N: Name="Chicony HP Elite USB Keyboard Consumer Control"
                              P: Phys=usb-0000:00:14.0-3.4/input1
                              S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.4/2-3.4:1.1/0003:03F0:034A.0011/input/input30
                              U: Uniq=
                              H: Handlers=kbd event13
                              B: PROP=0
                              B: EV=1f
                              B: KEY=3f000300ff 0 0 483ffff17aff32d bf54444600000000 1 130f938b17c000 677bfad9415fed 9ed68000004400 10000002
                              B: REL=1040
                              B: ABS=100000000
                              B: MSC=10

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

                                Ok, so this looks according to the docs about this controller:

                                I: Bus=0003 Vendor=0314 Product=0328 Version=0110
                                N: Name="D_R_M JUYAO Dual Arcade"
                                P: Phys=usb-0000:00:14.0-1/input0
                                S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/0003:0314:0328.000E/input/input26
                                U: Uniq=
                                H: Handlers=event4 js1
                                B: PROP=0
                                B: EV=1b
                                B: KEY=3fff000000000000 0 0 0 0
                                B: ABS=30027
                                B: MSC=10

                                If you run cat /etc/modprobe.d/rp-usbhid-quirks.conf (assuming this is the module options file you created with nano), what's the output ?

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  Dennis @mitu
                                  last edited by Dennis

                                  @mitu said in Juyao Dual Arcade 2 player on Ubuntu:

                                  cat /etc/modprobe.d/rp-usbhid-quirks.conf

                                  options usbhid quirks=0x0314:0x0328:0x040

                                  ps: something that makes it maybe weirder... my friend has a raspberry pi and it works on that... also works on windows (using a different emulator) but i got a mini pc with ubuntu i want to add in my arcade cabinet

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

                                    @Dennis said in Juyao Dual Arcade 2 player on Ubuntu:

                                    options usbhid quirks=0x0314:0x0328:0x040

                                    This looks correct, matching your device. I don't know why this isn't applied. You can check if the quirks parameter is applied by running

                                    cat /sys/module/usbhid/parameters/quirks
                                    

                                    I assume you've rebooted the system after adding the file.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      Dennis @mitu
                                      last edited by Dennis

                                      @mitu when i run that it gives me:
                                      (null),(null),(null),(null)

                                      ps: i used this to install retropie:
                                      https://markontech.com/linux/how-to-install-retropie-on-ubuntu-tutorial/

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

                                        @Dennis said in Juyao Dual Arcade 2 player on Ubuntu:

                                        @mitu when i run that it gives me:
                                        (null),(null),(null),(null)

                                        This means the quirks didn't apply. It's strange - I wonder if the usbhid module is built-in. What version of Ubuntu are you using ?

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          Dennis @mitu
                                          last edited by Dennis

                                          @mitu Ubuntu 18.04.3 LTS, the latest.. clean install yesterday
                                          do I need to run the terminal as admin?

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

                                            Usually, if there's something needing admin rights - like loading/unloading module - it'e enough to add sudo before the command to run it as admin.

                                            I don't have any more ideas what to check.
                                            You can manually unload the driver (sudo rmmod usbhid), then load it with the quirks parameter set

                                            sudo modprobe usbhid quirks=0x0314:0x0328:0x040
                                            

                                            then check again if your encoder is detected as 2 gamepads.

                                            D 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.