summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-03 23:10:15 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-03 23:10:15 +0100
commit63dfe305dd5ff00d4de74f0cb9fea9b9901e6b40 (patch)
treef8d1dcdcee8446cd449d73e9c6396f5286232ec0 /src/helpers/MiscFunctions.cpp
parentec0c6fa22a286647bd9b300dc1f710bf7bb8c6d7 (diff)
log GPU info for debugging
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index de2f8e74..362e0675 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -331,6 +331,15 @@ void logSystemInfo() {
Debug::log(LOG, "Node name: %s", unameInfo.nodename);
Debug::log(LOG, "Release: %s", unameInfo.release);
Debug::log(LOG, "Version: %s", unameInfo.version);
+
+ Debug::log(NONE, "\n");
+
+ const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
+ Debug::log(LOG, "GPU information:\n%s\n", GPUINFO.c_str());
+
+ 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");
+ }
// log etc
Debug::log(LOG, "os-release:");