I'm kinda new to ubuntu, and I have an HP Envy 14-2020nr. The computer has hybrid graphics, and since Ubuntu doesn't yet handle them very well I've been using vga_switcheroo to disable the discrete graphics card (AMD Radeon HD 6600M Series) at boot. Anyways with the discrete graphics card disabled if i suspend my computer, when i wake it back up the computer's fan goes to maximum and won't stop until I restart.
How can I go about fixing this so I can use the suspend without having to restart afterwards? I have tried turning back on the discrete graphics card before suspending and that seems to work. So is there a way to get my computer to turn it on before suspending, but then turning it back off when it resumes? Any ways at solving this would be much appreciated. Thanks.