when your boot doesn't get far enough to use termbin this is the next next best thing . remember, nobody wants a smartphone picture of a monitor with logs on it
post
The QR code contains the panic stack trace text, directly encoded into a URL and a parameter. When you scan it, it goes to the website, which takes the parameter, decodes it and displays it as plain text.
Personally, I think it's a terrible idea compared to just showing the logs, because now you need internet and a phone with a camera to read a kernel panic log.
Edit: yes, it was Systemd who implemented it.
Okay, great. I don’t have a smartphone. So I cannot see the error log anymore.
The most important info is at the bottom of the screen. I also believe you can turn this feature off if you prefer plain text
let's submit a patch to display error log as text too on the bluescreen
Hey, I happened to have a handful of smartphones that still have an ok battery and just collect dust in the shelf.
If you want me to ship one to you, pm your address.
Gonna help my linux buddies so that they can scan QR codes if their OS crashes.
(not sarcasm)
I should've tried to switch ttys, might have helped.
Switching ttys wouldn't have done anything. The kernel logs are usually saved to efi_pstore (or sometimes erst) by default though.
Edit: you can also set drm.panic_screen=kmsg as a kernel parameter to print the logs instead of the QR.
👍
Drm panic provides different panic screens. The default is "user" which will display a simple friendly message telling the user to reboot the computer. But for kernel developers, you can also set it to "kmsg", to see the last kmsg lines (so this is equivalent to the current fbcon). You can select the panic screen in Kconfig, or as a module parameter (drm.panic_screen=user) or at runtime with "echo -n kmsg > /sys/module/drm/parameters/panic_screen"
(source)
In other words, cat /sys/module/drm/parameters/panic_screen will show you what the current status is.
let’s submit a patch to display error log as text too on the bluescreen
can that dense code be scanned with a phone? pretty sure mine can't
Did you maybe try to press Esc?
When it shows the pretty boot logo, you can do that to see the logs, so maybe it works here as well...
I never scan, just check the journal for errors from previous boot after restart. Most recent was my pcie low power shenanigans with my onboard WiFi. Simple fix and now its working /no bsod since.
"This just in - running commands that induce a kernel panic causes a kernel panic, we'll have more at 11."
The QR code is pretty dense , probably plenty of space to include the panic reason and stack trace.
Edit: For those of you that don't know, exiting or crashing the init process (PID 1) causes the kernel to panic. Essentially it's the, "Well what the hell do I do now if I have no processes to serve?" response.
Still, a QR code is a marked improvement on the "Something went wrong :(" message of recent Windows releases.
“This just in - running commands that induce a kernel panic causes a kernel panic, we’ll have more at 11.”
What's with the snark? I'm just sharing what is funny (to me): that somebody gave a Linux kernel panic this aesthetic, referencing a familiar "feature" of a less loved OS.
On lemmy you'll allways find the weirdos and elitists that have been pushed out of the mainstream.
The linux equivalent of bsod has been introduced pretty recently, so it's normal for few people to have experienced it yet.
Also somewhat relevant xkcd: https://xkcd.com/1053/
I get what you mean but this is not fediverse-specific.
I have meanwhile found out that the screen above was not produced by systemd but rather by the drm_panic kernel module. Makes sense since systemd wasn't running when it happened.
Next time it happens (hopefully not) I'll try to switch ttys, maybe the logs are still visible, white on black.
It's a subculture phenomenon, and lemmy linux is a subculture of a subculture, so it's more intense.
I've been a moderator on some linux reddits in the past. And the less users there were in the sub, the more negativity, rudeness, gatekeeping and other toxicity was there. But ofc what I say is just an opinion based on my subjective experience so idk.
The linux kernel bsod is even younger than that, august 2024 iirc.
all 38 comments