Sony Xperia Z (sony-yuga)

From postmarketOS
Jump to: navigation, search
Sony Xperia Z
Sony Xperia Z running Weston
Sony Xperia Z running Weston
Manufacturer Sony
Name Xperia Z
Codename sony-yuga
Released 2013
Original software Android 4.1.2 on Linux 3.0.31
Hardware
Chipset Qualcomm APQ8064 Snapdragon S4 Pro
CPU Quad-core 1.5 GHz Krait
GPU Adreno 320
Display 1080x1920 TFT
Storage 16 GB
Memory 2 GB
Architecture armhf
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Xwayland
Works
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls


Contributors

  • wfranken (porting and testing)
  • ollieparanoid (help via IRC)
  • ata2001 (help via IRC)
  • opendata (help via IRC)

Device knowledge

Special keycombo's

  • Boot to bootloader (fastboot): unplug device, hold volume up and plug usb into device. LED turns blue when in fastboot
  • Boot to recovery(when flashed to FOTAkernel only?): repeatedly press volume up during bootup
  • Reboot if stuck: hold volume up and power button till the phone vibrates once
  • Shutdown phone: hold volume up and power button till phone vibrates three times

Notification LED information

  • Constant blue LED: fastboot mode
  • Slowly blinking red LED when plugged in: battery cannot hold any charge.
  • Blinking red LED when trying to boot: Cannot boot, maybe offsets are wrong?
  • Constant red LED on while plugged in: charging

Non-standard notes

The Xperia Z does not have a recovery partition, so flashing PostmarketOS erases any recovery you have installed. Instructions across the internet for reinstalling a custom recovery are almost all incorrect.

To install a custom recovery on the Xperia Z:

  • put the device in fastboot mode
  • run fastboot flash boot recovery.img (replace recovery.img with the filename of your recovery of choice)
  • run fastboot reboot to reboot into the recovery

This is also the reason why LineageOS boot.img is far larger than postmarketOS boot image (the recovery is inside it).

Current state

What works

  • charging
  • network through USB
  • telnet in initramfs
  • ssh
  • adjusting the led, torch and the lcd backlight
  • display
    • Weston
    • Xwayland
  • touchscreen

Known issues

  • Splash screens works but disappears long before Weston comes up
  • FDE does not work, password unlock screen does not appear

What has not been tested

  • Bluetooth
  • 3G
  • Sound
  • Phone calls
  • SD card
  • Wifi

Mainline support

  • It should be possible to run The Mainline Kernel on the device. At least there is a dts file already in the 4.14 kernel: arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dts

At the moment this is not tested yet.

Install

Installation procedure

Follow the Installation guide.

Troubleshooting

  • If you get a slowly blinking red LED when trying to charge, this could mean your battery does not get charged. You have then have two options:
    • Open the back (eg. with a hairdryer) and try to unplug and plug the battery
    • If all else fails: buy a new battery

References