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

    HELP I want to disable the hotkey + (X) setting

    Scheduled Pinned Locked Moved Help and Support
    retropiehotkeysettingshelp hotkey
    15 Posts 3 Posters 1.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.
    • I
      iLouzze
      last edited by

      I have a hotkey attached to my system that I use when I want to exit a game from retropie (hotkey + start) but I wanted to know if there's a way to disable another bunch of settings made for the hotkey such as this ones:

      6080446f-bd14-4343-83c2-069667650b64-image.png

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @iLouzze
        last edited by sleve_mcdichael

        @iLouzze these will be in your controller's autoconfig file at:

        /opt/retropie/configs/all/retroarch/[device_name].cfg
        

        Just remove the lines (or comment them out by placing a # before them) for the functions you want disabled.

        input_enable_hotkey_btn = "8"
        
        input_exit_emulator_btn = "7"
        input_reset_btn = "0"
        input_menu_toggle_btn = "3"
        
        #input_save_state_btn = "5"
        #input_load_state_btn = "4"
        #input_state_slot_decrease_btn = "h0left"
        #input_state_slot_increase_btn = "h0right"
        
        I 1 Reply Last reply Reply Quote 0
        • I
          iLouzze @sleve_mcdichael
          last edited by

          @sleve_mcdichael how do I get the device name?

          S 1 Reply Last reply Reply Quote 0
          • S
            sleve_mcdichael @iLouzze
            last edited by

            @iLouzze I just look in the directory and see what the files are called. If they're called "Generic arcade stick.cfg" and "Microsoft XBox One Controller.cfg" it should be pretty easy to tell them apart. If it's "random controller F.cfg" and "random controller 4.cfg" you'll have a harder time knowing which is which, and may have to experiment.

            I 1 Reply Last reply Reply Quote 0
            • I
              iLouzze @sleve_mcdichael
              last edited by

              @sleve_mcdichael ok I already wrote the name but I don't know why it tells me this:
              ad6f6d24-0494-47dc-a121-46caadf3b8d5-image.png

              S 1 Reply Last reply Reply Quote 0
              • S
                sleve_mcdichael @iLouzze
                last edited by sleve_mcdichael

                @iLouzze try editing the file with nano text editor. You'll either have to "escape" the spaces in the filename with back-slashes (\) before them, or wrap it in 'single' or "double-quotes":

                nano /opt/retropie/configs/all/retroarch/autoconfig/DragonRise\ Inc.\ \ \ Generic\ \ \ USB\ \ Joystick.cfg
                

                ...or:

                nano "opt/retropie/configs/all/retroarch/autoconfig/DragonRise Inc.   Generic   USB  Joystick.cfg"
                

                Note: one space, three spaces, three spaces, two spaces.

                Use ctrl-s, ctrl-x to save and exit.

                I 1 Reply Last reply Reply Quote 0
                • I
                  iLouzze @sleve_mcdichael
                  last edited by iLouzze

                  @sleve_mcdichael said in HELP I want to disable the hotkey + (X) setting:

                  nano "opt/retropie/configs/all/retroarch/autoconfig/DragonRise Inc. Generic USB Joystick.cfg"

                  ok, I'm in but it says that there's no directory
                  c87a50b3-450f-468c-afa7-8703326ee365-image.png

                  I already tried to write on it the thing below:

                  input_enable_hotkey_btn = "8"
                  
                  input_exit_emulator_btn = "7"
                  input_reset_btn = "0"
                  input_menu_toggle_btn = "3"
                  
                  #input_save_state_btn = "5"
                  #input_load_state_btn = "4"
                  #input_state_slot_decrease_btn = "h0left"
                  #input_state_slot_increase_btn = "h0right"
                  

                  but when I click on save then it tells me this:
                  4bd0809d-6dac-4f1e-b56d-554e9d66b7dc-image.png

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sleve_mcdichael @iLouzze
                    last edited by

                    @iLouzze that's my bad, I missed the slash (/) before "opt". It should be:

                    nano "/opt/retropie/configs/all/retroarch/autoconfig/DragonRise Inc.   Generic   USB  Joystick.cfg"
                    
                    I 1 Reply Last reply Reply Quote 0
                    • I
                      iLouzze @sleve_mcdichael
                      last edited by iLouzze

                      @sleve_mcdichael does it must appear a black screen after I enter the code?
                      because when I access this happens:
                      4b5ec998-b410-49e7-b735-549fb0785d0b-image.png

                      I copied the code you wrote before on the black screen and added the hashtags before the functions that I didn't wanted, but they were still working when I tested them with the hotkey.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sleve_mcdichael @iLouzze
                        last edited by sleve_mcdichael

                        @iLouzze it shouldn't be blank, I would expect there to be some definitions in it already from the auto-configuration. Maybe that's not the right file name? Can you list the directory contents with:

                        ls -l /opt/retropie/configs/all/retroarch/autoconfig
                        

                        ...and post the output?

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          iLouzze @sleve_mcdichael
                          last edited by

                          @sleve_mcdichael eaa42a0b-7231-421c-989e-649fd24f2fc3-image.png

                          1 Reply Last reply Reply Quote 0
                          • S
                            sleve_mcdichael
                            last edited by sleve_mcdichael

                            @iLouzze it's probably that one with, looks like two more spaces at the end, after Joystick and before .cfg. Try it with:

                            nano "/opt/retropie/configs/all/retroarch/autoconfig/DragonRise Inc.   Generic   USB  Joystick  .cfg"
                            
                            I 1 Reply Last reply Reply Quote 0
                            • I
                              iLouzze @sleve_mcdichael
                              last edited by iLouzze

                              @sleve_mcdichael
                              All right, it worked! The menu just appeared when I wrote your command and I was able to eliminate the configs I didn't wanted. Thank you so much for your help, I really don't know what'd I have done without it, thank you very very much :)

                              61ef27de-b44c-46a5-b0a6-c77505026ce0-image.png

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                iLouzze @iLouzze
                                last edited by

                                @sleve_mcdichael I have a little question, by any chance you know if there's a way to configure a time schedule in the raspberry so it turns on and off at a certain time of the day?

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  sleve_mcdichael @iLouzze
                                  last edited by

                                  @iLouzze I don't know if there's any way to turn it on automatically without an external timer. You could probably set up a "cron job" to shut it down (I don't know how to do that, though, I have only heard of it as a way you can set up scheduled events.)

                                  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.