diff options
author | Ikalco <[email protected]> | 2024-12-18 08:56:53 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-18 15:56:53 +0100 |
commit | 49e5f9c42867e33d816d316507d7bc7a45ae0477 (patch) | |
tree | 9ce047a336aaec503ae17506c74c005002435d3a /src | |
parent | 5f1df55fcb45a72e92258113685aa9064f6ebf3e (diff) | |
download | Hyprland-49e5f9c42867e33d816d316507d7bc7a45ae0477.tar.gz Hyprland-49e5f9c42867e33d816d316507d7bc7a45ae0477.zip |
logging: get broader GPUINFO (#8753)
Diffstat (limited to 'src')
-rw-r--r-- | src/debug/CrashReporter.cpp | 2 | ||||
-rw-r--r-- | src/debug/HyprCtl.cpp | 2 | ||||
-rw-r--r-- | src/helpers/MiscFunctions.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index f3478366..7072de81 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -161,7 +161,7 @@ void NCrashReporter::createAndSaveCrash(int sig) { #if defined(__DragonFly__) || defined(__FreeBSD__) finalCrashReport.writeCmdOutput("pciconf -lv | grep -F -A4 vga"); #else - finalCrashReport.writeCmdOutput("lspci -vnn | grep VGA"); + finalCrashReport.writeCmdOutput("lspci -vnn | grep -E (VGA|Display|3D)"); #endif finalCrashReport += "\n\nos-release:\n"; diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 5ce3933c..d315990f 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -976,7 +976,7 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request) } } catch (...) { GPUINFO = "error"; } #else - const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); + const std::string GPUINFO = execAndGet("lspci -vnn | grep -E (VGA|Display|3D)"); #endif result += "GPU information: \n" + GPUINFO; if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version")) { diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 6d365161..b29ad6aa 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -608,7 +608,7 @@ void logSystemInfo() { } } catch (...) { GPUINFO = "error"; } #else - const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); + const std::string GPUINFO = execAndGet("lspci -vnn | grep -E (VGA|Display|3D)"); #endif Debug::log(LOG, "GPU information:\n{}\n", GPUINFO); |