Hardware, driver
Lo confesso, mi stavo per arrendere, ormai era più di un anno che non riuscivo a trovare una soluzione per il mio Dell Inspiron 7548 UltraHD. Ogni mio tentativo di sfruttare a pieno su Arch Linux la GPU ibrida Intel 5500/Radeon R7M265 (Opal XT) era risultato vano e mi ero ridotto ad usare la peraltro ottima Intel.
I driver proprietari Catalyst forniscono supporto limitato ai vecchi kernel, ci sono delle patch ma sulla mia scheda troppo recente non hanno effetto, i repository Vi0L0 non funzionano al momento con questa scheda.
L’illuminazione è arrivata ieri quando ho ripreso la ricerca e ho letto questo:
Linux 4.5-rc3 Kernel Released & Has Fixes For AMDGPU
Open-Source AMD Iceland/Topaz Support No Longer Considered Experimental.
Il kernel Linux 4.5.x supporta ora i nuovi driver AMDGPU DRM Iceland (Topaz).
Come installare i driver open per la scheda ibrida Intel 5500/AMD Radeon R7 M265 (Opal XT) su Arch Linux (Gnome 3.20):
Arch Wiki ha due pagine specifiche per i driver open AMD Radeon:
ATI (xf86-video-ati): Supporta solo i vecchi modelli.
AMDGPU: Supporta i nuovi modelli (Volcanic Islands e Sea Islands).
Se come me avete “pasticciato” il sistema con tentativi multipli è importante fare pulizia:
Verificare il modello della propria scheda con con il comando:
$ lspci -k
Verificare di avere un kernel 4.5-rc3 o superiore, con Arch sarà sufficiente aggiornare eventualmente il sistema:
$ uname -r
Installare/aggiornare linux-firmware:
# pacman -S linux-firmware
Accertarsi di non avere abilitato i parametri del kernel nomodeset o vga= in autoavvio. A seconda del bootloader in uso consultare questo link (nel mio caso uso systemboot quindi ho controllato il file /boot/loader/entries/arch.conf).
Accertarsi di non aver creato un blacklist con amdgpu.
Rimuovere ogni eventuale traccia di vecchie installazioni dei driver proprietari fglrx o creati con l’installer Catalyst.
Per sicurezza cancellare oppure spostare/rinominare da /etc/X11 i file xorg.conf generati in automatico da fglrx.
Siamo pronti ora per installare i driver AMDGPU:
# pacman -S xf86-video-amdgpu
Editare il file mkinitcpio.conf:
# gedit /etc/mkinitcpio.conf
Aggiungere all’inizio il parametro amdgpu e salvare:
MODULES="amdgpu"
Aggiornare initramfs e riavviare con:
# mkinitcpio -p linux # reboot
Usare PRIME per gestire le priorità tra la Intel 5500 e la R7 M265:
Verificare la situazione delle due schede con:
$ xrandr --listproviders
Verrà mostrato un output come questo:
[fabrizio@localhost ~]$ xrandr --listproviders Providers: number : 2 Provider 0: id: 0x78 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:Intel Provider 1: id: 0x51 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 0 associated providers: 1 name:OLAND @ pci:0000:08:00.0
Ho evidenziato i nomi delle due schede, xrandr accetta come input sia il nome breve (Intel) che quello numerico (OLAND @ pci:0000:08:00.0).
Il comando
$ glxinfo | grep "OpenGL renderer"
Ci restituirà la scheda utilizzata di default, nel mio caso per la Intel 5500:
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
Quando sono usate applicazioni che stressano la GPU il comando
$ xrandr --setprovideroffloadsink provider sink
permette abilitare il dispositivo più potente (GPU offloading).
Nel mio caso ad esempio avendo i dispositivi Intel e OLAND @ pci:0000:08:00.0
(Radeon) il comando da dare è:
$ xrandr --setprovideroffloadsink "OLAND @ pci:0000:08:00.0" Intel
Se risulta come output un errore simile:
X Error of failed request: BadValue (integer parameter out of range for operation)Major opcode of failed request: 140 (RANDR)Minor opcode of failed request: 34 (RRSetProviderOffloadSink)Value in failed request: 0x41Serial number of failed request: 16Current serial number in output stream: 17
Aggiungere
radeon.runpm=0
alle opzioni di avvio del kernel nel vostro bootloader.
Esempio: nel mio caso uso systemd-boot questo è il mio file /boot/loader/entries/arch.conf:
title Arch Linux linux /vmlinuz-linux initrd /intel-ucode.img initrd initramfs-linux.img options root=dev/sda2 rw radeon.runpm=0
A questo punto non resta che verificare la corretta abilitazione della Radeon R7 M265 con il comando:
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
Se tutto è andato bene avrete qualcosa di simile a questo come output:
OpenGL renderer string: Gallium 0.4 on AMD OLAND (DRM 2.43.0, LLVM 3.7.1)
Avvio automatico dei driver:
Per impostare l’avvio automatico dei driver Gallium basterà creare uno script apposito, renderlo eseguibile con chmod +x e metterlo nella cartella di avvio automatico della propria distribuzione (o da Gnome Tweak>Applicazioni d’avvio dopo averlo magari aggiunto alla path e ad Alacarte)
Insomma il classico…
#!/bin/bash xrandr --setprovideroffloadsink "OLAND @ pci:0000:08:00.0" Intel
nhoxsang2411994 says
Hello, I’m using a dell Inspiron 14, 5447 series. I have a R7 M265 Discrete card and a i3-4030U 1.9GHz. I’m using Manjaro 16.06 KDE 5.6. I’ve followed your guide and currently I’m having a problem with the ‘xrandr –listproviders’ command does NOT recognised the CPU:
$ xrandr –listproviders
Providers: number : 2
Provider 0: id: 0x76 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x4f cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 0 name:TOPAZ @ pci:0000:03:00.0
The screen is slow, the OpenGL’s effects are working fine(but slow). Please help.
fabrixx says
Hi.
In Arch Linux for Intel 5500 i need xf86-video-intel and mesa-libgl (Intel 5500)
Aleks says
Hi. Please help me, I have a problem and I as I can not to solve it. Willing to pay a lot of money if someone can help me. I have a Dell 7548, and it contains also 2 video cards: Intel 5500/Radeon R7 M265. Cannot install driver for Radeon R7 M265. Tried to install but nothing good ever came of it. I have Debian installed 8.5 64 bit. I’m not very well versed in Linux.
Thank you!
fabrixx says
There are two ways to install the M265 card drivers: the catalyst proprietary driver at the moment it seems can not be installed on our machine and the open driver (amdgpu) of which I speak in this guide. I have never tried to install the open driver on Debian should have an updated kernel less than Arch.
From a rapid search I found that in Debian need to install the xserver-xorg-video-amdgpu and firmware-amd-graphics packages. Of course if you tried to install the proprietary driver is needed blacklist its before.
Unfortunately, in those packages I do not read anything about the supports to the opal family and I can not test it.
I installed Arch on 7548 (Debian in my Desktop) just to get more support in updates..
Let me know if you solve.
Aleks says
Thank You for the reply. Unfortunately I can’t install Arch Linux ) Maybe in the future I will succeed. I will continue to try to install the driver for Radeon.
Thanks for the help!
Aleks says
Good day! Please tell me how can I contact You? Please write your email address, I will write to you. I really want you to help me solve the problem with my DELL laptop, I’m willing to pay for it. You are my last hope, I don’t know what to do ) My email: [email protected]
fabrixx says
You can try installing Arch, if you apply yourself and follow the official guide:
https://www.osside.net/?p=15068
it is not impossible. Also I’m waiting to install the proprietary Radeon driver but still did not succeed.
On Debian I can only say to install the two packages that I have suggested.
You have tried to write in the Ubuntu support forums?
Al says
Hi, Fabrixx. Sorry, my english is not so good. Can you please tell me did you get to install the driver for the video card AMD Radeon R7 M265 ? Do you have any problems with your Arch Linux now, maybe with the screen flickering or it’s shutoff ? Does it work with the graphics card AMD Radeon ? Do you use the gnome environment with a screen resolution of 3840×2160 ? I also have a laptop Dell Inspiron 15 7000 series 7548 and I can’t install Linux with my video card (Radeon R7 M265) works. Please help me, if you can. I’ll be very grateful and can help with cash donation.
fabrixx says
Hi Al, sorry for late, I have no problem in My Dell 4k. I use max resolution, have only to arrange some applications not ready for UHD.
I use Opal driver that work well, but waiting for official Radeon.
I have not flickering.
which distribution you want to install?