I had followed the instructions posted by emk2203 ([My AMD Radeon graphic card is not working on 16.04](https://askubuntu.com/questions/757586/my-amd-radeon-graphic-card-is-not-working-on-16-04?rq=1)) and now I could make the apps use my secondary AMD card
and it's work! Look:

[Firefox running (http://demo.marpi.pl/exp/mecha/) experiment at 15fps](https://i.stack.imgur.com/2DsT7.png)

Now, runnig Firefox by Terminal with DRI\_PRIME=1:

`DRI_PRIME=1 firefox`

[The same experiment running at 61fps](https://i.stack.imgur.com/BXdE2.png)

Thanks emk2203!

Now I need to know how configure the system to always runs the app with the DRI\_PRIME=1 set.

Sorry for bad english. I'm brasilian.