Skip to content

Conversation

@killeik
Copy link
Contributor

@killeik killeik commented Oct 31, 2025

So, in #1417, I discovered that some shenanigans are needed to enable hibernation for Nvidia users.
Somehow I found myself refactoring this script :D

  1. Installs headers to all installed kernels.
  2. Adds modules to a separate file /etc/mkinitcpio.conf.d/nvidia.conf instead of using sed on /etc/mkinitcpio.conf.
  3. Uses limine-mkinitcpio instead of mkinitcpio -P (this removes another interactive confirmation).
  4. Creates env = for nvidia in envs.conf instead of hyprland.conf.
  5. Exits early, so all the script not indented
  6. Overall improvements

I also added migration to standardize the configurations for already existing users.

@Kn0ax, as the author of the script, please let me know if you have any concerns.

@Kn0ax
Copy link
Contributor

Kn0ax commented Nov 2, 2025

Hi,
Thanks for taking your time and trying to improve it.

I will have a few comments.

…vidia.conf, backup files before applying changes in the migration
@killeik killeik force-pushed the nvidia-script-refactor branch from fcd5e49 to 7d28df3 Compare November 2, 2025 10:14
@Kn0ax
Copy link
Contributor

Kn0ax commented Nov 2, 2025

i think its ready to merge :)
thanks <3

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.

3 participants