Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[device-port] [yuga] Sony Xperia Z #19

Open
lnjX opened this issue Jul 10, 2017 · 14 comments

Comments

@lnjX
Copy link
Contributor

commented Jul 10, 2017

Tree: halium-7.1

  • Create mainfest https://github.com/Halium/halium-devices/tree/halium-7.1/manifests
  • Boot image and system image build successfully
  • Device boots into rootfs, usb: Manufacturer: GNU/Linux Device appears in dmesg on host.
  • LXC container starts and does not crash
  • libhybris tests
    • test_gps
    • test_hwcomposer
    • test_lights
    • test_vibrator
    • test_wifi (works with nmcli, but test doesn't)
    • test_sensors
    • test_audio (working great, with all outputs)
    • test_camera
    • test_input
    • test_nfc
    • test_recorder
  • Impossible to change display backlight brightness/turn off
  • Fix WiFi has to be enabled manually (add systemd service?)
  • Flashlight (udev rules or what could be the problem?)
  • Bluetooth (just needs to be enabled as WiFi?)
  • GSM/LTE (untested)
  • Performance could be better and isn't as good as on android, probably some problems with hwcomposer

WiFi

I had to do echo sta > /sys/module/wlan/parameters/fwpath first, before I could use it.
Then you can use nmcli device wifi list and nmcli device wifi connect <wifi name> password "<password>" to connect to your WiFi access point.

Help needed:

There are four other devices with the same SoC, all are compiling (manifests are in halium-devices), I just need someone who owns one of these devices and can test it:

  • Sony Xperia Tablet Z LTE (pollux) (✔️ - dvogel tested)
  • Sony Xperia Tablet Z Wi-Fi (pollux_windy)
  • Sony Xperia ZL (odin)
  • Sony Xperia ZR (dogo)

@lnjX lnjX changed the title [yuga] Port to Sony Xperia Z (yuga) [device-port] [yuga] Port to Sony Xperia Z (yuga) Jul 11, 2017

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Jul 12, 2017

It's probably this:
https://stackoverflow.com/questions/36451444/what-can-cause-a-socket-permission-denied-error

Should we just disable this in the kernel configs? I think so, I'll try it when I'm home.

@lnjX lnjX changed the title [device-port] [yuga] Port to Sony Xperia Z (yuga) [device-port] [yuga] Port to Sony Xperia Z Jul 14, 2017

@doniks

This comment has been minimized.

Copy link
Member

commented Jul 16, 2017

I had the problem with socket: permission denied as well when building for Nexus 7: #22
After adding

# CONFIG_ANDROID_PARANOID_NETWORK is not set

to my config https://gist.github.com/doniks/7406a87e5f15e1eab5a64aa90ad8f633#file-lineageos_flo_defconfig-L593 it works

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Jul 17, 2017

@doniks This problem is solved (at least in my case). I have explicitly disabled it:
https://github.com/LNJ2/android_kernel_sony_apq8064/blob/halium-7.1/arch/arm/configs/fusion3_yuga_defconfig#L651

I just have problems with hwcomposer. It's not working at all, and there is no error message.

@doniks

This comment has been minimized.

Copy link
Member

commented Jul 17, 2017

oh, I didn't know =n is even a possibility. well. good!

as for hwcomposer, three things I recently learned/heard about come to my mind

  • run it like this: EGL_PLATFORM=hwcomposer test_hwcomposer
  • make sure the backlight is turned on, that's how I couldn't see at first that it was actually working echo 200 > /sys/class/leds/lcd-backlight/brightness
  • maybe strace can shed a light on what it's trying to do: EGL_PLATFORM=hwcomposer strace test_hwcomposer
@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Jul 18, 2017

@doniks Well, the backlight is on, I runned it with the env variable and Bhushan Shah also doesn't find the error of the strace output ... 😕

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Dec 27, 2017

dvogel used this to build halium for the Tablet Z and it worked well there. I also tried to install it the pm caf rootfs, but kwin isn't starting / there is no output on the screen. Do I have to manually start kwin? If so with which env vars, etc.?

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Dec 27, 2017

It's working also for me, now. 😃
So to support this device in Halium, I'd suggest to fork these repos into the halium organisation

<project path="device/sony/yuga" name="LNJ2/android_device_sony_yuga" revision="halium-7.1" remote="github" />
<project path="kernel/sony/apq8064" name="LNJ2/android_kernel_sony_apq8064" revision="halium-7.1" remote="github" />

And replace this repo in the main manifest (it still had java contents and didn't build):

<project path="hardware/qcom/media-caf/msm8960" name="LNJ2/android_hardware_qcom_media" groups="qcom" revision="halium-7.1-caf-8960" remote="github"  />

Kernel and device tree are in Halium org now.

@lnjX lnjX changed the title [device-port] [yuga] Port to Sony Xperia Z [device-port] [yuga] [dogo] [odin] [pollux] Port to Sony Xperia Z Jan 14, 2018

@lnjX lnjX changed the title [device-port] [yuga] [dogo] [odin] [pollux] Port to Sony Xperia Z [device-port] [yuga] [dogo] [odin] [pollux] Port to Sony Xperia Z / fusion3 devices Jan 14, 2018

@lnjX lnjX changed the title [device-port] [yuga] [dogo] [odin] [pollux] Port to Sony Xperia Z / fusion3 devices [device-port] [yuga/dogo/odin/pollux] Port to Sony Xperia Z and fusion3 devices Jan 19, 2018

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Jan 21, 2018

Plasma Mobile:
photo_2018-01-21_01-07-03

Currently the new Plasma Mobile images are broken (i think november till december): they will freeze after logging in. I tested the Image from Halloween (October, 31) and it works fine! 👍 😃

@doniks

This comment has been minimized.

Copy link
Member

commented Jan 21, 2018

try the latest image from CI. This one worked for me: http://mobile.neon.pangea.pub:8080/view/All/job/generic_rootfs/68/ . I see that by now there is a 69, haven't tried that one.

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Jan 24, 2018

[offtopic / plasma-mobile]: The navigation bar isn't displayed and the status bar is very small since the sound module was switched to droid instead of alsa.

@lnjX lnjX changed the title [device-port] [yuga/dogo/odin/pollux] Port to Sony Xperia Z and fusion3 devices [device-port] [yuga] Port to Sony Xperia Z and fusion3 devices Jan 24, 2018

@lnjX lnjX changed the title [device-port] [yuga] Port to Sony Xperia Z and fusion3 devices [device-port] [yuga] Sony Xperia Z and fusion3 devices Feb 11, 2018

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Oct 7, 2018

Currently when I open the camera on plasma mobile my whole system crashes and restarts. @bhush9, @JBBgameich was telling me you made halium builds with the droidmedia module, but you haven't added the project to the main manifest. Could droidmedia fix the problem?

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Oct 20, 2018

About the broken backlight: I found at least the correct /sys device for changing the backlight brightness. It's /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl/brightness. Has anyone an idea how I can fix that and make /sys/class/leds/lcd-backlight/brightness work, so upower can use it?

@lnjX lnjX changed the title [device-port] [yuga] Sony Xperia Z and fusion3 devices [device-port] [yuga] Sony Xperia Z Oct 20, 2018

@KingKRoBot

This comment has been minimized.

Copy link

commented Oct 26, 2018

Hello, Iam ready to test it on ODIN) Xperia ZL.

@lnjX

This comment has been minimized.

Copy link
Contributor Author

commented Oct 26, 2018

@KingKRoBot There's already a manifest for your device, so you can just try building everything. Tell me, if you need help with that (but you can also find everything in the halium documentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.