Xiaomi Redmi 4X (xiaomi-santoni)
- 1 Contributors
- 2 Maintainer(s)
- 3 Users owning this device
- 4 What works
- 5 What does not work
- 6 Bugs?
- 7 Mainline kernel?
- 8 More information on this port
- 9 Bootloader Unlocking
- 10 Key combinations for entering Recovery/Fastboot
- 11 Installation
- 12 Bluetooth
- 13 libhybris
- 14 Photos
- 15 See also
Users owning this device
- Install to SD Card
- USB Ethernet/Internet
- USB OTG
What does not work
- Mobile Data
- Bluetooth (partially)
- 3D Acceleration (will never happen due to downstream kernel)
- Display Power Management on Wayland
- Full Disk Encryption (does unlock, but failed to look up the partition after booting)
- Framebuffer programs, such as fbterm will have it's red and blue color palette swapped for some odd reason, it might be better to look into this, as you might use them later. This will also affect programs that make use of fbconfig.
- alsamixer doesn't work, will result in a error telling mixer controls doesn't exist, workaround to control the volume is to use PulseAudio.
Not yet, as MSM8937 isn't in mainline. MSM8940 is similar to MSM8937.
|Parts||Components||In Torvalds tree?|
|GPU||Adreno 505||Yes (a5xx_gpu.c)|
|Touch Screen||FT5X06||Yes (edt-ft5x06.c)|
|Accelerometer + Gyroscope||ICM20607||No|
More information on this port
- The upstream msm-3.18 kernel is a fork of https://github.com/bitrvmpd/msm-3.18
- Most of this work was done for my project (Arch Linux on Redmi 4X), and the progress are backported to postmarketOS in order to help development.
Like other Xiaomi devices, the user will have to acquire the bootloader unlock key: https://en.miui.com/unlock
The device will not unlock if the device isn't 7 days old (from the time when your device connects to internet and powered on)
Key combinations for entering Recovery/Fastboot
- Turn the device off (or restart also works)
- Hold both volume buttons (+ and -) and power button
- Keep holding until you got to recovery.
- Same as recovery, but this time hold the volume down key instead of both keys.
Installation over fastboot works, Android recovery zip installation is untested.
Bluetooth on this phone is using the WCNSS chip, which provides two SMD channels to the BT core, one for command and one for event packets. Support for Bluetooth HCI SMD can be added using this patch.
With that patch applied, the Bluetooth interface can be bring up by set /sys/module/hci_smd/parameters/hcismd_set to 1. Then install bluez, start the service and use bluetoothctl to control it.
As right now, it seems to connect, but disconnect very quickly, it doesn't ask for pair code when connecting, so this needs to be investigated.
Hybris implementation for this device has been added in !420. test_hwcomposer_7_caf passes, and even hwcomposer driver for X11 works!
However, the user needs to build/download pre-built system.img that is used for Halium. Which we'll update this section later when we got them uploaded.
As for the HWcomposer implementation for X11, it's not that fast and there are artifacts on the screen, and kwin on this device gives repeating texture.