How to enable Amd Graphics card?

İ have installed drm-kmod. My computer is Dell Inspiron 5559. İ enabled graphics by processor but i would like to use my graphics card which is AMD Radeon R5 M335. Is there a way to enable it? I am looking for single command to use graphics card.
 
These are the cards known to work,
The following output can be interesting,
Code:
pciconf -lv | egrep -i "amd|radeon"
In rc.conf put something like,
Code:
kld_list="drm radeonkms"
For newer cards its,
Code:
kld_list="drm amdgpu"
Try first without /etc/X11/xorg.conf
It if it fails make a small /etc/X11/xorg.conf
Code:
Section "Device"
    Identifier "Card0"
    Option "AccelMethod" "EXA"
    BusID "PC:1:0:0"
    Screen 0
EndSection
Section "Screen"
    Identifier "Screen0"
    Device       "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection
 
I guess you have one of the hybrid graphics notebooks but you should give us bit more information about your hardware.
There is a lot of technical knowledge on this forums but to help, people need to know more exact what system you have.

I have one of this notebooks. Intel integrated graphics but also a amd card and I'm working to get my head around it if I can
make this work on FreeBSD.
 
These are the cards known to work,
The following output can be interesting,
Code:
pciconf -lv | egrep -i "amd|radeon"
In rc.conf put something like,
Code:
kld_list="drm radeonkms"
For newer cards its,
Code:
kld_list="drm amdgpu"
Try first without /etc/X11/xorg.conf
It if it fails make a small /etc/X11/xorg.conf
Code:
Section "Device"
    Identifier "Card0"
    Option "AccelMethod" "EXA"
    BusID "PC:1:0:0"
    Screen 0
EndSection
Section "Screen"
    Identifier "Screen0"
    Device       "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection

A few points.

Custom Xorg configuartions should be put into /usr/local/etc/X11/xorg.conf.d
Loading drm by hand is not needed when amdgpu, i915kms etc.. gets already called.
Color deph gets also set to the best by the xorg driver unless you want a lower.
The reason to use EXA instead of glamor?
 
Alain De Vos thank you this works but now i have other problem. I have Amd graphics but it shows Nvidia. When i choose Nvidia it works well. Should it be a problem?
 

Attachments

  • nvidianeoglum.png
    nvidianeoglum.png
    7.1 KB · Views: 95
Back
Top