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

    up & down (y-axis) not working in 3.8

    Scheduled Pinned Locked Moved Help and Support
    115 Posts 26 Posters 81.8k 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.
    • R
      Ravneson
      last edited by

      Is there any way of implementing a quick fix? @SeC, is hexediting the driver something easily done? (googling has only led to a limited understanding of what hexediting is..)

      S 1 Reply Last reply Reply Quote 0
      • S
        SeC @Ravneson
        last edited by

        @Ravneson You need to install hex editor (ht for example, http://hte.sourceforge.net/, it should be in apt database). Then find hid-dr.so (find / -name hid-dr.so), edit it, look for byte pattern:
        09 30 09 33 09 32 09 31 09 34
        replace with
        09 30 09 31 09 32 09 33 09 34

        (swap 31 with 33 and vice-versa)

        save file, restart, should be ok. Don't remember if driver name is as I wroted (I'm at work now, can't check). Let me know if you need more help as I can prepare simple script to make that change if you don't make it :)

        R 1 Reply Last reply Reply Quote 0
        • R
          Ravneson @SeC
          last edited by

          @SeC Got ht installed just fine, but stranded on finding the driver as you mentioned it. The closest I could find was "hid-dr.ko", but that couldn't be edited by ht (or at least didn't contain the expected content).. If it isn't too much of a bother it would be great if you could check the driver name as I gave a few suspicious candidates a try to no avail.. (a script would be very gracious of you, but I'm pretty sure I can manage to edit the patterns if I just find the right file :) )

          Thanks ever so much for the help! :)

          S 1 Reply Last reply Reply Quote 0
          • S
            SeC @Ravneson
            last edited by

            @Ravneson Hey, there are 2 locations to edit:
            lib\modules\4.4.11+\kernel\drivers\hid
            lib\modules\4.4.11-v7+\kernel\drivers\hid

            file name is hid-dr.ko

            MAke changes to both files, as I don't know which one will be loaded for you. Save changes then reboot, Y axis should be fine.

            Look at the picture below, I've marked pattern you need to change (just swap 33 with 31, keep in mind those are hex values, not text). Picture is from windows box, so don't worry :)

            0_1471419141519_dr_hexedit.png

            R 1 Reply Last reply Reply Quote 1
            • R
              Ravneson @SeC
              last edited by

              @SeC Thank you!! :) :) That worked just brilliantly! (for anyone else having the same issue, hexcurse turned out to be a simple & fast hex-editor that can be installed & used on ones Pi)

              Cheers!

              1 Reply Last reply Reply Quote 0
              • BuZzB
                BuZz administrators @SeC
                last edited by BuZz

                @SeC said in up & down (y-axis) not working in 3.8:

                @lohocla I fixed this my hexediting HID driver for my USB arcade controller - there's two bytes needed to change - look at my issue reported here https://github.com/raspberrypi/linux/issues/1527/ to see which bytes must be swaped.

                Did you report this upstream btw as mentioned https://github.com/raspberrypi/linux/issues/1527/#issuecomment-225559930 ? (Would be good to get the fix in a future release).

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                S 1 Reply Last reply Reply Quote 0
                • S
                  SeC @BuZz
                  last edited by

                  @BuZz Didn't have time to prepare proper patch with description, but I have this in my TODO list this week.

                  Z 1 Reply Last reply Reply Quote 1
                  • R
                    Roadkilluk
                    last edited by

                    Hi btw, hope you don't mind me popping in and getting some help, I seem to be having the same problem as you chaps ... now I'm a Linux noob (Boo) ok :/ I've done so well as to install hexcurse and also find the correct files to edit, I have edited these files but come across a write problem. 'Cannot write to file: bad permissions'

                    Help me please, as I'm going 1 step forwards and 2 steps back.

                    Thanks. Lee.

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      Ravneson @Roadkilluk
                      last edited by

                      @Roadkilluk Are you running hexcurse as a superuser, i.e. "sudo hexcurse <filename>"? If not then that could explain why you don't have permission to write to the driver files.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Roadkilluk @Ravneson
                        last edited by

                        @Ravneson said in up & down (y-axis) not working in 3.8:

                        @Roadkilluk Are you running hexcurse as a superuser, i.e. "sudo hexcurse <filename>"? If not then that could explain why you don't have permission to write to the driver files.

                        Spot on, thanks for that "Super User DO" ... I see :)

                        Cheers, I'm now losing at Sensi Soccer with no excuses !!

                        Lee.

                        1 Reply Last reply Reply Quote 0
                        • Z
                          Zigurana @SeC
                          last edited by

                          @SeC said in up & down (y-axis) not working in 3.8:

                          @BuZz Didn't have time to prepare proper patch with description, but I have this in my TODO list this week.

                          Hey, did you find the time to make this happen?

                          If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                          1 Reply Last reply Reply Quote 1
                          • P
                            Pyjamarama
                            last edited by

                            A patch would be lovely!

                            I do not know how to install a hexeditor to retropie :(

                            1 Reply Last reply Reply Quote 0
                            • P
                              Pyjamarama
                              last edited by

                              Since I do not know how to install hex editor in PI...

                              If I take these files, copy them over to my PC using WinSCP, open them with XVI32, do the substitution then...Can I copy the files back to Pi using WinSCP or they are protected and cannot be overwritten?

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                Pyjamarama @Pyjamarama
                                last edited by

                                @Pyjamarama I answer myself. Yes you can. You need to ho bash and sudo cp blah blah (winscp cannot overwite them)

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jretropie
                                  last edited by

                                  After hex edit the driver, the left and right buttons does not work in ES(I use L/R button to skip page). But these button works in games. Does anyone has this problem?

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Pyjamarama
                                    last edited by

                                    re configure the controller in emulaionstation

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      jretropie @Pyjamarama
                                      last edited by

                                      @Pyjamarama I did that but it's not working.

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        retropiepghguy
                                        last edited by

                                        This seems like a big enough issue to warrant a patch. It seems that encoder that shows up as Dragonrise is used by many for its ease of use and price. If I FTP the file off, edit it in Windows, and FTP it back, will that be ok?

                                        1 Reply Last reply Reply Quote 1
                                        • F
                                          Fabpie
                                          last edited by

                                          Hi everyone!

                                          I had this issue too... I just have been able to fix the "y" axis by inverting the values from the "hid.dr.ko" but the "X"axis still don't work outside Emulationstation.
                                          I'm so close to set up DAPHNE emulator but now the only axis it works is the "y".
                                          I'm using a dragonrise usb generic controller.
                                          Can I fix the "x" axis from "hid.dr.ko"? If yes can you please tell me how to do it.

                                          Please help.

                                          Thanks in advance

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            retropiepghguy @Fabpie
                                            last edited by

                                            @Fabpie it's crazy that such a widely used device has such a huge bug. That encoder is sold all over the place. I hope to try the fix today.

                                            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.