Lshw

From DikapediaV2
Jump to: navigation, search

lshw - list hardware

The lshw and lshw-gtk (the same thing but with a GUI) provide information about all hardware in your system.

What's the difference between lshw and lspci? The lspci command only lists devices that are connected via the PCI bus. See the Lspci page for more info.

See Display Hardware


$  dzdo lshw -numeric -C display
  *-display
       description: VGA compatible controller
       product: GA107GLM [RTX A2000 8GB Laptop GPU] [10DE:25BA]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=nvidia latency=0 mode=3840x2400 visual=truecolor xres=3840 yres=2400
       resources: iomemory:600-5ff iomemory:620-61f irq:199 memory:93000000-93ffffff memory:6000000000-61ffffffff memory:6200000000-6201ffffff ioport:3000(size=128) memory:94080000-940fffff
  *-display
       description: VGA compatible controller
       product: Alder Lake-HX GT1 [UHD Graphics 770] [8086:4688]
       vendor: Intel Corporation [8086]
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=3840,2400
       resources: iomemory:620-61f iomemory:400-3ff irq:190 memory:625b000000-625bffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff