Solved TTY lags after loading i915kms driver

I noticed that after adding the i915kms driver to /etc/rc.conf with
Code:
kld_list="i915kms"
(specifying the path of the i915kms module didn't change behavior), my tty will lag.

When I press a key, hit enter or hit backspace, sometimes the screen will not change until I press another key (at which point both of them may show up). I don't think this is a keyboard issue since even in the tty when I use emacs, the minibuf will similarly momentarily fail to load until another key is pressed. I don't think this is a hardware/gpu issue since if I start a wayland session and type in the terminal emulator, I don't notice this issue. Also, this only happens when I load the graphics driver.

From what I understand, I am using the vt driver. I was wondering if anyone has seen this behavior or has any suggestions for leads to follow.

Here's some of my system info. Please let me know if there's any more information you need:
OS: FreeBSD 15.0-RELEASE-p5 amd61
GPU: Skylake GT2 (Intel HD Graphics 520)

Thank you!

EDIT:

The solution was to use an older version of the drm-kmod driver, specifically drm-515-kmod.
 
It might depend on what drm-kmod version is used; with UHD 630 I found drm-61-kmod the best (newer/latest had random crashes and sometimes random lag not with TTY). 515 was also fine (used it during 14.* but only tried 61+ on 15.0+)
 
I can confirm this issue on an older ThinkPad with 14.4 that was forced to change drm-kmod to a newer version, because the older is not supported in 14.4.
 
Thanks Espionage724 and Micski for the replies!

I had tried drm-latest-kmod, drm-66-kmod, and drm-61-kmod, none of which changed anything, so I stopped there and assumed it was a configuration rather than a driver issue. As it turns out, drm-515-kmod was the one that didn't have the same issue for some reason. 🤦‍♂️

I'm curious if you have any clue as to why drm-515-kmod works in particular. Something different with how newer drivers are handled?

Marking the thread as solved.
 
Back
Top