yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
It seems does since as I say it was almost 24 hours without charging. Charging isue is no problem on amami, it charges and led indicator say that thing is charging, only which I found in logcat there is something about power monitor or power manager if I am not wrong, but it charges without problem. There is charging source detector isue, for example, when usb cable is connected before phone is powered on it detects charger and whole things working good e.g. it detect charger source + dev option "stay awake is working", but if usb cable is connected after device boots up than charging source is not detected, but stil charging somehow and also leds indicator showing up. That thing I think would be a new priority thing for fixing
[Sony Cross-Device General] drakonizer:
But that's not the point. Android detects the input as USB and charges at a slow rate, slower than what it's capable of.

And also, what about deep sleep? Android battery stats show honami is always awake.
[Sony Cross-Device General] munjeni:
For amami only, hope somebody do it for honami
[Sony Cross-Device General] munjeni:
On amami charging is not slow! I'm not analysed things about battery but for sure I will snif that. Only which I saw in logcat during camera snifing is that missing battery manager (also there is a missing battery sub menu in *#*#4636#*#*), there is realy missing something. About deep sleep, I think these stats is somehow messed, you can see sometimes computed power usage (mA) is 121344646452364 which is :eek: . Thats I think because missing battery monitor/manager (whatewer it is caled for). We have problem is kernel usb module too, thats a first thing which we need to fix.
[Sony Cross-Device General] munjeni:
PRODUCT_PLATFORM is missing in mk, I have added it to platform.mk in rhine but vendor qcom opensource and sony common is somehow skipped from building and things must be done manyaly with mm (or propertly fixed), without that whole common folder (lights, sony init...etc) and qcom vendor opensource (libnetctlrl) is mising in final build! Maybe thats a reason why you have a battery drain? There is ton of SIGSEGV lines in logcat related to missing libnetctrl
[Sony Cross-Device General] dex87xda:
Any SS of camera?! Preview mode?!
[Sony Cross-Device General] aquaboy11:
Good news! The camera has been fixed. As with the recent deprecation of msm8974, it has been removed from AOSP, and for whatever reason partially removed from drivers/media/platform/msm/camera_v2/isp/msm_isp40.c in commit 1b2ff21. One of the else if statements got removed, which in turn caused the variable wm_bit_shift to be set to 3 instead of 4. This is what gave us the buggy camera we all know.
[Sony Cross-Device General] broky:
deep sleep works just fine(amami here)

echo in phone calls unfortunately remains(hope it gets solved so i will use it as daily rom,seems pretty fast and stable )

charging works fine,too.yellow led lights when its plugged in wall charger,no sign in settings(thunder sign or battery tab in settings show nothing).but it does charge.
[Sony Cross-Device General] jerpelea:
the platform has been dropped by the SOC manufacturer in the 3.4 kernel and there are no android 7+ userspace libs
[Sony Cross-Device General] aquaboy11:
With Android 7+ userspace libs, do you mean the blobs provided by Sony? If so, and there is no plan in updating them anymore, can't they just be released to the public? This way they will not have to bother with updating them anymore, and the community gets a chance to continue support.
[Sony Cross-Device General] broky:
major problem came up here:

tried to reboot while charging and the phone stayed powered off..

can t power it on nor get in recovery,flashmode or bootloader..only yellow light is on when it s plugged!

any idea what should i do?
[Sony Cross-Device General] aquaboy11:
I had that too, the light stayed on even after disconnecting the charger. Disconnect it, hold volume up+power for more than 10 seconds, then release them and try to boot your phone. I have to do this every time I reboot/shut down my phone.
[Sony Cross-Device General] broky:
change your nickname to magic boy:D

thanks m8:good:
[Sony Cross-Device General] erikcas:
Which device? Honami or amami?
[Sony Cross-Device General] broky:
amami.
[Sony Cross-Device General] aquaboy11:
I am using honami, but I bet it works for the rest for the rhine family/deprecated devices too. Also, I think we need to get back on topic before the mods come in and make us :p.

As for the on-topic, the camera is no longer split in 3, but for me it still has a small green stripe on the right side. Does anyone else have the same? There is a chance it is caused by me using the msm8996 camera HAL, but I want to know for sure.
[Sony Cross-Device General] davidteri91:
If anyone want see how looks cam in kernel 1.3.3 ......

https://drive.google.com/file/d/0B-e5eQvKq2t2SmNON1NfWFc4Y0U/view

https://drive.google.com/file/d/0B-e5eQvKq2t2ZksyX0w3SGZVMTA/view

https://drive.google.com/file/d/0B-e5eQvKq2t2aXhlVUhfci1Kbm8/view

https://drive.google.com/file/d/0B-e5eQvKq2t2ZEU2ZVBnRllhX1k/view

now blobs need to be re-calibrated for camera so this is the start
[Sony Cross-Device General] Cirra92:
Sooo, does anyone have a clue how to calibrate camera to remove the stupid reversed fish-eye bug in Z3 series, or is that impossible?
[Sony Cross-Device General] itsnie:
Shinano device have that issue too
[Sony Cross-Device General] monnett:
Please Can u share your test build for honami sir :good::angel:
[Sony Cross-Device General] nailyk:
Please stop asking for builds.

This is a -dev only thread so rom request are noisy on this kind of topics.

On fxblog you should be able to get aosp roms synced with sonyxperiadev gits.

Thanks in advance.
[Sony Cross-Device General] iXaidyiu:
Out of thanks today, here it is ::good:
[Sony Cross-Device General] DjowBr:
Hope someone is working on Z3 series too.

Great work devs!!!
[Sony Cross-Device General] munjeni:
In my case camera 1.3.3 is not fixed, in most case because I'm using diferent hal, but in other case its somehow stable, I can't crash it, it crashes but opens byself again, I'm stil having that half screen now on diferent side. On front cam picture is upside down, on cam its ok but can't take video since it frezes, but other side about cam it have no more green pixels

Edit:

If I enable dual camera back cam is ok, front cam upward-down but takes picture ok, videocam ok but can't take video since freze
[Sony Cross-Device General] m0d:
It was reported that split screen is for preview only.

If you take picture it will be full.

Also new blobs might fix issue, according to devs

Edit:

Weird, when I select video the preview is proper, no splits, for both cams.

But preview for back camera is split in two, preview for front is upside down and very dark no splits.

Video cannot connect camera.
[Sony Cross-Device General] munjeni:
The same status I have too! If I enable dual cam back camera starts working well (with very dark preview/picture), front cam have the same status (upside down but take ok picture) but strange it not crashes on dualcam mode! Videocam preview is ok but can't record anything. Which camera hal you have using?
[Sony Cross-Device General] munjeni:
Why there is no iso selection menu in camera app?
[Sony Cross-Device General] benplay64:
Try with the last Google camera, i've seen on the test build of other devices that it solved some camera problems
[Sony Cross-Device General] munjeni:
Play store says "not available in my country", anyway why this one default aosp camera app have no adwanced submenu?
[Sony Cross-Device General] jerpelea:
new blobs are coming soon
[Sony Cross-Device General] stefx98:
Looking forward to the camera finally being fixed for our beloved Sony devices and being able to install nougat on my z3c :D
[Sony Cross-Device General] munjeni:
Is camera parameters related to sharpness inside chromatix or inside firmware? What would be happen if we load stock rom firmware to the camera, is that possible? Do we can use chocobal blobs somehow with hal? E.g. for some extra feature
[Sony Cross-Device General] m1st3r1:
hi, im not a dev, but i think maybe this will help for videocam recording: http://xdaforums.com/showpost.php?p=69235202&postcount=282

thanks.
[Sony Cross-Device General] tomascus:
Camera parameters look like they're passed in HAL so it could be modified there, also code in a camera app.

Stock libs are closed source so ...
[Sony Cross-Device General] munjeni:
Ok but probably we can dlopen some extra functions from it. I will firstly search in stock v4l2 camera source code of the kernel for firmware thing, maybe if we load stock fw into cam maybe we can get cam somehow bright. I don't know by now if sharpness and things lives in fw or in chomatix. In stock kernel v4l2 camera there we can get ioctls for loading firmware into camera, I will try that
[Sony Cross-Device General] tomascus:
lel cacao or cald is loaded from camera HAL on stock, which as we know, is heavily modified by Sony and proprietary.

Some parameters are passed in HAL, look around: https://github.com/sonyxperiadev/ca...2.14/QCamera2/HAL/QCameraParameters.cpp#L4906

chromatix appears to be just tables of values according to patterns in hex editor, and Alin said he would tune them..
[Sony Cross-Device General] munjeni:
Front cam fix?

diff --git a/arch/arm/boot/dts/qcom/msm8974-rhine_amami_row_camera.dtsi b/arch/arm/boot/dts/qcom/msm8974-rhine_amami_row_camera.dtsi
index a4a8f52..483619a 100644
--- a/arch/arm/boot/dts/qcom/msm8974-rhine_amami_row_camera.dtsi
+++ b/arch/arm/boot/dts/qcom/msm8974-rhine_amami_row_camera.dtsi
@@ -74,7 +74,7 @@
reg = <0x1>;
qcom,csiphy-sd-index = <2>;
qcom,csid-sd-index = <2>;
- qcom,mount-angle = <90>;
+ qcom,mount-angle = <270>;
cam_vdig-supply = <&pm8941_l3>;
cam_vana-supply = <&pm8941_l17>;
cam_vio-supply = <&pm8941_lvs2>;
[Sony Cross-Device General] drakonizer:
[MENTION=4675360]tomascus[/MENTION] tried it already. It doesn't work
[Sony Cross-Device General] munjeni:
The same upward down front cam preview? Did there is changes on take picture from front cam?
[Sony Cross-Device General] munjeni:
[MENTION=359497]jerpelea[/MENTION] uses a wrong chromatix, I am pretty sure about that since I have debug stock camera http://xdaforums.com/showpost.php?p=68856489&postcount=133 , thats probably a reason why camera is uncalibrated propertly on booth branches. Anybody confirm this?
[Sony Cross-Device General] tomascus:
Libchromatix_imx200 is back camera in the blobs which is correct. There are already imx200 chromatix libs.
[Sony Cross-Device General] munjeni:
Ok thats an logic reason since back camera sensor is inded imx200, but I found that stock back camera uses chromatix_s5k3l1yx ! I have confirmed that by deleting the rest of chromatix blobs!
[Sony Cross-Device General] tomascus:
Lol no it doesn't use chromatix lib for back camera on stock. s5k3l1yx is a 12mp sensor we don't seem to have.. try delete it and use camera
[Sony Cross-Device General] munjeni:
Tried already month ago! There is no cromatix_imx200 on stock rom! Only chromatix_imx134 and chromatix_imx135 and the rest!
[Sony Cross-Device General] tomascus:
yes exactly, stock doesn't use the same chromatix libs. Stock is also a completely different implementation to AOSP...

I just deleted those chromatix libs and it works fine.

Besides, Alin said he will calibrate the msm8974 camera in the coming weeks.
[Sony Cross-Device General] munjeni:
shell@D5503:/ $ su
root@D5503:/ # ls /system/vendor/lib | grep chromatix
libchromatix_s5k3l1yx_common.so
libchromatix_s5k3l1yx_default_video.so
libchromatix_s5k3l1yx_hfr_120fps.so
libchromatix_s5k3l1yx_hfr_60fps.so
libchromatix_s5k3l1yx_hfr_90fps.so
libchromatix_s5k3l1yx_liveshot.so
libchromatix_s5k3l1yx_preview.so
libchromatix_s5k3l1yx_snapshot.so
libchromatix_s5k3l1yx_video_hd.so
libchromatix_s5k3l1yx_zsl.so
root@D5503:/ #

As you can see I have deleted the rest of chromatix, camera is working the same, no diferencie, but if I delete libchromatix_s5k3l1yx camera is no more working! Seems front cam don't uses chomatix or maybe uses the same
[Sony Cross-Device General] jerpelea:
all camera calibration is in the chromatix tables
[Sony Cross-Device General] jerpelea:
the sony implementation does not use chromatix
[Sony Cross-Device General] munjeni:
Than why camera not work when chromatix is deleted? Seems libchromatix_s5k3l1yx is only used http://xdaforums.com/showpost.php?p=69347848&postcount=362
[Sony Cross-Device General] frief:
maybe use "lsof" to list (momentarily) open files before and after starting app?
[Sony Cross-Device General] okij:
So will it be possible to calibrate the Z3 series camera with the chromatix tables to get rid of the reversed fish eye bug?

Or is this only possible with Sony's own, proprietary implementation?

If the latter is the case, all Z3 / Z3c users who need a proper camera will have to stick to stock Sony roms and cannot benefit from the AOSP development. Which would be very sad, as I'm planning to use my beloved Z3c for another ~2 years.
[Sony Cross-Device General] frief:
there always (LGPL 3) is lensfun.

From its README: "Right now Lensfun is designed to correct distortion, transversal (also known as lateral) chromatic aberrations, and vignetting."
[Sony Cross-Device General] okij:
Yes, that would be a possible solution for an in-build post-processing of pictures. But could it also be used for the distortion correction when taking videos?

So my question [MENTION=359497]jerpelea[/MENTION] and [MENTION=4675360]tomascus[/MENTION] remains: Is chromatix capable of lens distortion correction?
[Sony Cross-Device General] munjeni:
Related to usb... if I revert this commit https://github.com/sonyxperiadev/kernel/commit/d51a8b458c213965aecf97d1b9ca7ffa9d7cf8c6 ac charger is dettected without need connectig any usb source, usb states that charging is started and charging led state is on too, battery level is 100%, hmm. Anybody know if charging and charger source detection is working on 1.2.2 ??

Edit:

one more thing... when CONFIG_SONY_USB_EXTENSIONS is set to yes some things related to usb is ok some not, for example ok things is: charging on pc usb some things going ok like waking up device screen when usb is connected, dev option "stay awake" is working too! Bad thing is: charging source is now detected as a ac charger. Another bad thing which happen on booth way without CONFIG_SONY_USB_EXTENSIONS or with CONFIG_SONY_USB_EXTENSIONS is usb is locks somehow and thing like charging, adb, stay awake...etc totaly brokes, there is no way to reboot device after that, ac charger in booth ways locks device
[Sony Cross-Device General] SuperLamic:
IIRC there were some people who were complaining on charging on 1.2.2. I guess detection works on 1.3.3 too since your computer can recognize the phone.

well maybe it doesn't work without this commit: https://github.com/sonyxperiadev/kernel/commit/f359f39df906aa5d8c697398cdaf73a3ecde75dc (I use it since the switch to 1.3.3, so I don't know)

but charging issue is there even after the commit. Don't know if that helps but this commit only makes it worse: https://github.com/sonyxperiadev/kernel/pull/819 (if you disconnect phone, it still reports charging)
[Sony Cross-Device General] jerpelea:
no you have to use a 3rd party lib or app
[Sony Cross-Device General] munjeni:
Detection not working and charger source is always detected as usb source. Things like "wake up when connect usb" is not working, things like "stay awake" not working. If I connect phone to ac charger and than connect back to pc usb port than usb no more working and also phone can't reboot (stays in lock state something like a brick and not responding until I press volume up+down+power+camera for about 10 seccond), hen it reboots.

Another thing. But if I enable CONFIG_SONY_USB_EXTENSION situation is diferent and somehow better. Things like stay awake, things like wake up when connect usb..etc is working but now charging source is always detected as a ac charger. If I connect phone to ac charger and than connect them back to pc usb port getting the same situation (dead lock) and unable to reboot phone,

Which device you have? Do you guesting or you tried that already?
[Sony Cross-Device General] munjeni:
Curently I am going to see why I'm getting this:

amami:/ # dmesg | grep "chg_type"
[ 7.164782] chg_type = USB_CDP_CHARGER
[ 49.710821] chg_type = USB_CDP_CHARGER
[ 54.940832] chg_type = USB_CDP_CHARGER
amami:/ # dmesg | grep "chgarger type"
1|amami:/ # dmesg | grep "charger type"
[ 7.224370] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 20.122780] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 20.294452] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 20.477251] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 48.193109] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 48.373042] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 48.495524] dwc3_msm_power_set_property_usb: charger type: UNKNOWN_CHARGER
[ 49.710848] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 49.906471] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 50.078304] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 50.260686] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 52.621069] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 52.823715] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 52.941846] dwc3_msm_power_set_property_usb: charger type: UNKNOWN_CHARGER
[ 54.940884] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 55.138418] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 55.310131] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 55.492185] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
amami:/ # exit

instead of USB_DCP_CHARGER since I got that kernel log while on pc usb port. Since adb stoped working after connecting to ac charger and back to pc charger I must catch kernel log with something like this (must do that while adb working before connect to ac):

for TT in 1 2 3 4 5 6 7 8 9; do dmesg >> /storage/blabla/dmesg.log; sleep 5; done &
[Sony Cross-Device General] SuperLamic:
I have honami. Try the first commit by yourself and see... Now I downloaded some app that should report charging source and it reports "Fast Unknown" for both usb and charger.

The first commit fixes the spam while charging anyway, so I may PR it (it is merged in 1.2.2) when I find a final fix for audio jack. (now I found reason - https://github.com/SuperLamic/kernel/commit/4ef9ff0ac07fc70ccf979ac060aa35c2949fe661 but I still want to know why, if I don't fix it, I'll PR this. I'll ifdef only the instantiation of hwdep_cal)

edit: I don't have any problems after disconnecting charger, try the commit

edit2: oh! now I noticed, you're right... phone charges, but no connection..
[Sony Cross-Device General] munjeni:
This commit? https://github.com/sonyxperiadev/kernel/commit/f359f39df906aa5d8c697398cdaf73a3ecde75dc
[Sony Cross-Device General] SuperLamic:
yep, but I found that, you're right.. I have the same bug, I just don't use usb charger and don't connect my phone to PC often...
[Sony Cross-Device General] munjeni:
This cause dead lock?

[ 21.350870] dwc3_msm_power_set_property_usb: charger type: USB_CDP_CHARGER
[ 21.351415] android_work: android_work: did not send uevent (0 0 (null))
[ 21.424425] Can't call dbm_l1_lpm_interrupt, dbp pointer == NULL

sims everything ok (excluding thing related to ac detection instead of usb detection while on pc usb) until I connect to the ac charger, till after I connect phone to ac dead lock happens, adb stops working, mtp...etc and can't reboot phone
[Sony Cross-Device General] Myself5:
This usb thing is a know issue, and the last to be solved bug on the 8974 platform (exept zoom calibration, which is in the works).

Then, some N related issue: the cam is crashing very often with a cant connect to camera error, on all platforms. Thats something that still requires to be fixed too. Btw munjeni, you should really join our developer hangouts chat :P

Gesendet von iPad mit Tapatalk
[Sony Cross-Device General] brickhayabusa:
we need at least a working cam, won't need all the "functions" of the stock rom.... however if they can make everything working why not?

when you unlock the bootloader you lost some "sony special features" but now i'm using cm12.1 and the camera works pretty well, the front camera have a lot of noise, but if you download the mx camera and turn on hdr... violaaa problem fixed.

but i understand [MENTION=4120742]munjeni[/MENTION] because the camera are totally broke now on 3.10 and probably i'm wrong but they have spent two years or one and still no progress with the camera, and if they make any progress on the next update everything stops working again.

i'm not an "expert" dev, but i understand the fact that sony don't have intention help a lot over here.

after all if i'm wrong i'm sorry, but the things are not too clear.
[Sony Cross-Device General] rcstar6696:
What device do you have i can get a link for a build for sure?
[Sony Cross-Device General] muzadull:
Camera works without camera.msm8974.so in system/lib/hw.

Tested on stock 5.1.1
[Sony Cross-Device General] munjeni:
DRM verity? Maybe DM verity? Anyway I don't believing in that! DM verity is for checking device-mapper-verity (dm-verity) kernel feature, which provides transparent integrity checking of block devices. dm-verity helps prevent persistent rootkits that can hold onto root privileges and compromise devices. This feature helps Android users be sure when booting a device it is in the same state as when it was last used. More info https://source.android.com/security/verifiedboot/ That have nothing about camera. Sony on Ammi user sony RIC service, I not found that DM verity anyway!
[Sony Cross-Device General] rcstar6696:
Yes i fully understand you i want a working cam too

The main thing why it is broken again is due a newer kernel release

We use caf 1.3.3 as a base because all new devices should be compatible including z5 for example z5 implimenation was not possible due the Completly missing drivers for msm8994

Btw we made some progress on cam but you will get the info later sorry iam not able to talk about it

But before you spam me its not fixed but the progess will help us
[Sony Cross-Device General] munjeni:
Tested on 4.6.1.A.236 ?
[Sony Cross-Device General] nailyk:
Camera not working anymore with mv /system/lib/hw/camera.qcom.so /system/lib/hw/cameraold on my d6603 stock .575 unlocked.
[Sony Cross-Device General] rcstar6696:
Sorry drm verification not verity

Look into the Wikipedia article about drm

I think you should find infos in code aurora
[Sony Cross-Device General] muzadull:
Yes on 14.6.1.A.236.
[Sony Cross-Device General] munjeni:
Yes for sure! But I need info about camera.msm8974.so, what about if you remove file camera.msm8974.so only?
[Sony Cross-Device General] munjeni:
Thanks for info! Finaly confirmed, I found things today and I was not sure, but now definitely sure. That camera.msm8974.so is just part of the aosp build and its not used in sony stock rom, camera.qcom.so is not wrapper on stock rom, its hal, I have lost two days working with stupid camera.msm8974.so :(
[Sony Cross-Device General] muzadull:
camera.msm8974.so is useless i think but moving camera.qcom.so definitely breaks the camera.
[Sony Cross-Device General] nailyk:
I have a d6603 but for now my panel is a replaced one. I will replace by my broken one and try with the fxpblog builds, thanks.

Sorry for that.

mv /system/vendor/lib/hw/camera.msm8974.so /system/vendor/lib/hw/camera.old

and camera working fine (still z3, .575 , unlocked)
[Sony Cross-Device General] munjeni:
All that info about camera which you provided is not confirmed thing, nobody confirmed that, its just an internet desinformation, you can confirm that with arguments?