From 255272ea18a1bd899168b2d2063b6f153edda919 Mon Sep 17 00:00:00 2001 From: System64 <72354122+System64fumo@users.noreply.github.com> Date: Thu, 23 May 2024 19:04:39 +0300 Subject: [PATCH] debug: Add ARM GPU info (#6212) Added a simple way to get basic info about the GPU on ARM based systems --- src/debug/HyprCtl.cpp | 2 ++ src/helpers/MiscFunctions.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 51071533..dc5fa742 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -883,6 +883,8 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request) #if defined(__DragonFly__) || defined(__FreeBSD__) const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga"); +#elif defined(__arm__) || defined(__aarch64__) + const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible"); #else const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); #endif diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 7382d24c..a520c9d4 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -649,6 +649,8 @@ void logSystemInfo() { #if defined(__DragonFly__) || defined(__FreeBSD__) const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga"); +#elif defined(__arm__) || defined(__aarch64__) + const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible"); #else const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); #endif