Menu

#686 Odd video behaviour since upgrade to Fedora 36

Linux only
closed-works-for-me
None
5
2022-05-17
2022-05-14
TrevorH
No

I just updated from Fedora 34 to 36 and have attempted to play doom legacy but it's now almost impossible. There is one immediate difference that is noticeable as soon as doom is started - I have it set to use 1600x1200 and also OpenGL and on F34 when it first started, it displayed the initial menu in full screen mode and the entire 16x9 screen area was the doom menu. It's now a 4x3 stripe in the middle of my 16x9 monitor. That bit is odd but liveable with though it makes all the sprites sort of long and thin rather than their "normal" shapes that I am used to. Worse though is that it no longer intercepts all key strokes so if you hit Ctrl-Alt-right arrow - aiming to shoot and also move left to dodge whatever's being fired at you, it now switches linux desktops to the next one to the right taking you out of the game entirely and displaying whatever is on your next desktop pane. Now you're dead because the monsters got you! Hitting Ctrl-Alt-left arrow takes you back to the desktop with doom on it but doom is now in a window and you have to click in it with the mouse to get it back to fullscreen.

I'd like the old behaviour back where doom took over the entire screen and the only way to get out of it was to go into the settings and change it from fullscreen to windowed mode.

This is Fedora 36 running a MATE desktop, all up to date. The doom legacy version is doomlegacy_1.48.10 and this is an AMD 5800x, 64GB RAM, nvidia GT1030 with 43" 4k monitor attached running at a native resolution of 3840x2160.

Discussion

  • Wesley Johnson

    Wesley Johnson - 2022-05-14
    • assigned_to: Wesley Johnson
     
  • Wesley Johnson

    Wesley Johnson - 2022-05-14

    DoomLegacy has not changed the keyboard and video behavior. It still captures the mouse, and any keyboard key that it is allowed to see. However, the window manager, and the system can intercept keystrokes, and DoomLegacy will never see them.
    Also, SDL must be compatible with your OS. If you do not have a good SDL for Fedora 36, you might have to compile SDL yourself.

    Any Ctrl-Alt key press will likely go to the window manager.
    The Ctrl-Alt-left_arrow changes the desktop pane on my Linux too. This behavior is changed by the desktop settings. Gnome, KDE, and your window manager (such as XFCE4),
    will intercept keystrokes, and each has a seperate setup tool. That is why you will find so many settings managers in the Application menu.

    To debug the video, first start in windowed mode, native draw.

    doomlegacy -game doom2 -window -native

    Try some different window sizes. As this is native draw, it should be drawing using the existing video mode, and normal window draw.

    Then use the video menu to test video modes with software draw. This tests that the
    video card is interacting with the SDL mode set correctly. Start with 800x600 as that should always display correctly.

    Only then do you test OpenGL. If OpenGL behaves differently then it is likely a problem with the OpenGL support library for your video card. The new Fedora 36 may have installed the wrong OpenGL support library for your video card.
    You may be running MESA, or you might need the proprietary OpenGL from your video card manufacturer.

    I do not have any of these advanced video cards, so I cannot debug your video card for you.
    I run Slackware Linux 14.2, 32 bit, Linux 4.4.251, with window manager XFCE4.

     
  • Wesley Johnson

    Wesley Johnson - 2022-05-14

    Depending on how you upgraded to Fedora 36, you may have a bunch of new setup files in /etc, that you must customize yourself. You may have to refer to saved copies of you /etc files from Fedora 34.

     
  • TrevorH

    TrevorH - 2022-05-14

    No left over settings in /etc, SDL appears to be working, all tests that you suggested work. Bypassed the issue by wrapping the invocation of doomlegacy within a script like so:

    !/bin/bash

    gsettings set org.mate.Marco.global-keybindings switch-to-workspace-left disabled
    gsettings set org.mate.Marco.global-keybindings switch-to-workspace-right disabled
    ./doomlegacy -IWAD tnt.wad -IWAD dogs.wad -IWAD legacy.wad -IWAD TNT31.WAD
    gsettings set org.mate.Marco.global-keybindings switch-to-workspace-left '<control><alt>Left'
    gsettings set org.mate.Marco.global-keybindings switch-to-workspace-right '<control><alt>Right'</alt></control></alt></control>

    Issue can be closed.

     
  • Wesley Johnson

    Wesley Johnson - 2022-05-17

    Closing.

    That is a strange key combination to be using with a game like Doom. The reason that the window manager is using those key combinations, is that the games do not use those combinations.

    I would strongly recommend that you change your DoomLegacy player settings to use some reasonable keys like ctrl-left, or shift-left, or even alt-left, just because they are much easier to hit in the heat of staying alive.

    Of course, if those keypresses are coming from some non-keyboard device, and you cannot change them, then you are stuck with them.

     
  • Wesley Johnson

    Wesley Johnson - 2022-05-17
    • status: open --> closed-works-for-me
     

Log in to post a comment.

Auth0 Logo