Cannot get Rii K25 keyboard working in ScummVM
-
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?
-
@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. -
@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.
-
@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
? -
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%.
-
The
emulators.cfg
seems ok - but your runcommand shows thatxorg
is used to launch ScummVM. Did you do any other configurations forscummvm
from the default installation ? -
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.
-
Can you post the
/opt/retropie/configs/all/backends.cfg
file from your installation ? -
Ah, this looks suspicious:
pi@retropie:~ $ cat /opt/retropie/configs/all/backends.cfg smw="dispmanx" scummvm="x11-c"
-
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. -
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.
-
@pfaux So, do you still have an issue if you remove the configuration of
scummvm
frombackends.cfg
? -
@mitu That did the trick! The keyboard now works in ScummVM. Thank you for your insight and expertise!
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.