This commit is contained in:
system64fumo 2024-08-22 16:18:37 +03:00
parent 3bc7601c56
commit 4689d9b107
2 changed files with 4 additions and 1 deletions

View file

@ -939,7 +939,8 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request)
GPUINFO += "Driver Description: " + description + "\n"; GPUINFO += "Driver Description: " + description + "\n";
result += GPUINFO; result += GPUINFO;
drmFreeVersion(version);
close(fd);
if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version")) if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version"))
result += execAndGet("cat /proc/driver/nvidia/version | grep NVRM"); result += execAndGet("cat /proc/driver/nvidia/version | grep NVRM");

View file

@ -627,6 +627,8 @@ void logSystemInfo() {
GPUINFO += "Driver Description: " + description + "\n"; GPUINFO += "Driver Description: " + description + "\n";
Debug::log(LOG, "GPU information:\n{}\n", GPUINFO); Debug::log(LOG, "GPU information:\n{}\n", GPUINFO);
drmFreeVersion(version);
close(fd);
if (GPUINFO.contains("NVIDIA")) { if (GPUINFO.contains("NVIDIA")) {
Debug::log(WARN, "Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.\n"); Debug::log(WARN, "Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.\n");