[linux] [wayland] launching games in fullscreen causes black screen (have to go out and back into fullscreen for image to appear) #130

Open
opened 2024-04-10 14:40:05 +02:00 by fx · 3 comments

Is there an existing issue for this?

  • I have searched the existing issues

Affected Commit or Release

All current releases AFAIK.

Description of Issue

Within a wayland session, launch a game with these commandline flags: QT_QPA_PLATFORM=xcb ./suyu.AppImage -f -g "<pathToGame>" This will launch the desired game in fullscreen successfully, however using xwayland.

Instead, try the same thing with QT_QPA_PLATFORM=wayland ./suyu.AppImage -f -g "<pathToGame>". You'll notice the shader compilation goes fine, and once the game loads it will be on a black screen. This isn't a freeze however, and the game can be restored just by changing fullscreen state. So you can go out of fullscreen and back into fullscreen and the game will work fine.

This is an issue because when using a couch gamestream setup, I want to launch my game flawlessly without getting stuck on a black screen.

Expected Behavior

The game should launch fine in wayland mode without any need to go out and back into fullscreen.

Reproduction Steps

QT_QPA_PLATFORM=wayland ./suyu.AppImage -f -g "<pathToGame>". You'll notice the shader compilation goes fine, and once the game loads it will be on a black screen.

Log File

attached

System Configuration

CPU: Ryzen 5 5600x
GPU/Driver: Nvidia Geforce RTX 3070 - 550.67
RAM: 2x16gb 3800c18
OS: Arch Linux rolling

### Is there an existing issue for this? - [ ] I have searched the existing issues ### Affected Commit or Release All current releases AFAIK. ### Description of Issue Within a wayland session, launch a game with these commandline flags: `QT_QPA_PLATFORM=xcb ./suyu.AppImage -f -g "<pathToGame>"` This will launch the desired game in fullscreen successfully, however using xwayland. Instead, try the same thing with `QT_QPA_PLATFORM=wayland ./suyu.AppImage -f -g "<pathToGame>"`. You'll notice the shader compilation goes fine, and once the game loads it will be on a black screen. This isn't a freeze however, and the game can be restored just by changing fullscreen state. So you can go out of fullscreen and back into fullscreen and the game will work fine. This is an issue because when using a couch gamestream setup, I want to launch my game flawlessly without getting stuck on a black screen. ### Expected Behavior The game should launch fine in wayland mode without any need to go out and back into fullscreen. ### Reproduction Steps `QT_QPA_PLATFORM=wayland ./suyu.AppImage -f -g "<pathToGame>"`. You'll notice the shader compilation goes fine, and once the game loads it will be on a black screen. ### Log File attached ### System Configuration CPU: Ryzen 5 5600x GPU/Driver: Nvidia Geforce RTX 3070 - 550.67 RAM: 2x16gb 3800c18 OS: Arch Linux rolling
fx added the
bug
label 2024-04-10 14:40:05 +02:00
Exverge self-assigned this 2024-04-10 21:06:41 +02:00
Exverge added this to the (deleted) project 2024-04-10 21:18:24 +02:00

can confirm on both amd gpu's and nvidia

can confirm on both amd gpu's and nvidia
Author

From what I can tell, building with qt6 instead of qt5 seems to solve this issue. For reference, I used this AUR package to do that. Anything stopping us from using qt6 by default in CI and release builds? I'd rather not have to compile the emulator for every commit.

From what I can tell, building with qt6 instead of qt5 seems to solve this issue. For reference, I used [this AUR package](https://aur.archlinux.org/packages/suyu-dev-qt6-git) to do that. Anything stopping us from using qt6 by default in CI and release builds? I'd rather not have to compile the emulator for every commit.
Exverge removed their assignment 2024-04-11 23:41:26 +02:00
Owner

not reproducible on hyprland, arch linux, epyc 7763 64c/128t, a100 80gb, 512gb ram

not reproducible on hyprland, arch linux, epyc 7763 64c/128t, a100 80gb, 512gb ram
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: suyu/suyu#130
No description provided.