Well, so far it does work, but disclaimer: I don't really know whether this is the correct usage of the DRI_PRIME variable.
Originally Posted by marazmista
Now the only thing that's left wrong is the "Driver: " output.
In case of PRIME the driver of the gpu that the x server is using to display stuff is not the same than the one that's used by radeon.
QStringList driver = grabSystemInfo("xdriinfo").filter("Screen 0:",Qt::CaseInsensitive);
if (!driver.isEmpty()) // because of segfault when no xdriinfo
data << "Driver:"+ driver.filter("Screen 0:",Qt::CaseInsensitive).split(":",QString::SkipEmptyParts);
But that should be easy because when I start it with
then I get the correct driver.
DRI_PRIME=1 sudo -E ./radeon-profile