nepnep39 / neofetch-win

Simple, ultra-lightweight neofetch clone for Windows 10+ written in C++
MIT License
139 stars 10 forks source link

GPU doesn't get Updated after swapping it #21

Closed Boaphlipsy closed 5 months ago

Boaphlipsy commented 5 months ago

Using the WinSAT PrimaryAdapterString Registry Key to get the name of the GPU will only work for the first GPU installed. This registry will not get updated after installing another GPU.

Boaphlipsy commented 5 months ago

A potential fix could be to use the Registry Entry HardwareInformation.AdapterString from Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000 which seems to be the current Primary GPU

nepnep39 commented 5 months ago

try running winsat formal

Boaphlipsy commented 5 months ago

I have already manually set the Winsat registry key to the new AdapterString so it's technically fixed for me

nepnep39 commented 5 months ago

that'll do lol