Xiaomi Pad 5 (xiaomi-nabu)
|
Xiaomi Pad 5 | |
| Manufacturer | Xiaomi |
|---|---|
| Name | Pad 5 |
| Codename | xiaomi-nabu |
| Released | 2021 |
| Type | tablet |
| Hardware | |
| Chipset | Qualcomm Snapdragon 860 (SM8150-AC) |
| Display | 1600x2560 (IPS LCD) |
| Storage | 128/256 GB (UFS 3.1) |
| Memory | 6 GB |
| Architecture | aarch64 |
| Software | |
Original software The software and version the device was shipped with. |
Android (MIUI) 10 |
Extended version The most recent supported version from the manufacturer. |
Android (MIUI) 13 (MIUI 13) |
| FOSS bootloader | no |
| Nura | |
| Category | testing |
Pre-built images Whether pre-built images are available from the Nura Installation page. |
yes |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
yes |
Nura kernel The kernel version that runs on the device's port. |
6.16.0 |
| Device package |
|
| Kernel package |
linux-xiaomi-nabu out-of-tree |
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Works
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Internal storage eMMC, SD cards, UFS... |
Partial
|
Battery Whether charging and battery level reporting work. |
Partial
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
Keyboard Whether the built-in physical keyboard works. |
Works
|
Stylus |
Works
|
| Multimedia | |
3D Acceleration |
Works
|
Audio Audio playback, microphone, headset and buttons. |
Partial
|
Camera |
Broken
|
Camera Flash |
Works
|
| Connectivity | |
Wi-Fi |
Works
|
Bluetooth |
Works
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Untested
|
USB OTG USB On-The-Go or USB-C Role switching. |
Works
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Broken
|
Magnetometer Sensor to measure the Earth's magnetism |
Works
|
Ambient Light Measures the light level; used for automatic screen dimming in many interfaces. |
Untested
|
Hall Effect Measures magnetic fields; usually used as a flip cover sensor |
Works
|
Known issues
| WARNING: Please read them all before installing. |
- There are some issues with the UFS crashing for no apparent reason, this seems to be common on Samsung UFS. If you have crashes, please check which UFS model you have with:
$ cat /sys/class/block/*/device/model
- The top-right speaker is not working
- The sound quality is not great yet, so please do not use the speakers at full volume
- Microphone works, but its sound is very loud
How to enter flash mode
- Fastboot: With the device powered off, hold the and button simultaneously, until the "FASTBOOT" text appears.
Installation
| WARNING: Doing this will ERASE ALL DATA on your device. Please backup all your personal data before continuing! |
| The bootloader must be unlocked before attempting to flash the device. |
With pre-built images
The Xiaomi Pad 5 supports pre-built images since 17 March 2025. Follow Installation/Using a pre-built image and install the rootfs to the userdata partition:
$ fastboot erase dtbo
$ fastboot flash boot ...-xiaomi-nabu-boot.img
$ fastboot flash userdata ...-xiaomi-nabu.img
$ fastboot reboot
With pmbootstrap
- Install pmbootstrap
$ pmbootstrap init # choose xiaomi nabu $ pmbootstrap install
- Connect the tablet in fastboot mode to your PC
- Flash with:
$ pmbootstrap chroot $ fastboot erase dtbo $ exit $ pmbootstrap flasher flash_rootfs $ pmbootstrap flasher flash_kernel $ pmbootstrap chroot fastboot reboot
If you find any issues, please report them at pmaports issues.
Hardware notes
Charging
Normal charging works fine with the built in pm8150b charger thanks to the qcom_smbx driver. This allows for 5v@2amp charging.
Depending on hardware revision, one of these two fast chargers might be available:
ln8000
A working driver used to be shipped in our mainline fork, but it's disabled in the dt because of its quirks. Fast charging works when the battery is already charged at >30% and only after negotiating 9v with a PPS enabled charger.
bq2597x
Less common chip, no driver available for mainline linux yet.
Stylus pen
Bluetooth pairing
Requirements:
- Nura/Android running in a dual-boot setup on Xiaomi Pad 5
- Another Bluetooth device that can connect to Bluetooth LE devices
- Xiaomi Smart Pen
Steps:
- Connect the pen to Android running on Mi Pad.
- Disable Bluetooth: The pen will be discoverable for 30 seconds.
- Connect the pen to another Bluetooth device.
- Reboot the tablet into Nura.
- Disconnect the pen from the other device and connect to the pen on Nura.
Charging
A barebone driver is present on our fork of the kernel and allows to wirelessly charge and monitor the Xiaomi stylus pen.
You can change the max charge of the pen (charge_control_end_threshold default at 85%) via the standard power supply interface found at /sys/class/power_supply/idtp9418/.
Some debug information of the charging process is available at /sys/bus/i2c/devices/3-003b/chip_status.
If the driver doesn't seem to be working, check with:
$ lsmod | grep idtp9418
If it doesn't return anything, run $ sudo modprobe idtp9418 and check again.
Microphone
The microphone works, but high volumes make it clip really bad. Try playing with alsamixer in the audio capture settings for xiaomi-nabu card.
Speakers
The speakers can sound a bit distorted at higher volumes.
The last speaker present in the list inside the speaker-dai-link->codec->sound-dai and audio-routing dt entry doesn't work. Swapping speakers order always makes the last speaker in the sequence not work. The root cause is unclear; all the codecs and resets look like they were configured correctly, and attempts to circumvent the problem by adding dummy speakers doesn't work.
Contributors
- Map220v
- Vio :D
- Pan Ortiz
- Marc Serdeliuk
Users owning this device
- AskorbinovayaKislota (Notes: 6/256, huaxing panel, tripleboot Crdroid (Android 13) + Windows 11 + PostmarketOS, plus i have precision pen 2 for it)
- Fireman112 (Notes: Daily driver, unlocked bootloader, triple booted (android, windows 11, ubuntu))
- FlashTeens (Notes: Treble boot Windows,Android and Linux)
- Froosxhroos (Notes: notes)
- Ka33 (Notes: dead)
- Lepotototor (Notes: Use as secondary little laptop. Use with uefi and dualbooting pmos and Arch)
- Map220v (Notes: Permanently bricked)
- Mrrpmeowfurry (Notes: primary tablet, on crDroid)
- Nik012003
- Overcast302
- Russanandres (Notes: Some android 14 rom)
- Serdeliuk (Notes: Triple boot: Android, Windows 11, PostmarketOS)
- Vincele (Notes: MIUI, daily driver, unlocked)
- Zaku88 (Notes: daily driver, stock Android ROM)
- ZBookCMD (Notes: Windows 11 ARM; as second laptop)
Gallery
-
Xiaomi Pad 5 with working Wi-Fi
-
Xiaomi Pad 5 with KDE Plasma
See also
- Close-to-mainline kernel on GitLab