mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 03:09:48 +01:00
log GPU info for debugging
This commit is contained in:
parent
ec0c6fa22a
commit
63dfe305dd
1 changed files with 9 additions and 0 deletions
|
@ -332,6 +332,15 @@ void logSystemInfo() {
|
||||||
Debug::log(LOG, "Release: %s", unameInfo.release);
|
Debug::log(LOG, "Release: %s", unameInfo.release);
|
||||||
Debug::log(LOG, "Version: %s", unameInfo.version);
|
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
|
// log etc
|
||||||
Debug::log(LOG, "os-release:");
|
Debug::log(LOG, "os-release:");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue