Nvidia display/kernel mode driver has stopped working and recovered succesfully.


As in a subject for over year I was experiencing this issue:
Nvidia display/kernel mode driver has stopped working and recovered succesfully.
Usually after vid_restart.

In my config I use the separate graphics settings for each map. With help comes autoexec_map files. To be able to achieve that after a map is changed/loaded an autoexec_map file contains cvar lck_graphics to load a specific graphics file for current map first and runs vid_restart only once to apply them, then switch cvar lck_graphics content to an "empty" again. That prevents continuous/infinite vid_restart loop.
Script for autoexec_supply.cfg looks like this:

set lck_graphics01 "seta lck_graphics vstr lck_graphics02; r_fastsky 1; cl_noprint 1; exec LoCk/Config/Graphic/#3; cl_noprint 0"
set lck_graphics02 "seta lck_graphics vstr lck_graphics01; echo ^0[^7Graphics Settings for map supply has been Loaded^0]^7"

wait 250
vstr lck_graphics

The Lock/Config/Graphic/#3 pointing to already prepared graphics template file:

//Light A:
seta r_colorbits "16"
seta r_texturebits "16"
seta r_depthbits "24"
seta r_stencilbits "8"
seta r_textureMode "GL_LINEAR_MIPMAP_NEAREST"
seta r_ignorehwgamma "1"
seta r_mapOverBrightBits "1"
seta r_overBrightBits "1"
seta r_intensity "1.5"
//seta r_gamma "3"

set lck_graphics "vstr lck_graphics02"

The script works perfect and for each loaded map you will experience additional vid_restart - which is not big deal.
However the problem was with the nvidia driver. After some version of driver update, I started to experience kernel crash - it occurs sometimes just after additional vid_restart on each map load. I was looking up for the cause. And finally, I managed to solved it out. It looks like the driver desktop color depth needs to be the same as you use in-game (variable: r_colorbits).

To get to driver settings you need to open Nvidia Control Panel:
Nvidia Control Panel/Display/Change Resolution/3. Apply the following settings/Desktop Color depth

I don't know if it's the same about ATi drivers but solution would be the same.

Simple solution. No more crashes.
Hope it will help for those who need it!

Last edit with added graphics template example @ 2019/02/03 23:30.
Unless you share the timing script parts of your cfg fu
do not remember been on cf but thats funny haha :D
never had this kind of issues, ty
cool stuff actually
so was it your sister or not? we left ts yesterday before we could finish our discussion
Back to top