How to Use Manjaro Hardware Detection Tool

29/12/2020
Manjaro is based on the well-known Arch Linux. Among all the facilities, Manjaro Hardware Detection Tool is a unique one. It’s a CLI tool that offers a very powerful control over your system’s hardware configuration. You can enable/disable/change the connected hardware behavior in your current system.Manjaro Hardware Detection Tool, or “mhwd” for short, is still under development. So, using this tool should be performed at your own risk. That’s why before proceeding, make sure that you understand each and every single command. In Manjaro, there are 2 “mhwd” tools available:

  • mhwd – Suitable for modifying and/or changing the behavior of the installed hardware and drivers.
  • mhwd-kernel – Suitable for kernel manipulation (identifying, installing and removing Linux kernels).

Let’s get started letting at these tools.

Manjaro Hardware Detection Tool usage

  • “mhwd”

Before diving deep, let’s check out all the available commands and their usage structure.

mhwd -h
# OR
mhwd –help

  • Hardware information

For identifying all the hardware that are connected to your current system, run the following command –

mhwd -lh

If you want a detailed view, use the additional “-d” flag.

mhwd -lh -d

Are you looking for only the hardware that are connected via the USB or PCI? You can easily filter them out with the following filter flags –

mhwd -lh -d –usb

  • Driver information

Now, it’s time to find out information about the installed drivers. Run the following command for all the currently installed driver info –

mhwd -li

Just like before, for a detailed information, you can use “-d” flag.

mhwd -li -d

Sorting out the output by a specific driver type is also possible. Use “–usb” for USB drivers, “–pci” for PCI drivers etc.

mhwd -li -d –pci
mhwd -li -d –usb

The following command will list all the available drivers for your system.

mhwd -la

Like before, you can also sort by either USB or PCI.

mhwd -la –usb
mhwd -la –pci

Not all the drivers are necessary for your system. Find out what drivers your system needs –

mhwd -l

mhwd -l –pci
mhwd -l –usb

Configuring a graphics card

The Manjaro Hardware Detection Tool is not only capable of showing you various info but also properly configuring the hardware in your system.

For example, you’ve plugged a new graphics card in your system. Now, it’s time to “mhwd” to show its magic.

The following command will automatically detect and install the appropriate driver for the graphics card.

sudo mhwd -a pci free 0300
# OR
sudo mhwd -a pci nonfree 0300

Here, the “-a” flag tells the tool for automatically detecting the hardware and installing the proper driver. “pci” is the connection type of the graphics card and “0300” is the hardware ID for graphics card.

Note – Currently, Manjaro Hardware Detection Tool can only perform the action on graphics cards and PCI connections. In the future, the support will extend.

In lots of cases, reinstalling the graphics driver will help you solve some really pesky issues. Run the following command –

sudo mhwd -f -i pci <driver_name>

For example, if your system is running an NVIDIA graphics card, the command should look like this –

sudo mhwd -f -i pci video-nvidia

Do you want to remove an existing or old driver from your system? At first, identify the driver –

mhwd -li -d –pci

Then, remove the driver –

sudo mhwd -r pci <driver_name>

The name should be available on the list of the existing driver.

  • mhwd-kernel

For managing kernels, Manjaro Linux offers a pretty cool and simple GUI kernel management.

Managing system kernels is also possible from the command line. At first, check out all the available options for “mhwd-kernel” –

mhwd-kernel -h

Find out the info of the current kernel –

mhwd-kernel -li

This will also show all the other kernels currently installed in your system.

  • Installing a kernel

You can add other kernels to your system as well. For adding a kernel, the command structure will be –

sudo mhwd-kernel -i linux<kernel_version> rmc

Here, “rmc” indicates that upon the installation of the new kernel, the previous one will be removed. If you don’t need to remove the current kernel, then don’t use “rmc”.

For example, if you want to install the kernel 4.17.19-1, then the command should be –

sudo mhwd-kernel -i linux419

Once the installation is complete, you have to restart your system for the changes to take effect.

  • Removing a kernel

Caution – Don’t remove the current running kernel as it will render the system useless. Make sure to switch to a different kernel before removing one.

For removing a kernel, use “-r” flag –

sudo mhwd-kernel -r linux419

Now, a kernel consists of 3 parts – the kernel itself, kernel headers and extra modules. Need to remove just a single one?

sudo mhwd-kernel -r linux419-headers
sudo mhwd-kernel -r linux419-extramodules

Enjoy!

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

[Graylog] [Lab] [Phần 5] Hướng dẫn tạo Grok patterns với log SSH

Grok patterns là kỹ thuật xác định cấu trúc log data, có thể sử dụng grok pattens sẵn có hoặc tạo...
30/12/2020

Thuê Proxy chạy Google Ads / Cần chú ý gì khi chọn proxy và email chạy G.G ads?

Cần chú ý gì khi chọn proxy và email chạy G.G ads? So với các anh em chạy ads trên FB thì ads thủ G.G...
12/10/2023

Differences Between Release Engineering and DevOps

Today most companies are adopting some form of DevOps and configuration management philosophy. They are automating their...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Mua proxy v4 chạy socks5 để chơi game an toàn, tốc độ cao ở đâu?
18/05/2024

Thuê mua proxy Telegram trọn gói, tốc độ cao, giá siêu hời
18/05/2024

Thuê mua proxy Viettel ở đâu uy tín, chất lượng và giá tốt? 
14/05/2024

Dịch vụ thuê mua proxy US UK uy tín, chất lượng số #1
13/05/2024

Thuê mua proxy Việt Nam: Báo giá & các thông tin MỚI NHẤT
13/05/2024