Fórum Root.cz
Hlavní témata => Hardware => Téma založeno: kamenitxan 08. 01. 2015, 18:44:10
-
Zdravím,
potřebuju zjistiti pomocí terminálu GPU jméno a GPU RAM po linuxem. Je něco lepšího než "lspci -vnn | grep VGA -A 6"?
Pokud ne, můžete mi sem dá výstup toho příkazu na vašem PC?
Dík
-
co glxinfo | grep OpenGL ?
-
To mi vypsalo podivný věci, takže asi ne. (Mint 17, Virtualbox). Co to ukazuje tobě?
-
$ lspci -vnn | grep VGA -A 6
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:0474]
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at dc80 [size=128]
$ glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV84
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.4.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.4.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.4.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:
-
$ lshw | grep -A 10 'display'
*-display
description: VGA compatible controller
product: G84GL [Quadro FX 570]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
-
škoda že lshw v tom neukazuje VRAM, dobře by se mi to parsovalo. glxinfo neobsahuje nic z potřebných věcí.
Za další výpisy budu rád, moje servery o GPU ani neslyšely :)
-
Tak jsem zjistil, že lshw není všude. Pravděpodobně mi tedy nezbývá nic jiného, než přepsat část lshw do Javy :-\
-
cat $(find /sys/devices/pci* -type d -name graphics)/../resource | sed '/0x00000000000/d'
-
lspci
$ lspci -d ::0300 -vvv
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde LE [Radeon HD 7730/8730] (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited / Sapphire Technology Device e228
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 256 bytes
Interrupt: pin A routed to IRQ 40
Region 0: Memory at d0000000 (64-bit, prefetchable) [size=256M]
Region 2: Memory at fbb80000 (64-bit, non-prefetchable) [size=256K]
Region 4: I/O ports at c000 [size=256]
Expansion ROM at fbbc0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: radeon
Kernel modules: radeon
lshw
$ lshw -class display
WARNING: you should run this program as super-user.
*-display
description: VGA compatible controller
product: Cape Verde LE [Radeon HD 7730/8730]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:03:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=radeon latency=0
resources: irq:40 memory:d0000000-dfffffff memory:fbb80000-fbbbffff ioport:c000(size=256) memory:fbbc0000-fbbdffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.