Solved Cannot ‘startx’ with i915kms

Good morning guys, searching an advice,

my ”startx” fails with Fatal server error: (EE) AddScreen/ScreenINIT failed for driver 0
if there are no .conf files in /use/local/etc/X11/xorg.conf.d so I think corn auto configuration should take place.

or with Fatal server error: (EE) no screens found(EE)
if trying to use driver-intel.conf with device Driver “intel” in it.

Surprisingly ”startx” works ok if Driver is “vesa” (just only console is blank when coming back from X) or even better with Driver “scfb” it works just fine, unfortunately I guess this way I’m not using real i915kms driver for my intel graphics card. Which I think would be preferred solution.

What I did:

obviously I have installed drm-kmod and xorg packages (according to handbook chapt. 5.4.5).

i have kern.vty=vt in my /boot/loader.conf

i have kld_list=“/boot/modules/i915kms.ko" in /etc/rc.conf

I’m sure from kldstat that i915kms is loaded successfully. (Also console font is correct, nicely sharp and small, using native screen resolution, which was not the case before i915kms was used.)

My display device is vgapci0@pci0:0:2:0 - Intel Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller.

Laptop is an old intel Centrino Duo from 2007 32-bit non-UEFI boot but on GPT partition. Installed is FreeBSD 12.1-RELEASE i386.

Any advice please, how to run X with intel i915kms properl? What is correct Driver name and correct BusID?

Thanks a lot...
 
As this is an older Intel graphics you probably need to use graphics/drm-legacy-kmod instead.
But as I wrote before this drm-kmod seems like it works ok, et last for text based console. Also it loads without problems.

Anyway if I’d like to try drm-legacy-kmod, how can it be installed? Can I install it over the previous drm-kmod package? Or should I remove that one first? Thank you.
 
I tried, have reinstalled drm-legacy-kmod again, /boot/modules/i915kms.ko is loaded, but no luck starting X server. Still the same problem. Using automatic configuration, no .conf files in /usr/local/etc/X11/xorg.conf.d

In Xorg.0.log it says:
(EE) modeset(0): Failed to initialize glamor at ScreenInit() time.
 
I have seen there is X11 driver xf86-video-intel Driver for Intel integrated graphics chipsets.

Could maybe this one work?

But I’m not sure how to use this one in X .conf file properly.
 
Bingo! Looks like xf86-video-intel made things work. I only had to install the package other than that I did not change anything.

(I’m just not quite sure which driver for my display device is used because I let the xorg configure everything automatically. From Xorg.0.log it looks like many device drivers are actually loaded by default. But is there way to find out and tell exactly which driver is being used?)
 
Try building from ports. I had the same issue. Somewhere (cant remember the URL) I read someone describing this bug. Building via ports worked properly for me. Good luck
 
Back
Top