Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 ylai   ( @ylai@lemmy.ml )  to Linux@lemmy.mlEnglish · 2 years ago

Linux's New DRM Panic "Blue Screen of Death" In Action

www.phoronix.com

external-link
message-square
37
link
fedilink
  • cross-posted to:
  • linux@programming.dev
158
external-link

Linux's New DRM Panic "Blue Screen of Death" In Action

www.phoronix.com

 ylai   ( @ylai@lemmy.ml )  to Linux@lemmy.mlEnglish · 2 years ago
message-square
37
link
fedilink
  • cross-posted to:
  • linux@programming.dev
alert-triangle
You must log in or # to comment.
  •  𝕸𝖔𝖘𝖘   ( @01189998819991197253@infosec.pub ) 
    link
    fedilink
    English
    arrow-up
    39
    ·
    2 years ago

    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.

    •  SteveTech   ( @SteveTech@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      27
      ·
      2 years ago

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

      DRM panic handler panic screenshot https://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   ( @Brickardo@feddit.nl ) 
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        Ah man, I was hoping I’d be rickrolled

      •  𝕸𝖔𝖘𝖘   ( @01189998819991197253@infosec.pub ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        This looks EXACTLY as I imagined!

    •  kurumin   ( @kurumin@linux.community ) 
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 years ago

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

      •  𝕸𝖔𝖘𝖘   ( @01189998819991197253@infosec.pub ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        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

  •  verstra   ( @verstra@programming.dev ) 
    link
    fedilink
    arrow-up
    39
    ·
    2 years ago

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

    •  jinwk00   ( @jinwk00@lemm.ee ) 
      link
      fedilink
      English
      arrow-up
      59
      ·
      2 years ago

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

    •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      25
      ·
      2 years ago

      DRM came before DRM

    •  macniel   ( @DmMacniel@feddit.de ) 
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

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

      •  5714   ( @5714@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        How do they handle the naming confusion?

    •  rotopenguin   ( @rotopenguin@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      deleted by creator

  •  Julian   ( @julianh@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    37
    ·
    2 years ago

    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.

    •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 years ago

      They should still include more debugging into.

      •  Sekoia   ( @Sekoia@lemmy.blahaj.zone ) 
        link
        fedilink
        arrow-up
        11
        ·
        2 years ago

        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)

        •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 years ago

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

          •  bastion   ( @bastion@feddit.nl ) 
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            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
            •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 years ago

              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   ( @bastion@feddit.nl ) 
                link
                fedilink
                arrow-up
                2
                ·
                2 years ago

                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   ( @MondayToFriday@lemmy.ca ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          How would a kernel that has already crashed handle keypresses?

          •  Sekoia   ( @Sekoia@lemmy.blahaj.zone ) 
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

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

  •  kbal   ( @kbal@fedia.io ) 
    link
    fedilink
    arrow-up
    22
    ·
    2 years ago

    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.

    •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      16
      ·
      2 years ago

      How about black on white with a clear stack trace visible

      •  The Doctor   ( @drwho@beehaw.org ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        That would be far too helpful.

    •  QuazarOmega   ( @QuazarOmega@lemy.lol ) 
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 years ago

      Puce Screen of Panic

      That’s class

  •  cmnybo   ( @cmnybo@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    18
    ·
    2 years ago

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

  •  SavvyWolf   ( @savvywolf@pawb.social ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    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.

    •  ShortN0te   ( @ShortN0te@lemmy.ml ) 
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

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

      No need to reinvent the wheel.

    •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Exactly

      Black with big white text would be nice

  •  navordar   ( @nawordar@lemmy.ml ) 
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

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

  •  biribiri11   ( @biribiri11@lemmy.ml ) 
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

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

  •  AutoTL;DR   ( @autotldr@lemmings.world ) B
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    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!

  •  Avid Amoeba   ( @avidamoeba@lemmy.ca ) 
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

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

  •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    They should make it black instead.

    •  ryannathans   ( @ryannathans@aussie.zone ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I would have gone with red… red = error

      •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

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

        •  ryannathans   ( @ryannathans@aussie.zone ) 
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Gold on purple offers more iirc

    •  e8d79   ( @e8d79@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      deleted by creator

      •  Possibly linux   ( @possiblylinux127@lemmy.zip ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Maybe purple with yellow text

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 308 users / day
  • 849 users / week
  • 2.37K users / month
  • 7.23K users / 6 months
  • 1.3K local subscribers
  • 60.4K subscribers
  • 7.3K Posts
  • 97K Comments
  • Modlog
  • mods:
  •  AgreeableLandscape   ( @AgreeableLandscape@lemmy.ml ) 
  •  nooter692   ( @nooter692@lemmy.ml ) 
  •  MarcellusDrum   ( @MarcellusDrum@lemmy.ml ) 
  •  Arthur Besse   ( @cypherpunks@lemmy.ml ) 
  •  Cyclohexane   ( @cyclohexane@lemmy.ml ) 
  •  d3Xt3r   ( @d3Xt3r@lemmy.nz ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code