Bug 479946

Summary: With NVIDIA GPU, games on fullscreen on main HDMI monitor freeze videos on secondary laptop monitor
Product: [Plasma] kwin Reporter: Marcelo dos Santos Mafra <msmafra>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, xaver.hugl
Priority: NOR Keywords: multiscreen, wayland-only
Version First Reported In: 5.92.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: after testing again
video freezes if the game is in focus

Description Marcelo dos Santos Mafra 2024-01-17 15:08:38 UTC
If a game is in full screen on the main monitor, videos playing on the second one freeze, audio keeps going and when pressing the Meta Key, the video goes to normal. Cant test with Dragon Player because every video I try I can´t see, but no problems with other players and browsers

STEPS TO REPRODUCE
1. Open a game fullscreen on the first monitor;
2. open any video from via browser or player on the second one;
3. the video immediately freezes;

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-01-17 15:13:23 UTC
Thanks for the bug report. Can you provide some more information?

1. Are you using X11 or Wayland? Does it reproduce in both, or only one?
2. What distro are you using?
3. What Qt version are you using?
4. What GPU do you have?
5. Which game on the first monitor makes this happen? Does it happen with all games, or only this one, or only with some, but not others?
6. How is the second screen physically connected?
Comment 2 Marcelo dos Santos Mafra 2024-01-18 12:20:36 UTC
(In reply to Nate Graham from comment #1)
> Thanks for the bug report. Can you provide some more information?
> 
> 1. Are you using X11 or Wayland? Does it reproduce in both, or only one?
Wayland. Did not test on X11 as my intention is to check if I'll be able to migrate to Wayland session
> 2. What distro are you using?
Fedora 40 (rawhide) as I was testing on Neon I saw the F40 had the RC version instead of Beta. I'm not sure which Neon version to get.
> 3. What Qt version are you using?
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
> 4. What GPU do you have?
RTX 2060 mobile (using on dGPU mode); Driver version 545.29.06
> 5. Which game on the first monitor makes this happen? Does it happen with
> all games, or only this one, or only with some, but not others?
tested with 3: Control, Days Gone and The Elders Scrolls online.
> 6. How is the second screen physically connected?
HDMI connected.
Comment 3 Marcelo dos Santos Mafra 2024-01-18 12:32:42 UTC
Just a correction:
The monitor that I use as secondary (where the videos are playing) is my laptop's one, and the one in the HDMI is an external one, that's my main (where the games are being played).
Comment 4 Nate Graham 2024-01-18 21:42:43 UTC
Thanks for the info!
Comment 5 Zamundaaa 2024-01-19 16:30:44 UTC
Please attach the output of
> journalctl --user-unit plasma-kwin_wayland --boot 0
after reproducing the issue
Comment 6 Marcelo dos Santos Mafra 2024-01-20 14:36:27 UTC
Created attachment 165076 [details]
after testing again
Comment 7 Zamundaaa 2024-01-22 16:51:52 UTC
There's a whole bunch of
> GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 875708754
and
> kwin_core: XCB error: 3 (BadWindow)
but I think both are unrelated.

The only thing that might be related is
> kwin_wayland_drm: atomic commit failed: Argumento inválido
but it only happens a single time, so it probably doesn't explain a freeze.


So I think this might be caused by the changes in frame scheduling I did. Do you have adaptive sync enabled? And if so, does disabling it help?
Comment 8 Marcelo dos Santos Mafra 2024-01-23 12:53:58 UTC
I doesn't happen a single time, if it's the frozen video you're referring to. Happens every time the game window is the focused window. I'll try to capture the screen again.
Comment 9 Marcelo dos Santos Mafra 2024-01-23 13:41:05 UTC
Created attachment 165154 [details]
video freezes if the game is in focus

Tested with at least 4 games. Skyrim illustrates it better since it minimizes itself when not in focus
Comment 10 Zamundaaa 2024-01-24 20:48:01 UTC

*** This bug has been marked as a duplicate of bug 480252 ***