Daniel Bauer composed on 2018-03-30 16:55 (UTC+0200):
Felix Miata composed:
When all you want is a PCI ID, that produces needlessly verbose output. Next time try:
# lspci -nn | grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0402] (rev 06)
or if you want driver information too:
# lspci -nnk | grep -A3 VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0402] (rev 06) Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7850] Kernel driver in use: i915 Kernel modules: i915
Probably wouldn't need conversion to English this way.
This only gives me output for the intel graphics, not for the nvidida. I guess I'd have to replace "VGA" by "3D" or something. Anyway, I already posted the output according to Carlos' suggestion - and still don't know which is that PCI ID that the script needs and where and how to put it :-)
The first characters of output are the PCI ID. [####:####] is the device ID, first part manufacturer code, second part device-specific. Change -A3 to something larger, e.g. -A6 or -A8, and the info for the NVidia should show up. man lspci /-A<Enter> -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org