[Ubisoft Connect] Black screen when there's too many active windows
It appears like Gamescope can focus on the wrong window/frame when there's too many activities layered on top of Gamescope.
Example For instance, here's one particular way to reproduce this:
- Start Lutris in a embedded Gamescope (tty0) session:
gamescope -- lutris |& tee gamescope.log - Launch Ubisoft Connect from Lutris (with Proton-GE + DXVK + VKD3D)
- Start Farcry 6 Demo from Ubisoft Connect. (This opens multiple launchers before the game is actually started, Gamescope appears to be stuck on the initial launcher window).
- Black screen
This example used:
- CachyOS (Arch Linux)
- No MangoHud
- Ingame overlay is disabled (in Ubisoft Connect)
Update
Here's a new example of this issue with logs. Unlike the original reproducible example, this approach layers fewer activities (meaning Lutris and Ubisoft Connect aren't opened) which allows Farcry 6 Demo to actually get past the launcher window in Ubisoft Connect and into the main menu.
Steps:
- Open Proton 8.0-2 outside of Steam (because if Steam is running the mouse isn't attached to the correct window):
$ wget https://gist.githubusercontent.com/brunoais/575db9912368124d3223784afe20158c/raw/9630590041b733a6d305967ff4ae2c505f4f141d/proton -O proton.sh && chmod +x proton.sh $ gamescope -- ./proton.sh /mnt/games/ubisoft/drive_c/Program\ Files\ \(x86\)/Ubisoft/Ubisoft\ Game\ Launcher/UbisoftConnect.exe - Install Farcry 6 Demo through Ubisoft Connect.
- Close Ubisoft Connect and Launch the game (through a deeplink):
$ gamescope -W 3840 -H 1600 -r 120 -f -- gamemoderun mangohud ./proton.sh /mnt/games/ubisoft/drive_c/Program\ Files\ \(x86\)/Ubisoft/Ubisoft\ Game\ Launcher/UbisoftConnect.exe uplay://launch/61402/0 - In Main Menu, start a new game which will result in a black screen if ManogHud is enabled. This happens even though MangoHud functions correctly in the main menu
If ManogHud is disabled, the game runs as expected.
Logs:
- GameScope (embedded) + GameMode + MangoHud + Proton (= blackscreen): proton_gamescope_gamemode_mangohud_broken.log
- GameScope (embedded) + GameMode + Proton (= game works): proton_gamescope_gamemode_works.log
Up, I am encountering the same problem.
I have a workaround. My setup below:
| Setting | Value |
|---|---|
| WM | Hyprland |
| dGPU | RTX 3050M |
| iGPU | R7 5800HS w/ Radeon Graphics |
For to get Ubisoft Connect working, i disable dGPU, run the Uplay with iGPU. It works. But if I run it with dGPU it shows me a black screen just like the OP's screenshot. I suppose this issue relates to nvidia.
I have a workaround. My setup below:
Setting Value WM Hyprland dGPU RTX 3050M iGPU R7 5800HS w/ Radeon Graphics For to get Ubisoft Connect working, i disable dGPU, run the Uplay with iGPU. It works. But if I run it with dGPU it shows me a black screen just like the OP's screenshot. I suppose this issue relates to nvidia.
This is not the same as the issue op is talking about. I get this issue as well on AMD and it's because like they said, it's not selecting the correct window. I wanted to play Ghost Recon Breakpoint in gamescope but if I try, the game launches in the background while I can still see the launcher. If I close the launcher, it's stuck on a black screen and I can't do anything.
Edit: Actually I don't think either issue is related to op's, I'm having issues in gamescope but it seems they're having issues with things on TOP of gamescope.