from Hacker News

Fedora 36: A brave new (DRM/KMS only) world

by fcambus on 4/24/22, 4:25 PM with 132 comments

  • by jancsika on 4/24/22, 5:25 PM

    Is KMS the KMS from "dtoverlay=vc4-kms-v3d" in the rpi400's boot/config.txt?

    If so:

    Dear video gods,

    A fickle wizard told me I could fix studdering Chromium playback on HBO Max for my RPI400 by reciting the following incantation:

    "remove the letter f from the line `dtoverlay=vc4-fkms-v3d`"

    I did as instructed. But now the wizard's spell has caused my mouse pointer to become drowsy-- it lags when I drag it in the Chromium window.

    Please help me!

    Also, if you could explain to a mere mortal what the hell that setting is, I would be grateful.

    Also if you could explain why the "Direct Rendering Display Compositor" for Chromium is inescapably Disabled no matter what flags I set, I'd be grateful. It seems like that affects the efficiency of subtitle display, but I'm just guessing here. (Using Raspbian Buster on the Rpi400.)

    In your honor I offer this ASCII goat:

      (_(
      /_/'_____/)
      "  |      |
         |""""""|
  • by cabirum on 4/24/22, 4:56 PM

    DRM = Direct Rendering Manager
  • by skozharinov on 4/24/22, 5:18 PM

    Fedora is a bleeding edge distro, I thibk it's okay to disable legacy stuff there.
  • by ILMostro7 on 4/24/22, 6:12 PM

    This actually highlights a great, albeit belated, piece of work. In the end, this cleans up some legacy code and it helps to unify the framebuffer display across vendors AND (some) architectures.
  • by phendrenad2 on 4/25/22, 5:55 AM

    Cutting through the linux kernel jargon, this is just deprecating one API for writing to the framebuffer (/dev/fb0 etc), since there is another way: using the standardized KMS API.
  • by tlamponi on 4/25/22, 6:14 AM

    We, that is Proxmox VE (Linux based clustering & hyper-visor distro) and our other projects, had to roll back that exact change due to issues on some test HW a few months back, but it has to be said that we're on the 5.15 LTS while Fedora will use 5.17, so it may just be that there are a few fixes/improvements missing.

    For us, it wasn't worth the deeper investigation, so we went to just ensure simplefb (same spirit w.r.t. taking over the firmware frame buffer, but no DRM) is activated for now.

    Albeit, on one machine we could also get simpledrm to work after a BIOS update, so I'm definitively interested in how that plays out with Fedora.

    In any way, it's definitively a welcomed change, so if it plays out well for them, I'll try to switch again with our next Kernel jump.

  • by wubbert on 4/24/22, 5:06 PM

    How will this change affect the users of Fedora?
  • by mise_en_place on 4/24/22, 6:51 PM

    This sounds fine on paper, but I’d be nervous completely removing fb. Many times I’ve had to fall back to that when my nvidia drivers weren’t updated by dkms. Not having fb loaded and no nvidia-drm kernel module for the new kernel typically either hangs the system or you get a black screen and have to SSH in to fix it
  • by noobermin on 4/24/22, 10:16 PM

    I guess I realized, on my gentoo machine, it had been years since I had to care about which fb option i set in the kernel, drm/kms only always worked.
  • by fmakunbound on 4/24/22, 7:27 PM

    Does this mean less display flickering during Linux boot while the system tries to figure out what mode to use?
  • by olliej on 4/24/22, 5:43 PM

    I was super confused and worried by DRM here, which I guess goes to show how long it’s been since getting video working on linux required futzing with manual kernel builds :D
  • by computerdork on 4/24/22, 11:18 PM

    No idea what is causing any of these video issues, but the ASCII goat by the OP is a nice gesture. Hail the gods for they are benevolent and wise!
  • by shmerl on 4/24/22, 6:12 PM

    What prevents Linux kernel featured terminal (tty) from supporting true color and other fancy terminal features?
  • by akoster on 4/24/22, 5:19 PM

    A complete side tangent: How does one prevent pingbacks from content-less "blogs" (which seem to be optimizing for clicks)? (I see 3 pingbacks from lzomedia.com, makemoneyonlinecom.com and imoneyhub.com at the above link)
  • by zh3 on 4/24/22, 8:07 PM

    Fortunately we moved off Fedora some time ago, for exactly this sort of reason - when you're working with industrial stuff where minimum timescale is a decade and reliability is a must, low-tech FB interfaces are de rigeur.

    Once upon a time, breaking userspace was a no-no [0].

    [0] https://lkml.org/lkml/2012/12/23/75