You are not logged in.

#1 2016-03-29 18:27:20

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

can we use Bumblebee for AMD ?!

hi dudes !
can we use Bumblebee for AMD graphic card !?!


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#2 2016-03-29 18:30:25

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: can we use Bumblebee for AMD ?!

You can use  PRIME


Tamil is my mother tongue.

Offline

#3 2016-03-30 08:26:36

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: can we use Bumblebee for AMD ?!

bharani wrote:

You can use  PRIME

i read all of PRIME page ! but dont work for me ! when i use under command for Unreal Engine anything won't change

DRI_PRIME=1 ue | grep "OpenGL renderer"

ue is alias for Unreal Engine


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#4 2016-03-30 14:36:26

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: can we use Bumblebee for AMD ?!

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

If that command shows gallium and amd , dri_prime=1 works as intended.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-03-30 15:19:54

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: can we use Bumblebee for AMD ?!

Lone_Wolf wrote:
DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

If that command shows gallium and amd , dri_prime=1 works as intended.

when i use this command :

command :

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

result :

OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

Last edited by Programmer (2016-03-30 15:20:35)


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#6 2016-03-30 15:38:50

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: can we use Bumblebee for AMD ?!

 xrender --listproviders

What's the output?

My guess is that you're not using DRI3 for Intel IGP, so you have to set the offload sink manually before PRIME works. But let's make sure by seeing the output of that command.

Last edited by Xabre (2016-03-30 15:40:42)

Offline

#7 2016-03-31 10:52:41

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: can we use Bumblebee for AMD ?!

Xabre wrote:
 xrender --listproviders

What's the output?

My guess is that you're not using DRI3 for Intel IGP, so you have to set the offload sink manually before PRIME works. But let's make sure by seeing the output of that command.

output :

Providers: number : 2
Provider 0: id: 0x79 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:Intel
Provider 1: id: 0x51 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 0 associated providers: 0 name:radeon

Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#8 2016-03-31 13:22:34

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: can we use Bumblebee for AMD ?!

Yes, it's as I guessed. Follow the wiki on how to set up the offload sink, or set up DRI3 for your Intel card.

Last edited by Xabre (2016-03-31 13:25:28)

Offline

#9 2016-04-01 15:12:55

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: can we use Bumblebee for AMD ?!

Xabre wrote:

Yes, it's as I guessed. Follow the wiki on how to set up the offload sink, or set up DRI3 for your Intel card.

according to AMD wiki i make 20-radeon.conf . but when i reboot system i can't use gnome with X server and i must use gnome on wayland !

in " /etc/X11/xorg.conf.d " i have 2 file : " 00-keyboard.conf " and " 20-radeon.conf " when i comment  " 20-radeon.conf " gnome work with X server ! but when " 20-radeon.conf " is not comment gnome wont work with X server .

00-keyboard.conf :

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,ir"
        Option "XkbVariant" ","
EndSection

20-radeon.conf :

Section "Device"
	Identifier  "Radeon"
	Driver "radeon"
	Option "AccelMethod" "glamor"
        Option "DRI" "3"
        Option "TearFree" "on"
EndSection

Last edited by Programmer (2016-04-01 15:16:41)


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#10 2016-04-01 16:19:33

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: can we use Bumblebee for AMD ?!

You have been reading the wrong page then. All you had to do was to set the offload sink with:

xrandr --setprovideroffloadsink radeon Intel

then test it with:

DRI_PRIME=1 glxinfo|grep 'OpenGL renderer'

It should show something like:

OpenGL renderer string: Gallium 0.4 on AMD OLAND (DRM 2.43.0, LLVM 3.7.1)

Well, that's what I get, line will be slightly different for your Radeon model.

If it works, and it should, just run the application that can benefit from dedicated GPU with:

DRI_PRIME=1 <application_executable>

And that's it. Remove that xorg.conf, you did an unrelated and unneeded configuration.

Check the wiki on PRIME for how to do the whole procedure automatically on session startup, so you don't have to type it each time.

EDIT: Oh, and I see you did not pay attention on what I wrote exactly in previous message: you need DRI 3 for your Intel card, not Radeon. Radeon does not render anything on the screen, it just offloads its work to IGP, which is responsible for displaying the picture on the screen.

Last edited by Xabre (2016-04-01 16:24:00)

Offline

#11 2016-04-02 06:03:00

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: can we use Bumblebee for AMD ?!

worked smile i tested with dota 2 ! with under commend in best looking in dota i have 40 FPS but without this commend i have 18 FPS

DRI_PRIME=1 steam

i make "intel-dri.conf" in xorg directory with this value :

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "DRI" "3"
EndSection

is that true ?!

edit : i rename "intel-dri.conf" file to "20-intel.conf"

Last edited by Programmer (2016-04-02 09:41:17)


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

Board footer

Powered by FluxBB