final edit: You want real logs instead? add this to your kernel command: drm.panic_screen=kmsg


Kinda funny, kinda neat.

I have no idea what the QR-code might reveal (I could not read it from this picture), so I pixelised it just to be sure.

FWIW I know exactly what happened and did not panic. To reproduce, boot your device with init=/bin/sh, then type exit.

CachyOS


The picture above is generated by Drm panic which is part of the kernel itself, or maybe a separate module. The data in the QR code is the kmsg log.

Not systemd, which wasn’t running when that happened.

And it’s been around for years; I guess I haven’t had a kernel panic in a long time.

    • LeLachs@lemmy.ml
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 days ago

      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

    • mioA
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      3 days ago

      let’s submit a patch to display error log as text too on the bluescreen

    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 days ago

      Hey, I happened to have a handful of old 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)

      • SteveTech@aussie.zone
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 days ago

        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.

        • A_norny_mousse@piefed.zipOP
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          2 days ago

          👍

          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.

    • mioA
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      3 days ago

      deleted by creator