[Xiaomi Mi Pad 5] tom.android:
What all about ?

- Round-trip for back and forth " Dual boot Linux & Android" <----> MIUI 14 Stock OS. <----> Linux (In Easy way.)

- Android side ( Protected your device for EDL)

* Do not install Win11 on Nabu.

* NoN ROOT or ROOT with Enable OEM Unlocked toggle was gray out.

Avoid.... some module can

(disable relock or goto EDL Mode by itself.)

(Re-open Unlocked Bootloader Function itself again.)

* No port ROM .

* No overwritten "persist partition".

View attachment 6107714

Developer options Setting. ( Safety first configuration)

---OEM unlocking menu will gray out with "Bootloader is already unlocked."

Note: disable from your all actions.

--Enable (toggle on) USB debugging menu

View attachment 6107730

Default Home Ubuntu 24.04 Desktop​

View attachment 6104640

* Ubuntu 24.04 LTS aarch64

View attachment 6104611

# Reference: https://git.timoxa0.su/timoxa0/Guide-Linux-Nabu

Note:

1. Deployer Script will auto-resize stock partitions for you.( reduce the risk for manual partitions modification.)

2. Please prepared your Android OS first ( ROOT- Option not reccomended) , Androids Kernel will patched with new boot menu.(UEFI) (boot_a partition)

--------Begin----------

Step For Windows:

* ( new dual boot with MIUI 14-->after a fresh installation of Ubuntu 24.04, you must do a factory reset your Android OS.)

* Open CMD with Administrator

* Connect Internet

* Connect your device with Computer.

1. Install deployer and platform tools. ( Only one time)

powershell.exe -C "irm https://s.tx0.su/lnd | iex"

2. The latest rootfs image.

---- 2.1 Download and extract rootfs image. ( here )

---- 2.2 Reboot into Fastboot Mode.

adb reboot bootloader

3.Flash image to device using deployer.

lon-deployer /path/to/rootfs.img

4.Enter your "username", "password" and linux partition size.

Example;

Note: partition size = 50%=256/2 GB

Username for linux: tom <--
Password for tom: <--
Size of linux partition (leave empty to skip if possible): 50% <--

[16:53:08] Username: tom <--
Password: qaz1wsx2 <--
Partition size: 50% <--
...

5.Reboot to Linux menu.

initial setup ubuntu (login) with enable virtual keyboard.(if don't have external kbd , can touchable initial setup application. )

* After the final reboot, a menu will appear that you can navigate using the volume and power buttons

View attachment 6107369

*Enable Temporaly Virtual Keyboard For Initial Setup.

View attachment 6107370

* Initial Setup Ubuntu 24.04 (with touch screen & Virtual keyboard)

6.Reboot to Android menu and do a factory reset. ( my Stock Recovery)

View attachment 6107377

Step ( Re-installation with new or the same copy of Linux Distro.) * no need to factory reset Android OS.

1. Reboot to fastboot mode.

adb reboot bootloader

2.Flash image to device using deployer. (* ignore input the partition size )

lon-deployer /path/to/rootfs.img

3.Reboot to initial setup Ubuntu. (CAN RESTORE BACKUP WITH "TIMESHIFT".

---------------------------------------------------

Step ( Stock Restore )

1.Restore Stock Partition.

2.Flash with Stock Fastboot batch.

fastboot flash partition:0 gpt_both0.bin

fastboot -w

// flash STOCK with fastboot batch.
flash_all.bat

------------------------------------------------------

Windows gaming on Linux with (FEX-Emu & Steam)

-by "TheMagicMojoMan'

Windows gaming on Linux - HOWTO

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Please KEEP THIS THREAD CLEAN!!! Only post in this thread if you have a major improvement/alternative and you would like to share it as a HOWTO. There is a dedicated thread...

xdaforums.com

View attachment 6105239

View attachment 6105240

View attachment 6105948

View attachment 6105949

Windows gaming on Linux - HOWTO (FEX-Emu & Steam) ( Touch with no sound)

------------------End Of Part One------------​

Step (Things I Recommend Doing (Optimize) After Installing Ubuntu 24.04 LTS 'Noble Numbat')

*Enable Bluetooth Activation at Start up.

Edit /etc/bluetooth/main.conf

Edit AutoEnable = true

sudo nano /etc/bluetooth/main.conf

# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'true'.
AutoEnable=true

-----------------------------

Configurations after flash the ubuntu images on nabu

Check the network I connected the tablet to the network via RNDIS. After the configuration is completed on the Windows side, the IP address can be obtained after the tablet is booted. maverick@mipad5:~$ ifconfig lo: flags=73...

xdaforums.com

such as "zRam" etc., (Not compatible with " Box86/64, Wine & Steam" )

Please consult

TheMagicMojoMan​

if you met error , do not forget to do "sudo apt install ubuntu-desktop" before reboot!!!

# Add zRam

How to Configure ZRAM on Ubuntu Linux

ZRAM is a powerful ramdisk cache for Linux-based systems. Learn how you can speed up your Ubuntu system by enabling and tweaking ZRAM today.

www.maketecheasier.com

View attachment 6104754

View attachment 6104629

----------------------------------------

# Add swap

How To Add Swap Space On Ubuntu 24 04

wiki.crowncloud.net

View attachment 6105209

----------------------------------

Auto CPUFREQ

git clone https://github.com/AdnanHodzic/auto-cpufreq.git

cd auto-cpufreq

sudo ./auto-cpufreq-installer

sudo auto-cpufreq --install

sudo systemctl status auto-cpufreq

sudo auto-cpufreq --stats

-----------------------------------

# Enable Thai Language & Keyboard layout.

SYSTEM > LANGUAGE & REGION

View attachment 6107709

View attachment 6107710

----------------------------------

sudo apt install smplayer

View attachment 6104636

sudo apt install timeshift

View attachment 6104643

setting > Hide unmounted volumnes

Hide the disks icon on the left

Settings->Appearance->Configure dock behavior->Show Volumes and Devices

View attachment 6104651

Bug

Turn off some power Saving options:

--- Screen Blank (Off)

--- Automatic Suspend (Off)

View attachment 6107703

How to Install Thunderbird as DEB (Not Snap) in Ubuntu 24.04 | UbuntuHandbook

Things I Recommend Doing After Installing Ubuntu 24.04

Here is what I suggest doing after a fresh installation of Ubuntu 24.04 to get a smoother and better experience.

itsfoss.com

How to Install/Remove Flatpak (.flatpakref) in Ubuntu 24.04 | UbuntuHandbook