How to enable discrete GPU in Lubuntu 21.04?

Solution 1:

This works for me

DRI_PRIME=1 app_you_want_to_run_into_discrete

you can also add "DRI..." indicator inside the destination run box desktop icon too.

Edit: you can check this option works reading temperatures with lm-sensors

sudo apt-get install lm-sensors