How to make X server stop in case of kernel panic?

Solution 1:

If you do kernel experiments, how about using kdump? That would give you more than just a fleeting glimpse of a second or two.

See https://ubuntu.com/server/docs/kernel-crash-dump