Hardware Information and Drivers

Identify hardware components, inspect kernel drivers and firmware, and troubleshoot hardware support in MocaccinoOS.

MocaccinoOS uses the Linux kernel and its hardware driver infrastructure to support a wide range of devices. Most hardware is detected automatically when the system starts or when a device is connected.

This page explains how to identify hardware, inspect loaded drivers, manage kernel modules and investigate common hardware problems.

Identify Hardware

Several command-line utilities provide information about the hardware installed in a computer.

PCI Devices

The lspci utility lists devices connected through the PCI and PCI Express buses. This includes graphics cards, network controllers, audio devices, storage controllers and other motherboard components.

List detected PCI devices:

1
$ lspci

Display numeric vendor and device identifiers:

1
$ lspci -nn

To see which kernel driver is being used by each device:

1
$ lspci -nnk

Example output:

1
2
3
4
03:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723]
        Subsystem: Intel Corporation Device [8086:0084]
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

The output identifies:

  • The hardware manufacturer and device.
  • The PCI vendor and device identifiers.
  • The kernel driver currently handling the device.
  • Other kernel modules that may support the device.

The numeric identifier, such as 8086:2723, is particularly useful when looking up hardware compatibility and driver support.

USB Devices

The lsusb utility lists devices connected through USB.

List connected USB devices:

1
$ lsusb

Display the USB device hierarchy, including drivers:

1
$ lsusb -t

This is useful when troubleshooting USB peripherals, Bluetooth adapters, webcams, storage devices and USB network adapters.

Processor and Memory

To inspect processor information:

1
$ lscpu

To inspect memory usage:

1
$ free -h

To display hardware memory information, where supported:

1
$ sudo dmidecode -t memory

Detailed Hardware Inventory

The lshw utility provides a more detailed hardware inventory.

Display a compact overview:

1
$ sudo lshw -short

Display information about a particular hardware class:

1
$ sudo lshw -class network

The output can include manufacturer, model, capabilities, bus information and driver details.

Additional utilities such as inxi can provide a convenient system overview:

1
$ inxi -F

These utilities may need to be installed separately.

Inspect Kernel Drivers

Linux hardware drivers are generally provided by the kernel. Many drivers are built directly into the kernel, while others are loaded as kernel modules.

List Loaded Modules

The lsmod utility displays currently loaded kernel modules:

1
$ lsmod

To search for a particular module:

1
$ lsmod | grep iwlwifi

The output includes the module name, memory usage and other modules that depend on it.

Inspect a Kernel Module

The modinfo utility displays information about a kernel module.

For example:

1
$ modinfo iwlwifi

The output can include:

  • Module description and author.
  • Module filename.
  • Supported device aliases.
  • Dependencies.
  • Firmware files required by the driver.
  • Available module parameters.

The module must be available for the currently running kernel.

Load a Kernel Module

A module can be loaded manually with modprobe.

For example:

1
$ sudo modprobe iwlwifi

Check whether it was loaded:

1
$ lsmod | grep iwlwifi

To remove a module:

1
$ sudo modprobe -r iwlwifi

Warning: Removing a module that is currently providing network, storage, graphics or other essential functionality can interrupt the system. Do not unload modules unless you understand their purpose and dependencies.

Manual module loading is generally intended for troubleshooting. Most hardware drivers are loaded automatically when the corresponding device is detected.

Load Modules Automatically

If a hardware device requires a module that is not loaded automatically, systemd can be configured to load it during boot.

Create a configuration file under:

1
/etc/modules-load.d/

For example, to load a module named example_module, create:

1
/etc/modules-load.d/example_module.conf

With the following contents:

1
example_module

The module will be requested during system startup.

Only use this configuration when automatic hardware detection does not already load the required module.

For module options, use a configuration file under:

1
/etc/modprobe.d/

For example:

1
/etc/modprobe.d/example_module.conf

With the following contents:

1
options example_module option_name=value

Replace the example module and option with values documented by the driver.

Changes to module configuration may require unloading and reloading the module or restarting the system.

Firmware

Some hardware devices require firmware files in addition to their kernel drivers.

Firmware is commonly required by:

  • Wireless network adapters.
  • Graphics hardware.
  • Ethernet controllers.
  • Bluetooth adapters.
  • Other specialised devices.

MocaccinoOS packages Linux firmware separately. The original linux-firmware collection is split into individual packages, with each firmware directory provided as its own package under the firmware/ category.

For example:

  • firmware/i915 provides firmware for Intel integrated graphics.
  • firmware/nvidia provides firmware for NVIDIA graphics hardware.
  • firmware/matrox provides firmware for Matrox graphics hardware.

Most commonly required firmware packages are preinstalled in MocaccinoOS. However, some hardware may require an additional firmware package.

List Installed Firmware Packages

To list installed firmware packages:

1
$ sudo luet search firmware/ -q --installed

Search Available Firmware Packages

To list all available firmware packages, including those that are not installed:

1
$ sudo luet search firmware/

The output includes the package name, version, description, repository and installation status.

For example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
> firmware/i915-20261019
 -> Category: firmware
 -> Name: i915
 -> Version: 20261019
 -> Description: Microcode and firmware blobs required by Intel integrated graphics (i915 driver), covering GPU initialization and display features.
 -> Repository: mocaccino-desktop
 -> Uri: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
 -> Installed: true

> firmware/matrox-20261019
 -> Category: firmware
 -> Name: matrox
 -> Version: 20261019
 -> Description: Firmware for Matrox video / graphics hardware, used in legacy graphics cards and display subsystems.
 -> Repository: mocaccino-desktop
 -> Uri: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
 -> Installed: false

Install Additional Firmware

If a required firmware package is not installed, install it using Luet.

For example, to install the Matrox firmware package:

1
$ sudo luet install firmware/matrox

Replace firmware/matrox with the package corresponding to your hardware.

After installation, some devices may require a driver reload or system restart before the firmware is used.

Check for Missing Firmware

If a device does not work correctly, inspect the kernel log for firmware loading errors:

1
$ sudo journalctl -k -b | grep -i firmware

Messages indicating that firmware could not be loaded usually identify the missing filename.

Use the hardware information from lspci -nnk or lsusb to identify the device and its driver. Then check whether the corresponding firmware package is installed.

Note: Firmware availability depends on the hardware and its driver. Installing a general firmware collection does not guarantee support for every device.

Graphics Hardware and Drivers

Graphics hardware is managed through the Linux kernel’s graphics subsystem and the userspace graphics stack.

MocaccinoOS supports different graphics hardware through the drivers provided by the Linux kernel and the corresponding userspace components.

To identify the graphics hardware and its driver:

1
$ lspci -nnk | grep -A 3 -iE 'vga|3d|display'

The output can help identify:

  • The graphics card manufacturer and model.
  • The kernel driver currently in use.
  • Other available kernel modules.

The graphics driver is normally selected automatically. Installing an unrelated driver or manually replacing graphics components can result in display problems or an unusable desktop session.

For display configuration, refer to Display and Monitor Configuration.

Hardware Sensors

The lm-sensors utilities can provide information about temperatures, voltages and fan speeds when supported by the hardware.

Display detected sensor readings:

1
$ sensors

If no sensors are detected, the hardware may not expose compatible monitoring interfaces or the required kernel drivers may not be available.

The sensors-detect utility can help identify supported monitoring hardware:

1
$ sudo sensors-detect

Review its suggestions before accepting changes.

CPU Microcode

Modern processors can receive microcode updates that correct hardware errata and address processor-specific issues.

Microcode updates are provided separately from ordinary kernel modules.

The required package depends on the processor manufacturer:

  • Intel processors use Intel microcode.
  • AMD processors use AMD microcode, commonly distributed through the Linux firmware collection.

MocaccinoOS provides microcode through its distribution packages and boot-time configuration.

To inspect processor information:

1
$ lscpu

To look for microcode messages in the current boot log:

1
$ sudo journalctl -k -b | grep -i microcode

Microcode updates are normally applied during system startup. Installing an update does not necessarily mean it is already active; a reboot may be required.

Troubleshooting Hardware

When a device does not work, first identify the hardware and determine whether a kernel driver is available.

Device Is Not Detected

For PCI devices:

1
$ lspci -nn

For USB devices:

1
$ lsusb

If the device is not listed, check its physical connection, power supply, firmware settings and hardware compatibility.

No Kernel Driver Is Loaded

Inspect the device and its available drivers:

1
$ lspci -nnk

Look for the following lines:

1
2
Kernel driver in use:
Kernel modules:

If a suitable module is listed but no driver is in use, inspect the kernel log for initialization errors or missing firmware.

Driver Fails to Load

Check whether the module exists:

1
$ modinfo module_name

Inspect kernel messages:

1
$ sudo journalctl -k -b

If the module is available and appropriate for the device, you can attempt to load it manually:

1
$ sudo modprobe module_name

Replace module_name with the actual kernel module.

If loading fails, the command usually provides an error that can help identify the problem.

Hardware Stops Working After a Kernel Update

Kernel updates can change hardware driver behaviour or introduce regressions.

Check the running kernel version:

1
$ uname -r

Inspect the driver currently associated with the device:

1
$ lspci -nnk

Review the kernel log for errors:

1
$ sudo journalctl -k -b

If the problem started immediately after a kernel update, testing a previously working MocaccinoOS kernel can help determine whether the regression is kernel-related.

Collect Hardware Information for Support

When reporting a hardware problem, include enough information to identify the device and its driver.

The following commands provide a useful starting point:

1
2
3
4
5
$ uname -r
$ lscpu
$ lspci -nnk
$ lsusb
$ lsmod

For graphics-related problems, include the relevant PCI device and kernel log messages.

For network-related problems, also refer to Network Configuration.

Before sharing diagnostic output publicly, review it for serial numbers, hardware identifiers or other information you do not want to disclose.

Further Reading

Last modified November 29, 2026: Update SFTP (f553589)