Sony Xperia XA (sony-tuba)

Contributors

 * Oturpe

Maintainer(s)

 * Oturpe

How to enter flash mode

 * 1) Power off: + until device vibrates three times
 * 2) Connect usb cable to computer
 * 3) Press and hold
 * 4) Connect usb cable to phone
 * 5) Hold  until led turns blue
 * 6) Fastboot mode is now active

Installation

 * 1) pmbootstrap init, select sony-tuba, answer questions
 * 2) pmbootstrap install
 * 3) pmbootstrap flash_rootfs
 * 4) pmbootstrap flash_kernel

Kernel
As of 2020-10-01, vendor kernel SonyCustoms/kernel_sony_tuba_stock is used. The original should be available from Sony Developer World, but for some reason the 33.3.A series used by Xperia XA does not seem to be available in their kernel repository at all and Xperia open source archives only have a outdated build 33.3.A.115 while .126 is the latest.

Touchscreen
Touchscreen is apparently some ELAN model. The driver is included in the vendor kernel at. It seems to work correctly with postmarketOS userspace.

Display
Without including msm-fb-refresher package, weston gui booted successfully and the desktop environment and postmarketOS demos menu were shows correctly. However, the screen was not updating at all, resulting in apparent nonresposiveness to touch and frozen datetime. Adding msm-fb-refresher solved the issue.

Problems

 * Horizontal boot splash image is shown, even though screen in vertically aligned, resulting to part of splash screen being hidden and bottom of screen being left blank.
 * When usb power is connected and battery is not completely empty, device boots.