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
21.57k stars 902 forks source link

Critical Bug: Randomly freezes to Kernel Panic with blinking Caps Lock #6345

Closed letavocado closed 4 months ago

letavocado commented 5 months ago

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit cba1ade848feac44b2eda677503900639581c3f4 (props: bump version to 0.40.0). Date: Sat May 4 15:42:32 2024 Tag: v0.40.0, commits: 4606 flags: (if any) System Information: System name: Linux Node name: dell-xps Release: 6.9.2-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-H GT2 [UHD Graphics] [8086:9bc4] (rev 05) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2060 Max-Q] [10de:1f12] (rev a1) (prog-if 00 [VGA controller]) 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: ```
System info (extra from fastfetch) ```yml OS: Arch Linux x86_64 Host: XPS 17 9700 Kernel: Linux 6.9.2-arch1-1 Uptime: 31 mins Packages: 1420 (pacman) Shell: zsh 5.9 Display (SHP14D6): 3840x2400 @ 60Hz (as 1920x1200) [Built-in] WM: Hyprland (Wayland) Theme: Adwaita-dark [GTK2/3] Icons: Adwaita [GTK2/3], Adwaita-dark [GTK4] Font: Cantarell (11pt) [GTK2/3] Cursor: Adwaita (24px) Terminal: alacritty 0.13.2 Terminal Font: FiraCode Nerd Font (11pt) CPU: Intel(R) Core(TM) i9-10885H (16) @ 5.30 GHz GPU 1: NVIDIA GeForce RTX 2060 Max-Q [Discrete] GPU 2: Intel UHD Graphics @ 1.25 GHz [Integrated] Memory: 6.24 GiB / 31.09 GiB (20%) Locale: en_US.UTF-8 ```
My configs hyprland.conf ```conf $scrPath = ~/.config/hypr/scripts # layerrule = blur, waybar # MONITOR # # See https://wiki.hyprland.org/Configuring/Monitors/ #monitor=eDP-1,3840x2400@59.99400,0x0,auto #monitor=,highres,auto,2 monitor = ,preferred,auto,auto xwayland { force_zero_scaling = true } # LAUNCH # # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox exec-once = $scrPath/resetxdgportal.sh # reset XDPH for screenshare exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH exec-once = dbus-update-activation-environment --systemd --all # for XDPH exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = waybar exec-once = hypridle exec-once = blueman-applet # systray app for BT exec-once = nm-applet --indicator # systray app for Network/Wifi exec-once = dunst exec-once = wl-paste --type text --watch cliphist store # Stores only text data exec-once = wl-paste --type image --watch cliphist store # Stores only image data exec-once = swww init exec-once = swww img ~/Pictures/Wallpapers/ # ENV # source = ~/.config/hypr/env.conf misc { disable_hyprland_logo=true } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 2 gaps_out = 2 border_size = 1 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 4 # blur { # enabled = true # size = 15 # passes = 1 # } # drop_shadow = yes # shadow_range = 4 # shadow_render_power = 3 # col.shadow = rgba(1a1a1aee) } # INPUTS # # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us,ru kb_variant = kb_model = kb_options = grp:win_space_toggle, grp:alt_shift_toggle kb_rules = follow_mouse = 1 touchpad { natural_scroll = yes drag_lock = false } # sensitivity = 0 # -1.0 - 1.0, 0 means no modification. # accel_profile = flat accel_profile=custom 1 0.0 1.0 } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = on workspace_swipe_forever = true workspace_swipe_direction_lock = false # workspace_swipe_use_r = false } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more # device:epic-mouse-v1 { # sensitivity = -0.5 # } # LAYOUTS # 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 new_is_master = true } # SOURCE # # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # ANIMATIONS # source = ~/.config/hypr/animations.conf # KEYBINDINGS # source = ~/.config/hypr/keybindings.conf # WINDOWRULES # source = ~/.config/hypr/windowrules.conf ``` --- env.conf ```conf # env # # some default env vars. env = XDG_CURRENT_DESKTOP=Hyprland env = XDG_SESSION_TYPE=wayland env = XDG_SESSION_DESKTOP=Hyprland env = QT_QPA_PLATFORM,wayland;xcb env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = QT_QPA_PLATFORMTHEME,qt5ct env = XCURSOR_SIZE,24 env = MOZ_ENABLE_WAYLAND,1 # toolkit-specific scale env = GDK_SCALE,2 env = XCURSOR_SIZE,32 # nvidia # env = GBM_BACKEND,nvidia-drm # env = LIBVA_DRIVER_NAME,nvidia # env = VDPAU_DRIVER,nvidia # env = NVD_BACKEND,direct # env = NVD_GPU,0 # env = __NV_PRIME_RENDER_OFFLOAD,1 # env = DRI_PRIME,pci-0000_01_00_0 # env = __VK_LAYER_NV_optimus,NVIDIA_only # env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = __GL_VRR_ALLOWED,1 env = WLR_NO_HARDWARE_CURSORS,1 env = WLR_DRM_NO_ATOMIC,1 ``` --- scripts/resetxdgportal.sh ```sh #!/usr/bin/env bash sleep 1 killall -e xdg-desktop-portal-hyprland killall -e xdg-desktop-portal-wlr killall xdg-desktop-portal /usr/lib/xdg-desktop-portal-hyprland & sleep 2 /usr/lib/xdg-desktop-portal & ``` --- animations.conf ```conf # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more animations { enabled = yes 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 } ``` --- hypridle.conf ```conf general { lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. before_sleep_cmd = loginctl lock-session # lock before suspend. after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } listener { timeout = 150 # 2.5min. on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. on-resume = brightnessctl -r # monitor backlight restore. } # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. listener { timeout = 150 # 2.5min. on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight. on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight. } listener { timeout = 300 # 5min on-timeout = loginctl lock-session # lock screen when timeout has passed } listener { timeout = 330 # 5.5min on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. } listener { timeout = 1800 # 30min on-timeout = systemctl suspend # suspend pc } ``` --- hyprlock.conf ```conf background { monitor = path = /home/me/someImage.png # only png supported for now color = rgba(25, 20, 20, 1.0) # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations blur_passes = 0 # 0 disables blurring blur_size = 7 noise = 0.0117 contrast = 0.8916 brightness = 0.8172 vibrancy = 0.1696 vibrancy_darkness = 0.0 } label { monitor = text = Hi there, $USER color = rgba(200, 200, 200, 1.0) font_size = 25 font_family = Noto Sans rotate = 0 # degrees, counter-clockwise position = 0, 80 halign = center valign = center } input-field { monitor = size = 200, 50 outline_thickness = 3 dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 dots_center = false dots_rounding = -1 # -1 default circle, -2 follow input-field rounding outer_color = rgb(151515) inner_color = rgb(200, 200, 200) font_color = rgb(10, 10, 10) fade_on_empty = true fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. placeholder_text = Input Password... # Text rendered in the input box when it's empty. hide_input = false rounding = -1 # -1 means complete rounding (circle/oval) check_color = rgb(204, 136, 34) fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color fail_text = $FAIL ($ATTEMPTS) # can be set to empty fail_transition = 300 # transition time in ms between normal outer_color and fail_color capslock_color = -1 numlock_color = -1 bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) invert_numlock = false # change color if numlock is off swap_font_color = false # see below position = 0, -20 halign = center valign = center } ``` --- keybindings.conf ```conf # 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, alacritty bind = $mainMod, C, killactive, bind = $mainMod, delete, exit, # kill hyperland session bind = $mainMod, E, exec, nautilus bind = $mainMod, V, togglefloating, bind = $mainMod, F, fullscreen, bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, L, exec, wlogout # 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 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 bind = $mainMod, comma, workspace, r-1 bind = $mainMod, period, workspace, r+1 bind = $mainMod SHIFT, comma, movetoworkspace, r-1 bind = $mainMod SHIFT, period, movetoworkspace, r+1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Volume and Media Control bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bind = , XF86AudioMicMute, exec, pamixer --default-source -m bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind = , XF86AudioPlay, exec, playerctl play-pause bind = , XF86AudioPause, exec, playerctl play-pause bind = , XF86AudioNext, exec, playerctl next bind = , XF86AudioPrev, exec, playerctl previous # Screen brightness bind = , XF86MonBrightnessUp, exec, brightnessctl s +5% bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%- ``` --- windowrules.conf ```conf # 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 = opacity 0.90 0.90,class:^(firefox)$ windowrulev2 = opacity 0.90 0.90,class:^(Brave-browser)$ windowrulev2 = opacity 0.80 0.80,class:^(Steam)$ windowrulev2 = opacity 0.80 0.80,class:^(steam)$ windowrulev2 = opacity 0.80 0.80,class:^(steamwebhelper)$ windowrulev2 = opacity 0.80 0.80,class:^(Spotify)$ windowrulev2 = opacity 0.80 0.80,class:^(Code)$ windowrulev2 = opacity 0.80 0.80,class:^(code-url-handler)$ # windowrulev2 = opacity 0.90 0.90,class:^(kitty)$ windowrulev2 = opacity 0.80 0.80,class:^(org.kde.dolphin)$ windowrulev2 = opacity 0.80 0.80,class:^(org.kde.ark)$ windowrulev2 = opacity 0.80 0.80,class:^(nwg-look)$ windowrulev2 = opacity 0.80 0.80,class:^(qt5ct)$ windowrulev2 = opacity 0.90 0.90,class:^(com.github.rafostar.Clapper)$ #Clapper-Gtk windowrulev2 = opacity 0.80 0.80,class:^(com.github.tchx84.Flatseal)$ #Flatseal-Gtk windowrulev2 = opacity 0.80 0.80,class:^(hu.kramo.Cartridges)$ #Cartridges-Gtk windowrulev2 = opacity 0.80 0.80,class:^(com.obsproject.Studio)$ #Obs-Qt windowrulev2 = opacity 0.80 0.80,class:^(gnome-boxes)$ #Boxes-Gtk # windowrulev2 = opacity 0.80 0.80,class:^(discord)$ #Discord-Electron windowrulev2 = opacity 0.80 0.80,class:^(WebCord)$ #WebCord-Electron windowrulev2 = opacity 0.80 0.80,class:^(app.drey.Warp)$ #Warp-Gtk windowrulev2 = opacity 0.80 0.80,class:^(net.davidotek.pupgui2)$ #ProtonUp-Qt windowrulev2 = opacity 0.80 0.80,class:^(yad)$ #Protontricks-Gtk windowrulev2 = opacity 0.80 0.80,class:^(Signal)$ #Signal-Gtk windowrulev2 = opacity 0.80 0.80,class:^(io.gitlab.theevilskeleton.Upscaler)$ #Upscaler-Gtk windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$ windowrulev2 = opacity 0.80 0.70,class:^(blueman-manager)$ windowrulev2 = opacity 0.80 0.70,class:^(nm-applet)$ windowrulev2 = opacity 0.80 0.70,class:^(nm-connection-editor)$ windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$ windowrulev2 = float,class:^(qt5ct)$ windowrulev2 = float,class:^(nwg-look)$ windowrulev2 = float,class:^(org.kde.ark)$ windowrulev2 = float,class:^(Signal)$ #Signal-Gtk windowrulev2 = float,class:^(com.github.rafostar.Clapper)$ #Clapper-Gtk windowrulev2 = float,class:^(app.drey.Warp)$ #Warp-Gtk windowrulev2 = float,class:^(net.davidotek.pupgui2)$ #ProtonUp-Qt windowrulev2 = float,class:^(yad)$ #Protontricks-Gtk windowrulev2 = float,class:^(eog)$ #Imageviewer-Gtk windowrulev2 = float,class:^(io.gitlab.theevilskeleton.Upscaler)$ #Upscaler-Gtk windowrulev2 = float,class:^(pavucontrol)$ windowrulev2 = float,class:^(blueman-manager)$ windowrulev2 = float,class:^(nm-applet)$ windowrulev2 = float,class:^(nm-connection-editor)$ windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$ # windowrulev2 = float,center,class:^(org.gnome.Nautilus)$ # windowrulev2 = float, size:50%, class:^(org.gnome.Nautilus)$ # windowrulev2 = float,class:^(org.gnome.Nautilus)$ # windowrulev2 = center,class:^(org.gnome.Nautilus)$ # windowrulev2 = size:50%,class:^(org.gnome.Nautilus)$ # windowrulev2 = nomaxsize,class:^(org.gnome.Nautilus)$ ```

Bug or Regression?

Bug

Description

Hi Hyprland! I guess it's Hyprland's issues. It happens about 5-10 times a month. Regardless of the commands running. I also thought it was from updates (sudo pacman -Syu), when I had to restore archlinux 3 times because of this problem. And all this is very harmful to my work. This bug appeared a couple of times before important calls. and right now, this bug has reappeared. Due to the fact that it has become very common, I was forced to write here. I understand that I could have written earlier, but I'm sorry, I was busy moving and working.

I tried searching the logs but didn't find anything special. I am ready to provide any log files upon request.

Cheers! ✨

How to reproduce

Just usual using. My daily routine programs:

Crash reports, logs, images, videos

hyprlandCrashReport2358.txt

Thanks for @kazz for screencast of bug.

https://github.com/hyprwm/Hyprland/assets/31704887/3ca3ac19-1643-4bed-8d6b-b3a363805486

vaxerski commented 5 months ago

can you test on git?

Besides, this does not look like a kernel panic to me? You attached a crash report (sure, hyprland crashes) but nothing else would suggest a kernel panic.

If it's frozen (as seen on the recording) then how did you get a crash report?

What is exactly the problem here? the title, description, and video don't match together

letavocado commented 5 months ago

Hi @vaxerski! Sorry for disinformation. This crash report is not related for this bug. I've attached it, cause it was latest exist on system when some crash was happened earlier (not sure which one).

If it's frozen (as seen on the recording) then how did you get a crash report?

No crash report exist for this type of bug.

What is exactly the problem here? the title, description, and video don't match together

You right, this bug not similar for regular kernel panic error, where black screen with kernel panic error message.

Suddenly everything freezes on the last frame and the caps lock just blinking. The system does not respond to anything except holding the power off button for a long time. Nor mouse, nor keyboard doesn't respond.

can you test on git?

I'll try it bit later.

Cheers! :sparkles:

vaxerski commented 5 months ago

if everything freezes, then ssh into your frozen machine, do sudo gdb attach $(pidof Hyprland), get to the (gdb) prompt (gdb might ask a few questions about symbols, just say yes) and provide the output of bt -full

foi commented 5 months ago

I also had this issue (v0.40.0, kernel 6.6) but this usually happened at shutdown, i don't exactly know what was the reason, but upgrade to the latest git version of Hyprland and kernel 6.9 solved this issue

letavocado commented 5 months ago

Thank you @vaxerski! I need a time for that. Currently I have only one machine. I'll come back later with updates, using your instruction for debugging. If anyone has two machines and this bug, please help.

Hi @foi! Thank you for your feedback, it's really important for us. You right about shutdown problem. I also have met this bug several times at shutdown too.

Usually it happens on (IMHO):

foi commented 5 months ago

It repeats at shutdown with latest hyprland and kernel πŸ˜΅β€πŸ’« but no so often as was with previous ones

letavocado commented 5 months ago

Now it's quite better for me. No panic and no dance whole week. Β―\(ツ)/Β― :grinning:

letavocado commented 5 months ago

@foi have you tried to connect via ssh?

foi commented 5 months ago

@foi have you tried to connect via ssh?

I wil try it next time

But I suppose it will be unsuccessful

NyanMaths commented 4 months ago

@letavocado do you have a nvidia GPU ? I had the exact same issue on the exact same point of upgrades and installations (reloading system manager configuration) for months. Seems like it was related in fact to a corruption (or someting else, dunno) of nvidia after putting the computer to sleep and trying to reload system manager config. I "fixed" it by switching to nvidia-open and crying for getting my GPU nuked everytime I wake my computer, but at least no more freezes. I also disabled some security features in the kernel and never got a kernel panic again for now ; I had multiples a day even on fresh installation. Here are my sussy kernel params to achieve "stability" : split_lock_detect=off ibt=off nvidia_drm.modeset=1 nvidia_drm.fbdev=1 Hope it helps !

letavocado commented 4 months ago

Hi @NyanMaths! Thank you for feedback!

My boot params is loglevel=3 quiet nvidia_drm.modeset=1 nvidia_drm.fbdev=1 i915.enable_guc=3 i915.enable_fbc=1

Yes, I'm on green gpu, Nvidia GPU:

CPU: Intel(R) Core(TM) i9-10885H (16) @ 5.30 GHz
GPU 1: NVIDIA GeForce RTX 2060 Max-Q [Discrete]
GPU 2: Intel UHD Graphics @ 1.25 GHz [Integrated]
❯cat /etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1 fbdev=1
❯ cat /etc/modprobe.d/disable-nouveau.conf
blacklist nouveau
options nouveau modeset=0
❯ cat /etc/modprobe.d/nvidia-pm.conf
options nvidia "NVreg_UsePageAttributeTable=1"
options nvidia "NVreg_DynamicPowerManagement=0x02"
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp

You right, there is maybe some wake up problem after suspend related to Nvidia proprietary driver.

❯ sudo systemctl status nvidia-suspend.service nvidia-hibernate.service nvidia-resume.service nvidia-persistenced.service nvidia-powerd.service

β—‹ nvidia-suspend.service - NVIDIA system suspend actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: disabled)
     Active: inactive (dead)

β—‹ nvidia-hibernate.service - NVIDIA system hibernate actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: disabled)
     Active: inactive (dead)

β—‹ nvidia-resume.service - NVIDIA system resume actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: disabled)
     Active: inactive (dead)

● nvidia-persistenced.service - NVIDIA Persistence Daemon
     Loaded: loaded (/usr/lib/systemd/system/nvidia-persistenced.service; enabled; preset: disabled)
     Active: active (running) since Sat 2024-06-15 14:49:13 +05; 12min ago
    Process: 873 ExecStart=/usr/bin/nvidia-persistenced --user nvidia-persistenced (code=exited, status=0/SUCCESS)
   Main PID: 877 (nvidia-persiste)
      Tasks: 1 (limit: 38067)
     Memory: 984.0K (peak: 1.8M)
        CPU: 7ms
     CGroup: /system.slice/nvidia-persistenced.service
             └─877 /usr/bin/nvidia-persistenced --user nvidia-persistenced

Jun 15 14:49:13 dell-xps systemd[1]: Starting NVIDIA Persistence Daemon...
Jun 15 14:49:13 dell-xps nvidia-persistenced[877]: Started (877)
Jun 15 14:49:13 dell-xps systemd[1]: Started NVIDIA Persistence Daemon.

β—‹ nvidia-powerd.service - nvidia-powerd service
     Loaded: loaded (/usr/lib/systemd/system/nvidia-powerd.service; disabled; preset: disabled)
     Active: inactive (dead)

I can't use nvidia-open cause it has problem with suspend. Idk, maybe it resolved, but this thread says no. Correct me please, if I'm wrong.

Cheers! ✨

NyanMaths commented 4 months ago

My GPU got nuked no earlier than yesterday after waking up on nvidia-open-beta-dkms, so I would unfortunately tend to confirm your fear... Nvidia is planning to make their open kernel driver default for the 560 release, maybe this will be fixed if they are so confident about this. I am deeply delusional

Update : seems like it works since the 555 beta, with minor issues like weird artifacts sometimes. More details on this issue : https://github.com/NVIDIA/open-gpu-kernel-modules/issues/472 I re-enabled suspend, resume and hibernate services and it works like a charm for now with modeset, fbdev and NVreg_PreserveVideoMemoryAllocations enabled.

letavocado commented 4 months ago

Hey @NyanMaths! Hope in NVK. Thank you for your feedback!

Update : seems like it works since the 555 beta, with minor issues like weird artifacts sometimes. More details on this issue : https://github.com/NVIDIA/open-gpu-kernel-modules/issues/472 I re-enabled suspend, resume and hibernate services and it works like a charm for now with modeset, fbdev and NVreg_PreserveVideoMemoryAllocations enabled.

Oh really? Sounds good! Will test it very later.

Cheers! ✨

NyanMaths commented 4 months ago

I have been testing nvidia-open for two/three weeks now and the only issues I faced are :

Not a single kernel panic the whole time even when reloading system manager configuration after waking, solid. Even zink works flawlessly in my little test time.

My kernel cmdline is quiet split_lock_detect=off ibt=off modprobe.blacklist=nouveau nvidia_drm.modeset=1 nvidia_drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=0 nvidia.NVreg_PreserveVideoMemoryAllocations=1 My /etc/mkinitcpio.conf looks like this :

MODULES=(i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)

BINARIES=()

FILES=()

HOOKS=(base udev autodetect modconf block filesystems kms fsck numlock)

And I use linux-zen if this can make a difference. In my experience, no, but who knows...

I think this issue can be closed as it is not related to Hyprland in the first place and let's hope nvidia finally fixes its poorly written proprietary kernelspace drivers or expand hardware support of nvidia-open.

letavocado commented 4 months ago

Hey @NyanMaths! Thank you for your testing and feedback. I'm also not facing any issues from time when I opened this issues (lol). Only meet 1-2 sec freezes two time.

Hey @foi. What about your experience? I'll close if it okay on your side too.

Cheers! ✨

foi commented 4 months ago

Hey @NyanMaths! Thank you for your testing and feedback. I'm also not facing any issues from time when I opened this issues (lol). Only meet 1-2 sec freezes two time.

Hey @foi. What about your experience? I'll close if it okay on your side too.

Cheers! ✨

Hello! I have no issues either; everything is OK now.

letavocado commented 3 months ago

Hey @foi, @NyanMaths. After last system upgrade, this bug come back again. Meet this bug two times: first was on shutdown, second was when using tmux (just coding).

foi commented 3 months ago

@letavocado Hi! I have no issues on the latest hyprland-git

NyanMaths commented 3 months ago

So... you encounter that using open or proprietary kernel modules ? what was the faulty upgrade ?