How to set up the battery indicator on Xiaomi: hidden MIUI features

Xiaomi smartphones and their MIUI shell (as well as the new HyperOS) provide users with extensive customization capabilities. One of the basic but critical features is the visual display of battery power. Many device owners face a situation where the standard battery icon does not give an accurate understanding of the remaining battery life or just looks uncomfortable.

Unlike many competitors, MIUI-based Android allows you to implement changes not only through the standard menu, but also through hidden engineering codes and specialized applications. Understanding how the display system works will help avoid false readings when the phone suddenly turns off at 15% charge.

Standard methods for displaying percentage charge

The basic setup layer is available to every user without having to get root rights or connect to a computer. In modern firmware versions, Xiaomi has moved the percentage control directly to the lock screen menu, to make it easier to access frequently used features, you need to open the settings and find the partition responsible for the appearance of the locked screen.

Here, you should pay attention to the option "Show battery power." Depending on the version of Android, the system can offer a choice between displaying numbers inside the icon or next to it. If the numbers inside the icon seem too small, you should choose the option of displaying on the outside, this is especially true for models with a cutout in the screen, where the icon can overlap with the camera.

There's also the ability to change the style of the icon. Some themes completely replace the standard battery icon with a custom one, which can confuse the inexperienced user. If you've set the theme and stopped seeing the percentages, check the settings of this particular theme. Often theme developers hide the standard interface elements for aesthetics.

πŸ’‘

Before changing the theme, take a screenshot of the current lock screen to remember the location of the elements and quickly return everything back.

It is important to note that some global versions of menu firmware may call Settings β†’ Lock screen, while in Chinese builds the path may be different. Always look for keywords related to the lock screen or status bar. The lack of the right item may indicate regional limitations of functionality.

Advanced configuration through the engineering menu

To get a deeper set of battery settings, there is an engineering menu hidden from the average user, accessed through a special code in the Phone app, enter the combination ##6484## to get into the testing menu, and you can check the actual state of the battery and calibration of the sensors, which directly affects the accuracy of the indicator.

Inside the engineering menu, you're interested in a section that's related to Hardware Testing or Battery Indicator, and it shows the technical data: voltage, temperature, and current capacity. If you notice that the indicator is 100 percent, but the phone turns off after 10 minutes, the problem may be that it's out of sync, and calibration through the engineering menu helps reset those values.

⚠️ Warning: Changing the parameters in the engineering menu without understanding their purpose can lead to malfunctioning of the power system.

The use of the engineering code is safe for the user's data, but it requires caution. Once you log in, you'll see a list of tests. Select a battery test and follow the instructions on the screen. Often, the system will suggest calibrating if it detects discrepancies between the software counter and the physical state of the cell.

What is battery calibration?
Calibration is the process of resetting a power controller that remembers the minimum and maximum charge value, which helps eliminate the effect of "memory" or a percentage jump.

Use of third-party applications for customization

If standard MIUI tools aren't enough, Google Play Store apps come to the rescue, the most popular solution being Battery Widget Reborn or AccuBattery, which allows you to display widgets with detailed statistics that the standard system doesn't provide, and you can see not only the percentages, but also the discharge rate in mA/h.

To install a custom indicator in the status bar, you will need overlay-enabled apps. However, starting with Android 11 and up, access to status bar modification is severely limited by security policies. So the focus is on lock screen and desktop widgets, which can have transparent backgrounds and any design.

When using third-party software, it is important to consider resource consumption. An app that is constantly hanging in your memory and draws a beautiful indicator consumes charge on its own. Choose lightweight widgets or ones that update data rarely. The optimal solution is to use widgets built into launchers, if your phone supports installing them.

πŸ“Š How do you prefer to see the battery charge?
Just a badge.
Badge and interest inside
A separate widget on the screen
I'm not interested.

Display problems and their solution

Users often encounter bugs when the indicator freezes at a single value or shows incorrect data, such as a phone that can hang for hours at 99% or drop sharply from 40% to 5%, indicating a software glitch in the batterystats.bin file that stores usage statistics, the solution being a reset of statistics or a full calibration.

To fix the error of "freezing" percent, try to restart the device in safe mode. If the indicator behaves correctly in safe mode, then the problem is caused by a third-party application. Often the culprits are "memory cleaners" or antiviruses that aggressively control background processes and conflict with the system meter.

The table below gives common symptoms and probable causes:

Symptoms.Probable causeMethod of decision
The indicator is standing still.Failure of the UI system processReset or reset interface settings
A sharp jump from 30% to 1%Battery wear or dissynchronFull calibration (discharge to 0% and charge to 100%)
No badge at the status bar.Theme errorResetting the topic to standard in the β€œThemes” app
Vibration when connecting chargingSound and tactile response settingsDisconnection to Settings β†’ Sound and vibration

If software methods don't work, you should think about the physical state of the battery. Lithium-ion batteries degrade over time, and the controller may misinterpret the residual capacity, in which case no amount of software tweaking will return honest readings.

Set up low charge notifications

Xiaomi's Android system allows you to flexibly adjust warning thresholds, and it's standard for a phone to beep at 20 percent and 10 percent charge, but you can change those values or the way you're alerting to extend battery life and comfort, which is especially useful if you're in a place where you can't charge the device.

To change notification behavior, go to Settings β†’ Battery β†’ Settings (cog icon). You can turn on or off the audible warning. A more subtle setting is available through the Notifications section in the general system settings, where you can prevent a particular system application from displaying pop-ups.

There's also a charging optimization feature, which, if it's active, can specifically delay charging after 80 percent so you wake up with a full, but not overheated, battery, and it can be weird at that time, showing 80 percent or 81 percent, which is normal behavior for battery protection modes.

β˜‘οΈ Check-up battery health

Done: 0 / 4

The impact of design themes on the battery interface

MIUI Theme Store is a powerful tool that is often ignored when looking for the causes of interface problems. Third-party themes can completely rewrite the system files responsible for rendering the status bar. If after installing a new theme, percentages are lost or the color of the indicator changes, this is the reason.

Some themes contain errors in the XML code describing the battery icon, which results in the theme not working properly when you upgrade or switch to another version of Android, and to check this, temporarily switch to the standard Classic or Default theme, and if the indicator is back to normal, then there is a design problem.

When creating or downloading themes, pay attention to compatibility with your version of Android. Themes created for Android 10 may not display items on Android 13 correctly due to changes in the structure of system resources. Theme developers do not always have time to update their work.

⚠️ Note: Installation of themes from unverified sources (not from the official store) may contain malicious code. Use only official resources to download graphical shells.

To return the standard view without changing the whole theme, try clearing the theme app cache. Go to Settings β†’ Apps β†’ All Apps β†’ Themes β†’ Memory β†’ Clear the cache. This action will not remove your downloaded themes, but will reset display errors.

FAQ: Frequently Asked Questions

Why did Xiaomi lose battery percentages after the upgrade?
After updating your MIUI or HyperOS firmware, your display settings may reset to factory settings. Go to Settings β†’ Lock screen and re-activate the percentage slider. Also check if the system components of Google Play Services have updated.
Can I make a battery indicator as a circle?
This cannot be done by standard means, since the system icon is always rectangular or vertical. To implement a round indicator, you will need to install a third-party launcher or widget on the desktop, since the system status bar cannot be modified without root rights.
How to turn on vibration when connecting charging?
This feature is hidden in newer versions of MIUI. It often requires the use of special macro applications or login to the engineering menu via code ##6484##, where you can customize the tactile response to power events in the Feedback section.
Is it true that a colored battery icon is bad for AMOLED?
On AMOLED screens, black means the pixel is off, which saves energy. A color icon (white or green) makes the pixels glow constantly. However, the difference in consumption for a small icon is negligible and does not affect the overall life of the screen or battery.

πŸ’‘

Most display problems are solved by simple calibration or resetting the theme of the design to standard.