From LQWiki
Jump to: navigation, search

hwinfo is a command to show you information about all or specific hardware. You may need it if you report bugs that are related to a specific device. Its usage can look like that:

kolossus:~ # hwinfo --monitor
30: None 00.0: 10000 Monitor
  [Created at monitor.87]
  Unique ID: rdCR.47kUenJtRpF
  Hardware Class: monitor
  Model: "MIRO FP176"
  Vendor: MIR "MIRO"
  Device: eisa 0xf176 "FP176"
  Serial ID: "T7KF21AG11170"
  Size: 34x27 cm
  Resolution: 720x400@70Hz
  Resolution: 640x480@60Hz
  Resolution: 640x480@67Hz
  Resolution: 640x480@72Hz
  Resolution: 640x480@75Hz
  Resolution: 800x600@56Hz
  Resolution: 800x600@60Hz
  Resolution: 800x600@72Hz
  Resolution: 800x600@75Hz
  Resolution: 832x624@75Hz
  Resolution: 1024x768@60Hz
  Resolution: 1024x768@70Hz
  Resolution: 1024x768@75Hz
  Resolution: 1280x1024@75Hz
  Driver Info #0:
    Max. Resolution: 1280x1024
    Vert. Sync Range: 55-75 Hz
    Hor. Sync Range: 30-80 kHz
  Config Status: cfg=new, avail=yes, need=no, active=unknown

You can use hwinfo for a lot of hardware items, see the help:

$ hwinfo --help
Usage: hwinfo [options]
Probe for hardware.
  --short        just a short listing
  --log logfile  write info to logfile
  --debug level  set debuglevel
  --version      show libhd version
  --dump-db n    dump hardware data base, 0: external, 1: internal
  --hw_item      probe for hw_item
  hw_item is one of:
   all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,
   cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub,
   ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse,
   netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer,
   scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl,
   vbe, wlan, zip

  Note: debug info is shown only in the log file. (If you specify a
  log file the debug level is implicitly set to a reasonable value.)

See also

  • proc - a filesystem where you can find attributes of your devices
  • System information - other system information
  • dmidecode - similar to hwinfo --bios
  • lspci - similar to hwinfo --pci
  • lsusb - similar to hwinfo --usb
  • lsscsi - similar to hwinfo --scsi
  • cpuinfo - similar to hwinfo --cpu