Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Drivers for amd radeon 530 hybrid laptop graphics

Need help with peripherals or devices?
Post Reply
Message
Author
TripleK2004
Posts: 11
Joined: 2021-07-03 13:01
Has thanked: 1 time

Drivers for amd radeon 530 hybrid laptop graphics

#1 Post by TripleK2004 »

Device details

Code: Select all

00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07)
01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] [10... (rev c1)
I have a Dell Inspiron 5570 with AMD Radeon 530 hybrid. I did a net install of debian and built it up from scratch i.e i didnt choose anyting for desktop environment, handled that stuff manually. i then grabbed all the firmwares related to my card, and referred to this https://wiki.debian.org/AtiHowTo#Hybrid_Graphics section of Debian wiki to find that my amd card isnt listed in the stdout of the command `xrandr --listproviders`. Then i did a hardware probe and as expected the card wasnt working, i also came to know that i would need `fglrx` drivers for my card from that website , i then came to know that that package is only avalable for Debian Jessie. when i referred to https://pkgs.org it was present only in the ubuntu repos. I then tried Pop os to test if that would work and yes it works, confirmed by radeontop. my question is how can i get those drivers on my system

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: Drivers for amd radeon 530 hybrid laptop graphics

#2 Post by mm3100 »

Since it works on POP that means it should be able to work for Debian as well. Try to install firmware-amd-graphics and then try again to see if it starts. It should be using amdgpu kernel module.

TripleK2004
Posts: 11
Joined: 2021-07-03 13:01
Has thanked: 1 time

Re: Drivers for amd radeon 530 hybrid laptop graphics

#3 Post by TripleK2004 »

mm3100 wrote:Since it works on POP that means it should be able to work for Debian as well. Try to install firmware-amd-graphics and then try again to see if it starts. It should be using amdgpu kernel module.
I had that package installed as the wiki said.
I added `amdgpu` to `/etc/modprobe.d/amdgpu.conf` and did a restart, its not listed in the output of `xrandr --listproviders`

Code: Select all

 ﰣ ❯ lsmod | grep amd
amdgpu                   6606848  0
gpu_sched              40960  1 amdgpu
ttm                          114688  1 amdgpu
i2c_algo_bit            16384  2 amdgpu,i915
drm_kms_helper     74432  2 amdgpu,i915
drm                          618496  11 gpu_sched,drm_kms_helper,amdgpu,i915,ttm
EDIT1
i was able to load the modules before the reboot and now when i try to unload the modules i am getting this error

Code: Select all

 ﰣ ❯ sudo modprobe -r amdgpu
libkmod: ERROR ../libkmod/libkmod-config.c:657 kmod_config_parse: /etc/modprobe.d/amdgpu.conf line 1: ignoring bad line starting with 'amdgpu'
the kernel i am using is 5.10.0-7-amd64 and i have its headers installed

EDIT2
Ok so i had forgot to update the intramfs :lol: and i am getting the same error as above, lemme try another kernel

EDIT3
I made a mistake in the directory , its modules-load.d not modprobe.d :lol: however the lsmod output shows amdgpu being used right

EDIT4
Added

Code: Select all

amdgpu
radeon
i915
to `/etc/initramfs-tools/modules` and updated initramfs . After a reboot it still doesnt show me

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Drivers for amd radeon 530 hybrid laptop graphics

#4 Post by stevepusser »

Please be polite and tell us at the start what released version of Debian you are using, though I suspect you're using testing instead with the 5.10. kernel. Otherwise we have to guess.

Also, the output says i915 graphics driver is being loaded, and that should be the one your system is using by default, to save power. Skylake and above GPUs like yours also require firmware-misc-nonfree to work correctly; I'm fairly sure that's still the case in Debian 11.
MX Linux packager and developer

TripleK2004
Posts: 11
Joined: 2021-07-03 13:01
Has thanked: 1 time

Re: Drivers for amd radeon 530 hybrid laptop graphics

#5 Post by TripleK2004 »

stevepusser wrote:Please be polite and tell us at the start what released version of Debian you are using, though I suspect you're using testing instead with the 5.10. kernel. Otherwise we have to guess.

Also, the output says i915 graphics driver is being loaded, and that should be the one your system is using by default, to save power. Skylake and above GPUs like yours also require firmware-misc-nonfree to work correctly; I'm fairly sure that's still the case in Debian 11.
Extremely sorry about that Sir, I am currently running Debian 11 Bullseye, and i had that package already installed : )
Still nothing

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Drivers for amd radeon 530 hybrid laptop graphics

#6 Post by stevepusser »

Please install inxi and copypaste the results of "inxi -Gxx" run as a standard user from a terminal into your next post, within the code tags (highlight the paste and hit the "code" button) That will let us know what GPU and display you are using as default, the Intel 620 if I'm right. To have it use the AMD GPU instead, usually you must use PRIME switching on Bullseye.
MX Linux packager and developer

TripleK2004
Posts: 11
Joined: 2021-07-03 13:01
Has thanked: 1 time

Re: Drivers for amd radeon 530 hybrid laptop graphics

#7 Post by TripleK2004 »

Code: Select all

Graphics:  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0
           chip ID: 8086:5917
           Device-2: Realtek Integrated Webcam type: USB driver: uvcvideo bus ID: 1-5:4 chip ID: 0bda:568a
           Display: x11 server: X.Org 1.20.11 compositor: picom driver: loaded: intel
           resolution: 1920x1080~60Hz s-dpi: 96
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.4 direct render: Yes
Talking about PRIME gpu offloading, yes it worked in pop os , confirmed by radeontop. I would want to use the intel gpu for most part (as display controller) but also be able to use amd card in certain apps with environment variable `DRI_PRIME=1` as the wiki says.
But the issue is that the amd card is not being detected in `xrandr --listproviders` output , although according to `lsmod` ouput , the amdgpu module is loaded

TripleK2004
Posts: 11
Joined: 2021-07-03 13:01
Has thanked: 1 time

Re: Drivers for amd radeon 530 hybrid laptop graphics

#8 Post by TripleK2004 »

I went through the PRIME page of the arch wiki , and found this out in the TroubleShooting section

Code: Select all

XRandR specifies only 1 output provider
Delete/move /etc/X11/xorg.conf file and any other files relating to GPUs in /etc/X11/xorg.conf.d/. Restart the X server after this change.
And i was using a configuration :| I followed the wiki and it was fine, i was able to use my amd gpu via PRIME gpu offloading
Sorry , my bad, i should have gone through docs carefully :(
Thanks to all those who were active in this thread :)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Drivers for amd radeon 530 hybrid laptop graphics

#9 Post by stevepusser »

Glad to see that you solved it, and that Bullseye works as designed! :D
MX Linux packager and developer

Post Reply