DRM bugs (12.2-RELEASE) reddit / freebsd ---------------------------------------------------------------------- dvogit · 2020-10-28 17:55 **DISCLAIMER**: this was all done on a **Lenovo ThinkPad T480** with **Intel UHD 620 graphics** that runs X.Org using the `scfb` driver, and I am running a **custom kernel.** As you know, `drm-fbsd12.0-kmod` breaks on 12.2-RELEASE, so you need to compile it from source, but there are still some bugs on it, even after a recompile: * When coming back from suspend, screen must be redrawn * Hardware accelerated video and synchronization does not work (tested with MESA `glxgears`, and WebGL grass) But most features work like backlight, suspend and resume, so that needs to be patched. 1: This is now mostly a scfb bug. On Intel your driver should work without visible bugs ---------------------------------------------------------------------- sreelinux · 2020-10-28 18:50 I'm on an X1 Carbon Gen7 and also built drm-kmod from source on 12.2, and I think I've personally experienced your first issue. I haven't tried hardware accelerated video and synchronization yet. ---------------------------------------------------------------------- sreelinux · 2020-10-28 18:52 wait I think I also had an issue where the mouse cursor in xorg would still work, but everything else on the display would freeze such as windows, clocks, and even TTY it'll recover after a minute or so, as if nothing happened. No idea if this is a DRM bug specifically, but it sure seems like it to me ---------------------------------------------------------------------- dddddavidddd · 2020-10-28 19:18 On my T480 with UHD 620 graphics, hardware accelerated video works fine (mpv with '-v' and '--hwdec=vaapi'), and no strange post-suspend issues. I'm using the `intel' driver with 'sna' acceleration. I also had to recompile the graphics drivers. ---------------------------------------------------------------------- dvogit · 2020-10-28 20:15 Can I see your configuration? ---------------------------------------------------------------------- dddddavidddd · 2020-10-28 21:07 `/usr/local/etc/X11/xorg.conf.d/20-intel.conf`: Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "SNA" Option "TearFree" "true" EndSection I think I also needed to manually install the `xf86-video-intel` package for the driver. More details [on my website](https://www.davidschlachter.com/misc/t480-freebsd). ---------------------------------------------------------------------- dvogit · 2020-10-28 21:22 It worked after a reboot, nice. (glxgears: 60fps; grass: lots, 35afps). This bug is now a scfb problem only ---------------------------------------------------------------------- [deleted] · 2020-10-28 21:23 [deleted] ---------------------------------------------------------------------- avgapon · 2020-10-29 15:07 If you are using scfb then you are not using the drm driver, right? ---------------------------------------------------------------------- dvogit · 2020-10-29 17:25 In 12.1 I used scfb with the DRM driver, and it did give me sync, my only complaint in 12.1 was screen tearing. ---------------------------------------------------------------------- avgapon · 2020-10-29 21:40 My understanding -- could be wrong -- that scfb uses UEFI firmware interface to control graphics. DRM drivers are for controlling the graphics hardware "directly". That's why I said that using scfb implies that DRM is not used. ---------------------------------------------------------------------- dddddavidddd · 2020-10-29 22:10 You'll enjoy the TearFree option in the 'intel' driver.