gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

[DRM,NVIDIA] - Embedded Gamescope: Steam notifications/overlay cause artifacts and flickering

Open alneor-ellyuan opened this issue 1 year ago • 15 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • [x] The issue occurs on upstream gamescope without any modifications

Current Behavior

After starting gamescope and Steam from tty, when in game, receiving a Steam notification (e.g. an achievement) causes artifacts and corruption to appear on screen. The same issue is also caused by simply displaying the Steam overlay (in game only). It looks like the game and the steam overlay are competing for focus: moving the mouse fixes the issue (at least, until the mouse pointer dissapears from inactivity). The corruption stops if the steam overlay is closed.

If a graphical session is started on a second tty (e.g. sway), the artifacts carry from the gamescope tty to the other. The corruption seem to be made from from the images of both ttys. Moving the mouse on the other tty might fix the display, not always. By alterning ttys back and forth, I can eventually bring nvidia-drm to crash:

[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
[drm:__nv_drm_semsurf_wait_fence_work_cb [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register auto-value-update on pre-wait value for sync FD semaphore surface

I tried various gamescope flags (e.g. --immediate-flips, --force-composition), to no avail. And while these logs were captured while playing my latest personal obsession, the issue appears in the other games I tried. P.S. iirc, gamescope segfaulted after I closed steam with steam -shutdown at the end of my tests, so that seems like another issue completely.

Possible similar problems include:

  • #1909: has flickering caused by notifications with wayland backend (not drm), yet not artifacts (caused by nvidia?);
  • #1593: has artifacts on drm backend with nvidia, but caused by hdr, not the Steam overlay.

Steps To Reproduce

  1. Launch gamescope in tty with gamescope -e -- /usr/bin/steam -tenfoot (actually gamescope --debug-focus --debug-layer -e -- /usr/bin/steam -tenfoot for the logs, but the issue appears without the debug flags).
  2. Start a game.
  3. Make the Steam overlay appear ("shift+tab", or with controller): corruption appears.
  4. (Optional) Switch to another TTY with a graphical session: the corruption is still there.

Hardware information

- Distro: "Arch Linux"
- CPU: AMD Ryzen 7 7800X3D
- GPU: NVIDIA GeForce RTX 4090
- Driver Version: NVIDIA 580.82.7.0

Software information

- Desktop environment: sway 1.11
- Session type: wayland
- Gamescope version: 3.16.16
- Gamescope launch command(s): `gamescope -e -- /usr/bin/steam -tenfoot`

Which gamescope backends have the issue you are reporting?

  • [ ] Wayland (default for nested gamescope)
  • [x] DRM (default for embedded gamescope, i.e. gamescope-session)
  • [ ] SDL
  • [ ] OpenVR

Logging, screenshots, or anything else

First run: in game, artifacts appear when the Steam overlay is called; and dissapear when the mouse is moved. tty1-gamescope.log tty1-nvidia-bug-report.log.gz https://github.com/user-attachments/assets/c6d6b3e4-cd24-4635-876e-9e87eece9ef9

Second run: in game, artifacts appear when the Steam overlay is called. By moving to another tty with sway loaded, the artifacts are still there. tty1-2-gamescope.log tty1-2-nvidia-bug-report.log.gz https://github.com/user-attachments/assets/0272381b-cc7d-4b99-a3ce-af32ab115244

alneor-ellyuan avatar Sep 06 '25 17:09 alneor-ellyuan

I'm having the exact same issue!

distro: Arch Linux kernel: CachyOS kernel GPU: Nvidia RTX 2060 Drivers: linux-cachyos-nvidia-open 6.16.4-4 (580.82.07)

Only happens when started from TTY, works fine on Niri wayland compositor.

And the flickering issue appears on other apps too, not just Steam.

2gibbert avatar Sep 08 '25 11:09 2gibbert

Hey, this might be an NVIDIA issue, downgrading to version 575 of nvidia drivers fixed the flickering completely for me.

(It was hard to find older package versions for kernel, kernel headers, nvidia modules and nvidia-utils tho)

2gibbert avatar Sep 17 '25 16:09 2gibbert

You are right, the issue seems to dissapear after downgrading to 575: thanks for the finding! I made a post on nvidia forums to report the bug, we'll see how it goes: https://forums.developer.nvidia.com/t/580-release-feedback-discussion/341205/427

alneor-ellyuan avatar Sep 17 '25 21:09 alneor-ellyuan

You are right, the issue seems to dissapear after downgrading to 575: thanks for the finding! I made a post on nvidia forums to report the bug, we'll see how it goes: https://forums.developer.nvidia.com/t/580-release-feedback-discussion/341205/427

Have you ever receive any help regarding this? I don't want to run a legacy driver for eternity just because of this.

All I see in the discussion is that they replied with "Thank you for reporting issue, do you see this issue only if display modes are above 2560x1440p@120hz with HDR enabled or without HDR and low refresh rate as well?", and then left it at that.

It would be typical from Nvidia support to leave us stranded, but I hope they don't

TypoMustakes avatar Jun 19 '26 11:06 TypoMustakes

FYI: Somebody tried to resurrect the issue in the 595 release discussions, to no avail: https://forums.developer.nvidia.com/t/595-release-feedback-discussion/362561/151

This was in March, half a year after the first report, and was left just as unanswered as that one. I... really dislike Nvidia

TypoMustakes avatar Jun 19 '26 11:06 TypoMustakes

Reproduced on different hardware, with new isolation data that narrows the cause.

System

  • GPU: RTX 5090 (GB202), nvidia-open 610.43.03 (DKMS)
  • gamescope 3.16.23.2 (git 20260628, Nobara 44 package), DRM backend, gamescope-session-plus
  • Kernel 7.1.4, Fedora/Nobara 44
  • Display: 5120x2160@165 over DP 2.1, SDR (HDR disabled for these tests)
  • Client: Steam stable 1784778118 AND beta 1784934043 — both affected

Symptom: garbage in the background of Steam's bottom-right overlay surfaces (gamepad button legend / QAM edge / notification region) in Big Picture under embedded gamescope. Text/glyphs composite correctly ON TOP of the garbage. Follows into games. Content of the garbage varies per boot (specks, confetti, tiled teal blocks — the tiled repeating pattern suggests a tiling/stride misinterpretation rather than random uninitialized reads).

Isolation matrix (each row one variable):

Configuration Result
Same client, same mode, Big Picture under KWin (desktop Wayland) clean
Embedded gamescope, defaults corrupt band bottom edge when idle; clean while cursor active
+ --force-composition main plane fixed; overlay-surface background still corrupt
+ WLR_NO_HARDWARE_CURSORS=1 no change (cursor plane exonerated)
Steam "GPU accelerated rendering in web views" OFF (CPU CEF) clean, unusably slow at 5K2K
steam -cef-disable-gpu-compositing (GPU raster, shm handoff) clean, but overlay blinks ~1 Hz
Steam client beta 1784934043, full GPU path corrupt (same as stable)
Driver rollback to nvidia-open 595.84 (production), same config tiled garbage gone; only a small translucent black box remains on the overlay surface (alpha not blended — matches NVIDIA forum 369869)
595.84 WITHOUT --force-composition (direct scan-out) dead-pixel-style specks return; black box unchanged — scan-out corrupts on both branches, and the black box is independent of the composite path

So: any path where steamwebhelper's surface reaches gamescope without GPU buffer sharing is clean; the GPU-shared path is corrupt only under gamescope, not under KWin. Rolling the driver back to 595.84 (production branch) with an otherwise identical config eliminates the tiled garbage entirely — 610.43.03 is a regression. On 595 a milder residue remains: the overlay surface composites as a small translucent black box (alpha ignored), i.e. NVIDIA forum 369869's symptom exactly — pixel data imports correctly on 595, alpha handling is still wrong on both branches. Note this is likely the gamescope-side face of a longer-running NVIDIA+CEF dmabuf issue: steam-for-linux #10537 (Feb 2024, driver 550, desktop Wayland, no gamescope) shows the same timing-dependent web-view corruption, where slower menu renders corrupt more often and a window resize (buffer reallocation) temporarily clears it — matching the per-boot variability seen here at 165 Hz. Consistent with the OP's report that --force-composition alone does not fix it. Logs also show xwm: got the same buffer committed twice, ignoring (#1383) and zero-modifier failures for AB48/XB48 on this driver, in case those are related to modifier negotiation.

Happy to test patches or provide drm.debug logs.

defmetal avatar Jul 27 '26 01:07 defmetal

Replying to https://github.com/ValveSoftware/gamescope/issues/1964#issuecomment-5086503583

So the deck version (Gamescope session) of Bazzite 44 is also releasing soon and on the 610 drivers it is showing the artifacts on the bottom bar of the steam UI at 4K 240HZ and 120Hz in SDR or HDR with the UI.

However if HDR is enabled and I launch a game that has native HDR support such as Cyberpunk or Assassin's Creed Shadows it cleans up the artifacting at the bottom of the screen unless I bring up the overlay use the performance monitoring overlay.

For non HDR native games where gamescope will do its inverse tone mapping this unfortunately doesnt change anything and the visual artifacts remain on the bottom of the screen.

1440p with HDR is fine with the 610 drivers.

SimpleHeuristics avatar Aug 02 '26 06:08 SimpleHeuristics

I can reproduce the multi-TTY corruption described here on a newer driver and gamescope, and it is not limited to Steam notifications/overlay: any client window triggers it as long as another compositor is alive on a different VT.

System

  • GPU: NVIDIA GeForce RTX 4070 Laptop GPU (AD106M), MUX set to dGPU-only (the AMD iGPU is present but not driving the display)
  • Driver: nvidia-open 595.99.02
  • gamescope: 3.16.28 (nixpkgs), DRM backend, started from a tty
  • Other session: Hyprland (Wayland) running on VT1
  • Output: HDMI-A-1, LG TV 3840x2160@60, SDR (no --hdr-enabled)
  • OS: NixOS, kernel 6.18

Steps

  1. Keep a Hyprland session running on VT1.
  2. Switch to VT2, log in, and run:
    gamescope -W 3840 -H 2160 -r 60 -- timeout 15 vkcube --wsi xcb
    

Result

The screen flickers constantly. The flicker frames show the contents of other Hyprland workspaces, which were not visible on VT1 when gamescope started (browser windows from other workspaces). So gamescope seems to scan out a buffer that still holds VRAM contents left by the other session's clients. Early in testing it looked like a purple/magenta flash; once I looked closer it was those workspace contents.

What changes it and what doesn't

Command after gamescope -W 3840 -H 2160 -r 60 Flicker
-- sleep 15 (no client at all) no
-- flatpak run com.valvesoftware.Steam (desktop UI) yes
-e -- flatpak run com.valvesoftware.Steam -gamepadui yes
-- timeout 15 vkcube --wsi xcb yes
--prefer-vk-device 10de:2860 --disable-color-management -- …Steam yes
--force-composition -- …vkcube yes
--force-composition --disable-layers -- …vkcube yes
Lua display override with hdr.supported = false (confirmed by Got known display in the log) -- …Steam yes
  • The log always shows selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU', so compositing is not happening on the iGPU.
  • No Xid or nvidia-drm messages in the kernel log during any of the runs. Unlike the original report, I did not get Flip event timeout.
  • The only errors at startup are vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 / 0x38344258.
  • Unrelated to the flicker, gamescope crashes on exit whenever the VT is switched away at that moment. In the logind/libseat event path I got a SIGSEGV, double free or corruption (!prev), and message_from_header: Assertion 'buffer || message_size <= 0' failed.

Since forcing composition and disabling planes both leave it unchanged, this does not look like a scanout-path choice. It looks more like buffer synchronization/ownership across DRM master changes on NVIDIA. I'm happy to test patches.

Logs

These are full gamescope stderr logs with the color codes stripped and the home directory renamed. To stay under the comment size limit I left out the -e … -gamepadui run and the two --prefer-vk-device runs (with and without --disable-color-management), since they are identical to the logs below apart from the flags.

-- sleep 15 (no client, no flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  launch: Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
[gamescope] [Error] drm: drmModeRmFB failed: Bad file descriptor
/run/user/1000/tmp/nix-shell-3070929-1480486272/rc: line 3: 3071331 Segmentation fault         (core dumped) gamescope -W 3840 -H 2160 -r 60 -- sleep 15
-- timeout 15 vkcube --wsi xcb (flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
Selected GPU 0: NVIDIA GeForce RTX 4070 Laptop GPU, type: DiscreteGpu, apiVersion: 4211017 (1.4.329), driverVersion: -1797734272 (83.396.128) 
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 709, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Virtual modifier Hyper multiply defined
>                   Using 0, ignoring 0
> Warning:          Virtual modifier ScrollLock multiply defined
>                   Using 0, ignoring 0
Errors from xkbcomp are not fatal to the X server
[gamescope] [Error] xwm: waylandres but no win
[gamescope] [Info]  launch: Primary child shut down!
gamescope: ../src/libsystemd/sd-bus/bus-message.c:342: message_from_header: Assertion `buffer || message_size <= 0' failed.
(EE) failed to read Wayland events: Broken pipe
--force-composition -- timeout 15 vkcube --wsi xcb (flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
Selected GPU 0: NVIDIA GeForce RTX 4070 Laptop GPU, type: DiscreteGpu, apiVersion: 4211017 (1.4.329), driverVersion: -1797734272 (83.396.128) 
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 709, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Virtual modifier Hyper multiply defined
>                   Using 0, ignoring 0
> Warning:          Virtual modifier ScrollLock multiply defined
>                   Using 0, ignoring 0
Errors from xkbcomp are not fatal to the X server
[gamescope] [Error] xwm: waylandres but no win
[gamescope] [Info]  launch: Primary child shut down!
double free or corruption (fasttop)
(EE) failed to read Wayland events: Broken pipe
--force-composition --disable-layers -- timeout 15 vkcube --wsi xcb (flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
Selected GPU 0: NVIDIA GeForce RTX 4070 Laptop GPU, type: DiscreteGpu, apiVersion: 4211017 (1.4.329), driverVersion: -1797734272 (83.396.128) 
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 709, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Virtual modifier Hyper multiply defined
>                   Using 0, ignoring 0
> Warning:          Virtual modifier ScrollLock multiply defined
>                   Using 0, ignoring 0
Errors from xkbcomp are not fatal to the X server
[gamescope] [Error] xwm: waylandres but no win
[gamescope] [Info]  launch: Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
-- flatpak run com.valvesoftware.Steam (flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/1000/.config/gamescope/scripts' does not exist
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
INFO:root:Will set XDG dirs prefix to /home/1000/.var/app/com.valvesoftware.Steam
DEBUG:root:Checking input devices permissions
WARNING:root:Missing permissions for input devices
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 709, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Virtual modifier Hyper multiply defined
>                   Using 0, ignoring 0
> Warning:          Virtual modifier ScrollLock multiply defined
>                   Using 0, ignoring 0
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/logind.c:358] Disabling seat
[gamescope] [Info]  wlserver: Session paused
[gamescope] [Info]  wlserver: Got change event for KMS device
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  wlserver: Got change event for KMS device
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/logind.c:355] Enabling seat
[gamescope] [Info]  wlserver: Session resumed
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/logind.c:358] Disabling seat
[gamescope] [Info]  wlserver: Session paused
[gamescope] [Info]  wlserver: Got change event for KMS device
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  launch: Primary child shut down!
[gamescope] [Error] drm: finish_drm: drmModeAtomicCommit failed: Permission denied
(EE) failed to read Wayland events: Broken pipe
[gamescope] [Error] drm: drmModeRmFB failed: Bad file descriptor
/run/user/1000/tmp/nix-shell-2845608-3828519231/rc: line 3: 2845944 Segmentation fault         (core dumped) gamescope -W 3840 -H 2160 -r 60 -- flatpak run com.valvesoftware.Steam
-- flatpak run com.valvesoftware.Steam with Lua hdr.supported = false override (flicker)
[gamescope] [Info]  console: gamescope version 3.16.28 (gcc 15.3.0)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/onexplayer.f1.oled.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 10)
[gamescope] [Info]  scriptmgr: Running script file '/nix/store/21wfxgfnakqikah2phsapk9mba7slhrp-gamescope-3.16.28/share/gamescope/scripts/00-gamescope/displays/zotac.zone.oled.lua' (id: 11)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/1000/.config/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Running script file '/home/1000/.config/gamescope/scripts/lg-hdr-4k.lua' (id: 12)
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:60] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:117] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: Got known display: lg_hdr_4k (LG HDR 4K (HDR off test))
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: Got known display: lg_hdr_4k (LG HDR 4K (HDR off test))
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm:   HDMI-A-1 (connected)
[gamescope] [Info]  drm:   DP-2 (disconnected)
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm: selecting connector HDMI-A-1
[gamescope] [Info]  drm: selecting mode 3840x2160@60Hz
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Info]  wlserver: [xwayland/server.c:108] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <FK23>
>                   Using F23, ignoring XF86TouchpadOff
> Warning:          Symbol map for key <FK23> redefined
>                   Using last definition for conflicting fields
> Warning:          Symbol map for key <FK24> redefined
>                   Using last definition for conflicting fields
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOn
> Warning:          Could not resolve keysym XF86ElectronicPrivacyScreenOff
> Warning:          Could not resolve keysym XF86ActionOnSelection
> Warning:          Could not resolve keysym XF86ContextualInsert
> Warning:          Could not resolve keysym XF86ContextualQuery
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 83
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
INFO:root:Will set XDG dirs prefix to /home/1000/.var/app/com.valvesoftware.Steam
DEBUG:root:Checking input devices permissions
WARNING:root:Missing permissions for input devices
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 709, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Virtual modifier Hyper multiply defined
>                   Using 0, ignoring 0
> Warning:          Virtual modifier ScrollLock multiply defined
>                   Using 0, ignoring 0
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/logind.c:358] Disabling seat
[gamescope] [Info]  wlserver: Session paused
[gamescope] [Info]  wlserver: Got change event for KMS device
[gamescope] [Info]  drm: Connector HDMI-A-1 -> GSM - LG HDR 4K
[gamescope] [Info]  drm: Got known display: lg_hdr_4k (LG HDR 4K (HDR off test))
[gamescope] [Info]  drm: [colorimetry]: EDID with colorimetry detected. Using it
[gamescope] [Info]  drm: [colorimetry]: r 0.680664 0.311523
[gamescope] [Info]  drm: [colorimetry]: g 0.267578 0.663086
[gamescope] [Info]  drm: [colorimetry]: b 0.150391 0.048828
[gamescope] [Info]  drm: [colorimetry]: w 0.312500 0.329102
[gamescope] [Info]  launch: Primary child shut down!
[gamescope] [Error] drm: finish_drm: drmModeAtomicCommit failed: Permission denied
double free or corruption (!prev)
(EE) failed to read Wayland events: Broken pipe
/run/user/1000/tmp/nix-shell-3094470-3257179785/rc: line 3: 3094959 Segmentation fault         (core dumped) gamescope -W 3840 -H 2160 -r 60 -- flatpak run com.valvesoftware.Steam

unstable-code avatar Sep 19 '26 06:09 unstable-code

We traced this on one machine and the symptom follows the presentation route rather than the mode, the driver version or the connection. Posting what is reproducible, what the one command test is so others can tell whether they have the same fault, and the change we are running downstream.

This is a workaround for an observed multi plane presentation route, not a diagnosis of a specific defect inside the closed driver. It is also not evidence that every report collected in this issue is the same thing. The opening report here says that forcing composition did not help, so at least one of them is probably something else, and the test below is the quickest way to separate them.

What happens

The corruption appears only when Gamescope presents on hardware planes instead of compositing, and only when one of the layers on those planes carries alpha. In the failing frame there are two planes:

plane 0   fb 174   XR24 / XB24   the game
plane 2   fb 165   AR24          Steam's interface, with alpha

Both are output sized at scale 1.0, which is what makes them eligible. Gamescope composes nothing in that state, the atomic commit succeeds, and the driver performs the blend. The result is displaced and repeated fragments of the interface, black rectangles, coloured bands and speckle, while the upper part of the menu panel stays readable.

Every previously reported behaviour in this issue follows from that:

Reported behaviour Why
nothing in any log Gamescope draws nothing here and the kernel considers the commit valid
the performance overlay clears it a third layer makes the plane assignment fail, so composition takes over
HDR clears it the plane path is not attempted with HDR enabled
stepping image scaling back clears it a layer that is no longer output sized cannot go on a plane
moving the cursor clears it while it moves the cursor changes the plane set
turning off accelerated rendering in web views clears it a shared memory buffer cannot be scanned out on a plane
the menu panel is readable while the area around it is not the panel is its own plane; the damage is in the blend with the plane beneath

One command anyone can run, with no patched Gamescope

Gamescope reads GAMESCOPE_COMPOSITE_FORCE from its own X root window at runtime, and setting it makes Gamescope composite instead of using planes. Run this with the DISPLAY and XAUTHORITY of the Gamescope session, not from whichever X server a terminal picks, while the corruption is on screen:

xprop -root -f GAMESCOPE_COMPOSITE_FORCE 32c -set GAMESCOPE_COMPOSITE_FORCE 1

and to undo it:

xprop -root -f GAMESCOPE_COMPOSITE_FORCE 32c -set GAMESCOPE_COMPOSITE_FORCE 0

It is an X property, not an environment variable of the same name, and it does not survive a session restart. Note that Steam writes this property itself during a session, which we observed, so a command line flag is not a lock either.

If toggling it changes nothing for you, your symptom is not this one. That is worth reporting, because it separates two faults that look alike.

Environment

  • RTX 5060, NVIDIA 615.71.09, SteamOS 3.8.28 build 20260922.1
  • Gamescope 3.16.23.6, source commit 154f435a2c0026510545b7b7524d104bed253cb3
  • MSI MAG272CQR over DisplayPort and over HDMI
  • Downstream patches disclosed in full: two of our own that affect colour capture and texture sampling for NVIDIA, plus the change below. During diagnosis we also ran two trace only patches that print the chosen route and the per layer geometry. Neither trace is in the build we ship, and the corruption reproduces on the distribution's own unpatched Gamescope package, which we substituted and rebooted to check.

What was measured

Every clean result below was attributed from Gamescope's own decision, not from appearance, and every corrupt result was recorded with two planes attached and an alpha bearing layer among them.

Condition Route Probe Result
2560x1440 at 165 Hz, menu open direct, 2 planes attempted, succeeded corrupt
the same with the change enabled composited never attempted clean
the same with the change disabled again direct, 2 planes attempted, succeeded corrupt
1920x1080 at 60 Hz, main Steam interface, no game direct, 2 planes attempted, succeeded corrupt
1920x1080 at 60 Hz, game running, no menu direct, 2 planes attempted, succeeded clean
1920x1080 at 60 Hz, menu over a game direct, 2 planes attempted, succeeded corrupt

Then the same four states inside one session with a menu left open and nothing restarted, by toggling the property above: corrupt, clean, corrupt, clean, each matching the trace.

Covered: DisplayPort and HDMI, 2560x1440 at 165, 144, 120 and 60 Hz, 1920x1080 at 120 and 60 Hz, HDR off and on, VRR off and on where offered, overlay off and on, the main interface, a game alone, a menu over a game, a controller notification, and repeated rapid menu cycling.

Two things worth correcting if you have read them elsewhere, including in our own documentation where they were wrong:

  • A lower resolution is not a workaround and was worse here. At 1080p60 the main Steam interface corrupts with no game running at all, which never happened at 1440p. Smaller outputs make more of the interface exactly output sized, and output sized layers are the ones eligible for a plane.
  • HDMI is not a separate fault. It reproduces with the same signature. What differs is that this display offers more small modes over HDMI, so the failing route is reached more often, which is why DisplayPort looked better.

The fifth row above is also informative: with the menu closed the second plane is the fully transparent layer Gamescope appends at steamcompmgr.cpp:2666 so that toggling the overlay does not stutter. It is blended on a plane too and nothing goes wrong, which is consistent with the fault being in blending visible alpha content.

What we are running

In CDRMBackend::Present, immediately after bNeedsFullComposite |= cv_composite_force and before the plane assignment is attempted, so no atomic request is built and rolled back and no negative liftoff cache entry is created by a policy choice:

bool bCompositeAlphaLayers = false;
if ( g_DRM.bCompositeNvidiaAlphaLayers && pFrameInfo->layerCount > 1 )
{
    for ( int i = 0; i < pFrameInfo->layerCount; ++i )
    {
        const auto &layer = pFrameInfo->layers[ i ];
        if ( layer.zpos != g_zposBase &&
             ( layer.opacity < 1.0f ||
               ( layer.hasAlpha() && layer.eAlphaBlendingMode != ALPHA_BLENDING_MODE_NONE ) ) )
        {
            bCompositeAlphaLayers = true;
            break;
        }
    }
}
bNeedsFullComposite |= bCompositeAlphaLayers;

bCompositeNvidiaAlphaLayers is decided once in init_drm from drmGetVersion on the file descriptor of the display device that was actually opened, compared against nvidia-drm, so a hybrid system with an NVIDIA render GPU behind another display controller is unaffected. It is on by default for a positively identified device, GAMESCOPE_NVIDIA_COMPOSITE_ALPHA=0 opts out of this one reason, and no value can enable it for another driver. If the driver cannot be identified it warns, changes nothing and does not claim protection.

A single layer keeps its ordinary eligibility, and the transparent layer described above is deliberately not exempted in what we ship, because exempting it would return the plane path to normal gameplay for a saving we have not been able to measure reliably.

What is not established

The precise defect inside the driver is not identified. Refusing the route avoids the fault; it does not separate the blend itself from plane programming, buffer layout or synchronisation, and the -EINVAL results we see when a probe fails do not tell us which constraint was violated.

No performance claim is made. We sampled board power with the route changed, but the scene was a game with moving opponents rather than a repeatable benchmark, so the difference cannot be attributed to the route. At 1440p the question is moot, because the transparent layer is smaller than the output there and the probe already fails, so gameplay composites anyway.

What would help

If you have this symptom, please say whether the property toggle above changes it, and if you can, include the plane assignment at the moment it is wrong: which planes are attached, their framebuffer formats and modifiers, the source and destination rectangles, and the pixel blend mode property on the overlay plane. That is the part missing from most reports in this issue, including ours until recently, and it is what tells us whether we are all looking at the same thing.

60plus avatar Sep 28 '26 00:09 60plus

Update: GAMESCOPE_COMPOSITE_FORCE=1 fixes this for me — confirming @60plus's suggestion from earlier in this thread works, on a different GPU architecture than they tested (I'm on Ampere, not sure what they were on). Set via xprop -root -f GAMESCOPE_COMPOSITE_FORCE 32c -set GAMESCOPE_COMPOSITE_FORCE 1 against gamescope's X11 display while it's running — forces full software composite instead of hardware-plane blending for the overlay, and the corruption stopped immediately in live testing (menu left idle, previously reliably corrupted within a few seconds, stayed clean after setting this). Posting my full isolation work below for context on what it rules out, since this looked for a while like it might be downstream of gamescope entirely rather than something a compositor-side setting could fix.

Setup: CachyOS (rolling), RTX 3060 Ti (Ampere), nvidia-open driver 615.71.09, gamescope 3.16.30 via gamescope-session-cachyos, 1920x1080@60 over HDMI to a Samsung TV.

Symptom, precisely isolated: Corruption only occurs where the semi-transparent Steam overlay/UI blends over active content underneath (both the Big Picture library/store screens over the desktop-ish background, and the in-game overlay over actual gameplay). It presents as a dense dither/halftone pattern plus ghosted/doubled text specifically in the blended regions, while:

  • Opaque UI elements composite perfectly (e.g. the overlay's own sidebar nav)
  • The game's own rendering underneath is completely clean — confirmed by comparing a screenshot of a game's title screen (perfect) against the same screen with the Steam overlay opened on top (corrupted only in the overlapping/blended region)
  • Corruption appears after a few seconds of no input and clears instantly on any input (mouse/controller)

This points pretty specifically at an alpha-blending issue in how gamescope composites the overlay layer over existing content on this driver, rather than a generic rendering/KMS problem — actual game rendering is unaffected.

Further isolation — confirmed this is downstream of gamescope's compositing entirely, both with and without hardware planes: Using gamescopectl screenshot <path> to capture gamescope's own internal render target at the exact moment the physical display was visibly corrupted, the internal capture was perfectly clean. Repeated this with --disable-layers (forces 100% software compositing, no libliftoff/hardware planes at all) — still clean internally, still corrupted on the physical display, at the same moment. Note the default screenshot type only captures the base plane (game layer, no overlay) — redid this with type 4 (screen_buffer, the actual 1:1 output) specifically during active corruption, still came back clean, so this isn't an artifact of the wrong capture type either. So the finished frame gamescope produces is correct regardless of compositing path; whatever's wrong happens strictly after that, in the driver's scanout stage — which makes it a bit surprising that a compositor-side setting (GAMESCOPE_COMPOSITE_FORCE) fixes it, but here we are. Given the idle-triggered pattern (appears after a few seconds of no input, clears instantly on any input), my best guess is still a driver-level idle/static-frame scanout optimization bug, and forcing full composite probably just changes the frame timing/update pattern enough to avoid whatever idle path triggers it, rather than fixing the actual defect.

Also worth noting: it's inconsistent per-game — the same overlay subview corrupts in one game but not another, suggesting whatever's happening in that driver scanout stage depends on the specific game's swapchain format/color space/sync method, not just "overlay is open."

Tried output resolution at 1280x720 instead of native 1920x1080 — no difference, rules out bandwidth/timing at this resolution range. Also live-captured dmesg -w across a confirmed corruption event — zero kernel log output, not even an info-level message, which is notable since display hiccups (modeset issues, flip timeouts) usually produce something even from the otherwise-sparse proprietary driver. Suggests this is either in GPU firmware invisible to the kernel, or downstream of the GPU's own output stage entirely.

Things ruled out (each verified actually in effect, not just configured, no change observed):

  • Hardware cursor plane (WLR_NO_HARDWARE_CURSORS=1)
  • GPU idle power-state/clock transitions (locked clocks near max + persistence mode via nvidia-smi)
  • Color management/colorimetry (--disable-color-management)
  • The MangoHud-forced-repaint workaround from #1964 / the deckshift fix (MANGOHUD_CONFIG=alpha=0,background_alpha=0 — confirmed present in the live process's environment)
  • Internal-vs-output resolution mismatch (forced -w/-h a few px off from -W/-H)
  • Steam's "Disable GPU Blocklist" setting
  • Not a generic Steam/CEF rendering bug — the exact same Steam binary/build/settings runs with zero corruption when Big Picture is launched as a normal windowed app under KDE/KWin instead of standalone gamescope-session, isolating this to gamescope's own compositing specifically.

Happy to provide nvidia-bug-report.sh output or try patches if anyone's able to point at where the overlay blend path lives.

GatoHusmeador avatar Oct 04 '26 01:10 GatoHusmeador

@GatoHusmeador Thanks for testing this on Ampere and for the detailed isolation work. Our test GPU is an RTX 5060 (Blackwell), so your result is useful confirmation on another architecture.

For the code you asked about, there are three relevant places in Gamescope. These links are pinned to our base commit, 154f435a2c0026510545b7b7524d104bed253cb3 (3.16.23.6):

  • The decision between composition and direct presentation on planes: CDRMBackend::Present in src/Backends/DRMBackend.cpp. bNeedsFullComposite decides whether the frame can attempt the direct plane path through drm_prepare(). This is where our workaround goes.
  • The hardware plane blending configuration: drm_prepare_liftoff, in the same file. This sets zpos, alpha and pixel blend mode for the planes. On that path, Gamescope hands the separate layers to KMS for the display hardware to blend.
  • The shader blending when Gamescope composites: BlendLayer in src/shaders/alphamode.h, called by shaders such as cs_composite_blit.comp. This is Vulkan composition on the GPU; it does not mean CPU rendering or disabling Steam's GPU acceleration.

Our workaround is available as a complete patch, including driver detection and logging. The core change is inserted in CDRMBackend::Present, immediately after bNeedsFullComposite |= cv_composite_force, before the plane assignment is attempted:

bool bCompositeAlphaLayers = false;
if ( g_DRM.bCompositeNvidiaAlphaLayers && pFrameInfo->layerCount > 1 )
{
    for ( int i = 0; i < pFrameInfo->layerCount; ++i )
    {
        const auto &layer = pFrameInfo->layers[ i ];
        if ( layer.zpos != g_zposBase &&
             ( layer.opacity < 1.0f ||
               ( layer.hasAlpha() && layer.eAlphaBlendingMode != ALPHA_BLENDING_MODE_NONE ) ) )
        {
            bCompositeAlphaLayers = true;
            break;
        }
    }
}
bNeedsFullComposite |= bCompositeAlphaLayers;

bCompositeNvidiaAlphaLayers is set once in init_drm(), using drmGetVersion() on the display device Gamescope actually opened. It is enabled by default only when that driver is nvidia-drm. An NVIDIA render GPU driving a display through another vendor's controller does not enable it. The full patch also handles the GAMESCOPE_NVIDIA_COMPOSITE_ALPHA=0 environment setting, which disables this policy at session startup while leaving all other reasons to composite intact.

This makes frames with a non-base layer requiring alpha blending take the full composition path. It leaves a single input's normal eligibility unchanged and rejects the multi-plane route before constructing and rolling back an atomic request. We do not alter the shader's blending formula. Like your successful GAMESCOPE_COMPOSITE_FORCE=1 test, it avoids the problematic presentation route; the condition is narrower than forcing composition for every frame. It does not establish the precise defect inside the driver.

If you are willing to test it, please apply only this alpha composition patch to your Gamescope build. It was built against 3.16.23.6, so your 3.16.30 tree may need the hunks rebased. Our complete 0.2.4 build also contains a separate GBM scanout change, which requires full composition when enabled. Testing the whole build would therefore not isolate this alpha policy.

One detail in your expanded report would be useful to compare: --disable-layers left the corruption visible, whereas setting the GAMESCOPE_COMPOSITE_FORCE root property cleared it. Could you repeat those two cases, then the alpha patch by itself, in the same game and scene, leaving the overlay idle for the same amount of time? Please include the exact launch arguments and confirm the property value at the moment of the fault, since we have observed Steam changing it during a session.

For the alpha-only run, remove --disable-layers and any global force-composition setting, and confirm GAMESCOPE_COMPOSITE_FORCE=0 on Gamescope's own X root, using that session's DISPLAY and XAUTHORITY. Otherwise another setting could mask whether the alpha policy makes a difference.

For the patched run, the useful startup log is NVIDIA alpha layer composition policy: enabled, followed by NVIDIA alpha layer composition on '...': compositing with ... inputs when the condition is met. Those lines confirm the policy decision. If corruption remains, a trace of the actual presentation route and the DRM plane assignment would help distinguish it from our reproduced case: plane IDs, framebuffer formats/modifiers, source/destination rectangles, and the plane's alpha/blend properties. Your NVIDIA bug report would be useful alongside that. A clean internal screenshot while the physical display is corrupt is a useful observation, but on its own it does not tell us which presentation route was active.

60plus avatar Oct 14 '26 20:10 60plus

Tested your alpha-composition patch alone — corruption does not reproduce.

Applied 0003-nvidia-alpha-composition.patch to a clean checkout of tag 3.16.30 (our running version). It applied cleanly as a textual patch, but needed one small adaptation for API drift since your base commit (3.16.23.6): FrameInfo_t no longer exposes layerCount/layers[i] directly — it's now a LayerStack_t with .count()/.get(i) accessors. Same fields otherwise (zpos, opacity, hasAlpha(), eAlphaBlendingMode all unchanged).

Tested via the real production path, not nested — overrode gamescope-session.service's PATH via a systemd user drop-in so the actual gamescope-session.target boot flow resolves to the patched binary, everything else (env vars, launch args) identical to stock. Confirmed via /proc/<pid>/exe.

Confirmed clean test conditions per your request:

  • GAMESCOPE_COMPOSITE_FORCE=0 the whole time, checked via xprop — our earlier blanket workaround service (which force-set it to 1 continuously) was fully disabled, not just left running alongside
  • Startup log confirms the policy engaged: NVIDIA alpha layer composition policy: enabled by default for nvidia-drm, followed by NVIDIA alpha layer composition on 'HDMI-A-1': compositing with 2 inputs the moment an alpha-blended overlay appeared

Result: tested extended idle (minutes, not just the few seconds that used to reliably trigger it), Big Picture library screen, and in-game overlay over actual gameplay — across multiple idle/wake cycles each. Zero corruption in any of it, on the same RTX 3060 Ti (Ampere) that corrupted reliably within seconds in every prior test without this patch.

Happy to provide nvidia-bug-report.sh or anything else if useful, though there's nothing to compare it against this time since it just... worked.

GatoHusmeador avatar Oct 14 '26 21:10 GatoHusmeador

@GatoHusmeador Thanks for trying my patch and sharing the results! Good to hear it also helps on your RTX 3060 Ti.

We maintain it in my SteamOS NVIDIA installer project, so testing on another setup is very helpful. Thanks also for pointing out the small change needed for Gamescope 3.16.30.

No need to collect extra logs for me right now. If the issue comes back, please let me know.

Thanks again for taking the time to test this!

60plus avatar Oct 14 '26 21:10 60plus

follow-up to my earlier report. I tested @60plus's 0003-nvidia-alpha-composition.patch, and the corruption persists on my setup.

Setup: Nobara 44, kernel 7.2.10, RTX 5090 (plus an Arrow Lake iGPU, not used for display), NVIDIA 615.71.09, gamescope 3.16.23.2 (Nobara package source, commit 5cdb5b0). Main display is an Alienware AW3926QW at 5120x2160@165 over DP-4. A Corsair Xeneon Edge (2560x720) is also connected on DP-5. SDR, then HDR enabled.

What I tested:

I built Nobara's gamescope with 0003 (it applied cleanly, no LayerStack_t changes needed). The log confirms it was active:

NVIDIA alpha layer composition policy: enabled by default for nvidia-drm selecting mode 5120x2160@165Hz NVIDIA alpha layer composition on 'DP-4': compositing with 2 inputs The corruption still appeared immediately on a direct boot into the gamescope session.

Forcing GAMESCOPE_COMPOSITE_FORCE=1 via xprop and --force-composition on the command line didn't fix it either.

The only reliable workaround is still booting into KDE Plasma first and then switching to gamescope. After that the session is clean.

Per @60plus's note, it seems my symptom isn't the alpha-plane blending case. It looks more like what @GatoHusmeador (clean screenshot under full composition) and @unstable-code (corruption tied to display handoff) described: something about a cold start in gamescope versus a modeset KWin has already done.

Happy to test more, like 0005 GBM scanout, nvidia-drm.fbdev=0, booting with the second monitor disconnected, or capturing a gamescopectl screenshot or drm.debug log while it's corrupt.

defmetal avatar Oct 15 '26 04:10 defmetal

@defmetal Thanks for testing and confirming that the alpha policy was actually active.

Your result suggests that the alpha-plane workaround alone does not address your case. One clarification regarding @GatoHusmeador's report: their later test confirmed that 0003 alone fixed the corruption on their RTX 3060 Ti. Your result with full composition still enabled is different, so we should keep those cases separate.

The KDE-first workaround is an interesting clue. It makes our separate GBM scanout patch worth testing, although neither that observation nor the high resolution proves that this is the same underlying problem.

In my SteamOS NVIDIA installer project, we reproduced corruption when switching from 1440p to 3840×2160, or enabling HDR at 4K, on an RTX 5060. Our GBM change resolved those cases on that machine. We tested 4K@60 over DisplayPort and HDMI, but have not tested your 5120×2160@165 configuration or dual-monitor setup.

The difference between the patches is:

  • 0003 makes frames with alpha-blended overlays use Vulkan composition instead of separate hardware planes.
  • 0005 changes how the final display buffers are allocated: GBM allocates them, and Vulkan imports and renders into them. It also requires full composition while enabled. Forcing composition alone does not make this allocation change.

The GBM patch is here: 0005-nvidia-gbm-scanout-experiment.patch

It was developed against Gamescope 3.16.23.6 with our preceding patches, including 0003, so your Nobara tree may need adjustments. The build also needs GBM development headers.

If you are willing to test it, the most useful comparison would be:

  1. Use the same patched binary, display configuration and launch arguments for both runs. Start directly into Gamescope after a full shutdown each time, without entering KDE first.
  2. Compare GAMESCOPE_NVIDIA_GBM_SCANOUT=0 and GAMESCOPE_NVIDIA_GBM_SCANOUT=1 in the Gamescope process environment. Keep full composition forced in both runs, verifying GAMESCOPE_COMPOSITE_FORCE=1 on Gamescope's own X root while testing. This helps separate the allocation change from the effect of forcing composition.
  3. For the enabled run, check for GBM scanout output active: and the GBM scanout buffer: lines. Setting the environment variable alone does not confirm that the path is active.

If corruption remains, test the second monitor disconnected, then a lower refresh rate and resolution, changing one thing at a time. For example, compare native resolution at 60 Hz with 2560×1440@60, where supported, with HDR and VRR off. Please leave nvidia-drm.fbdev unchanged during these comparisons.

The full Gamescope startup log, exact launch arguments, and a photo of the corruption alongside an internal screenshot that includes the affected overlay would be useful. Please capture them before entering KDE, since that changes the reproduction conditions.


One additional reference: we also have confirmation from another user in our 4K corruption issue #17.

On an RTX 5070 Ti connected to a 4K television over HDMI, they reported that after installing 0.2.4 and rebooting:

  • The display corruption was gone.
  • Switching between 4K at 120 Hz and 144 Hz remained clean.
  • Returning from Desktop Mode to Game Mode remained clean.
  • Toggling HDR off and on in Game Mode caused no corruption.

Their confirmation was posted in this comment in #26 and linked from #17 when we closed it.

That was a test of the complete 0.2.4 update, including our Gamescope patch set and the enabled GBM scanout path, not an isolated test of 0005. It supports the combined solution working on another machine at 4K and higher refresh rates, but does not establish which change was decisive there or guarantee the same result at 5120×2160@165.

That is why a controlled GBM OFF/ON comparison on your setup would be particularly useful.

60plus avatar Oct 15 '26 10:10 60plus