Solved Yet another drm-kmod and Intel graphic card problem

Greetings all,

Update:

On newly installed FreeBSD 14.3, I do not seem to be able to make xorg working. I have installed packages
graphics/drm-61-kmod, graphics/gpu-firmware-intel-kmod, the user is in video group, yet after invoking xinit, I am rewarded by a black screen with a non-responsive system including the mouse, (the mouse works in text mode). I cannot switch to another console, the only remedy is power down the system. After correcting a spelling error in .xinitrc the X server starts but within seconds shuts down with
Code:
xinit: connection to X server lost
again with no errors in the /var/log/Xorg.0.log.

I have verified that the i915ks.ko module is loaded, but it does not seem that the intel driver is used:

Code:
# cat /usr/local/etc/X11/xorg.conf.d/card.conf
Section "Device"
  Identifier "Card0"
  Option "DPMS"
  Driver "modesetting"
EndSection
Code:
# grep DRI /var/log/Xorg.0.log
[ 95556.671] (II) modeset(0): [DRI2] Setup complete
[ 95556.671] (II) modeset(0): [DRI2]   DRI driver: crocus
[ 95556.671] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[ 95556.714] (II) Initilizing extension DRI3
[ 95556.804] (II) Initilizing extension XFree86-DRI
[ 95556.851] (II) Initilizing extension DRI2

The /var/log/Xorg.0.log does not indicate any errors (EE).

I have tried both demotion to drm-515-kmod and promotion to drm-kmod, but neither option works.

Kindest regards,

M
 
1. Do you have more than one video adapter ? If so, try to bind to certain PCI slot using BusID option in xorg.conf. What pciconf -vl | grep -A 4 vga shows ?

2. Try installing xf86-video-intel (intel_drv.ko driver for Xorg). It will serve as intermediary between Xorg and i915kms.ko.

3. Remove "Device" section from Xorg configs. Let it do its autodetect tricks.
 
Hi checkpoint,

Re 1 video built in the processor;
re 2 tried that already, no difference;
re 3 tried that, no difference. Although there is allegedly support for devd, # grep devd /var/log/Xorg.0.log does not return anything.

I tried to xinit without .xinitrc, it starts, but again freezes.

I am rather lost as what to do next.

Kindest regards,

M
 
Hi checkpoint,

thank you again. I have changed the title of the post as solved.

The problem was twofold: (i) the xf86-video-intel seemed to have interfered, so I uninstalled it, and (ii) my dyslexia.

Kindest regards,

M
 
The problem was twofold: (i) the xf86-video-intel seemed to have interfered, so I uninstalled it, and (ii) my dyslexia.
On my MacBook, to which I installed 13.4-RELEASE/i386 recenty, I had to do the opposite: I had to install xf86-video-intel to get Xorg working properly. On that setup if Xorg binds directly to i915kms.ko it fails to render some fonts and hardware mouse pointer, also freezes when switching VTYs. It works fine through xf86-video-intel (intel_drv.ko) driver.
 
Hi checkpoint,

yes, while I was researching the problem, I encountered both variants. I am not knowledgeable to understand the reason, maybe hardware-related?

On a different subject, can you let me know the model A-number? of your MacBook, I have one somewhere.

Kindest regards,

M
 
I can confirm this method works. I built an older drm driver (drm-510-kmod) on 14.3-RELEASE from ports tree tonight. I do not need xf86-video-intel

Baytrail E3826 2 core CPU.

In the ports Makefile I commented this out:
/usr/ports/graphics/drm-510-kmod/Makefile
Line 34,35,36
Code:
#.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1401501
#IGNORE=         not supported on FreeBSD 14.2 and higher
#.endif
Then just make install

kldload i915kms

Then glmark2 Score is rather good for fanless 2 core. MinnowboardMax

Code:
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Intel
    GL_RENDERER:    Mesa Intel(R) HD Graphics (BYT)
    GL_VERSION:     4.2 (Compatibility Profile) Mesa 24.1.7
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 543 FrameTime: 1.845 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 484 FrameTime: 2.069 ms
=======================================================
                                  glmark2 Score: 421
=======================================================
 
Back
Top