Working on gpu info
This commit is contained in:
parent
9933280db5
commit
f045e8ec00
2 changed files with 8 additions and 0 deletions
1
test
Normal file
1
test
Normal file
|
@ -0,0 +1 @@
|
|||
lspci -mm | awk -F '\"|\" \"|\\(' '/"Display|"3D|"VGA/ {a[$0] = $1 " " $3 " " $4}END {for(i in a) {if(!seen[a[i]]++) print a[i]}}'
|
|
@ -195,6 +195,13 @@ void get_info() { // get all necessary info
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// gpu
|
||||
FILE *gpu = popen("lspci", "r");
|
||||
if (gpu) {
|
||||
|
||||
fclose(gpu);
|
||||
}
|
||||
pkgs = pkgman();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue