Xorg setup moreover driver for the Intel UHD 620 Grafik

atticus_sullivan

New Member


Messages: 12

Hi,

I just installed FreeBSD (my first time) and run into some problems regarding the driver for my graphic card (at least I think so). When I try to start the Xserver ( startx) I get this screen:
IMG_20200311_114239.jpg

Please find attached the Xorg log files (of /var/log/...) (I modified the extension since otherwise I wouldn't be able to upload them here).

As indicated in the title of this post, my graphics card is the Intel UHD 620 graphics

What I've done so far:
installing freebsd on zfs (encrypted with GELI)
reboot
pkg update
pkg install vim bash xorg
#startx didn't work
pkg install drm-kmod #because of this instruction
#startx didn't work
pkg install xf86-video-intel
#startx still didn't work (but now it is an other error message) <- this is the state from where the attached logs come from

Since I don't know what to do next, I'm hoping someone of you knows or at least has an Idea how to solve this problem.
With kind regards
 

Attachments

  • Xorg.0.log.old.txt
    8.3 KB · Views: 65
  • Xorg.0.log.txt
    8.3 KB · Views: 81
OP
A

atticus_sullivan

New Member


Messages: 12

I've copied this manually so I hope there are no typos

Code:
/etc/rc.conf
---------------------
clear_tmp_enable="YES"
hostname="tuxedo"
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"

# Set dumpdev to "AUTO" to enable crash dumps. "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

#MODIFICATION
kld_list="/boot/modules/i915kms.ko"


Code:
/boot/loader.conf
-------------------------
aesni_load="YES"
geom_eli_load="YES"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,970
Messages: 38,420

Is this perhaps a laptop? If it is, what's the make and model? If it's a laptop you may have one with NVidia Optimus (or something similar from AMD).
 

ehanneken

Member

Reaction score: 20
Messages: 28

If I'm reading the Xorg logs correctly, the direct rendering module is failing and X is trying to fall back to scfb(4). So I think you can uninstall drm-kmod and remove the kld_list line from rc.conf.

I noticed that startx is running from the root account. I've never tried that before. What happens if a regular user in the video group runs it?
 
OP
A

atticus_sullivan

New Member


Messages: 12

If I'm reading the Xorg logs correctly, the direct rendering module is failing and X is trying to fall back to scfb(4). So I think you can uninstall drm-kmod and remove the kld_list line from rc.conf.

I noticed that startx is running from the root account. I've never tried that before. What happens if a regular user in the video group runs it?
Well I didn't create another user (wanted to do some things before the home directories are made, I just wanted to test if X is running) but I added root to the video group.
But I'll try it from a normal user account

What do you mean by that? That I may be too early for support in freeBSD?
 
OP
A

atticus_sullivan

New Member


Messages: 12

It's not ported yet.
Oh ok, I found some posts that indicated this graphic card would be running on freebsd. How long do you think this will take to be ported or might it already be ported in a graphics/drm-*kmod port?

I tried adding a normal user (in the video group) but X still wasn't running. After deleting the manually set line in /etc/rc.conf, removing the drm-kmod package and rebooting it still doesn't work.
But I've got a different error (at least I think so)
 

Attachments

  • dmesg.txt
    56.4 KB · Views: 68
  • Xorg.0.log.txt
    8.3 KB · Views: 66
OP
A

atticus_sullivan

New Member


Messages: 12

Oh ok then I'll have to revert back to Linux (and have to use zfsOnLinux again, one of my reasons to migrate to BSD) and try freeBSD another time.
Is there a way to get notified as soon as the graphic card will work with freeBSD?
 

ehanneken

Member

Reaction score: 20
Messages: 28

shkhln

Daemon

Reaction score: 933
Messages: 2,182

Remember that you still should be able to get unaccelerated video with scfb. That might or might not be enough for your needs.
 

shkhln

Daemon

Reaction score: 933
Messages: 2,182

It's actually better to make a simple config restricting Xorg to a single driver. Automatic configuration is… rather esoteric, to put it mildly.
 

Sevendogsbsd

Daemon

Reaction score: 658
Messages: 1,103

Interesting. Automatic configuration for xorg on my Intel HD630 is flawless. Older GPU than OP's though, but since I moved away from Nvidia and went straight Intel, everything just works using graphics/drm-kmod, no fuss, no configs required.
 
OP
A

atticus_sullivan

New Member


Messages: 12

OK well I already gave up and reinstalled Linux but if you say its probable that my system will run with the not completely right driver. Actually I don't play games really much, so I think I'll manage with the not accelerated driver (if it doesn't render my system unusable).

I'm currently backing up my complete Linux installation (one thing I should have done before trying freeBSD and not only backup my data) and then I'll give freeBSD one more try with the not accelerated driver.
 

bookwormep

Well-Known Member

Reaction score: 228
Messages: 359

Post #1 shows you executed "startx":
Code:
# startx

Generally, this will trash your system in unrecognizable ways.
1.) Root access given to files that should not have them.
2.) Write permissions on files that should not be written.

So, just have a brand new install and only use user CLI prompts:
Code:
$ startx
 
Top