AaronKelley / DellFanManagement

A suite of tools for managing the fans in many Dell laptops.
GNU General Public License v3.0
245 stars 30 forks source link

Handle NVAPI_GPU_NOT_POWERED #22

Closed navhaxs closed 2 years ago

navhaxs commented 2 years ago

Hey just a quick bugfix - I was getting a NVAPI_GPU_NOT_POWERED exception getting thrown at gpu.FullName which was causing the background thread to die I think. So I moved that line of code into the try-catch

string name = gpu.FullName.Replace(" Laptop GPU", string.Empty);

Dell XPS 9570 BIOS 1.22.1 12/10/2021

Btw big kudos @AaronKelley for publishing this repo! I have my own fork where I added a quick access tray app :) Feel free to get inspiration for yours 😀 https://github.com/navhaxs/DellFanManagement

AaronKelley commented 2 years ago

Thanks for the PR. I was planning to address this myself but looks like you have gone ahead and done it... I won't have a chance to review & publish a new binary until around 6/14.