Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati

Versione 2 del 18/06/2015 10.08.53

Nascondi questo messaggio


Problemi in questa pagina? Segnalali in questa discussione

Introduzione

PRIME è una tecnologia utile a gestire la grafica ibrida in Ubuntu e derivate ufficiali. Tramite il procedimento di seguito riportato, sarà possibile abilitare la scheda grafica dedicata Ati/AMD quando necessario (ad esempio per avviare giochi o programmi di modellazione 3D, i quali richiedono maggiori performance grafiche).

PRIME è l'unico metodo utilizzabile per gestire i più vecchi sistemi Mux a grafica ibrida (probabilmente utilizzati per le schede video Ati/AMD fino alla serie Radeon HD 5xxx compresa).

Questa guida vale per i seguenti sistemi:

  • processore integrato Intel (IGP) e scheda grafica dedicata AMD (grafica ibrida Intel/AMD);
  • APU e scheda grafica dedicata AMD (grafica ibrida AMD/AMD).

Preparazione

Procedere come segue:

  1. Verificare le schede grafiche collegate al proprio schermo, digitando il seguente comando in una finestra di terminale:

    xrandr --listproviders

    Verrà visualizzato un testo simile al seguente, specifico per la propria configurazione hardware:

    Providers: number : 2
    Provider 0: id: 0x7d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:Intel
    Provider 1: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 1 name:radeon
  2. Prendere nota degli id specifici dei due processori grafici. Ad esempio, nel comando precedente la scheda integrata Intel riporta l'id 0x7d, mentre la scheda dedicata AMD riporta l'id 0x56.

  3. Digitare il seguente comando:

    xrandr --setprovideroffloadsink ID1 ID2

    I termini ID1 e ID2 vanno sostituiti e adattati alla propria configurazione, sostituendoli con gli id precedentemente trovati.

Avviare programmi con la scheda grafica dedicata AMD

Now, you can use your discrete card for the applications who need it the most (for example games, 3D modellers...):

$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

OpenGL renderer string: Gallium 0.4 on AMD TURKS

Other applications will still use the less power-hungry integrated card. These settings are lost once the X server restarts, you may want to make a script and auto-run it at the startup of your desktop environment (alternatively, put it in /etc/X11/xinit/xinitrc.d/). This may reduce your battery life and increase heat though.

Verifica di funzionamento

We can see that there are two graphic cards: Intel, the integrated card (id 0x7d), and Radeon, the discrete card (id 0x56), which should be used for GPU-intensive applications. We can see that, by default, Intel is always used:

$ glxinfo | grep "OpenGL renderer"

OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile

Ulteriori risorse


CategoryNuoviDocumenti