gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

[Ubisoft Connect] Black screen when there's too many active windows

Open GrabbenD opened this issue 2 years ago • 4 comments

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:

  1. Start Lutris in a embedded Gamescope (tty0) session:
    gamescope -- lutris |& tee gamescope.log
    
  2. Launch Ubisoft Connect from Lutris (with Proton-GE + DXVK + VKD3D)
  3. 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).
  4. Black screen

This example used:

  • CachyOS (Arch Linux)
  • No MangoHud
  • Ingame overlay is disabled (in Ubisoft Connect)

GrabbenD avatar May 25 '23 20:05 GrabbenD

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:

  1. 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
    
  2. Install Farcry 6 Demo through Ubisoft Connect.
  3. 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
    
  4. 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:

GrabbenD avatar May 27 '23 14:05 GrabbenD

Up, I am encountering the same problem.

shard77 avatar Dec 18 '23 21:12 shard77

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.

atahabaki avatar Apr 28 '24 09:04 atahabaki

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.

LZeugirdor avatar Oct 20 '25 20:10 LZeugirdor