When using the on-demand mode on my GTX1060 Max-Q, CS:GO causes a system hang after few minutes of playing (less than 5min). When going back to the mode NVIDIA (performance mode), the game runs fine.
I am using gamemode to boost performances. It can also enable the GPU while in the on-demand mode by setting the GAMEMODERUNEXEC environment variable. To enable it, I added the following lines in my .profile:
if [ $(prime-select query) == "on-demand" ] ; then
export GAMEMODERUNEXEC="env __NV_PRIME_RENDER_OFFLOAD=1 env __GLX_VENDOR_LIBRARY_NAME=nvidia env __VK_LAYER_NV_optimus=NVIDIA_only"
fi
EDIT: Disabling gamemode doesn’t change anything, the system still freezes.
CS:GO is the only game doing this. I would report it to Valve but I doubt a game could cause a full system hang, so my guess is the problem is related the the driver. I tried disabling the Steam overlay but nothing changed.
The bug happens both on 470 and 495 drivers.
Is anyone else experiencing this issue? What can I do to fix this or to send a bug report to the right place?
You’re running it with “nojoy” option, how do you expect to have fun?
Joking aside, please run nvidia-bug-report.sh as root after a freeze and attach the resulting nvidia-bug-report.log.gz file to your post.
You’re running it with “nojoy” option, how do you expect to have fun?
Damn I’ve been doing it wrong the whole time!
Joking aside, please run nvidia-bug-report.sh as root after a freeze and attach the resulting nvidia-bug-report.log.gz file to your post
Thanks for your response! I updated the main post. In case I wasn’t clear, when I say system hang, I mean the whole screen freezes, sound stops, fans slow down, and nothing responds so I must hard reboot the machine. So the report I uploaded is from a hard reboot after the freeze.
on freezes. Though I don’t know whether this is the reason for the freezes or just a symptom. Did you run a different distro before where this would not happen?
I never used the on-demand for CS:GO before because I had an external monitor attached (which only works in nvidia mode), and I never tried a different distro on this computer.
Don’t know, there wasn’t much info to be found and I still don’t know if this is the reason for the freezes or only an additional message in case of freezes, like said.
I tried with the kernel 5.13 from linux-image-generic-hwe-20.04-edge with corresponding nvidia drivers (linux-modules-nvidia-495-generic-hwe-20.04-edge), and the problem still occurs.