Menu

#1153 linux / lxdm: x64 fullscreen crash / no SDL events anymore

v3.6
open-need-info
nobody
None
SDL2x
VICII
2021-12-30
2019-09-28
No

I tried to get the x64 running in Emulatorstation

My environment is Kubuntu 18.2 with lxdm activated.
Emulatorstation is started automatically via lxdm session config:
/usr/bin/xterm -e /usr/bin/emulationstation

I only get a very tiny emulator window after start of x64.
When I press the fullscreen button in the options menu, the entire thing seems to crash.
The screen first become large and then small again, but the resolution remains large, so I see the upper left corner of the large screen in the middle of the screen. I have to kill that because it does not react on any key or controller anymore.

Tried around with the options in the config file.
When I set the option VICIIFullscreen=1
x64 starts fullscreen, emulator is running in perfect condition.
But it does not take any keyboard or controller events anymore. It seems the fullscreen window does not get the focus of whatever reason.

I had to compile, search around in the code to fix that.
I found the following solution
src/arch/sdl/joy.c
int joy_arch_init(void)
...
add the line
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
before doing
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK)) {

I actually do not understand the configuration system. It is quite complicated code. This fix should be configurable.

It would be helpful to add this option.
It helps running vice from commandline in fullscreen.

Discussion

  • gpz

    gpz - 2020-10-06
    • status: open --> open-need-info
     
  • gpz

    gpz - 2020-10-06

    I can not reproduce this - the emulator starts fine and menus work, using

    sdl2-x64sc -default -VICIIfull

    When the emulator window does actually not get focus, this seems more of a WM issue to me, not a VICE bug

    Could you try with a recent build?

     

Log in to post a comment.

MongoDB Logo MongoDB