Xorg not working on fresh install

vesa and scfb didn't work as well.

Depending on which boot variant you use, only one works.

VESA using BIOS/Legacy should work right away and to use scfb you need to install x11-drivers/xf86-video-scfb and then create an Xorg config file.

Example:

/usr/local/etc/X11/xorg.conf.d/scfb.conf
Code:
Section "Device"

Identifier "Card0'

Driver "scfb"

End Section

BTW AmyAmyAmy your log says [ 186.511] (EE) Device(s) detected, but none match those in the config file, but for AMD & Intel you don't need to create an Xorg configuration file. Unless you have two graphic cards or an other unusual setup.
 
Thanks. I made scfb work. Turns out you need to install it first ?‍?️
I run Xorg -config xorg.conf.new &
Yes!! Now it runs in the background.. BUT .. Of course we cannot expect to have startx or startkde or .xinitrc like we used to because if we did it won't be fun. We need to break things that work fine and we want to keep changing things every few years.

How do I run starplasma-x111 now that Xorg is running using scfb (not intel) in the background?
 
I guess i have to move to 14 if I want to use this stupid intel card!
Please post the output of:
sysctl hw.model hw.machine hw.ncpu
pciconf -lv | gi -B4 -A1 display

(you're correct in that drm-61-kmod requires >1400508; i.e. 14.1-RELEASE & 14-STABLE will get you drm-61-kmod)
 
I fresh installed FBSD 14.1 STABLE and guess what drm-61-kmod doesn't load :( It asked me to install another package as an error and I did that. Still it just gets stuck and doesn't return back the prompt. I end up having to reboot the system.
 
I am on a fresh install of FreeBSD 14.1 STABLE.
I had to manually type all this because the system just freezes - not using SSH. If I took a screenshot and uploaded the images somewhere images , eventually those would get deleted. So I type this:



brandelf ./i915kms.ko
Filee 'i915kms.ko' is of brand 'FreeBSD' (9)

kldload ./i915kms.ko
iic0: <I2C gebneriic I/O> on iicbus0
<6>[drm] Got Intel graphics stolen memory base 0xblabla, size 0xblabla
drmn0: <drmn> on vgapci0
.
.
.
.
.
.
.

.
.
.
.
.
drmn0: successfully loaded firmware image 'i915/adlp_dmc_ver2_16.bin'
drmn0: [drm] Finished loading DMC firmware i915/adlp_dmc_ver2_16.bin (v2.16)


I looked up on this forum and removed this version of drm kmod. Went with 515 and at least it loads the i915kms.ko file properly.
Xorg still doesn't work well with intel. I think modesetting should work.

Now that startx is deleted, can someone guide what to do after I run Xorg -config xorg.conf.new?

How do I start plasma-x11 ? I have .xinitrc with exec /usr/local/bon/startplasma-x11 already present.
 
Thank you for responding SirDice. I was unable to find startx inside /usr/local/bin/ so I copied it from an old system, which isn't helping.
I think it is best I remove and reinstall Xorg.
 
I am getting the classic error:

(EE) open /dev/dri/card0: No such file or directory

I have tried all drm-kmods 510 , 515 and 61
I think the issue is I am on STABLE and no RELEASE..
 
I deleted and again pkg install - ed it again. I have startx now. i915kms.ko is loaded .. Tried all drm-kmods available on FreeBSD14.1-STABLE but I am getting :

(EE) open /dev/dri/card0: No such file or directory


I think I will delete and install FreeBSD14.1-RELEASE
 
I've done this and it usually works

In rc.conf
Code:
kld_list="drm i915kms"

In /usr/local/etc/X11/xorg.config.d. create 20-intel.conf.. Add this

Code:
Section "Device"
           Identifier "modesetting"
           Driver "modesetting"
           Option "TearFree" "true"
EndSection

I usally use lightdm but that should work just to get X going when you launch it
 
Interesting. What is the difference between:
Code:
kld_list="i915kms"
and
Code:
kld_list="drm i915kms"
?

Does it auto detect which drm .ko file to load? I only have an inbuilt intel chip but various cards' drm drivers.

Also did you create any xorg.new.conf file?


I thank you in advance for this. I will be installing 14.1 now RELEASE (not STABLE) and will try your config. Hope it works.
 
Now I recall why I was abstaining from using RELEASE. it has issues with acpi / atrtc0
Now I need to boot with a hint : hwpstate_intel.0.disabled=1
It is a mess! 15 and 14.1 STABLE do not have this issue.,
 
Code:
hint.hwpstate_intel.0.disabled=1
is
was what used to work for my laptop until FreeBSD 13
The error about artct0 is new in FreeBSD14
Now I added these to avoid getting stuck at atrtc but disabling that is still not helping:

Code:
hint.atrtc.0.disabled=1
hint.atrtc.1.disabled=1
hint.acpi_syscontainer.0.disabled=1
hint.acpi_syscontainer.1.disabled=1

Only option for me is 15 SNAPSHOT :(

Only after this can I reach the display driver issue.
 
Thank you jb1277976

It is DONE!

I am using drm-61-kmod, xorg and gpu-firmware-drivers
Manually if you run kldload i915kms , it won't load for some reason.
Having drm and i915kms in rc.conf helps. My aversion to putting it inside rc.conf was that I have had unfavourable experiences, endless reboot and non-responsive console behaviour quite recently.
Sucks that the only OS working for me is 15- CURRENT (SNAPSHOT).. getting thrown to debug prompt suddenly, and quite frequently but, it is okay.
 
Yesterday my 14.1-RELEASE was without X server probable after upgrade of packages. It was working properly earlier. Deleted all packages and start a fresh with Xorg and openbox. Then today added drm as follows, and it works as intended, don't know why.
kld_list="drm i915kms"
Considering all the related posts, it seems the problem of not having xserver after upgrade is only due to
drm-kmod. Apparently there were workarounds with ports. We may have hope regarding CFT as below.
bapt@ has posted a solution to freebsd-ports:
Today there is again upgrade of package dem-kmod from latest. But I am not going to do any upgrade until next Jan '25. Same for both Intel and AMD old/new GPU's.
 
The packaged drm-61-kmod drivers and firmware have OS release dependencies that weren't being reflected in the package names. A recent build update changed the naming system so that there can be 14.x and 15.0 versions. I don't know how well this works; I just switched to 15-CURRENT and built everything from source so I could load the drm-61-kmod modules for the built in GPU on AMD7950X. Unfortunately, while it doesn't crash now, it still doesn't actually work with my hardware, so I am using scfb as well for now.

The github source for drm-61-kmod was updated pretty recently to 6.6 but I don't know if anyone is working on importing that yet. There are a lot of commits in this update.
 
Back
Top