pedro00dk / nvidia-exec

GPU switching without login out for Nvidia Optimus laptops under Linux
https://aur.archlinux.org/packages/nvidia-exec
GNU General Public License v3.0
124 stars 9 forks source link

kernel tries to enable nvlink every second, audio stutters #32

Open sluedecke opened 1 year ago

sluedecke commented 1 year ago

I have a recent ASUS ROG Flow X16 running with arch linux and I have set it up to use nvidia-exec in order to keep power consumption in check.

The machine starts fine with the gGPU disabled and I can use nvidia-exec for all games/applications.

But: right after booting with the dGPU disabled, the nvidia-dkms kernel module repeatedly (every second) tries to enable nvidia-nvlink. Every attempt makes my audio stutter, every attempt fails.

When I do nvx on, stuttering stops and so do the error messages in the journal. I can then turn the dGPU off again with npx off and everything seems to be perfect.

While I write this, I have the gut feeling that this is probably an issue with the nvidia-dkms module, right? Or is it something you can fix with small effort?

ia74 commented 1 month ago

not sure if you're still having this issue given the date.. however, if still unresolved, the first step i recommend you check is if nvidia-persistenced.service and nvidia-powerd.service are disabled with systemctl status.