Graphic card identification and driver installation

Hi everyone!
I have just installed FreeBSD on my PC:
Scrn-008.png

and tried to install graphic card driver for my integrated video
Scrn-009.png

But it looks like the driver doesn't work correctly.
This is my /etc/rc.conf file:
Scrn-010.png

When I enter startx command I get only black screen.
This community already helped me once, so I hope to get help one more time.
My goal is to understand typical steps from video subsystem identification to driver selection and installation.
Let's start from the very beginning:
1. Best way to get to know which video card is installed in computer?
2. How to define which driver I need?(I have already read some useful articles on FreeBSD.org. So this is always good point to start.)
3. Installation sequence (At the moment we do not consider kernel compilation).

Any help would be appreciated.
THX.
 
Please refrain from posting pictures of text. Just copy/paste it. Pictures are impossible to quote from.
and tried to install graphic card driver for my integrated video
You don't mention what you installed.

But it looks like the driver doesn't work correctly.
Can't tell from the information you posted. Which driver?

When I enter startx command I get only black screen.
cat /var/log/Xorg.0.log | nc termbin.com 9999

Best way to get to know which video card is installed in computer?
Look at pciconf -lv | grep -B4 VGA.

How to define which driver I need?(I have already read some useful articles on FreeBSD.org. So this is always good point to start.)
Intel or AMD internal graphics are all included with graphics/drm-kmod, so that's a good place to start.

Installation sequence (At the moment we do not consider kernel compilation).
You don't need to compile the kernel for this.

 
Thank you SirDice for fast response.
Look at pciconf -lv | grep -B4 VGA.
Here is my output:
Code:
kazham@mf:~ $ pciconf -lv | grep -B4 VGA
vgapci0@pci0:0:1:0:     class=0x030000 rev=0xe2 hdr=0x00 vendor=0x1002 device=0x9874 subvendor=0x1458 subdevice=0xd000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Wani [Radeon R5/R6/R7 Graphics]'
    class      = display
    subclass   = VGA
cat /var/log/Xorg.0.log | nc termbin.com 9999
Generates this URL: https://termbin.com/rrq8

Intel or AMD internal graphics are all included with graphics/drm-kmod, so that's a good place to start.
I think I have installed exactly this driver.
xrandr show something like Can't open display
I am not sure if it is important, but PC is connected to 4k TV via HDMI cable.
 
AMD
you have two to pick from newer cards
/etc/rc.con
kld_list="amdgpu"

older cards
kld_list="radeonkms"

GUI make sure user is in video group

pw groupmod video -m userName

startx
make sure you have the WM/DT entry in your .xinitrc
Example:
Code:
userx@FreeBeSD:~$ cat .xinitrc
#!/bin/sh

# fix broken $UID on some system...
if test "x$UID" = "x"; then
  if test -x /usr/xpg4/bin/id; then
    UID=`/usr/xpg4/bin/id -u`;
  else
    UID=`id -u`;
  fi
fi
#networkmgr &
/home/userx/bin/updatetime &
~/bin/mountdrives &
gkrellm &
#xfce4-panel &
exec /usr/local/bin/starte16
#exec openbox-session
 
Back
Top