Solved selecting appropriate driver for videocard

According to handbook if I have intel graphics I should use drm-kmod
But it installs bunch of drivers which I don't need, such as radeon
What is the algorithm to determine a specific driver for my video card and install it?

Primary goal of my question is deeper understanding of a system
 
The drm-kmod port bundles amdgpu, radeonkms and intel driver, there have been an attempt to split those.

The port graphics/gpu-firmware-kmod got split or have flavors to be precise, where you can install the only firmware that you need.

You can determine the firmware that you need by looking up how your GPU architecture is called or when you install the port with everything and then look into /var/log/messages which firmware do get loaded.
 
drm-kmod is the driver in general for your card, xf86-video-intel is the driver for Xorg.

But you should not use xf86-video-intel because that one is legacy.

When drm-kmod is installed and no xorg configuration is done then the builtin modesetting driver will be used.
 
but my original question was: can I install not drm-kmod, but exactly driver for my card and how to detect it
so I'm still don't understand how to do it
once more:
I have Intel Core i5-2520M with integrated hd 3000 graphics
how can I detect which driver/flavor should I use? Or I have no option but install drm-kmod?

And related question
for every intel card I should use
# sysrc kld_list+=i915kms

does this mean that the same module is responsible for all Intel cards? And the module already decides which driver to use? Or the module is the driver and it turns out that there is one driver for all Intel cards?
 
drm-kmod is the driver in general for your card, xf86-video-intel is the driver for Xorg.
Could you pleas explain what is a different between "driver in general" and "driver for Xorg"?

When drm-kmod is installed and no xorg configuration is done then the builtin modesetting driver will be used.

That is a little confusing for me. drm-kmod is a driver, why I need one more driver - modesetting? Or do you mean that "no xorg configuration is done" Xorg use modesetting driver, even drm-kmod is installed adn I should configure Xorg to use drm-kmod manually?
 
Could you pleas explain what is a different between "driver in general" and "driver for Xorg"?

Driver in general is that your card works with the system in general, the card gets detected and stuff sets it up as device /dev/dri/card0.

Now Xorg comes along and uses /dev/dri/card0 aka your GPU with the help of additional Xorg drivers.

The modesetting driver is built into the Xorg server, so if you only setup drm-kmod and then start an X session then it should be modesetting.

Now sometimes there can be options or features that are not in the builtin one. (yet)

Example: When VariableRefresh (FreeSync) support came along, it was only available in xf86-video-amdgpu and got later added to the modesetting one.
 
Back
Top