Bug 283130 - screen glitches when vga change to drmfb on the boot
Summary: screen glitches when vga change to drmfb on the boot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-04 18:35 UTC by azukikun
Modified: 2024-12-07 09:07 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description azukikun 2024-12-04 18:35:25 UTC
the screen glitch when it changes from vga to drmfb on boot, the screen turn all black with some strange artifacts on tops but the vt is totally usable, i just cant see what i typing and the xorg works completely

this was not happening on the 14.1-RELEASE, only started to happen when i upgraded to the 14.2-RELEASE

i am using the i915 driver from graphics/drm-kmod on a intel hd 4600 and my uname is 
'FreeBSD bsd 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64'

this bug happen using bios and uefi

sorry for my bad english, english is not my native language
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2024-12-06 16:26:09 UTC
Are you able to try rebuilding graphics/drm-kmod from source against 14.2?  The problem may be related to some binary incompatibility between 14.1 and 14.2.
Comment 2 Ed Maste freebsd_committer freebsd_triage 2024-12-06 16:37:13 UTC
Issue with drm-kmod is noted in the 14.2 errata (but not release notes, unfortunately) https://www.freebsd.org/releases/14.2R/errata/:

> drm-kmod packages compiled on FreeBSD 14.1 result in the text console being
> inoperative when the kernel module is loaded. Recompiling the package from the
> ports tree will restore the lost functionality. This issue will also resolve itself
> after the FreeBSD 14.1 EoL, when packages for 14-STABLE will start being built on
> FreeBSD 14.2-RELEASE.

As Mark says please try rebuilding graphics/drm-kmod against your updated kernel source, and let us know if that resolves the issue. We need to solve this in a better / holistic way, but this will hopefully get things working for you in the short term.
Comment 3 Graham Perrin 2024-12-07 09:07:52 UTC
For 14.2-RELEASE, I suggest: 

1. simple installation of graphics/drm-kmod from the 
   FreeBSD Project-provided repo

2. /usr/src/sys/ – required for step 3

3. /usr/ports/ – for build and installation of 
   graphics/drm-61-kmod alone, to supersede what was 
   automatically installed at step 1.

Compare: 

- <https://www.freshports.org/graphics/drm-kmod/#message> 
  no message

- <https://www.freshports.org/graphics/drm-61-kmod/#message> 
  explicitly currently built for 14.1.

Step 2 may be completed without Git and the like. For AMD64: 

pkg add https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_2/FreeBSD-src-sys-14.2.pkg

----

Note to self: splash