Hardware detection

From Gentoo Wiki
Jump to: navigation, search

This article lists and describes several tools used to detect hardware.

Complete hardware list

lshw

lshw (sys-apps/lshw) generates a structured list of detected hardware and their features:

root #emerge --ask sys-apps/lshw


USE flag (what is that?) Default Recommended Description
gtk No Add support for x11-libs/gtk+ (The GIMP Toolkit)
sqlite No Add support for sqlite - embedded sql database
static No  !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically

hwinfo

hwinfo (sys-apps/hwinfo) is the hardware detection of OpenSUSE and shows a lot details:

root #emerge --ask sys-apps/hwinfo

inxi

inxi is a system information script for irc, administration, and system troubleshooters.

root #emerge --ask sys-apps/inxi

kudzu

kudzu is the hardware detection of Red Hat. Install sys-apps/kudzu:

root #emerge --ask sys-apps/kudzu

Specific hardware

lspci

lspci (sys-apps/pciutils) lists all PCI devices connected to the system:

root #emerge --ask sys-apps/pciutils


USE flag (what is that?) Default Recommended Description
static-libs No Build static versions of dynamic libraries as well
zlib Yes Support compressed pci.ids database

lspci detects the devices based on an ID database provided by sys-apps/hwids. To get a more recent database install a new version of hwids.

lsusb

lsusb (sys-apps/usbutils) lists all USB devices:

root #emerge --ask sys-apps/usbutils


USE flag (what is that?) Default Recommended Description
python Yes Add optional support/bindings for the Python language
zlib Yes Support compressed pci.ids database

lsusb detects the devices based on an ID database provided by sys-apps/hwids. To get a more recent database install a newer version of hwids.

lpinfo

lpinfo (part of CUPS) lists all printers and the used drivers.

List all connected printers:

root #lpinfo -v

Lists all available drivers:

root #lpinfo -m

scanModem

scanModem finds for a connected modem a suited driver. scanModem is not in the Portage tree, so it has to be manually downloaded and extracted:

user $gunzip scanModem.gz
user $chmod +x scanModem
user $./scanModem

It will create a folder Modem and the file scanout.something contains the wanted information. If a modem is detected, the driver is named next to Drivers, e.g. for a HSF modem:

FILE ./Modem/scanout.something
Driver=hsfmodem-drivers