Locate and fix hardware faults
Case Study
If your hardware is causing trouble, good advice can be hard to find, but Linux users have a number of easily installed analysis tools to help systematically track down the root cause of problems. This month, we present a selection of these tools.
Because computer systems are complex, problems are often difficult to identify when working on a PC or server. Besides software bugs and faulty configurations, hardware defects are the main cause of failures. An expensive and time-consuming replacement will obviously show which of the components is no longer working correctly; however, various Linux programs and kernel modules support troubleshooting and help you find problem configurations. In this article, I take a closer look at some of these tools.
System Components
Sometimes even identifying the hardware can be tricky. Laptops and convertibles whose components differ from current standards often make it difficult for users and administrators to identify the chipsets and GPUs or the status of individual assemblies. A hardware overview should determine the actual capacity of a laptop battery or the motherboard and BIOS revision.
Sometimes you can reach your target by replacing a flat battery or updating obsolete firmware. Especially with mobile systems, reading out the temperature values can point to error sources, such as a dried up thermal paste or a dusty fan that is consequently working inefficiently.
You can't normally expect software to repair your defective hardware, but targeted tests reveal error sources. The right choice of analysis software helps to isolate these errors quickly. Sometimes, proactive replacement of individual components makes sense, for example, for disks that show the first symptoms of impending faults. Hardware analysis tools and their test routines make a valuable contribution to data security.
inxi
While the features included in most graphical desktop environments often only support superficial diagnosis, the inxi [1] command-line tool, which is based on dmidecode [2], provides a detailed overview of the hardware installed on the system. Inxi is available in almost all software repositories and is therefore easily installed with your distribution's package manager.
The inxi -help
command displays the script's very extensive parameter list. Inxi primarily provides detailed hardware information, but it also lists some operating system-specific data, including the kernel version, number of processes, memory consumption, init system with version number, run level, and desktop environment. The inxi -v 7
command, which the admin runs with root privileges, provides a largely complete list, including the temperature values reported by sensors in the system (Figure 1).
Although inxi will run with normal user rights, you won't see all the data: Details about the installed memory, such as the manufacturer, clock speed, bus width, and slot assignments, are missing in user mode. In addition to hardware-specific information, the software displays the BIOS firmware revision and the exact partitioning data for the mass storage media, and it identifies network cards, including wireless WAN hardware. If the server has a RAID array, it also appears in the output with all the relevant details. The software reads the laptop batteries' firmware and provides information on defective or exhausted cells based on the capacity data and – if available – the number of charge cycles.
If you don't need the full output, inxi lets you display individual, optionally combinable parameters in a short listing. Additionally, you can set the level of detail for the program output with the -v <detail level>
parameter, which ranges from 0
to 7
. The use of color combinations makes the output clearer and easier to read.
Updates
You should always keep inxi up to date, because new hardware is constantly coming onto the market. Thus, older versions may display components and their data inaccurately or incompletely. Inxi can be updated using the package manager, by entering inxi -U
with root privileges. The software then checks the version status and, if necessary, loads a newer version off the Internet; this also updates the man page (Figure 2).
Because of its detailed detection function, inxi is very well suited to broadly isolate hardware problems: If certain components do not show up in the detail view or data is incorrect (e.g., the amount of RAM), you can draw conclusions about possible defects.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.