Manjaro Hardware Detection
  • C++ 80.6%
  • Shell 17.3%
  • CMake 1.2%
  • C 0.9%
Find a file
2025-09-29 00:35:07 +02:00
libmhwd Minor changes. Unify include paths 2014-10-13 10:51:30 +02:00
scripts mhwd: also remove conflicts 2025-09-29 00:35:07 +02:00
src add include cstdint for gcc update 2024-11-12 08:55:09 +07:00
.gitignore Added 'bin'-folder to gitignore. 2014-10-08 20:23:56 +02:00
AUTHORS adding developer to authors file 2015-02-28 13:22:19 +00:00
CMakeLists.txt Enable -Wunreachable-code only if CXX=clang++ 2014-10-08 22:17:22 +02:00
COPYING forgot to add source ;) 2012-04-25 23:50:25 +02:00
README.md Update years in copyright notice 2018-04-06 10:08:08 +03:00

Manjaro HardWare Detection (mhwd)

Project licensed under GNU GPL v.3 - Check COPYING file

The Manjaro HardWare Detection (mhwd) command is a unique feature of Manjaro Linux operating system.

There are currently two types of mhwd command:

  1. mhwd: Enables the automatic detection and configuration of computer hardware the system is running on. This includes both hardware connected internally via PCI (e.g. graphics cards), and connected externally via USB (e.g. flashdrives).
  2. mhwd-kernel: Enables the installation and easy management of multiple kernels on your system.

For more info about mhwd go to mhwd wiki page.

TODO list

  • allow to set the base lib dir
  • force to remove db config
  • show detailed info for one config
  • set architecture from library not from bash
  • pass ids and bus ids to script
  • don't remove packages on reinstallation...
  • add option similar to pacman --root ...

Contribute

Code Convention

The code convention used in this project is CamelCase. For example:

Instead of:

void Mhwd::set_version_mhwd(std::string version_of_software, std::string year_copyright)
{
}

write:

void Mhwd::setVersionMhwd(std::string versionOfSoftware, std::string yearCopyright)
{
}

Indentation of Code

Don't use tabs, instead use spaces and count 4 characters.

Software need for coding or testing

Building

In a terminal window do:

[your-name@your-name mhwd]$ mkdir build
[your-name@your-name mhwd]$ cd build/
[your-name@your-name build]$ cmake ..
[your-name@your-name build]$ make

now you have the mhwd program in the folder mhwd/bin/

or

[your-name@your-name build]$ make install

to install the files in linux directories!

Have a happy coding ! 👍