Sony Nagara (Xperia 1IV and 5IV) port

I thought about this but no, 0001-Add-kernel-wakelock-to-reflect-Android-wakelock-requ is still applied on my checkout, nothing was reset.

Just to clarify, this is writing to /sys/power/wake_lock and /sys/power/wake_unlock respectively as root, if I understand correctly. Basically you echo some made up word and then you get no sleep

I’ve started experiencing this problem only recently, so it still needs more tests and observations to pinpoint some pattern and exact conditions. Please allow some more time - I will further test it and come back with as detailed feedback as possible.

One small correction for now is that I am not sure if it is the time (itself) since reboot what causes it or something else that triggers this problem. What I meant was that freshly after reboot zooming and switching between cameras always works perfectly fine and smooth, whereas after some time it starts freezing. Therefore, obviously, the longer the time that passed since reboot, the bigger the chance for something that triggers this problem to happen, so I didn’t mean just the time per se. As I said, it takes further observations so please allow a bit more time to further test it and I’ll certainly provide more information.

You might test if using other CPU governors and/or changing the min and max CPU frequencies of the three core groups makes any difference when it comes to decreasing heat and power consumption, which is actually horrible under heavy usage like web browsing (it often reaches 1.5 - 2.0 Amps, which is really a lot). Check /sys/bus/cpu/devices/cpuX/cpufreq/ for details. All you need to do is to write the desired values to the appropriate files and chances take place instantenously. There is no risk involved with playing with those values because they always get reset to defaults upon reboot. I’ve done some initial tests with e.g. conservative and schedutil governors as well as lowering the min frequency of 0-3 cores to 307 MHz and decreasing max frequencies of all core groups by even 30-40%, but I didn’t have enough time yet to get reliable results.

1 Like

Yes, a ciphered one.

Yesterday I had more than a week uptime, I took pictures carefully without zoom, but the phone froze after 3 stills.

1 Like

I spent a little time playing with the camera yesterday, as my uptime had crept up past 5d.

I couldn’t persuade it to show any issues after a few minutes of zooming in/out, shooting pictures/video, front/rear camera, changing filters, colour temp etc.

(5iv XQ-CQ54, pics stored in default location).

I did think at one point it was starting to act up, but then realised I’d accidentally enabled the 3s selftimer :blush:

For the pictures on SD card one fix could be to clear the cache from utilities, and maybe also deactivate images in dropbox as mentioned here - that worked for me for the last week at least.

About the camera: when it locks, it sometimes unfreezes after.. minutes!. It looks as if an android camera process is eating up all the memory. So it might be triggered just by more camera usage. It is hard to debug, I am looking at some logs after unfreeze happened but hard to spot the cause.

1 Like

Just a quick information that I couldn’t reproduce the camera freeze issue anymore. Nearly 13 days of uptime and it’s been working flawlessly. So, apparently, the problem must be triggered by something that I haven’t used recently - maybe Android camera apps in AAS… I’ll keep monitoring it.

2 Likes

Would be great to stick to bug reports without AAS. AAS is not tested nor supported and please at least highlight that you used it when issue happened. Its clear that using AAS camera can have side effects on SFOS.

My reports are without AAS so far.

1 Like

I wasn’t reporting a bug in AAS. I’ve just re-checked what I wrote and it appears clear to me, so I don’t know how could I possibly rephrase it.

That’s exactly what I intend to do, but it requires further testing. For now, I only know that I did not use it over the past couple of weeks, so maybe that’s why I could not reproduce the issue. So now I will start using it and see if it triggers the problem on the SFOS side.

I know

I was suggesting to add (NOTE: I WAS USING AAS) in the bug reports for the port, as in the case of camera issues reported recently. Iff it is due to AAS, then we are getting maybe to some difference in camera bug as 1IV vs 5IV - those use slightly LOS different bases. But then it could be also due to differences in numbers of users between devices or vocal users :slight_smile:

Anyway, thanks for getting back and testing it further.

1 Like

Sure, good point, I will always mention it. :slight_smile:

In this specific case, I intentionally avoided using it recently, and the issue did not occur on the SFOS side, which may or may not have anything to do with it. A few moments ago I launched AAS and played with several camera apps in it (OpenCamera, stock AOSP camera app, etc.) but camera on SFOS side continues to work flawlessly. So it’s quite hard to pinpoint and will require more testing, which I intend to do and report as soon as I discover anything useful.

1 Like

Hi How to disable screen unlock by double-tapping the screen?

Don’t. Otherwise you’ll have delays on powering up.

I removed the protective glass. And now in my pocket the flashlight will turn on, then the atmosphere will change, then the sound will turn off.

Is it possible to disable the top menu on the lock screen?

18 days uptime and the camera still works flawlessly, including smooth zoom (accross ranges of the two lenses) without any issues. And that regardless of using various Android camera apps in AAS (to test if they have anything to do with it). So for now I have to assume that it was just a temporary glitch and it’s gone. One last test will be to reboot the phone now and test it again over the next few days on a freshly restarted device.

As a temporary solution, I removed the flashlight, changing the ringer volume, atmosphere, etc. from the top menu.

I was just about to try this port, and I got an Xperia 5 iv off ebay USA, but I think I’ve got the same issue as Fellfrosh had late last year: it seems to be a model A204SO (Softbank Japan) that’s been reflashed with the global version of the firmware XQ-CQ54 but sill of course not bootloader unlockable. :enraged_face: No vendor branding on the case to give it away either. (And I had to boot up a Windows 10 laptop to run Xperia Companion and I feel dirty.)

Oh well, supposedly it’s returnable without hassle but I’m out the cost of postage and time.

Guess I’ll be back sometime later to try this again . . .

2 Likes

I disabled the double-tap and I experience the delays (and I’m very happy to learn why now).

I did disable it because it was doing crazy things in my pocket.

How do others deal with it ?

( Poke @zuyev )

Maybe this was also driving my ā€œno touchscreenā€ issue… Touchscreen stops working (fix: lock screen - unlock screen)

I’m placing the phone in my pocket with its back towards me.

Sorry that happened man. A lot of sellers are doing that unfortunately. Ebay user meonov phone | eBay Stores sells legit Xperia 5 IV that are compatible. https://www.ebay.com/itm/387581193274 This isn’t me and isn’t sponsored. But I have bought 4 of them from this guy without issues.

3 Likes