Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After AQ, computer either issues black screen or frozen frame when waking from suspend (nvidia) #6963

Open
Fxzzi opened this issue Jul 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Fxzzi
Copy link
Contributor

Fxzzi commented Jul 21, 2024

Regression?

Yes

System Info and Version

System/Version info
Hyprland, built from branch main at commit 33e933e2a020c874037df568d6c033ae20f30bf7  (renderer: drop redundant spammy trace log).
Date: Sun Jul 21 16:09:29 2024
Tag: v0.41.2-62-g33e933e2, commits: 4948

flags: (if any)


System Information:
System name: Linux
Node name: Kappa
Release: 6.9.10-zen1-1.1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Fri, 19 Jul 2024 04:27:20 +0000


GPU information: 
08:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3070] [10de:2484] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  555.58.02  Tue Jun 25 01:39:15 UTC 2024


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

======Config-Start======


Config File: /home/faaris/.config/hypr/hyprland.conf: Read Succeeded
debug {
	disable_logs = false
}

# █▀▀ █▄░█ █░█
# ██▄ █░▀█ ▀▄▀
env = GDK_BACKEND,wayland,x11
env = ELECTRON_OZONE_PLATFORM_HINT,auto
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct # Applies theme config from qt6ct
env = XCURSOR_THEME,Simp1e # Set cursor theme
env = XCURSOR_SIZE,24 # Set cursor size
env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh # Keyring
env = _JAVA_AWT_WM_NONREPARENTING,1 # Fix java wm bug
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = GTK_THEME,TokyoNight:dark 
source = ~/.config/hypr/hyprland-nvidia.conf

# █▀▀ ▀▄▀ █▀▀ █▀▀
# ██▄ █░█ ██▄ █▄▄
$WALLPAPER	= ~/Pictures/Wallpapers/tokyonight/wallhaven-72w5pv.png

# We killall so that on every reload of hyprland, these apps will restart also.
exec				= killall wbg; wbg $WALLPAPER
exec				= killall waybar; waybar

exec-once		= theming.sh # Applies GTK themes, cursor themes, etc
exec-once		= /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 # Root escalation
exec-once		= swayidle # Idle dpms and suspend
# exec-once		= easyeffects --gapplication-service # EQ
exec-once		=	wlsunset -l 43.77 -L -79.25 -t 3500
# exec-once	= otd-daemon # Drawing tablet drivers
exec-once		= hyprpm reload -n
exec				= xrandr --output DP-2 --primary

# █▀▄▀█ █▀█ █▄░█ █ ▀█▀ █▀█ █▀█
# █░▀░█ █▄█ █░▀█ █ ░█░ █▄█ █▀▄
# monitor = DP-2,2560x1440@170,0x0,1
# monitor = DP-1,1920x1080@75,-1920x0,1
monitor = ,highrr,auto,1

# Set DP-2 as primary monitor for XWayland windows
plugin {
    xwaylandprimary {
        display = DP-2
    }
}

opengl {
	nvidia_anti_flicker = false
	force_introspection = 1
}

cursor {
	default_monitor = DP-2
	no_hardware_cursors = true
}

experimental {
	explicit_sync = true
}

# ▀▄▀ █░█░█ ▄▀█ █▄█ █░░ ▄▀█ █▄░█ █▀▄
# █░█ ▀▄▀▄▀ █▀█ ░█░ █▄▄ █▀█ █░▀█ █▄▀
xwayland {
    # force_zero_scaling = 1
}

# █ █▄░█ █▀█ █░█ ▀█▀
# █ █░▀█ █▀▀ █▄█ ░█░
input {
  repeat_rate = 55 # Set characters to repeat on hold every 55ms
  repeat_delay = 375 # Set repeat timeout to 375ms
  follow_mouse = 2 # Follow mouse clicks for window focus
	force_no_accel = 1
  float_switch_override_focus = 0 # Stop floating windows from stealing focus
}

# █▀▀ █▀▀ █▄░█ █▀▀ █▀█ ▄▀█ █░░
# █▄█ ██▄ █░▀█ ██▄ █▀▄ █▀█ █▄▄
general {
  gaps_out = 4 # Outer monitor gaps
  gaps_in = 2 # Inner window gaps
  border_size = 2 # Set window border width
  col.active_border = 0xff89ddff 0xff7dcfff 0xff7aa2f7 270deg # Set active border colour (gradient)
  col.inactive_border = 0xff414868 # Inactive gray
  no_border_on_floating = false # Reenables border on floating windows
  layout = dwindle # Set default layout
	allow_tearing = true
}

# █▀▄▀█ █ █▀ █▀▀
# █░▀░█ █ ▄█ █▄▄
misc {
  new_window_takes_over_fullscreen = 2 # Leave fullscreen on new window
  disable_hyprland_logo = true # Disable logo on desktop
  disable_splash_rendering = true # Disable startup splashscreen
  animate_mouse_windowdragging = false # Disable windowdragging animations
  mouse_move_enables_dpms = true # Enables mouse move wakeup
  mouse_move_focuses_monitor = false # Disables hover for monitor focus
  focus_on_activate = true # Focusses windows which ask for activation (eg systray)
  enable_swallow = false # Enable window swalling
  swallow_regex = ^(foot)$ # Make foot swallow executed windows
  vfr = 1 # Variable framerate
  vrr = 1 # Variable refreshrate (freesync / gsync)
  initial_workspace_tracking = false
	no_direct_scanout = false
}



# █▀▄ █▀▀ █▀▀ █▀█ █▀█ ▄▀█ ▀█▀ █ █▀█ █▄░█
# █▄▀ ██▄ █▄▄ █▄█ █▀▄ █▀█ ░█░ █ █▄█ █░▀█
decoration {
    rounding = 6
    drop_shadow = true # Enable shadows on windows
    col.shadow = 0xee1a1a1a # Set shadow colour
    shadow_range = 5 # Set power range for shadow
    shadow_render_power = 5 # Set power / strength for shadow
    layerrule = blur, waybar # Enable blur on waybar
    layerrule = blur, wofi
    layerrule = blur, wleave
    layerrule = ignorezero, waybar
    layerrule = ignorezero, wofi
    layerrule = xray 1, wleave
    layerrule = xray 1, wofi
    blur {
        enabled = true
        size = 2
				passes = 3
				popups = true
				noise = 0.075
				brightness = 0.8
				contrast = 0.8
    }
}

# ▄▀█ █▄░█ █ █▀▄▀█ ▄▀█ ▀█▀ █ █▀█ █▄░█ █▀
# █▀█ █░▀█ █ █░▀░█ █▀█ ░█░ █ █▄█ █░▀█ ▄█
animations {
    enabled = 1 # Enable animations

    bezier = overshot, 0.05, 0.9, 0.1, 1.05
    bezier = smoothOut, 0.36, 0, 0.66, -0.56
    bezier = smoothIn, 0.25, 1, 0.5, 1

    animation = windows, 1, 5, overshot, slide
    animation = windowsMove, 1, 4, default
    animation = border, 1, 10, default
    animation = fade, 1, 4, smoothIn
    animation = fadeDim, 1, 4, smoothOut
    animation = workspaces, 1, 6, default, slidevert
}

# █░░ ▄▀█ █▄█ █▀█ █░█ ▀█▀ █▀
# █▄▄ █▀█ ░█░ █▄█ █▄█ ░█░ ▄█
dwindle {
  no_gaps_when_only = false
  pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  preserve_split = true # you probably want this
}

# █░█░█ █ █▄░█ █▀▄ █▀█ █░█░█   █▀█ █░█ █░░ █▀▀ █▀
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀   █▀▄ █▄█ █▄▄ ██▄ ▄█
windowrule = float, file_progress
windowrule = float, confirm
windowrule = float, dialog
windowrule = float, download
windowrule = float, notification
windowrule = float, error
windowrule = float, splash
windowrule = float, confirmreset
windowrule = float, title:Open File
windowrule = float, title:branchdialog

# Stop sleeping with certain apps
windowrulev2 = idleinhibit focus, class:^(mpv)$
windowrulev2 = idleinhibit focus, class:^(atril)$
windowrulev2 = idleinhibit fullscreen, class:^(.*)$

windowrulev2 = tile, class:^(photoshop.exe)$

# Window rules for games
# Fix focus issues with cs2
windowrulev2 = suppressevent maximize fullscreen, class: ^(cs2)$

# Set fullscreen for all steam games
# windowrulev2 = fullscreen, class:^(steam_app_.*)$
windowrulev2 = float, class:^(cs2)$

# Sets fullscreen for common Minecraft windows
windowrulev2 = fullscreen, class:^(Minecraft.*)$
windowrulev2 = fullscreen, initialTitle:^(Minecraft.*)$
windowrulev2 = fullscreen, class:^(org-prismlauncher-EntryPoint)$

# Allow games to tear
windowrulev2 = immediate, class:^(steam_app_.*)$
windowrulev2 = immediate, class:^(cs2)$
windowrulev2 = immediate, class:^(Minecraft.*)$
windowrulev2 = immediate, initialTitle:^(Minecraft.*)$
windowrulev2 = immediate, class:^(org-prismlauncher-EntryPoint)$
windowrulev2 = immediate, class:^(osu!)$

# Fix everest (celeste) splash screen
windowrulev2 = float, class:^(EverestSplash-linux)$

# Make bakkesmod float, and only main rocket league window fullscreen
windowrulev2 = float, class:^(steam_app_252950)$
windowrulev2 = fullscreen, class:^(steam_app_252950)$, title:^(Rocket League \(64-bit, DX11, Cooked\))$

# Make Rocket League fill both monitors for split screen
# windowrulev2 = minsize 3840 1080, class: ^(steam_app_252950)$
# windowrulev2 = maxsize 3840 1080, class: ^(steam_app_252950)$

# █░█░█ █▀█ █▀█ █▄▀ █▀ █▀█ ▄▀█ █▀▀ █▀▀ █▀
# ▀▄▀▄▀ █▄█ █▀▄ █░█ ▄█ █▀▀ █▀█ █▄▄ ██▄ ▄█
# Sets alternating workspaces for dual monitor setup
# Main gets odd ws, secondary gets even ws
workspace = 1, monitor:DP-2, default: true
workspace = 2, monitor:DP-1, default: true
workspace = 3, monitor:DP-2, default: true
workspace = 4, monitor:DP-1, default: true
workspace = 5, monitor:DP-2, default: true
workspace = 6, monitor:DP-1, default: true
workspace = 7, monitor:DP-2, default: true
workspace = 8, monitor:DP-1, default: true
workspace = 9, monitor:DP-2, default: true
workspace = 10, monitor:DP-1, default: true

# █▄▀ █▀▀ █▄█ █▄▄ █ █▄░█ █▀▄ █▀
# █░█ ██▄ ░█░ █▄█ █ █░▀█ █▄▀ ▄█
$MOD = SUPER

# █▀ █▀▀ █▀█ █▀▀ █▀▀ █▄░█ █▀ █░█ █▀█ ▀█▀
# ▄█ █▄▄ █▀▄ ██▄ ██▄ █░▀█ ▄█ █▀█ █▄█ ░█░
bind = ,Print, exec, ~/.local/scripts/screenshot.sh --monitor
bind = SHIFT, Print, exec, ~/.local/scripts/screenshot.sh --selection
bind = $MOD, Print, exec, ~/.local/scripts/screenshot.sh --active


# █░█ █▀█ █░░ █░█ █▀▄▀█ █▀▀
# ▀▄▀ █▄█ █▄▄ █▄█ █░▀░█ ██▄
binde=, XF86AudioRaiseVolume, exec, audio.sh vol up 5
binde=, XF86AudioLowerVolume, exec, audio.sh vol down 5
binde=, XF86AudioMute, exec, audio.sh vol toggle
# binde=, XF86AudioMicMute, exec, audio.sh mic toggle

# █▄▄ █▀█ █ █▀▀ █░█ ▀█▀ █▄░█ █▀▀ █▀ █▀
# █▄█ █▀▄ █ █▄█ █▀█ ░█░ █░▀█ ██▄ ▄█ ▄█
# binde=, XF86MonBrightnessUp, exec, brightness.sh up 5
# binde=, XF86MonBrightnessDown, exec, brightness.sh down 5

# ▄▀█ █▀█ █▀█ █▀
# █▀█ █▀▀ █▀▀ ▄█
bind = $MOD, F, exec, thunar
bind = $MOD, T, exec, foot
bind = $MOD, B, exec, librewolf
bind = $MOD SHIFT, P, exec, librewolf --private-window
bind = $MOD, W, exec, vesktop
bind = $MOD, L, exec, swaylock
bind = $MOD, D, exec, pkill wofi || wofi -I -i -a
bind = $MOD SHIFT, E, exec, pkill wleave || wleave --protocol layer-shell -b 5 -T 360 -B 360
bind = $MOD SHIFT, R, exec, hyprctl reload

# █░█░█ █ █▄░█ █▀▄ █▀█ █░█░█   █▀▄▀█ ▄▀█ █▄░█ ▄▀█ █▀▀ █▀▄▀█ █▀▀ █▄░█ ▀█▀
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀   █░▀░█ █▀█ █░▀█ █▀█ █▄█ █░▀░█ ██▄ █░▀█ ░█░
bind = $MOD, Q, killactive
bind = $MOD, Space, fullscreen
bind = $MOD, Tab, togglefloating
bind = $MOD, P, pseudo # dwindle
bind = $MOD, S, togglesplit # dwindle

# █▀▀ █▀█ █▀▀ █░█ █▀
# █▀░ █▄█ █▄▄ █▄█ ▄█
bind = $MOD, left, movefocus, l
bind = $MOD, right, movefocus, r
bind = $MOD, up, movefocus, u
bind = $MOD, down, movefocus, d

# █▀▄▀█ █▀█ █░█ █▀▀
# █░▀░█ █▄█ ▀▄▀ ██▄
bind = $MOD SHIFT, left, movewindow, l
bind = $MOD SHIFT, right, movewindow, r
bind = $MOD SHIFT, up, movewindow, u
bind = $MOD SHIFT, down, movewindow, d

# █▀█ █▀▀ █▀ █ ▀█ █▀▀
# █▀▄ ██▄ ▄█ █ █▄ ██▄
binde = $MOD CTRL, left, resizeactive, -10 0
binde = $MOD CTRL, right, resizeactive, 10 0
binde = $MOD CTRL, up, resizeactive, 0 -10
binde = $MOD CTRL, down, resizeactive, 0 10

# █▀ █░█░█ █ ▀█▀ █▀▀ █░█
# ▄█ ▀▄▀▄▀ █ ░█░ █▄▄ █▀█
bind = $MOD, 1, workspace, 1
bind = $MOD, 2, workspace, 2
bind = $MOD, 3, workspace, 3
bind = $MOD, 4, workspace, 4
bind = $MOD, 5, workspace, 5
bind = $MOD, 6, workspace, 6
bind = $MOD, 7, workspace, 7
bind = $MOD, 8, workspace, 8
bind = $MOD, 9, workspace, 9
bind = $MOD, 0, workspace, 10
bind = $MOD ALT, up, workspace, e+1
bind = $MOD ALT, down, workspace, e-1

# █▀▄▀█ █▀█ █░█ █▀▀
# █░▀░█ █▄█ ▀▄▀ ██▄
bind = $MOD SHIFT, 1, movetoworkspace, 1
bind = $MOD SHIFT, 2, movetoworkspace, 2
bind = $MOD SHIFT, 3, movetoworkspace, 3
bind = $MOD SHIFT, 4, movetoworkspace, 4
bind = $MOD SHIFT, 5, movetoworkspace, 5
bind = $MOD SHIFT, 6, movetoworkspace, 6
bind = $MOD SHIFT, 7, movetoworkspace, 7
bind = $MOD SHIFT, 8, movetoworkspace, 8
bind = $MOD SHIFT, 9, movetoworkspace, 9
bind = $MOD SHIFT, 0, movetoworkspace, 10

# █▀▄▀█ █▀█ █░█ █▀ █▀▀   █▄▄ █ █▄░█ █▀▄ █ █▄░█ █▀▀
# █░▀░█ █▄█ █▄█ ▄█ ██▄   █▄█ █ █░▀█ █▄▀ █ █░▀█ █▄█
bindm = $MOD, mouse:272, movewindow
bindm = $MOD, mouse:273, resizewindow
bind = $MOD, mouse_down, workspace, e+1
bind = $MOD, mouse_up, workspace, e-1

# Disables all keybinds for moonlight or vm's
bind = $MOD SHIFT, N, submap, clean
submap = clean
bind = $MOD SHIFT, N, submap, reset
submap = reset

# Global binds for OBS
bind = Alt_R, M,			pass,^(com\.obsproject\.Studio)$
bind = Alt_R, N,			pass,^(com\.obsproject\.Studio)$
# bind = , Next,				pass,^(com\.obsproject\.Studio)$


Config File: /home/faaris/.config/hypr/hyprland-nvidia.conf: Read Succeeded
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia

env = NVD_BACKEND,direct
env = MOZ_DISABLE_RDD_SANDBOX,1

env = __GL_GSYNC_ALLOWED,1
env = __GL_VRR_ALLOWED,1

======Config-End========

Description

Continuing from #6608:

Waking from suspend is bugged with AQ. I sometimes wake to a black screen, or sometimes the last frame of whatever was visible before suspending (it could be the frame from resuming, idk)

How to reproduce

  1. Suspend PC
  2. Wake PC
  3. Profit?

Crash reports, logs, images, videos

ok: hyprland.log

@Fxzzi Fxzzi added the bug Something isn't working label Jul 21, 2024
@vvvilife
Copy link

same issue here

hyprlockerror.txt

@dotaxis
Copy link

dotaxis commented Aug 20, 2024

Does this also happen when running hyprctl dispatch dpms off and then hyprctl dispatch dpms on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants