Graphics not working (Intel gpu)

Hi there,
I have Lenovo Thinkpad x390 using 8th Generation Intel i7 Processors i7-8665U and for the graphics it seems it requires this "gpu-firmware-intel-kmod-kabylake-20230625.1402000".

Code:
pciconf -lv | grep -B4 VGA
vgapci0@pci0:0:2:0:    class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3ea0 subvendor=0x17aa subdevice=0x2286
    vendor     = 'Intel Corporation'
    device     = 'WhiskeyLake-U GT2 [UHD Graphics 620]'
    class      = display
    subclass   = VGA
Code:
% dmesg | grep -i "drm\|vga"
vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xb0000000-0xb0ffffff,0xa0000000-0xafffffff at device 2.0 on pci0
vgapci0: Boot video device
[drm] Got Intel graphics stolen memory base 0x9b800000, size 0x2000000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
lkpi_iic0: <LinuxKPI I2C> on drmn0
lkpi_iic1: <LinuxKPI I2C> on drmn0
lkpi_iic2: <LinuxKPI I2C> on drmn0
lkpi_iic3: <LinuxKPI I2C> on drmn0
drmn0: successfully loaded firmware image 'i915/kbl_dmc_ver1_04.bin'
drmn0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
drmn0: [drm] [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
drmn0: [drm] [ENCODER:117:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
lkpi_iic4: <LinuxKPI I2C> on drm1
lkpi_iic5: <LinuxKPI I2C> on drm2
lkpi_iic6: <LinuxKPI I2C> on drm4
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
name=drmn0 id=i915drmfb flags=0x0 stride=7680
I read most of the threads here and tried every possible trick mentioned. I ended up downloading the latest ports from git and building drm-kmod-20220907_3 from source.

Initially installing it from the packages caused the kernel to panic then I read 14.2 Errata and built the packages from source accordingly, initially grabbing the source using portsnap and then via git and i915kms.ko module is loaded successfully afterwards.

snapshot-2025-04-10-09_43_49-382x188.jpg

and I also tried all the tricks in this thread but all in vain.

I have my Xorg configuration based on the handbook
Code:
Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
EndSection
I also tried tried nomadbsd, and it picked up the graphics perfectly, and I copied their xorg configuration as well but nothing worked for me.
I have the feeling I missed some configuration somewhere and I hope someone can help me.

Note when startx after I login in, I get the following error
startx2.jpg


and the I attached the xorg log file
 

Attachments

Last edited by a moderator:
With UHD 630 I used drm-515-kmod that was fine a week ago (I'd remove all other drm-kmod and drm-61-kmod packages):

Code:
pkg install xorg 'drm-515-kmod' 'gpu-firmware-intel-kmod-kabylake'

I didn't need a xorg.conf, but this worked:

Code:
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'

Code:
Section "OutputClass"
    Identifier "Intel (modesetting custom)"
    MatchDriver "i915"
    Driver "modesetting"
EndSection
 
With UHD 630 I used drm-515-kmod that was fine a week ago (I'd remove all other drm-kmod and drm-61-kmod packages):

Code:
pkg install xorg 'drm-515-kmod' 'gpu-firmware-intel-kmod-kabylake'

I didn't need a xorg.conf, but this worked:

Code:
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'

Code:
Section "OutputClass"
    Identifier "Intel (modesetting custom)"
    MatchDriver "i915"
    Driver "modesetting"
EndSection
Thank you Espionage724, I tried that before, and tried it just now again same result unfortunately!
 
Hi T-Daemon

I've attached the files below from nomad
in the /etc/rc.conf they load the module the old way if I'm not wrong initgfx_kmods="/boot/modules/i915kms.ko"
The are installed the drm-61-kmod, which I did originally.
Code:
drm-61-kmod-6.1.92             
drm-kmod-20220907_3

Thanks
 

Attachments

When I change the xorg configuration file to use modesetting as below
Code:
Section "Device"
    Identifier    "Intel Graphics"
    Driver        "modesetting"
    BusID         "PCI:0:2:0"
EndSection

I get different xorg logs issue
Code:
[   656.169] (II) LoadModule: "glx"
[   656.169] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   656.169] (II) Module glx: vendor="X.Org Foundation"
[   656.169]     compiled for 1.21.1.16, module version = 1.0.0
[   656.169]     ABI class: X.Org Server Extension, version 10.0
[   656.169] (II) LoadModule: "intel"
[   656.169] (WW) Warning, couldn't open module intel
[   656.169] (EE) Failed to load module "intel" (module does not exist, 0)
[   656.169] (II) LoadModule: "modesetting"
[   656.169] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   656.175] (II) Module modesetting: vendor="X.Org Foundation"
[   656.175]     compiled for 1.21.1.16, module version = 1.21.1
[   656.175]     Module class: X.Org Video Driver
[   656.175]     ABI class: X.Org Video Driver, version 25.2
[   656.175] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   656.175] (--) Using syscons driver with X support (version 2.0)
[   656.175] (--) using VT number 9

[   656.202] (II) modeset(G0): using drv /dev/dri/card0
[   656.202] (WW) Falling back to old probe method for modesetting
[   656.202] (EE) No devices detected.
[   656.202] (EE)
Fatal server error:

note: my user is in the video group
 
[...] I also tried tried nomadbsd, and it picked up the graphics perfectly, and I copied their xorg configuration as well but nothing worked for me.
Just to be sure, did you restore the original FreeBSD xorg configuration after you copied it from nomadbsd?
Which Xorg configuration file is this?

Could you post the output of:
pkg query -x '[%R]\t%n-%v' '^drm(-|-515-|-61-)kmod'
 
Back
Top