You are not logged in.

#1 2021-01-14 10:22:54

benedict_0
Member
Registered: 2019-11-08
Posts: 71

[SOLVED] GNOME settings about section does not show discrete graphics

Hi!

I have a laptop with two graphics cards:

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8730M]

but it seems to me only the Intel one is active. I don't see my AMD card in the "about" section of GNOME settings and I cannot right click on an app icon to have it started using the AMD card.

The amdgpu and radeon modules are loaded though:

$ lsmod | grep amdgpu
amdgpu               6578176  0
gpu_sched              45056  1 amdgpu
ttm                   114688  2 amdgpu,radeon
i2c_algo_bit           16384  3 amdgpu,radeon,i915
drm_kms_helper        274432  3 amdgpu,radeon,i915
drm                   569344  14 gpu_sched,drm_kms_helper,amdgpu,radeon,i915,ttm

$ lsmod | grep radeon
radeon               1654784  1
ttm                   114688  2 amdgpu,radeon
i2c_algo_bit           16384  3 amdgpu,radeon,i915
drm_kms_helper        274432  3 amdgpu,radeon,i915
drm                   569344  14 gpu_sched,drm_kms_helper,amdgpu,radeon,i915,ttm

Any hint will be appreciated!

Last edited by benedict_0 (2021-01-20 08:50:19)

Offline

#2 2021-01-18 08:10:07

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Hello,

I am not sure the problem is related to GNOME. Should I rephrase and/or edit the title of the message?

Offline

#3 2021-01-18 08:20:37

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

echo $XDG_SESSION_TYPE

If it says "wayland", use "gnome on xorg" as your session.

Online

#4 2021-01-18 08:36:10

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Yes I am on wayland. Can't I use my dedicated graphics card in wayland?

Offline

#5 2021-01-18 08:41:22

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

You can by disabling the IGP but afaik gnome/wayland doesn't support sth. like prime offloading (not sure whether any wayland compositor does)

Online

#6 2021-01-18 08:43:37

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Thank you seth! This answers my question.

Offline

#7 2021-01-18 08:46:50

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

I spoke too quickly. When logged in under "GNOME on xorg", I still don't have the ability to use the dedicated graphics card.

Offline

#8 2021-01-18 10:11:24

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

How do you configure the hybrid system?
https://wiki.archlinux.org/index.php/PRIME

xrandr --listproviders

Online

#9 2021-01-18 10:23:13

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Although I have amdgpu installed, it does not appear here:

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x47 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 5 associated providers: 1 name:modesetting
Provider 1: id: 0xe9 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 2 associated providers: 1 name:modesetting

Offline

#10 2021-01-18 10:26:32

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

https://archlinux.org/packages/extra/x8 … eo-amdgpu/

You're running the modesetting driver on both chips.
Compare

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

Online

#11 2021-01-18 10:32:34

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

I think I shouldn't be running the modesetting driver, is that right? What did I do?

I have

glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2)

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon (TM) HD 8500M/8700M (OLAND, DRM 3.40.0, 5.10.7-arch1-1, LLVM 11.0.1)

which is correct I suppose.

Offline

#12 2021-01-18 10:45:53

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

I am confused because the i915 and amdgpu modules are in use:

lspci -k
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
	DeviceName: 512
	Subsystem: Hewlett-Packard Company Device 198f
	Kernel driver in use: i915
	Kernel modules: i915

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8730M]
	Subsystem: Hewlett-Packard Company Device 1990
	Kernel driver in use: amdgpu
	Kernel modules: radeon, amdgpu

Offline

#13 2021-01-18 14:59:07

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

The X11 driver is not the same as the kernel module.
You need to ensure to redirect the output from the AMD chip to the intel one (see the link I posted, you can use the provider indexes) and then just try

DRI_PRIME=1 glxgears

Online

#14 2021-01-19 08:51:32

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

OK I think I am starting to understand!

And what should I do to not use the modesetting driver? I know I removed recently the xf86-video-intel package because of issues that were discussed in this forum. But I have the xf86-video-amdgpu package so I don't understand what's happening there...

Offline

#15 2021-01-19 08:58:49

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Post your xorg log.
Did you try to run glxgears on DRI_PRIME=1?

Online

#16 2021-01-19 09:48:40

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

I pasted my log here: https://dpaste.com/86DAH5RWN

DRI_PRIME=1 glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
313 frames in 5.0 seconds = 62.433 FPS
300 frames in 5.0 seconds = 59.951 FPS
300 frames in 5.0 seconds = 59.951 FPS
X connection to :0 broken (explicit kill or server shutdown).

Offline

#17 2021-01-19 09:56:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,917

Re: [SOLVED] GNOME settings about section does not show discrete graphics

As far as I know you need https://aur.archlinux.org/packages/switcheroo-control for the integration with GNOME you're looking for.

The other outputs seem to confirm that the general PRIME necessities seem to be fulfilled and working.

Last edited by V1del (2021-01-19 09:58:01)

Offline

#18 2021-01-19 10:11:49

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Thank you V1del, I will try it. Would you have any idea why I am running the modesetting driver on both cards?

Offline

#19 2021-01-19 10:46:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,917

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Well from the log we have it doesn't seem to relevantly consider the amdgpu at all. Which might be normal, was the log posted after a DRI_PRIME=1 run? The amdgpu doesn't need to be used unless you have a distinct screen/invoking it explicitly with DRI_PRIME

Offline

#20 2021-01-19 10:49:05

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Yes the log was posted after a DRI_PRIME=1 run, but the command does not produce a new xorg log.

Offline

#21 2021-01-19 10:57:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,917

Re: [SOLVED] GNOME settings about section does not show discrete graphics

I'd not expect it to create a new log but potentially add information to the exiting one.. FWIW I'd think it would at least show up in the "general" ddx listing in

[    20.528] (==) Matched intel as autoconfigured driver 0
[    20.528] (==) Matched ati as autoconfigured driver 1
[    20.528] (==) Matched modesetting as autoconfigured driver 2
[    20.528] (==) Matched fbdev as autoconfigured driver 3
[    20.528] (==) Matched vesa as autoconfigured driver 4

if the xf86-video-amdgpu package was installed but it isn't there (... ati is xf86-video-ati which is for older radeon gpus). Are sure you've installed that? In any case it shouldn't be inherently problematic towards what you are trying to accomplish, the modesetting driver is expected and intended to work regardless.

Last edited by V1del (2021-01-19 10:57:59)

Offline

#22 2021-01-19 11:09:00

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Yes, I even just reinstalled it for the sake of it:

pacman -Qs amdgpu
local/xf86-video-amdgpu 19.1.0-2 (xorg-drivers)
    X.org amdgpu video driver

Offline

#23 2021-01-19 13:36:49

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,024

Re: [SOLVED] GNOME settings about section does not show discrete graphics

When xf86-video-amdgpu is installed /usr/share/X11/xorg.conf.d/10-amdgpu.conf should result in a line like

[    90.620] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0

in xorg log . (for your system it would list /dev/dri/card1 ) .

Something in your configuration overrides that setting.

please post the output of

$ ls -l //etc/X11/xorg.conf.d

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

#24 2021-01-19 14:16:32

seth
Member
Registered: 2012-09-03
Posts: 52,352

Re: [SOLVED] GNOME settings about section does not show discrete graphics

[    20.516] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=e65f7874-c69f-49d1-9398-c8423c5ad36e rw loglevel=3 quiet
…
[    20.669] (II) modeset(G0): glamor X acceleration enabled on AMD Radeon (TM) HD 8500M/8700M (OLAND, DRM 3.40.0, 5.10.7-arch1-1, LLVM 11.0.1)

I suck at geography (and also https://en.wikipedia.org/wiki/Oland_(Frisian_island) …) but wikipedia says it's a Southern Island, hence https://wiki.archlinux.org/index.php/AM … K)_support

Online

#25 2021-01-19 15:44:06

benedict_0
Member
Registered: 2019-11-08
Posts: 71

Re: [SOLVED] GNOME settings about section does not show discrete graphics

Yes I have set the good module parameters in modprobe.d

I am not at the computer now, I will follow up tomorrow. Thank you!

Offline

Board footer

Powered by FluxBB