Xiaomi RedMi4x (xiaomi-santoni)

From postmarketOS
Jump to: navigation, search
Xiaomi Redmi 4x
xiaomi-santoni running pmos
xiaomi-santoni running pmos
Manufacturer Xiaomi
Name Redmi 4x
Codename xiaomi-santoni
Released 2017
Original software Android
Hardware
Chipset Qualcomm MSM8940 Snapdragon 435
CPU Octa-core 1.4 GHz Cortex-A53
GPU Adreno 505
Display 720x1280
Storage 16 GB / 32 GB / 64GB
Memory 2 GB / 3 GB / 4 GB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Audio
Works
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG
Works



Contributors

  • pinoaffe
  • Danct12

Maintainer(s)

  • pinoaffe (old Xiaomi kernel)
  • Danct12 (rebased msm-3.18 kernel from bitrvmpd)

What works

  • Install to SD Card
  • Boots
  • Flashing
  • Touch
  • Wayland
  • XWayland
  • USB Ethernet/Internet
  • WiFi
  • Vibrator
  • Audio
  • Xorg
  • USB OTG

What does not work

  • Camera (Broken in kernel, detected as /dev/video32-33)
  • GPS
  • Mobile Data
  • SMS
  • Calls
  • Accelerometers
  • Bluetooth
  • 3D Acceleration (will never happen due to downstream kernel)
  • Backlight stays on when the phone goes into "sleep" because of a lack of user interaction

Extra steps to get things working

Audio

  • alsamixer doesn't work, will result in a error telling mixer controls doesn't exist, workaround to control the volume is to use a sound server and control the volume (I use PulseAudio)
  • PulseAudio is choppy/un-hearable with the default setting, this can be fixed by turning off sched.

Bugs?

  • 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.

Mainline kernel?

Not yet, as msm8940 chipset isn't in mainline.

Parts Components In Torvalds tree?
Chipset MSM8940 (msm8940.dts) No
GPU Adreno 505 Yes (a5xx_gpu.c)
Touch Screen FT5X06 Yes (edt-ft5x06.c)
Fingerprint Sensor FPC1020 No
Accelerometer + Gyroscope ICM20607 No
ALSPS STK3X1X No
Magnetometer YAS537 No
Sound AW87319 No
Notifications LED AW2013 No
Front Camera OV5675 No
Back Camera S5K3L8 No

More information on this port

Bootloader Unlocking

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 turned on)

Key combinations for entering Recovery/Fastboot

Recovery

  • Turn the device off (or restart also works)
  • Hold both volume buttons (+ and -) before the device vibrates (Power On Self Test)
  • Keep holding until you got to recovery.

Fastboot

  • Same as recovery, but this time hold the volume down key instead of both keys.

Installation

Installation over fastboot works, Android recovery zip installation is untested.

Photos

See also