News: 0001475492

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux's DRM Panic "Screen of Death" Sees Patches For QR Code Error Messages

([Linux Kernel] 4 Hours Ago DRM Panic + QR Codes)


Linux 6.10 introduces [1]DRM Panic for providing a new panic screen in case of kernel errors and situations where the VT support may be disabled. This new kernel functionality is [2]akin to Windows' Blue Screen of Death or thanks to open-source can be adapted to take on other forms such as [3]a black screen of death and conveying [4]monochrome logos rather than ASCII art . New patches provide for the ability to show QR codes of error messages within the DRM Panic screens.

As kernel error messages can be quite lengthy especially if including a stack trace and at times not even fitting the contents within the screen, patches posted today allow for condensing kernel error messages into QR codes. This can make it easy to capture the error message easily with a smartphone for later analysis or easily attaching to a bug report, etc.

This isn't the first time using QR codes for kernel error messages has been talked about... Ten years ago I wrote about [5]kernel developers looking at QR codes for error messages . Windows and other operating systems have also explored using QR codes within their error messages.

Jocelyn Falempe of Red Hat today posted the set of four patches for implementing a "qr_code" panic screen. Making this all the more interesting is the DRM Panic QR code handler being written within the Rust programming language. Jocelyn commented on the reasoning behind writing this QR code generator in Rust, " There is no particular reason to do it in rust, I just wanted to learn rust, and see if it can work in the kernel. "

Here are some examples from Jocelyn Falempe of the QR code DRM Panic support in action:

The code is now under review on [6]the mailing list for those interested.



[1] https://www.phoronix.com/news/Linux-6.10-DRM-Panic-Handler

[2] https://www.phoronix.com/news/Linux-DRM-Panic-BSoD-Picture

[3] https://www.phoronix.com/news/Linux-Black-BSoD

[4] https://www.phoronix.com/news/DRM-Panic-Monochrome-Logo

[5] https://www.phoronix.com/news/MTY1NjI

[6] https://lore.kernel.org/rust-for-linux/20240703154309.426867-1-jfalempe@redhat.com/



NotMine999

Nuc!eoN

nerdopolis

V1tol

tildearrow

ihatemichael

JEBjames

ihatemichael

alpha_one_x86

I'm not offering myself as an example; every life evolves by its own laws.