hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
20.7k stars 874 forks source link

Almost constant 100% CPU usage, glitches when moving windows #7969

Closed sw0ok closed 1 week ago

sw0ok commented 1 week ago

Already reported ? *

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 5c6c300abfea2539ffad9bcbf857325eec5ab765 (wayland/output: send geometry in updateState). Date: Mon Sep 30 18:42:36 2024 Tag: v0.43.0-89-g5c6c300a, commits: 5285 built against aquamarine 0.4.1 flags: (if any) System Information: System name: Linux Node name: archibald Release: 6.11.1-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Mon, 30 Sep 2024 23:49:50 +0000 GPU information: 04:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1) (prog-if 00 [VGA controller]) 09:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti] [10de:2486] (rev a1) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 560.35.03 Fri Aug 16 21: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/sw0ok/.config/hypr/hyprland.conf: Read Succeeded # AUTOGENERATED HYPR CONFIG. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # # Please note not all available settings / options are set here. # For a full list, see the wiki # autogenerated = 0 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=DP-1,2560x1440@144,1920x0,1 monitor=HDMI-A-1,1920x1080@60,0x0,1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch exec-once=/usr/lib/polkit-kde-authentication-agent-1 & hypridle exec-once=zen-browser exec-once=/home/sw0ok/.scripts/wallpaper-random.sh /home/sw0ok/.wallpapers/ exec-once=ln -sf $XDG_RUNTIME_DIR/hypr /tmp/hypr exec-once=/home/sw0ok/Waybar/build/waybar & nm-applet --indicator exec-once=kbuildsycoca6 exec-once=hyprctl setcursor adwaita 24 exec-once=xrnd exec-once=wireplumber exec-once=/home/sw0ok/.local/bin/151320240906-x86_64.AppImage exec-once=/home/sw0ok/.local/bin/Bitwarden-2024.9.0-x86_64.AppImage # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Set programs that you use $terminal = kitty $fileManager = kitty yazi $menu = rofi -show drun # Some default env vars. env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that env = XDG_MENU_PREFIX,arch- # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = pl kb_variant = kb_model = pc104 kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 5 gaps_out = 10 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 blur { enabled = true size = 3 passes = 1 } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } misc { # See https://wiki.hyprland.org/Configuring/Variables/ for more force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers mouse_move_enables_dpms=true key_press_enables_dpms=true } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more # device:epic-mouse-v1 { # sensitivity = -0.5 # } # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. # Workspace rules workspace = 1, monitor:DP-1, default:true workspace = 2, monitor:DP-1 workspace = 3, monitor:HDMI-A-1, default:true workspace = 4, monitor:HDMI-A-1, default:true workspace = 5, monitor:HDMI-A-1 workspace = 10, monitor:DP-1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Q, exec, $terminal bind = $mainMod, C, killactive bind = $mainMod, M, exec, killall -9 Hyprland bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating bind = $mainMod, P, pseudo # dwindle bind = $mainMod, J, togglesplit # dwindle bind = $mainMod, L, exec, grim -s 1.5 -l 0 -o DP-1 ~/.cache/screenlock-1.png && grim -s 1.5 -l 0 -o HDMI-A-1 ~/.cache/screenlock-2.png && find ~/.cache/screenlock-* -type f -exec convert {} -scale 10% -blur 0x2 -resize 200% {} \;; hyprlock bind = $mainMod, F, fullscreen bind = $mainMod, G, exec, zen-browser bind = $mainMod, B, exec, kitty bpytop # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Environment NVIDIA env = GBM_BACKEND,nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = LIBVA_DRIVER_NAME,nvidia env = __GL_GSYNC_ALLOWED,1 env = __GL_VRR_ALLOWED,0 env = WLR_DRM_NO_ATOMIC,1 env = QT_QPA_PLATFORM,wayland;xcb env = WLR_NO_HARDWARE_CURSORS,1 env = XDG_SESSION_TYPE,wayland env = GDK_BACKEND,wayland,x11,* env = __GL_GSYNC_ALLOWED,1 env = NVD_BACKEND,direct # Custom rules windowrule = workspace 3,kitty windowrulev2 = tile,class:(kitty),title:(bpytop) windowrulev2 = workspace 3,class:(kitty),title:(bpytop) windowrulev2 = workspace 5,class:(tilix),title:^(Tilix: /home/sw0ok/.scripts/spt.sh)$ # Steam Rules windowrulev2 = fullscreen,class:^(steam_app_.*) windowrulev2 = rounding 0,class:^(steam_app_.*)$ windowrulev2 = noborder,class:^(steam_app_.*)$ windowrulev2 = monitor 1,class:^(steam_app_.*)$ windowrulev2 = workspace 10 silent,class:^(steam_app_.*)$ windowrulev2 = center,class:^(steam_app_.*)$ #windowrulev2 = forceinput,class:^(steam_app_.*)$ windowrulev2 = focusonactivate,class:^(steam_app_.*)$ # Fallout rules # windowrulev2 = fullscreen,class:^(steam_app_22490),title:^(Fallout: New Vegas)$ # windowrulev2 = rounding 0,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = noborder,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = monitor 1,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = workspace 10 silent,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = center,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = forceinput,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # windowrulev2 = focusonactivate,class:^(steam_app_22490)$,title:^(Fallout: New Vegas)$ # Stalker Rules windowrulev2 = fullscreen,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = rounding 0,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = noborder,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = monitor 1,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = workspace 10 silent,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = center,initialClass:^(anomalydx11(avx)?\.exe)$ #windowrulev2 = forceinput,initialClass:^(anomalydx11(avx)?\.exe)$ windowrulev2 = float,class:^(modorganizer.exe)$,title:^(STALKER Anomaly – Mod Organizer v2.4.4)$ windowrulev2 = center,class:^(modorganizer.exe)$,title:^(STALKER Anomaly – Mod Organizer v2.4.4)$ windowrulev2 = noborder,class:^(modorganizer.exe)$,title:^(STALKER Anomaly – Mod Organizer v2.4.4)$ windowrulev2 = monitor 1,class:^(modorganizer.exe)$,title:^(STALKER Anomaly – Mod Organizer v2.4.4)$ windowrulev2 = workspace 10,class:^(modorganizer.exe)$,title:^(STALKER Anomaly – Mod Organizer v2.4.4)$ windowrule = monitor 1,^(lutris)$ windowrule = workspace 10,^(lutris)$ # librewolf rule windowrulev2 = workspace 1,class:^(zen-alpha)$ # Steam Apps rule windowrulev2= workspace 10 silent,class:^(steam_app).*$ # Steam Client rule windowrulev2= workspace 10 silent,class:^(steam)$ # Discord rules windowrulev2 = workspace 5,class:(discord) # SPT bind/rule bind=,XF86Tools,exec,kitty --detach /home/sw0ok/.scripts/spt.sh bind =,XF86AudioPlay, exec, playerctl play-pause bind =,XF86AudioNext, exec, playerctl next bind =,XF86AudioPrev, exec, playerctl previous bind=SUPER_SHIFT,K,exec,kitty /home/sw0ok/.scripts/spt.sh -k && /home/sw0ok/.scripts/spt.sh -k windowrulev2 = workspace 4,class:(kitty),title:(spt.sh) # VSCodium rule windowrulev2 = workspace 2,class:(codium-url-handler) # no sleep rule windowrulev2 = idleinhibit always,class:^(steam|.*\.exe)$ windowrulev2 = idleinhibit focus,class:^(org\.jellyfin\.jellyfinmediaplayer|zen-alpha)$ # Shutdown bind bind=SUPER_ALT,F12,exec,shutdown +0 # Screenshoot bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy bind = SHIFT,Print,exec,/home/sw0ok/.scripts/capture_activewindow.sh bind = CTRL_SHIFT,Print,exec,/home/sw0ok/.scripts/capture_selection_with_options_after.sh # to switch between windows in a floating workspace bind = SUPER,Tab,cyclenext, # change focus to another window bind = SUPER,Tab,bringactivetotop, # bring it to the top bindr =, XF86Search, exec, pkill wofi || $menu ======Config-End======== ```

Description

I pulled newest changes and did make all && sudo make install. I have also replaced my nvidia-beta-dkms with nvidia-open, after rebooting Hyprland is glitching when moving windows, scrolling or when animations happen.

How to reproduce

Install nvidia-open 560.35.03-9 and Hyprland, commit 5c6c300abfea2539ffad9bcbf857325eec5ab765.

Crash reports, logs, images, videos

372646348-dc7dd6f0-f5e8-409c-b34f-979ed641aea4

sw0ok commented 1 week ago

Turns out I panicked too soon, after carefully reading https://wiki.hyprland.org/Nvidia/ again I replaced WLR_NO_HARDWARE_CURSORS with cursor in my config as well as added missing DRM kernel mode setting. Everything is back to normal.