# Unable to set nvidia kernel module parameters

**URL:** <https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306>\
**Category:** Linux\
**Tags:** kernel, linux\
**Created:** [December 8, 2020, 12:56am UTC](https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306 "2020-12-08T00:56:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nejrobbins](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@nejrobbins](https://forums.developer.nvidia.com/u/nejrobbins)\
**Post date:** [December 8, 2020, 12:56am UTC](https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306/1 "2020-12-08T00:56:23Z")

</div>

I’m trying to follow this guide [Chapter&nbsp;21.&nbsp;Configuring Power Management Support](https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html) to enable saving the GPU video memory during suspend. It suggests to enable `NVreg_PreserveVideoMemoryAllocations=1`.  
So, I have created /etc/modprobe.d/nvidia-power-management.conf with the following contents:

`options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/mnt/vault/nvidia-tmp`.

I have also added FILES=(/etc/modprobe.d/nvidia-power-management.conf) to mkinitcpio.conf, and have enabled all the modules for KMS: MODULES=(nvidia nvidia\_modeset nvidia\_uvm nvidia\_drm) along with the proper kernel parameter.

However, when I check sudo systool -vm nvidia, I only see

> Parameters:  
> nv\_cap\_enable\_devfs = “1”

What can I do to make sure that these parameters are set properly? I have attached a nvidia-bug-report.sh output if it can be helpful. Thanks.

For the bug report I ran sudo systemctl suspend in a TTY, then resumed and switched back to X and ran the bug report. [nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/Estj8I7dIJEvKVvmiVBfIgjoA5.gz) (505.4 KB)

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [December 16, 2020, 11:01am UTC](https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306/2 "2020-12-16T11:01:54Z")

</div>

Use

```auto
cat /proc/driver/nvidia/params

```

to see the current settings.  
In general, you’ll also have to make the nvidia suspend/resume units work.
