Linux's New DRM Panic "Blue Screen of Death" In Action (www.phoronix.com)
from ylai@lemmy.ml to linux@lemmy.ml on 16 Jun 2024 20:17
https://lemmy.ml/post/16955464

#linux

threaded - newest

autotldr@lemmings.world on 16 Jun 2024 20:20 next collapse

This is the best summary I could come up with:


After being talked about for years of DRM panic handling and coming with a “Blue Screen of Death” solution for DRM/KMS drivers, Linux 6.10 is introducing a new DRM panic handler infrastructure for being able to display a message when a panic occurs.

With Linux 6.10 the initial DRM Panic code has landed as well as wiring up the DRM/KMS driver support for the SimpleDRM, MGAG200, IMX, and AST drivers.

For those curious what DRM Panic can look like in action, Red Hat engineer Javier Martinez Canillas shared a photo of the DRM Panic “Blue Screen of Death” in action.

A BeaglePlay single board computer was used and Javier posted to Mastodon of an example implementation:

It could be extended in the future with some operating systems having looked at QR codes for kernel error messages and other efforts for presenting more technical information while still being user-friendly.

On Linux 6.10+ with platforms having the DRM Panic driver support, this “Blue Screen of Death” functionality can be tested via a route such as echo c > /proc/sysrq-trigger.


The original article contains 231 words, the summary contains 177 words. Saved 23%. I’m a bot and I’m open source!

kenkenken@sh.itjust.works on 16 Jun 2024 20:48 next collapse

It is not informative yet, but I like that it’s blue. It’s a quite recognizable color. Windows made it recognizable by having a lot of BSODs. People are asking why it couldn’t be just black, but with non-black BSOD one can recognize it instantly without reading the text.

ylai@lemmy.ml on 16 Jun 2024 20:57 collapse

Just for reference, a few years back, (ex-Microsoft) David Plummer had this historical dive into the (MIPS) origin of the blue color, and how Windows is not blue anymore: youtu.be/KgqJJECQQH0?t=780

PipedLinkBot@feddit.rocks on 16 Jun 2024 20:57 next collapse

Here is an alternative Piped link(s):

https://piped.video/KgqJJECQQH0?t=780

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source; check me out at GitHub.

kenkenken@sh.itjust.works on 16 Jun 2024 21:37 next collapse

Oh, thanks! I don’t know much about the current state of Windows.

princessnorah@lemmy.blahaj.zone on 17 Jun 2024 10:56 collapse

Hey @Thorned_Rose@sh.itjust.works the last chapter of this video is called redscreen, are you David Plummer? lol

verstra@programming.dev on 16 Jun 2024 21:02 next collapse

What’s DRM in this context? Surely linux kernel doesn’t do digital rights management?

bishoponarope@lemmy.world on 16 Jun 2024 21:12 next collapse

Direct Rendering Manager

jinwk00@lemm.ee on 16 Jun 2024 21:15 next collapse

Direct Rendering Manager. Part of Linux kernel to communicate with GPUs.

DmMacniel@feddit.de on 16 Jun 2024 21:53 next collapse

Actually there is DRM in the kernel thanks to the HDMI blobs.

5714@lemmy.dbzer0.com on 16 Jun 2024 22:59 next collapse

How do they handle the naming confusion?

potatopotato@sh.itjust.works on 17 Jun 2024 02:11 collapse

Fuck HDMI. The committee makes doing custom hardware near impossible unless you’re a mega corp

Xephonian@retrolemmy.com on 17 Jun 2024 17:17 collapse

It was made by Hollywood for Hollywood.

possiblylinux127@lemmy.zip on 16 Jun 2024 21:54 next collapse

DRM came before DRM

grue@lemmy.world on 17 Jun 2024 05:18 collapse

Doesn’t matter; I still get triggered by it every time anyway.

[deleted] on 16 Jun 2024 22:14 next collapse

.

fhein@lemmy.world on 17 Jun 2024 05:46 collapse

It ought to be mandatory to write this out whenever talking about Linux. I’ve seen more than one person bash Linux in a public forum “because it has digital rights management built into the kernel” after they’ve misinterpreted some news headline.

avidamoeba@lemmy.ca on 16 Jun 2024 21:24 next collapse

It’s beautiful. I assume they’ll dump the kernel oops log if there’s any.

julianh@lemm.ee on 16 Jun 2024 21:29 next collapse

Of all the things to take from windows, this is one of the better ones. Especially if it gets more info in the future. For less tech-literate users, a screen like this is a lot better than a hard to read dump to a terminal.

possiblylinux127@lemmy.zip on 16 Jun 2024 21:54 collapse

They should still include more debugging into.

Sekoia@lemmy.blahaj.zone on 16 Jun 2024 22:46 collapse

I’d suggest some kind of “press this key to view debug information” text (or make it documented but not visible, to avoid people just pressing whatever button is written on the screen)

possiblylinux127@lemmy.zip on 17 Jun 2024 00:48 next collapse

Why? People aren’t idiots. If they don’t know what it means they can look it up or ask for help.

kitnaht@lemmy.world on 17 Jun 2024 02:37 next collapse

People aren’t idiots. If they don’t know what it means they can look it up or ask for help.

Flip that. People are idiots. If they don’t know what something means, they won’t look it up. Not Desktop Linux users today but, definitely normies if Linux ever comes on a system they buy in the future.

bastion@feddit.nl on 17 Jun 2024 18:58 collapse

Because for the bulk of users, unless they are power users, all they need to know is that things didn’t work.

Things actually useful to have on the BSOD:

  • distro-specific instructions for submitting a bug report
  • option to reboot
  • option to show debug info
  • option to show a qr code that submits a bug report
  • and, if configured by the distro or system admin, debug info
possiblylinux127@lemmy.zip on 17 Jun 2024 20:07 collapse

How are you going to use your computer when the kernel panics. That’s kind of the problem, it panicked. It would be nice if it rebooted after a minute or two

bastion@feddit.nl on 17 Jun 2024 20:26 collapse

Any information given would obviously be for use with another device.

QR code, for example. These are instructions or information about the crash, not links (except the QR code, which would obviously be read by another device).

MondayToFriday@lemmy.ca on 18 Jun 2024 15:16 collapse

How would a kernel that has already crashed handle keypresses?

Sekoia@lemmy.blahaj.zone on 18 Jun 2024 16:02 collapse

I’m not an OS dev, I have no idea how stuff this low-level works.

kbal@fedia.io on 16 Jun 2024 21:49 next collapse

The kernel art department really failed us here. Instead of a blue screen of death we could've had, I don't know, literally any other colour. I'd have gone with the Puce Screen of Panic.

possiblylinux127@lemmy.zip on 16 Jun 2024 21:53 next collapse

How about black on white with a clear stack trace visible

drwho@beehaw.org on 17 Jun 2024 17:43 collapse

That would be far too helpful.

QuazarOmega@lemy.lol on 16 Jun 2024 22:00 next collapse

Puce Screen of Panic

That’s class

mindbleach@sh.itjust.works on 16 Jun 2024 23:57 collapse

Guru Meditation red.

Alternately: yellow-and-black ASCII approximating Evangelion’s ALART.

possiblylinux127@lemmy.zip on 16 Jun 2024 21:51 next collapse

They should make it black instead.

[deleted] on 16 Jun 2024 22:58 next collapse

.

possiblylinux127@lemmy.zip on 17 Jun 2024 00:47 collapse

Maybe purple with yellow text

ryannathans@aussie.zone on 17 Jun 2024 00:39 collapse

I would have gone with red… red = error

possiblylinux127@lemmy.zip on 17 Jun 2024 00:47 collapse

That would make it just as hard to read. Black on white offers the most contrast

ryannathans@aussie.zone on 17 Jun 2024 08:21 collapse

Gold on purple offers more iirc

Thorned_Rose@sh.itjust.works on 16 Jun 2024 23:20 next collapse

Reminds me of my Windows XP days when I used to customise the hell out of everything I could… custom boot screen… and yes custom BSOD. Which I switched to red 🟥❗ One day my PC RSODs in front of a family member and he said, “Oh shit, that must be really bad if it’s red instead of blue!” 😂

ramble81@lemm.ee on 17 Jun 2024 02:02 collapse

VMware went with Purple for their hypervisors so you get a PSOD instead. Always was fun when you’d hit the console for a server and get greeted by that instead of the yellow and black split screen.

princessnorah@lemmy.blahaj.zone on 17 Jun 2024 10:53 collapse

Ahh, that sweet yellow and black split screen 😌

savvywolf@pawb.social on 16 Jun 2024 23:25 next collapse

Did they have to go with such a loud shade of blue? It would look so much better on the eyes if it was a nice deep dark blue.

Tbh I don’t even know why it needs to be blue or any colour at all.

possiblylinux127@lemmy.zip on 17 Jun 2024 00:51 next collapse

Exactly

Black with big white text would be nice

KrapKake@lemmy.world on 17 Jun 2024 01:32 next collapse

Agree, the old windows blue screen would sear your retinas, could definitely be tuned down a bit.

ShortN0te@lemmy.ml on 17 Jun 2024 15:09 collapse

Everyone knows what the blue screen is. This makes the implication when the screen does appear really obvious.

No need to reinvent the wheel.

cmnybo@discuss.tchncs.de on 16 Jun 2024 23:40 next collapse

It needs more information about what went wrong. That’s about as useful as a windows BSOD.

yesman@lemmy.world on 17 Jun 2024 00:44 next collapse

Once again, Linux is late with a feature that Microsoft not only has had for years, but is famous for.

possiblylinux127@lemmy.zip on 17 Jun 2024 00:50 next collapse

Windows is famous in all the wrong ways

phoenixz@lemmy.ca on 17 Jun 2024 01:10 next collapse

Not sure if you’re coming or simping M$

smileyhead@discuss.tchncs.de on 17 Jun 2024 07:52 collapse

It’s normal for things to implement stuff from each other? 🤷

Microsoft is late with many things too. And I don’t nessesarly think a feature here and there is what makes a good OS, the base stuff is more important.

01189998819991197253@infosec.pub on 17 Jun 2024 01:54 next collapse

A QR code created from the actual fault text would be super helpful. That way we can scan it and get the full error message (details and all) on another device without having to snap a picture or something. But not like windows does it, where it’s a link to a defunct page. I’m taking about the actual text transcoded into a QR code.

kurumin@linux.community on 17 Jun 2024 05:46 next collapse

And windows shows it for a few seconds, never enough time to pick the phone.

the_crotch@sh.itjust.works on 17 Jun 2024 11:05 next collapse

You have to disable auto reboot on bsod

Otherwise_Direction7@monyet.cc on 18 Jun 2024 16:51 collapse

This should be the default option when the blue screen happened, giving users chance to scan the QR and find out about the causes before they can try restarting their PC

the_crotch@sh.itjust.works on 19 Jun 2024 09:58 collapse

Most users don’t want to immediately troubleshoot every error, they want to get back to work. The ones that do know how to find it in event viewer or the crash dumps or disable auto reboot on bsod.

01189998819991197253@infosec.pub on 18 Jun 2024 00:11 collapse

Agreed. Probably the only One of the good thing about the win98 BSOD is that it crashed/froze along with the computer, and the PC required a hard reboot. Yeah, I know, not intentional, but it allowed me to fully read the message.

Edit: crossout

SteveTech@programming.dev on 17 Jun 2024 06:45 collapse

I believe the main contributor for drm_panic wants to add one eventually. Here’s what it might look like:

<img alt="DRM panic handler panic screenshot" src="https://gitlab.com/kdj0c/panic_report/uploads/3f49cca15a7bf132b3c56dfcf0381db6/dmr_panic_qr_code_demo.png"> gitlab.com/kdj0c/panic_report/-/issues/1

Link if you can’t scan

Also it looks like the colours are configurable at compile time (with white on black default).

Brickardo@feddit.nl on 17 Jun 2024 15:14 next collapse

Ah man, I was hoping I’d be rickrolled

01189998819991197253@infosec.pub on 18 Jun 2024 00:09 collapse

This looks EXACTLY as I imagined!

TheBroodian@hexbear.net on 17 Jun 2024 10:28 next collapse

What does drm mean in this context?

boonhet@lemm.ee on 17 Jun 2024 10:36 collapse

Direct Rendering Manager I believe

biribiri11@lemmy.ml on 17 Jun 2024 19:40 next collapse

Also see: systemd-bsod. Generates QR codes, too. I think blue for userspace boot-time errors and black for kernel stuff might be nice.

nawordar@lemmy.ml on 17 Jun 2024 19:59 collapse

I thought for a minute that Linux now panics when trying to play DRM’d content