5

Working through a minefield of information at the moment and need help.

I've got a Dell Latitude E5570 which is setup with Hybrid graphics, Intel/AMD as such:

$inxi -Fzx 
Graphics:  Card-1: Intel HD Graphics 530 bus-ID: 00:02.0
       Card-2: Advanced Micro Devices [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M] bus-ID: 01:00.0
       Display Server: x11 (X.Org 1.19.6 ) drivers: i915,radeon Resolution: 1920x1080@60.00hz
       OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Sk

I've tried playing with switcheroo, but this doesn't seem to work. https://www.dell.com/support/article/au/en/auchn1/sln298475/a-guide-to-hybrid-video-on-dell-pcs-with-an-ubuntu-operating-system?lang=en

Also, I've installed the proprietary drivers from AMD here: https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-for-Linux-18.20-Early-Preview-Release-Notes.aspx

This seemed to work, however when launching steam games I received an error about OpenGL incompatibility. In an attempt to fix this, I ended up with a boot loop and a very unstable system.

EDIT - this is how I ended up boot looping.... https://linuxconfig.org/how-to-install-the-latest-amd-radeon-drivers-on-ubuntu-18-04-bionic-beaver-linux

I've now completed a fresh install and everything is back to vanilla, no other poking - looking for advice.


Just for completeness, can you also test your Steam game, whether it also runs on 100 FPS on AMD using amdgpu driver?

I've done this and can confirm that the Steam game (Portal) will easily hit 100 FPS with both the radeon and amdpgu drivers - no appreciable difference - but much less headache using the radeon drivers shipped with Ubuntu rather than the proprietary amdgpu drivers.

7

I have the exact same setup (Intel Latitude E5570 / Hybrid graphics, Intel/AMD). I have installed Ubuntu 18.04 very recently.

Here are my experiences:

Although I marked Install third-party software for graphics and Wi-Fi hardware and additional media formats during installation, the Additional Drivers tab in Software & Updates (to reach this type software-properties-gtk in a terminal) claims that no additional drivers are available. Did you experience the same? Maybe somebody knows why. Before installing any proprietary drivers I decided to test the vanilla installation before doing anything else.

lspci -k | grep -EA3 'VGA|Display'

gives me the following output

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
    Subsystem: Dell HD Graphics 530
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M] (rev 81)
    Subsystem: Dell Mars [Radeon HD 8670A/8670M/8750M]
    Kernel driver in use: radeon
    Kernel modules: radeon, amdgpu

I guess that last line about the Kernel module amdgpu means that the OpenSource drivers are installed (can anybody confirm this?). More information on AMD drivers for Ubuntu can be found here on the Ubuntu help wiki.

Aside from switcheroo there is another possibility to switch between GPUs using xrandr:

Using xrandr (as stated in the second link) use the following command to show the providers:

xrandr --listproviders

My output was

Providers: number : 2
Provider 0: id: 0x6b cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 7 associated providers: 1 name:modesetting
Provider 1: id: 0x41 cap: 0x6, Sink Output, Source Offload crtcs: 2 outputs: 0 associated providers: 1 name:OLAND @ pci:0000:01:00.0

To be able to render GPU-intensive applications by the more powerful discrete card use

xrandr --setprovideroffloadsink 1 0

Now you should be able to choose a GPU for your application. For example you can test this with a command (using glxinfo, sudo apt install mesa-utils) I found here on Ubuntu Forums:

DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

So I have done a benchmarktest (using glmark2, sudo apt install glmark2) for both GPUs using the following commands:

DRI_PRIME=0 glmark2 --fullscreen
DRI_PRIME=1 glmark2 --fullscreen

The resulting score was:

  • 507 for Intel integrated GPU
  • 367 for AMD descrete GPU

This is strange, since I thought that AMD GPU should be more performant than the integrated Intel GPU. What are your results on this? Can you confirm this?

You might also test starting Steam on the discrete GPU using the stated xrandr commands.

Maybe I will also install the proprietary AMD GPU drivers (amdgpu-pro) and repeat the benchmarks. I hope this is helpful, especially the parts regarding the alternative way of switching GPUs.

  • I install amdgpu-pro. my result are: GL_RENDERER: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) and GL_RENDERER: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) glmark2 Score: 299 glmark2 Score: 299 – ji-ruh Jun 24 '18 at 6:29
1

in my case(hp 15-N, Radeon 8670m) was same prombel, but I fixed it. It was before:

       $ xrandr --listproviders
       Providers: number : 2
       Provider 0: id: 0x64 cap: 0x9, Source Output, Sink Offload crtcs: 3 
       outputs: 2 associated providers: 1 name:modesetting
       Provider 1: id: 0x3f cap: 0x4, Source Offload crtcs: 0 outputs: 0 
       associated providers: 1 name:HAINAN @ pci:0000:0a:00.0

       $ lspci -k | grep -EA3 'VGA|3D|Display'
       00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT 
       Integrated Graphics Controller (rev 09)
       Subsystem: Hewlett-Packard Company Haswell-ULT Integrated Graphics 
       Controller
       Kernel driver in use: i915
       Kernel modules: i915
       --
       0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun 
       XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] (rev ff)
       Kernel driver in use: radeon
       Kernel modules: radeon, amdgpu

after install amdgru-pro for fix it I thinked that it help my, but I was mistaked. The reason simple, amdgru-pro not fit for old Video cards on unix systems. If you install their you could catch some errors like me.(sorry for I not have screenshot. There are was black screen with some text, which said that I not correctly installed drivers).

after reinstall ubuntu, I fixed it following few steps again called listproviders:

    $ xrandr --listproviders
    Providers: number : 2
    Provider 0: id: 0x64 cap: 0x9, Source Output, Sink Offload crtcs: 3 
    outputs: 2 associated providers: 1 name:modesetting
    Provider 1: id: 0x3f cap: 0x4, Source Offload crtcs: 0 outputs: 0 
    associated providers: 1 name:HAINAN @ pci:0000:0a:00.0

after that

   $ xrandr --setprovideroffloadsink 0x3f 0x64

test of steam show results (e.g. cs go on minimal-medium ~60 +- fps),

but before calling some program which needed Amd radeon, close their and write in terminal:

$ DRI_PRIME=1 steam or some programm (e.g. openshot)

also you could do this or check your mistake by link below:

https://www.youtube.com/watch?v=9AaxjX-Zo-k&feature=youtu.be

protected by Community Jan 28 at 13:44

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.