Skip to content

Blank Screen on Razer 16 - Cannot allocate memory #2614

@disassembler

Description

@disassembler

I'm having the same issue (NixOS 25.05) on a 16" razer laptop

Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.323939Z DEBUG niri::backend::tty: device added: 57857 "/dev/dri/card1"
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.742370Z DEBUG niri::backend::tty: device changed: 57857
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.745360Z DEBUG niri::backend::tty: new connector: eDP-1 "Samsung Display Corp. ATNA60DL04-0  Unknown"
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.745411Z DEBUG niri::backend::tty: connecting connector: eDP-1
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.745420Z DEBUG niri::backend::tty: picking mode: Mode { name: "2560x1600", clock: 1125275, size: (2560, 1600), hsync: (2568, 2600, 2640), vsync: (1758, 1766, 1776), hskew: 0, vscan: 0, vrefresh: 240, mode_type: ModeTypeFlags(PREFERRED | DRIVER) }
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.760800Z  WARN niri::backend::tty: error creating DRM compositor, will try with invalid modifier: DrmError(Access(AccessError { errmsg: "Error testing state", dev: Some("/dev/dri/card1"), source: Os { code: 12, kind: OutOfMemory, message: "Cannot allocate memory" } }))
Oct 16 11:39:39 iviron niri[4713]: 2025-10-16T15:39:39.767158Z  WARN niri::backend::tty: error connecting connector: error creating DRM compositor
Oct 16 11:39:39 iviron niri[4713]: Caused by:
Oct 16 11:39:39 iviron niri[4713]:     0: The underlying drm surface encountered an error: DRM access error: Error testing state on device `Some("/dev/dri/card1")` (Cannot allocate memory (os error 12))
Oct 16 11:39:39 iviron niri[4713]:     1: DRM access error: Error testing state on device `Some("/dev/dri/card1")` (Cannot allocate memory (os error 12))
Oct 16 11:39:39 iviron niri[4713]:     2: Cannot allocate memory (os error 12)

The screen on laptop just goes black. If I have an external monitor plugged in though, niri works fine on it. It's so broken that when I logout gdm doesn't get the laptop screen back and I have to reboot. gnome wayland doesn't experience this issue.

c5:00.0 VGA compatible controller: NVIDIA Corporation GB203M / GN22-X11 [GeForce RTX 5090 Max-Q / Mobile] (rev a1)
c6:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Strix [Radeon 880M / 890M] (rev c1)

I can also open a new issue if you'd rather close this one out, but it was similar enough, I figured I'd reuse it.

input {
    keyboard {
        xkb {
            layout "en,us"
            model ""
            rules ""
            variant ""
        }
        repeat-delay 600
        repeat-rate 25
        track-layout "global"
    }
    touchpad {
        tap
        natural-scroll
    }
    focus-follows-mouse max-scroll-amount="0%"
    workspace-auto-back-and-forth
}
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
prefer-no-csd
layout {
    gaps 1
    struts {
        left 0
        right 0
        top 0
        bottom 0
    }
    focus-ring {
        width 1
        active-color "#7fc8ff"
        inactive-color "#505050"
    }
    border { off; }
    shadow {
        on
        offset x=0 y=5
        softness 20
        spread 5
        draw-behind-window false
        color "#0007"
    }
    default-column-width
    preset-column-widths {
        proportion 0.500000
        proportion 0.333333
        proportion 0.250000
    }
    center-focused-column "on-overflow"
}
cursor {
    xcursor-theme "default"
    xcursor-size 24
}
environment {
    DISPLAY ":0"
    "QT_QPA_PLATFORM" "wayland"
}
binds {
    Ctrl+Alt+Delete { quit; }
    Mod+1 { focus-workspace 1; }
    Mod+2 { focus-workspace 2; }
    Mod+3 { focus-workspace 3; }
    Mod+4 { focus-workspace 4; }
    Mod+5 { focus-workspace 5; }
    Mod+6 { focus-workspace 6; }
    Mod+7 { focus-workspace 7; }
    Mod+8 { focus-workspace 8; }
    Mod+9 { focus-workspace 9; }
    Mod+At { switch-layout "next"; }
    Mod+BracketLeft { consume-or-expel-window-left; }
    Mod+BracketRight { consume-or-expel-window-right; }
    Mod+C { center-column; }
    Mod+Colon { set-column-width "+5%"; }
    Mod+Comma { consume-window-into-column; }
    Mod+Ctrl+1 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "1"; }
    Mod+Ctrl+2 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "2"; }
    Mod+Ctrl+3 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "3"; }
    Mod+Ctrl+4 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "4"; }
    Mod+Ctrl+5 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "5"; }
    Mod+Ctrl+6 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "6"; }
    Mod+Ctrl+7 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "7"; }
    Mod+Ctrl+8 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "8"; }
    Mod+Ctrl+9 { spawn "/nix/store/3kn2anjz19n5i8bahrhggz9kxm8nrnji-niri-unstable-2025-10-15-2776005/bin/niri" "msg" "action" "move-column-to-workspace" "9"; }
    Mod+Ctrl+End { move-column-to-last; }
    Mod+Ctrl+F { expand-column-to-available-width; }
    Mod+Ctrl+Home { move-column-to-first; }
    Mod+Ctrl+N { move-column-to-workspace-down; }
    Mod+Ctrl+P { move-column-to-workspace-up; }
    "Mod+Ctrl+Page_Down" { move-column-to-workspace-down; }
    "Mod+Ctrl+Page_Up" { move-column-to-workspace-up; }
    Mod+Ctrl+R { reset-window-height; }
    Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
    Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
    Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
    Mod+Ctrl+WheelScrollLeft { move-column-left; }
    Mod+Ctrl+WheelScrollRight { move-column-right; }
    Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
    Mod+D { spawn "fuzzel"; }
    Mod+Down { focus-window-down; }
    Mod+End { focus-column-last; }
    Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
    Mod+F { maximize-column; }
    Mod+H { focus-column-left; }
    Mod+Home { focus-column-first; }
    Mod+J { focus-window-down; }
    Mod+K { focus-window-up; }
    Mod+L { focus-column-right; }
    Mod+Left { focus-column-left; }
    Mod+N { focus-workspace-down; }
    Mod+P { focus-workspace-up; }
    "Mod+Page_Down" { focus-workspace-down; }
    "Mod+Page_Up" { focus-workspace-up; }
    Mod+Period { expel-window-from-column; }
    Mod+R { switch-preset-column-width; }
    Mod+Return { spawn "ghostty"; }
    Mod+Right { focus-column-right; }
    Mod+Semicolon { set-column-width "-5%"; }
    Mod+Shift+C { close-window; }
    Mod+Shift+Colon { set-window-height "+5%"; }
    Mod+Shift+Down { move-window-down; }
    Mod+Shift+E { quit; }
    Mod+Shift+F { fullscreen-window; }
    Mod+Shift+H { move-column-left; }
    Mod+Shift+J { move-window-down; }
    Mod+Shift+K { move-window-up; }
    Mod+Shift+L { move-column-right; }
    Mod+Shift+Left { move-column-left; }
    Mod+Shift+M { power-off-monitors; }
    Mod+Shift+N { move-workspace-down; }
    Mod+Shift+P { move-workspace-up; }
    "Mod+Shift+Page_Down" { move-workspace-down; }
    "Mod+Shift+Page_Up" { move-workspace-up; }
    Mod+Shift+R { switch-preset-window-height; }
    Mod+Shift+Right { move-column-right; }
    Mod+Shift+Semicolon { set-window-height "-5%"; }
    Mod+Shift+Slash { show-hotkey-overlay; }
    Mod+Shift+Up { move-window-up; }
    Mod+Shift+V { switch-focus-between-floating-and-tiling; }
    Mod+Shift+WheelScrollDown { focus-column-right; }
    Mod+Shift+WheelScrollUp { focus-column-left; }
    Mod+Tab { spawn "rofi" "-show" "window"; }
    Mod+Up { focus-window-up; }
    Mod+V { toggle-window-floating; }
    Mod+W { toggle-column-tabbed-display; }
    Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
    Mod+WheelScrollLeft { focus-column-left; }
    Mod+WheelScrollRight { focus-column-right; }
    Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
    Print { screenshot; }
    Super+Alt+L { spawn "swaylock"; }
    XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
    XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
    XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
    XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
}
spawn-at-startup "/nix/store/mz0jcqd5b567r78h1274xd3i562ssk9r-xwayland-satellite-0.7/bin/xwayland-satellite"
window-rule {
    match app-id="^lobster$"
    open-floating true
}
window-rule {
    match app-id="^org.wezfurlong.wezterm$"
    default-column-width
}
window-rule {
    match app-id="firefox$" title="^Picture-in-Picture$"
    open-floating true
}
animations { slowdown 0.500000; }
debug { render-drm-device "/dev/dri/renderD128"; }

System Information

  • niri version: niri unstable 2025-10-15 (commit 2776005)
  • Distro: NixOS
  • GPU:
c5:00.0 VGA compatible controller: NVIDIA Corporation GB203M / GN22-X11 [GeForce RTX 5090 Max-Q / Mobile] (rev a1)
c6:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Strix [Radeon 880M / 890M] (rev c1)
  • CPU: AMD Ryzen AI 9 HX 370 w/ Radeon 890M

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions