You are not logged in.
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
Hello,
I am not sure the problem is related to GNOME. Should I rephrase and/or edit the title of the message?
Offline
echo $XDG_SESSION_TYPE
If it says "wayland", use "gnome on xorg" as your session.
Online
Yes I am on wayland. Can't I use my dedicated graphics card in wayland?
Offline
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
Thank you seth! This answers my question.
Offline
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
How do you configure the hybrid system?
https://wiki.archlinux.org/index.php/PRIME
xrandr --listproviders
Online
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
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
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
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
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
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
Post your xorg log.
Did you try to run glxgears on DRI_PRIME=1?
Online
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
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
Thank you V1del, I will try it. Would you have any idea why I am running the modesetting driver on both cards?
Offline
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
Yes the log was posted after a DRI_PRIME=1 run, but the command does not produce a new xorg log.
Offline
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
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
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
[ 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
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