LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-23-2017, 12:44 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Post Configuring AMD Radeon 520 Dedicated Graphics in a hybrid graphics laptop running on Wayland (Xwayland) - No drivers found


Hi,

The tl;dr about this question is - Is my radeon 520 dedicated card working fine? Do I need to set "xrandr --setprovideroffloadsink radeon Intel" in Wayland to configure hybrid graphics? Xrandr is not working well in weston/wayland.

Long version:

I installed Ubuntu 17.10 on my newly bought HP Laptop (Model: HP 15-BS576TX) which has a dedicated AMD 520 2GB DDR3 graphics card and integrated graphics Intel HD 620 onboard graphics in a Kabylake Core i5 processor system. This is the first time I'm installing Linux on a hybrid graphics card setup on a laptop.

Now, Ubuntu 17.10 defaults with Xwayland instead of Xorg/XFree86. I find it confusing to configure AMD Radeon 520 dedicated graphics. The confusing part is xrander --listproviders only list the intel hd 620 integrated graphics. Is it not that xrandr and other Xorg tools will not work correctly in wayland?
Code:
xrandr --listproviders 
Providers: number : 0
But, lspci -knnn shows that AMD Radeon 520 card is detected:
Code:
01:00.0 Display controller [0380]: Advanced Micro Devices, Inc.  [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7  M520] [1002:6660] (rev 83)
    Subsystem: Hewlett-Packard Company Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] [103c:832b]
    Kernel driver in use: radeon
    Kernel modules: radeon, amdgpu
and Integrated Intel HD 620 graphics:
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
    Subsystem: Hewlett-Packard Company HD Graphics 620 [103c:832b]
    Kernel driver in use: i915
    Kernel modules: i915

Code:
# lshw -C video
  *-display                 
       description: VGA compatible controller
       product: HD Graphics 620
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:128 memory:b0000000-b0ffffff memory:a0000000-afffffff ioport:6000(size=64) memory:c0000-dffff
  *-display
       description: Display controller
       product: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 83
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:129 memory:90000000-9fffffff memory:b1200000-b123ffff ioport:5000(size=256) memory:b1240000-b125ffff
I'm booting with "radeon.modeset=1" which is added to the grub bootloader entry.

Now, if I run any app with DRI_PRIME=1 it works and shows below info:

Code:
 :~$ DRI_PRIME=1 glxinfo |grep -i Opengl*
OpenGL vendor string: X.Org
OpenGL renderer string: AMD HAINAN (DRM 2.50.0 / 4.13.0-16-generic, LLVM 5.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.2
OpenGL core profile shading language version string: 4.50
So, I assumed Radeon 520 is working fine. Then, noticed that there is no mention of gallium 3d? But, why Xrandr is not showing dedicated card as one of the providers?

I see that there is amdgpu driver module also loaded. From the list, R520 card seems to be supported by the radeon driver.
Code:
 
 lsmod |grep radeon
radeon               1470464  0
ttm                    94208  2 amdgpu,radeon
i2c_algo_bit           16384  3 amdgpu,radeon,i915
drm_kms_helper        167936  3 amdgpu,radeon,i915
drm                   356352  28 amdgpu,radeon,i915,ttm,drm_kms_helper
What needs to be done now? I have no custom scripts or files placed in /etc/X11 directory FYI.

I want to switch to AMD Radeon 520 Dedicated card for resource intense applications. But, Wayland makes it confusing. Will you help?

Last edited by deepclutch; 10-23-2017 at 12:58 AM.
 
Old 12-07-2017, 08:22 PM   #2
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
OK. For those with AMD 520 dGPU - If you're on Ubuntu, install pkppa (Padoka Stable) or Oibaf repositories and upgrade mesa packages. Then, update the kernel parameters appended with below lines and boot:
Code:
radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1
The kernel version may be >=4.13.x . I honestly, don't want frequent update and hence sticked with PKPPA.

https://wiki.archlinux.org/index.php...CIK.29_support
 
  


Reply

Tags
radeon520, ubuntu 17.10, xwayland



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hybrid Graphics: AMD/ATI Radeon and Intel HD Cág Linux - Laptop and Netbook 2 10-27-2016 11:26 AM
Kernel 3.14 - how to change graphics card?(Radeon and Intel hybrid graphics) kamils096 Linux - Kernel 3 07-12-2014 05:09 PM
LXer: Enable and use open source radeon drivers in a muxless hybrid graphics (Intel/AMD) setup LXer Syndicated Linux News 0 10-08-2013 01:30 PM
LXer: Intel Haswell HD Graphics 4600 vs. AMD Radeon Graphics On Linux LXer Syndicated Linux News 0 06-17-2013 12:01 PM
[SOLVED] Hybrid Graphics/AMD Ztcoracat Linux - Hardware 4 03-21-2012 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration