I am currently using Asus tuf fx505dy which has two GPU one AMD integrated GPU(comes with 3550h) and rx560x discrete GPU. so when I was using windows there was AMD software which switched my GPU to rx560x when using this laptop on ac power and automatically switched to integrated GPU in battery power to save power(i was getting 2-3.5 hr backup). but in Ubuntu my laptop is "maybe" using discrete GPU on battery power.
So my battery backup is very poor(I'm getting hardly 1hr) and my laptop fans are always loudly spinning. so I want to disable my rx560x always and use integrated GPU. and whenever I want I can turn rx560x back on. how to do that?