[SOLVED] Xrandr listing only 1 provider on AMD/AMD laptop
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I am running Debian 8 "Jessie" (via Deepin 15.8).
My laptop configuration is given below :
Quote:
Model: Acer Nitro 5 AN515-42
CPU: Ryzen 5 2500U
integrated GPU : Radeon Vega 8
dedicated GPU : Radeon RX 560X
I am trying to find a way to switch from the integrated GPU to the dedicated GPU. The most promising option for me seems to be the xrandr offloadsink command.
However, when I run
How do I get xrandr to locate my dedicated GPU (which is located at PCI 0) ?
I have tried different methods to solve this but xrandr seems to be my only choice. Further, I have also confirmed that the dGPU is indeed recognized by my system:
First, I attempted to use VGA Switcheroo as described here but that failed to work as my laptop has a muxless configuration.
Second, I installed Radeontop. Radeontop indicates the RX 560X connected to PCI 0 and 1, while the Vega 8 is listed on PCI 4, which seems to be correct.
Executing either one of
Code:
sudo radeontop -b 0
sudo radeontop -b 1
brings up the radeontop screen with everything at 0%.
Interestingly, executing
Code:
sudo radeontop -b 4
throws a warning saying the GPU is older than R500 (clearly untrue), and brings up a screen with everything at 100% !
Third, I ran lspci :
Code:
lspci -k | grep -EA3 'VGA|Display'
which outputs
Quote:
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460] (rev c0)
Subsystem: Acer Incorporated [ALI] Baffin [Radeon RX 460/560D / Pro 450/455/460/560]
Kernel modules: amdgpu
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
--
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Bridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
Subsystem: Acer Incorporated [ALI] Raven Bridge [Radeon Vega Series / Radeon Vega Mobile Series]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
indicating that both the GPUs are indeed recognized, and the PCI slot of the dGPU is 0.
(the dGPU is wrongly mentioned as RX 460 but that's a driver issue so can be ignored).
PS: This is my first post here, and I'm really sorry if I've broken any of the rules.
For my older generation, but still newer driver set AMD laptop.
$ lspci -nnk
Code:
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo [1002:9874] (rev ca)
Subsystem: Hewlett-Packard Company Wani [Radeon R5/R6/R7 Graphics] [103c:81f9]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
It says that the latest version of amdgpu is already installed. I am enclosing a list of other installed xorg video drivers I found by searching, are any of them incorrect ?
Quote:
xserver-xorg-video-amdgpu 18.0.1-1+b1 amd64 X.Org X server -- AMDGPU display driver
xserver-xorg-video-amdgpu-dbg 18.0.1-1+b1 amd64 X.Org X server -- AMDGPU display driver (debugging symbols)
xserver-xorg-video-ati 1:18.0.1-1+b1 amd64 X.Org X server -- AMD/ATI display driver wrapper
xserver-xorg-video-radeon 1:18.0.1-1+b1 amd64 X.Org X server -- AMD/ATI Radeon display driver
I have only one question: did you try to disable the built-in VGA in BIOS?
My BIOS doesn't seem to have any option to disable/change the primary video adapter. An option would be to blacklist the driver of my integrated card but that won't work as the dedicated card uses the same driver.
So, is there any way of unlinking (disabling) the integrated GPU given that I know its PCI address ?
The ati and radeon drivers are moot when it's amdgpu. Different and exclusive drivers. There's also mesa drivers for software versions of things the GPU does NOT provide. Or does provide, but not yet supported in the driver(s).
$ sudo apt-get install mesa-utils
Generally grabs most of the things needed. And provides glxinfo which should let you know if DRI is enabled, generally a good sign that your drivers are present and in use if it is "Yes".
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: X.Org
OpenGL renderer string: AMD CARRIZO (DRM 3.26.0, 4.18.0-3-amd64, LLVM 7.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.6
OpenGL core profile shading language version string: 4.50
OpenGL version string: 4.4 (Compatibility Profile) Mesa 18.2.6
OpenGL shading language version string: 4.40
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
If the "renderer" string is Mesa then you're not using the right driver. Which would still work, but slower and perhaps not as many bells and whistles.
A 3rd column number > 0 means that it's "in use". Without said drivers almost all cards support "VESA", so you'll get output and usability, but relative to an accelerated graphics stack, notice-ably slow and relatively painful to use.
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.23.0 / 4.15.0-29deepin-generic, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.4
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 18.0.4
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
I'm starting to suspect it's an issue with the amd drivers themselves. Is there any repository from where I can manually download and install the latest amdgpu drivers ?
You probably need the latest "kernel" and GPU drivers. It's simpler just to run something like Arch. Until what's todays arch is debian derivatives tomorrow. Although debian has testing and sid repos for similar options. I've got testing running on this laptop since gaming on debian stable with this GPU is not an option.
You probably need the latest "kernel" and GPU drivers. It's simpler just to run something like Arch. Until what's todays arch is debian derivatives tomorrow. Although debian has testing and sid repos for similar options. I've got testing running on this laptop since gaming on debian stable with this GPU is not an option.
Yeah, it looks like the testing of the GPU drivers is still a work in progress.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.