Linux中查看顯卡硬件信息
https://ywnz.com/linuxjc/67.html
lspci -vnn | grep VGA -A 12
lshw -C display
查看當前使用的顯卡驅動
sudo lshw -c video | grep configuration
檢查顯卡驅動的詳情:
modinfo i915
我們可以使用 glxinfo 命令來獲查看得 OpenGL 的詳細信息:
glxinfo | grep OpenGL
apt install mesa-utils
Mesa是一個開源的3D計算機圖形庫,它提供了一個通用的OpenGL實現,用於在多個平台上渲染三維圖形。
https://wiki.debian.org/Mesa
查看3D加速是否有效
glxinfo | grep rendering
Testing:
glxgears -info
http://www.mesa3d.org/
=================
tom@tom-laptop:~/Tool$ lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c)
// 00:02.0 據此, 繼續查看詳細:
tom@tom-laptop:~/Tool$ lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c) (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Mobile GM965/GL960 Integrated Graphics Controller (primary)
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at e4400000 (64-bit, non-prefetchable) [size=1M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=8]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915, intelfb
//i915 據此, 繼續查看詳細
modinfo i915
=================
1、查看linux內核,GCC版本
cat /proc/version
2、查看Linux內核
uname -a
3、查看產品版本
lsb_release -a
=================