joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.53k stars 371 forks source link

No output options in dosbox-x.conf work except "surface" and "default", anything else creates completely invisible window #4960

Open miranda opened 2 months ago

miranda commented 2 months ago

Describe the bug

I cannot change the output mode in the conf file. I can only change it if it is set to default or surface, and then use the menu to change it. All output modes work, but only when selected from the menu. If the conf file is used instead, an invisible window will be created.

Steps to reproduce the behaviour

  1. change output in dosbox-x,conf to openglnb
  2. start Dosbox-X

Expected behavior

I expect it to start in the output mode selected, but instead Dosbox-X is completely invisible. If it is set to full screen mode, the invisble window obscures my entire desktop and everything becomes unclickable. I then have to alt-tab to a terminal and sudo reboot.

What operating system(s) this bug have occurred on?

Garuda Linux 6.8.5-zen1-1-zen, X11, KDE Plasma 6

What version(s) of DOSBox-X have this bug?

2024.03.01 from Arch Linux AUR

Used configuration

conf file in additional information.

Output log

No response

Additional information

dosbox-x.conf.tar.gz

Have you checked that no similar bug report(s) exist?

Code of Conduct & Contributing Guidelines

maron2000 commented 2 months ago

Your conf file works fine here on ArchLinux SDL1 & SDL2.

archlinux_sdl1

archlinux_sdl2

miranda commented 2 months ago

Hmmm. Well not here. Not sure what I can do to figure out what's going on. Perhaps this only happens on KDE 6?

Is there any way to change the output mode with a command after Dosbox-X is started?

maron2000 commented 2 months ago

You can change settings with config command. For instance config -set output=opengl

miranda commented 2 months ago

Thanks, that works. I set config file to surface and then change to openglnb in my autoexec section.

The bug is real, but not sure how to diagnose what causes it. There's other weirdness going on, like fullscreen mode insists on moving to my main display. I had to set up window rules in KDE to force the window to the second display where I want it. No options in dosbos-x.conf would let me start it on the correct display.

Anyway, this workaround works for me.

joncampbell123 commented 2 months ago

Does this occur with SDL2 or SDL1 based builds?

This might be something to bring to the Simple Directmedia Library dev's attention as well.

miranda commented 2 months ago

I'm using the prebuilt chaotic-AUR package, it appears to be using SDL2...

ldd /usr/bin/dosbox-x | grep SDL
libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007cb1e12eb000)