I sometimes get kernel panic - when that happens caps lock start blinking. However when this happens while I am in X server, the image just stuck, including mouse cursor and everything.
Is there any way to switch back to console or display the contents of panic message? Is there any way to compile kernel so that it's capable of displaying kernel panic messages even in this situation?
Shortcuts like ctrl + alt + f1 etc don't work in kernel panic.
kexec
to be executed when kernel panic occurs. The link above explains what is a kernel panic (that you already know) and gives some info about escaping in kernel panic situations. – George Vasiliou Feb 01 '17 at 07:57