Skip to content

Conversation

@moraby256
Copy link

This PR addresses persistent and widely reported suspend/resume failures and desktop freezes experienced by users running Omarchy with NVIDIA GPUs in the default Hyprland (Wayland) environment.

The fix required integrating a combination of three critical, validated configuration changes to ensure the GPU state is correctly saved and restored during system sleep.


1. Driver Configuration (install/config/hardware/nvidia.sh)

  • Correct UKI Rebuild Command: Replaces the generic Arch command sudo mkinitcpio -P with the Omarchy-specific tool sudo limine-update for correct Unified Kernel Image (UKI) generation.
  • Modprobe Options: Ensures the essential 'modeset=1' is configured for stability.

2. Kernel Parameter (via bin/omarchy-refresh-limine)

  • Adds the recommended kernel parameter: KERNEL_CMDLINE=mem_sleep_default=deep. This forces the system to use the more reliable S3 deep sleep state.

This fix was developed and tested successfully against Omarchy running a recent NVIDIA GPU configuration and fully resolves the stability issues.

This PR addresses persistent and widely reported suspend/resume failures and desktop freezes experienced by users running Omarchy with NVIDIA GPUs in the default Hyprland (Wayland) environment.

The fix required integrating a combination of three critical, validated configuration changes to ensure the GPU state is correctly saved and restored during system sleep.

1. Driver Configuration (install/config/hardware/nvidia.sh):
   - Correct UKI Rebuild Command: Replaces 'sudo mkinitcpio -P' with 'sudo limine-update'.
   - Modprobe Options: Ensures the essential 'modeset=1' is configured for stability.

2. Kernel Parameter (bin/omarchy-refresh-limine):
   - Adds the recommended kernel parameter: KERNEL_CMDLINE=mem_sleep_default=deep.

This fix was developed and tested successfully against Omarchy running a recent NVIDIA GPU configuration.
term_background_bright: 24283b
# NVIDIA Suspend Fix: Add Kernel sleep mode parameter
KERNEL_CMDLINE=mem_sleep_default=deep
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is only a fix for nvidia, it needs to be in the install/config/hardware/nvidia.sh script. Otherwise it'll obvious affect all installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants