diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-19 16:50:15 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-19 16:50:15 +0900 |
commit | e15cafc78b80ca281f9460d533af0c94e56cc990 (patch) | |
tree | ab970c4fc9774b85a0eb97f622bb49d81c49b127 /src | |
parent | 4090a27746074d7cf7ef72b0faa327bf295d8d98 (diff) |
Linux: サーバでもGPU情報を表示する様に
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -49,6 +49,9 @@ const char *display_gpu() { "grep -F \"device\" | sed 's/^.* device//' | " "sed \"s/^.* '//\" | sed \"s/'//\" | tail -1 | " "sed 's/ Core Processor Integrated Graphics Controller//'"); +#elif defined(__linux__) + return run_gpu_command("lspci | grep VGA | sed 's/^.*: //' | " + "sed 's/Corporation //' | sed 's/ (.*$//'"); #else if ( access("/bin/glxinfo", F_OK) == -1 && |