Jump to content

Sony Xperia Z (sony-yuga): Difference between revisions

From postmarketOS Wiki
Wfranken (talk | contribs)
Added some more clarification
Wfranken (talk | contribs)
m Restructure page
Line 14: Line 14:
| memory = 2 GB
| memory = 2 GB
}}
}}
=== Contributors ===
== Contributors ==


* wfranken (porting and testing)
* wfranken (porting and testing)
Line 20: Line 20:
* ata2001 (help via IRC)
* ata2001 (help via IRC)
* opendata (help via IRC)
* opendata (help via IRC)
== Device knowledge ==


=== Special keycombo's ===
=== Special keycombo's ===
Line 42: Line 44:


This is also the reason why LineageOS boot.img is far larger than postmarketOS boot image (the recovery is inside it).
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 ===
=== What works ===
Line 70: Line 74:
* Wifi
* Wifi


=== Installation procedure ==
=== Mainline support ===
 
* It should be possible to run [[The Mainline Kernel]] on the device. At least there is a <code>dts</code> file already in the 4.14 kernel: <code>arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dts</code>
 
At the moment this is not tested yet.
 
== Install ==
 
=== Installation procedure ===


Follow the [[Installation guide]].
Follow the [[Installation guide]].
Line 80: Line 92:
** If all else fails: buy a new battery
** If all else fails: buy a new battery


=== Other information ===
== References ==
 
* It should be possible to run [[The Mainline Kernel]] on the device. At least there is a <code>dts</code> file already in the 4.14 kernel: <code>arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dts</code>
 
=== Links ===


* [https://github.com/LineageOS/android_kernel_sony_msm8974 Kernel Source]
* [https://github.com/LineageOS/android_kernel_sony_msm8974 Kernel Source]

Revision as of 10:18, 6 July 2018

Sony Xperia Z
Sony Xperia Z running Weston
Sony Xperia Z running Weston
Manufacturer Sony
Name Xperia Z
Codename yuga
Released 2013
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
Software
Original software Android 4.1.2 on Linux 3.0.31
postmarketOS
Category testing
Pre-built images no
Mainline no
Features
Flashing
No data
USB Networking
No data
Internal storage
No data
SD card
No data
Battery
No data
Screen
No data
Touchscreen
No data
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
No data
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data

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
  • Reset if stuck: hold volume up and power button till the phone shakes

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)

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 don't work
  • Launching Weston is delayed by 135 seconds to let udev settle down
  • Display works only when running cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode after being logged in using SSH.

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