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

    Cannot get Rii K25 keyboard working in ScummVM

    Scheduled Pinned Locked Moved Help and Support
    scummvmkeyboardcontroller
    21 Posts 3 Posters 1.6k 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.
    • mituM
      mitu Global Moderator @pfaux
      last edited by

      @pfaux said in Cannot get Rii K25 keyboard working in ScummVM:

      The keyboard on the Rii doesn't have any function keys, but in the ScummVM UI (where you can edit the names of the available games) I can see that the keyboard is not being properly recognized since nothing is typed in the text fields.

      I see. A bit strange, since EmulationStation uses the same input library (libsdl) for input handling (be it keyboard or gamepad/joystick).

      Would this be something to ask the ScummVM folks about?

      Sure, you can ask in their forums or bug tracker.

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

        I asked on on the ScummVM forum, and one suggestion they had was running it directly from the binaries.

        If I exit Emulation Station and run ScummVM directly from /opt/retropie/emulators/scummvm/bin/scummvm the keyboard and mouse input work as expected.

        So there must be something happening in the way Emulation Station is launching ScummVM that's dropping the keyboard input from the device.

        Any ideas as to what might be going on?

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

          @pfaux said in Cannot get Rii K25 keyboard working in ScummVM:

          Any ideas as to what might be going on?

          RP launches it with a few additional command-line arguments:

          /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" "$game"

          My money is on the --joystick=0; try launching it manually with that and see if the problem returns.

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

            Launching

            /opt/retropie/emulators/scummvm/bin/scummvm --joystick=0
            

            directly from the command line works as expected (keyboard works just fine).
            One interesting thing though, after exiting the ScummVM UI back to the command prompt, I noticed that the following had been logged to the cli screen:

            Virtual keyboard pack 'vkeybd_default' loaded successfully
            

            So, it seems that a straight launch from the command line includes some special handling of the keyboard. Is there a way to view command line logs when launching something in Emulation Station, perhaps via an external SSH connection, or a logfile?

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

              @pfaux said in Cannot get Rii K25 keyboard working in ScummVM:

              Is there a way to view command line logs when launching something in Emulation Station, perhaps via an external SSH connection, or a logfile?

              You can view it in /dev/shm/runcommand.log, this is where the launched emulators/ports will send their output.
              Btw, there's nothing different between launching from command line or EmulationStation - EmulationStation just goes into the background and the launched emulator takes over.

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

                @mitu
                I had some time to do some more poking and prodding at this, and it is truly bizarre.

                When launching from emulation station, they keyboard does not work, and it logs :

                Executing (via xinit): bash /home/pi/RetroPie/roms/scummvm/+Start ScummVM.sh monkey-vga
                
                Virtual keyboard pack 'vkeybd_default' loaded successfully
                

                When launching from the command line having exited emulationStation, the keyboard works, and it logs:

                /home/pi/RetroPie/roms/scummvm/+Start\ ScummVM.sh monkey-vga
                Virtual keyboard pack 'vkeybd_default' loaded successfully
                

                I checked the /proc/bus/input/devices in both states and they were identical.

                Oh well. I guess some things are destined to remain a mystery. For now I'll just have to play them from the command line. Thank you so much for your help and insight into tracking down the log files.

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

                  @pfaux said in Cannot get Rii K25 keyboard working in ScummVM:

                  Executing (via xinit): bash /home/pi/RetroPie/roms/scummvm/+Start ScummVM.sh monkey-vga

                  That's not the default launch command for ScummVM - via xorg. How exactly did you configure it ? Can you post your /opt/retropie/configs/scummvm/emulators.cfg ?

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

                    Sure thing:

                    pi@retropie:~ $ cat /opt/retropie/configs/scummvm/emulators.cfg 
                    scummvm = "bash /home/pi/RetroPie/roms/scummvm/+Start\ ScummVM.sh %BASENAME%"
                    default = "scummvm"
                    
                    

                    In the above example I was launching The Secret of Monkey Island to test, hence the "monkey-vga" parameter at the end as the %BASENAME%.

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

                      The emulators.cfg seems ok - but your runcommand shows that xorg is used to launch ScummVM. Did you do any other configurations for scummvm from the default installation ?

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

                        I made modifications to the ~/.config/scummvm/scummvm.ini file to change the graphics mode to super-eagle, and add some additional key-mappings (since the Rii remote lacks function keys).

                        Other than that, I don't recall any modifications to anything that would control how ScummVM launches.

                        I just tried reinstalling ScummVM and will see if that changes anything.

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

                          Can you post the /opt/retropie/configs/all/backends.cfg file from your installation ?

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

                            Ah, this looks suspicious:

                            pi@retropie:~ $ cat /opt/retropie/configs/all/backends.cfg 
                            smw="dispmanx"
                            scummvm="x11-c"
                            
                            1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator
                              last edited by mitu

                              Ok, so ScummVM is configured to run through x11/xorg - that's not a default configuration. Did you add the configuration yourself ? RetroPie doesn't configure it like this by default - it needs to be user choice.

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

                                I don't recall adding that (it's possible I did something many months ago I don't remember), but I can remove it and make sure it works as expected.

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

                                  @pfaux So, do you still have an issue if you remove the configuration of scummvm from backends.cfg ?

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

                                    @mitu That did the trick! The keyboard now works in ScummVM. Thank you for your insight and expertise!

                                    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.