How to Read Voltages Supplied to Your Desktop's PMBus SM Bus using Linux

Abstract: Resolve unreliable voltage readings on modern motherboards by using lm-sensors instead of raw I2C commands to safely access PMBus data.

Created: 2026-10-02 by

You can read voltages from your desktop's PMBus SMBus in Linux by using the lm-sensors suite, which provides a higher-level abstraction than raw I2C commands. This method automatically detects supported hardware and presents readable data through standard system interfaces, avoiding the need to manually calculate addresses or byte conversions.

Why Raw I2C Tools Often Fail

Many users attempt to use i2c-tools, specifically i2cget, to query specific registers on the SMBus. While this approach works for simple devices, it frequently fails for complex Power Management Bus (PMBus) controllers found in modern motherboards. The primary reason is that PMBus is not a single-register device; it requires a sequence of commands to initialize communication, select channels, and handle multi-byte responses. Furthermore, the kernel may map these devices differently depending on the BIOS version and motherboard manufacturer, making hardcoded addresses unreliable. Attempting to unload kernel modules like i2c-dev or i2c-isa to force access is dangerous and often breaks other system functions without providing any benefit to voltage reading tasks. Instead, leveraging established sensor drivers ensures stability and correct data interpretation.

Installing the lm-Sensors Suite

The most reliable way to access PMBus data is through the lm-sensors package. This toolset includes utilities that interact with the Linux kernel's hardware monitoring subsystem (hwmon). On Debian-based systems, you can install the necessary packages using the following command:
sudo apt-get update
sudo apt-get install lm-sensors sensors
For Red Hat-based distributions, use:
sudo yum install lm_sensors lm_sensors-utils
Once installed, you should run the detection script to ensure all available hardware monitoring chips are recognized by the system. This step probes the SMBus for known sensors and loads appropriate kernel modules if they are not already active.
sudo sensors-detect
During this process, you will be asked to confirm each probe. Pressing Enter to accept the default "Yes" for most questions is generally safe, as the script only reads information and does not modify system configurations permanently unless you explicitly choose to add modules to the boot configuration. After completion, restart the service or reboot to ensure all detected sensors are loaded.

Reading Voltage Values

With the tools installed and sensors detected, you can now view the voltage readings. The simplest command is:
sensors
This command outputs a summary of all detected hardware sensors, including CPU temperatures, fan speeds, and voltages. Look for sections labeled with your motherboard model or chipset name. Voltages are typically listed under headings such as Vcore, +3.3V, +5V, or +12V. If the output is too verbose or you need programmatic access, you can query specific sensor files directly from the sysfs interface. Each sensor appears as a directory under /sys/class/hwmon/. To find your PMBus controller, list the directories:
ls /sys/class/hwmon/
Identify the directory corresponding to your SMBus controller (often named something like hwmon0 or it8720). Inside, you will find files named in0_input, in1_input, etc., which contain the raw voltage values in millivolts. You can read them directly:
cat /sys/class/hwmon/hwmon0/in0_input
This method bypasses the complexity of PMBus protocol handling, as the kernel driver manages the communication internally. For more detailed information about your hardware specifications, including how these voltages relate to overall system power delivery, you might also want to check our guide on Displaying Hardware Specifications: Graphic Cards, which covers similar diagnostic techniques for other components.

Interpreting the Data

The values returned by in*_input files are in millivolts (mV). A value of 3300 corresponds to 3.3 Volts. It is important to note that these readings reflect the voltage supplied by the motherboard regulators, not necessarily the voltage received by every component, as there is always some drop across traces and connectors. Regularly monitoring these values helps identify unstable power delivery, which can lead to system crashes or hardware degradation over time.

Troubleshooting Missing Sensors

If sensors returns no data or shows zero values, several factors could be at play. First, verify that your motherboard actually supports PMBus monitoring via the OS. Some older or budget boards disable this feature in the BIOS. Check your motherboard manual for mentions of "Hardware Monitor," "PC Health Status," or "PMBus." Second, ensure that the correct kernel module is loaded. Use lsmod | grep i2c to see if relevant I2C adapters are present. If the adapter is missing, you may need to load it manually using sudo modprobe i2c_i801 (for Intel chipsets) or similar, depending on your platform. Finally, consider that some virtual machines do not expose physical SMBus devices to the guest OS, so this method is strictly for bare-metal Linux installations.

Frequently Asked Questions

Can I use i2cget to read PMBus voltages reliably?

No, i2cget is generally unsuitable for PMBus because it sends single-byte commands without the necessary initialization sequences. PMBus controllers require multi-step protocols that raw I2C tools cannot easily replicate. Using lm-sensors is the recommended alternative for stable and accurate readings.

What does it mean if a voltage reads 0 or very low?

A reading of 0 usually indicates that the sensor driver is not loaded or the hardware monitoring feature is disabled in the BIOS. Very low or fluctuating values may suggest a faulty sensor connection or a failing voltage regulator module on the motherboard. Always cross-reference with other diagnostic tools before assuming hardware failure.

Does this method work on laptops?

It depends on the laptop manufacturer and model. Many laptops restrict access to hardware monitoring sensors for security reasons, or they use proprietary interfaces instead of standard PMBus. While some Lenovo ThinkPads and Dell Latitude models support lm-sensors, many consumer laptops will return no data regardless of the software used.

Is it safe to modify the values in sysfs?

Absolutely not. The files in /sys/class/hwmon/ are read-only for user space applications. Any attempt to write to them will result in a permission denied error. These interfaces are designed solely for monitoring, not for controlling hardware parameters, which protects your system from accidental damage.

How often should I monitor these voltages?

For general desktop usage, occasional checks are sufficient to ensure stability. However, during overclocking, stress testing, or troubleshooting random shutdowns, continuous monitoring is advisable. You can set up cron jobs to log sensors output to a file for historical analysis if needed.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More