Skip to content

Commit

Permalink
chore: enable NVreg_PreserveVideoMemoryAllocations and sysd power units
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Aug 3, 2024
1 parent c3f5d48 commit bb5f79e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
options nvidia NVreg_PreserveVideoMemoryAllocations=1
9 changes: 9 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ stages:
- libnvidia-fbc1
- nvidia-container-toolkit

- name: nvidia-sysd-units
type: shell
commands:
- mkdir -p /etc/systemd/system/systemd-suspend.service.wants
- mkdir -p /etc/systemd/system/systemd-hibernate.service.wants
- ln -s /usr/lib/systemd/system/nvidia-suspend.service /etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service
- ln -s /usr/lib/systemd/system/nvidia-hibernate.service /etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service
- ln -s /usr/lib/systemd/system/nvidia-resume.service /etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service

- name: extra-utilities
type: apt
source:
Expand Down

0 comments on commit bb5f79e

Please sign in to comment.