Dedicated AMD Radeon GPU not available on X but available on Wayland

Setting DRI_PRIME=1 does not switch from the Intel HD Graphics 520 to the AMD Radeon R5 M330 when using the X session, but it works fine on Wayland.

Output of xrandr --listproviders on the X session:

Providers: number : 1 Provider 0: id: 0x46 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel 

radeontop detects the AMD GPU, and so does lspci | grep AMD:

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] (rev 83) 

It is using the amdgpu kernel module.

This happened just recently (around 3 days ago), So I think an update to something caused it.

Ubuntu 18.04 freezing at Purple screen after installing the updates in Dell Vostro 3583 with AMD Radeon graphic card

Ubuntu 18.04 freezing at Purple screen after installing the updates in Dell Vostro 3583 with AMD Radeon graphic card. I tried disabling the graphic card using nomodeset but it shows “ubuntu running in low graphics mode” and stuck there. I even tried to install the latest AMD driver for ubuntu 18.04 and still, it’s not working. Please help me is there any other solution. Thanks in advance.

installation of Radeon driver for Radeon HD 6450/7450/8450 / R5 230 OEM failed

During installation i got peculiar compilation errors. I have ubuntu 19.04

Blockquote ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-18.20-673703 for kernel 5.0.0-25-generic (x86_64) Sat Aug 31 02:46:19 IDT 2019 make: Entering directory ‘/usr/src/linux-headers-5.0.0-25-generic’ CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl/symbols.o CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_module.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/lib/chash.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/scheduler/gpu_scheduler.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/scheduler/sched_fence.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_drv.o In file included from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl/main.c:4: /var/lib/dkms/amdgpu/18.20-673703/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: * [scripts/Makefile.build:284: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl/main.o] Error 1 make[2]: Waiting for unfinished jobs…. CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_device.o LD [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/lib/amdchash.o CC [M] /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_kms.o CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_device.o In file included from /var/lib/dkms/amdgpu/18.20-673703/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/18.20-673703/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:286: /var/lib/dkms/amdgpu/18.20-673703/build/ttm/ttm_memory.o] Error 1 make[1]: [scripts/Makefile.build:515: /var/lib/dkms/amdgpu/18.20-673703/build/ttm] Error 2 make[1]: Waiting for unfinished jobs…. CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.o In file included from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../amdgpu/amdgpu.h:39, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../include/../backport/backport.h:12, from : /var/lib/dkms/amdgpu/18.20-673703/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:286: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_drv.o] Error 1 make[2]: Waiting for unfinished jobs…. CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_topology.o make[1]: [scripts/Makefile.build:515: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkcl] Error 2 CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_pasid.o CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_doorbell.o In file included from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../amdgpu/amdgpu.h:39, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../include/../backport/backport.h:12, from : /var/lib/dkms/amdgpu/18.20-673703/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:286: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_device.o] Error 1 CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_flat_memory.o /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_device.c: In function ‘kgd2kfd_interrupt’: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_device.c:636:2: warning: ISO C90 forbids variable length array ‘patched_ihre’ [-Wvla] uint32_t patched_ihre[DIV_ROUND_UP( ^~~~~~~~ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c: In function ‘set_queue_properties_from_user’: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:174:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint64_t)))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:172:5: error: ‘access_ok’ undeclared (first use in this function) (!access_ok(VERIFY_WRITE, ^~~~~~~~~ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:172:5: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:186:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint32_t))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:193:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint32_t))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:201:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint32_t))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:209:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint32_t))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c: In function ‘kfd_ioctl_update_queue’: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:381:20: error: macro “access_ok” passed 3 arguments, but takes just 2 sizeof(uint64_t)))) { ^ /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:379:5: error: ‘access_ok’ undeclared (first use in this function) (!access_ok(VERIFY_WRITE, ^~~~~~~~~ LD [M] /var/lib/dkms/amdgpu/18.20-673703/build/scheduler/amd-sched.o CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_process.o /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c: In function ‘kfd_ioctl_get_clock_counters’: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:830:2: error: implicit declaration of function ‘getrawmonotonic64’; did you mean ‘getrawmonotonic’? [-Werror=implicit-function-declaration] getrawmonotonic64(&time); ^~~~~~~~~~~~~~~~~ getrawmonotonic In file included from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../amdgpu/amdgpu.h:39, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/../include/../backport/backport.h:12, from : /var/lib/dkms/amdgpu/18.20-673703/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:286: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu/amdgpu_kms.o] Error 1 make[1]: [scripts/Makefile.build:515: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdgpu] Error 2 CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_queue.o /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:833:2: error: implicit declaration of function ‘get_monotonic_boottime64’; did you mean ‘getboottime64’? [-Werror=implicit-function-declaration] get_monotonic_boottime64(&time); ^~~~~~~~~~~~~~~~~~~~~~~~ getboottime64 CC /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_mqd_manager.o cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:286: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.o] Error 1 make[2]: Waiting for unfinished jobs…. make[1]: * [scripts/Makefile.build:515: /var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd] Error 2 make: *** [Makefile:1606: module/var/lib/dkms/amdgpu/18.20-673703/build] Error 2 make: Leaving directory ‘/usr/src/linux-headers-5.0.0-25-generic’ DKMSKernelVersion: 5.0.0-25-generic Date: Sat Aug 31 02:46:21 2019 DuplicateSignature: dkms:amdgpu-dkms:18.20-673703:/var/lib/dkms/amdgpu/18.20-673703/build/amd/amdkfd/kfd_chardev.c:174:20: error: macro “access_ok” passed 3 arguments, but takes just 2 Package: amdgpu-dkms 18.20-673703 PackageVersion: 18.20-673703 SourcePackage: amdgpu-dkms Title: amdgpu-dkms 18.20-673703: amdgpu kernel module failed to build quote

Blockquote

10x David

Ubuntu 19.04 boots to blank screen with dual monitors and AMD Radeon HD 7730

I just loaded Ubuntu 19.04 onto my Dell XPS 8500 desktop last week. I am using an AMD Radeon HD 7730 with dual monitors (1 HDMI, 1 DisplayPort). Most of the time when I reboot my system, it will boot to a completely blank login screen. It shows nothing at all, just a blank screen. I have tried the things below and nothing is working. Deleting the raven_dmcu.bin file seemed to work but now I’m having the problem again. If anyone could please tell me how to fix this, I would very much appreciate it. I don’t want to have to buy a new video card but I’m going to have to if I can’t get this fixed. I have got all other issues on my system worked out except this one. Thanks.

1 – Tried switching monitor 1 and 2 cables and adjusting the display settings to put their left/right orientation back. 2 – I read someones post that said this would work and it did for a while but I’m having the issue again now. Delete the file /lib/firmware/amdgpu/raven_dmcu.bin and then run sudo update-initramfs -u -k all

Ubuntu 18.04 doesn’t use my Radeon HD 8670M, uses intel instead

After a lot of research, I stumbled upon a problem I cannot resolve. I am trying to make ubuntu use my integrated Radeon graphics card (HD 8670M), but no matter what I try (and trust me, I did go over every single thread related to my problem here) Ubuntu doesn’t want to use it. Which is a problem, because the discreet intel one doesn’t support 3D acceleration. I have installed the open-source AMD driver already (xorg amd and mesa), but this doesn’t solve my problem. To add insult to injury when I run lscpi | grep VGA – only intel is listed. That being said – if I run lspci -nn | grep -E 'VGA|Display' I get this: 00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) 01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] [1002:6660] One more thing – when I run sudo apt-get upgrade I get the following odd message:

  The following packages have been kept back:   libgl1-mesa-dri libgl1-mesa-dri:i386 libglapi-mesa libglapi-mesa:i386   libglx-mesa0 libglx-mesa0:i386 libosmesa6 libosmesa6:i386 linux-generic   linux-headers-generic linux-headers-lowlatency linux-image-generic   linux-image-lowlatency linux-lowlatency ubuntu-desktop 0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded. 

Please advise on how to proceed.

Unable to boot from USB/SDD on ACER Nitro 5 AN-515-42 with Radeon RX560

a couple of days ago I bought a new ACER Nitro 5 with its own Linux (Linpus Lite) system. But wether this already setup Linux boots nor the USB device with Ubuntu 19.04 that I just made. The shipped system just boots into a bash like this:

root@blablabla#

With the bootable USB device it is a little bit different: Sometimes the screen just stays black with no signal of activity at all. The other times it shows a couple of watchdog errors like descriped in this Bug Report.

I tried to edit boot options like mentioned in the answers to the bug report, but this didn’t work for me. And I have to add that I have no plan what exactly happens with/without those boot options. I tried to add:

ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2

didn’t work

ro rcu_nocbs=0-7 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 quiet splash vt.handoff=1

didn’t work, too

I turn secure boot off already, and the virtualization options, too. But this also had no effect. I searched the web for two days now without finding a working solution. But I’ve seen posts of person who did manage to install Ubuntu on an ACER Nitro 5. Unfortunately they asked about different problems in this forum. see here

Any ideas or help?

Thanks for any response.

pup

Disable AMD Radeon Graphics Card, Ubuntu 18.04

I have a Radeon 7640g + Radeon 7670m Dual Graphics. I would like to disable one of them, as it is overheating causing the laptop to forcefully shut down. I have tried setting radeon.modeset=0 in GRUB_CMDLINE_LINUX_DEFAULT, but that would probably disable both of these. Is it possible to turn off lets say the dedicated 7670m card, and keep using the integrated 7640g or vice versa? Thanks in advance.

How can I disable AMD radeon and use Intel Integrated Graphics on 2011 iMac?

I have a mid 2011 iMac, 27-inch. The graphics card has failed, and causes the computer to randomly crash. This is a known issue, but it didn’t fail in time for Apple’s replacement program. But I digress…

I’d like to install Ubuntu on it and disable the broken AMD graphics card so I can use the integrated Intel graphics. The output of

lspci | grep -E 'VGA|Display' 

is as follows

00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Blackcomb [Radeon HD 6970M/6990M] 

Running lspci -k shows that the AMD device is using the ‘radeon’ module, and the Intel device is using ‘i915’. So, I’m assuming that this means both graphics devices are detected and have kernel drivers. (If I’m wrong, please let me know)

So, I tried blacklisting ‘radeon’ in /etc/modprobe.d/blacklist.conf, but this causes the system to hang at boot. It gets part of the way through the ubuntu logo loading screen, then the screen spits out some text, ending with the line “Started GNOME display manager.” (sorry, I can’t get a screenshot of the screen).

How should I proceed, or how should I go about disabling the dedicated graphics card and using the integrated intel graphics?