Manjaro Hardware Detection (mhwd) - Command Line Tool

Learn how to use the Manjaro Hardware Detection (mhwd) command-line tool to list hardware, install drivers, and manage graphics cards on your Manjaro system.

Manjaro Hardware Detection (mhwd)

Manjaro Hardware Detection Overview

The mhwd command is a powerful utility in Manjaro Linux designed to simplify hardware detection and driver management. It automates the process of identifying your system's hardware components, especially graphics cards, and helps in installing the appropriate drivers, whether proprietary or open-source.

Listing Hardware Information

To get a comprehensive overview of your system's hardware, you can use the mhwd command with specific flags. This is crucial for understanding what hardware is present and how it's configured.

# Manjaro Hardware Detection
# https://wiki.manjaro.org/index.php?title=Manjaro_Hardware_Detection_Overview

# An overview of hardware
mhwd

# List hardware information in detailed mode (-d)
mhwd -lh -d

# List installed driver information
mhwd -li -d

Automated Graphics Driver Installation

One of the primary uses of mhwd is for managing graphics drivers. It can automatically detect your graphics card and suggest or install the best available driver.

# Automated detection and installation of Graphics Drivers
# https://wiki.manjaro.org/index.php?title=Configure_Graphics_Cards

# Install the best available proprietary driver for a PCI-connected graphics card
sudo mhwd -a pci nonfree 0300

# Install the best available free (open-source) driver for a PCI-connected graphics card
sudo mhwd -a pci free 0300

Further Resources

For more in-depth information and advanced usage, refer to the official Manjaro Wiki: