yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] BrateloSlava:
cm-11-20140715-UNOFFICIAL-yuga works 1 hour without any problems :good:

[MENTION=2228255]thomas1991_12[/MENTION], might be worth "noop" set as the default i/o scheduler when compiling the kernel? IMHO, the kernel booting will be a bit faster. Then it can be changed to any other.
[Xperia Z Original Android Development] thomas1991_12:
On what sources do you base this assumption?
[Xperia Z Original Android Development] BrateloSlava:
As example:

1. Speed up your system with the noop scheduler

2. hlte: Improve boot speed

I saw a similar patch for other models. Just right now I can not find.
[Xperia Z Original Android Development] thomas1991_12:
Those both dont state any benefits over FIOPS.
[Xperia Z Original Android Development] fards:
Noop is really old hat now.

Fiops is considerably quicker and more resilient.
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

1. timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2. clocksource: Add new feature flag CLOCK_SOURCE_SUSPEND_NONSTOP

3. clocksource: arm_arch_timer: Use clocksource for suspend timekeeping

4. msm: pm-8x60: Fix suspend time tracking

I'm not sure that it will come to us, but it's worth a try.

Asynchronous Fsync: initial extraction of Async Fsync from HTC

or

(for Nexus_5) - Asynchronous Fsync: initial extraction of Async Fsync from HTC + fs/Kconfig: fix warning related to AYSNC_FSYNC patch

or

(for Moto_X) - Asynchronous Fsync: initial extraction of Async Fsync from HTC

or

(for Moto_G) - Asynchronous Fsync: initial extraction of Async Fsync from HTC + fs/Kconfig: fix warnings

or

(for Galaxy_S5) - Asynchronous Fsync: initial extraction of Async Fsync from HTC + fs/Kconfig: fix warning related to AYSNC_FSYNC patch

---

May we add features such this. This video demonstrates the speed on / off switch smartphone using this new feature. Files, that we need for this, are here or here. At the moment I have not found any problems in the work of this mode on my smartphone. If charger is connected, or without it.
[Xperia Z Original Android Development] BrateloSlava:
What happened at this moment with the phone? What was he doing?

[ 2899.812347] _cpu_up: attempt to bring up CPU 2 failed
[ 2899.818328] msm_thermal: Preventing cpu3 from coming online.
[ 2899.823120] _cpu_up: attempt to bring up CPU 3 failed
[ 2900.097198] msm_thermal: Preventing cpu2 from coming online.

Hot? Overheating?
[Xperia Z Original Android Development] aidfarh:
Yes, it got hot. I had intelli-thermal core throttling temperature set at 70 deg C.
[Xperia Z Original Android Development] fards:
I'm curious.

Why don't you build your own kernels with all these patches that you seem to believe are good (most of them are bad from what I can see looking at the code and background to them)

Then test them yourself, benchmark till they bleed and if they make any positive difference submit patches via github?

There's been so many wonder patches submitted over the years in XDA that most turn out to cause issues or just placebo. Test them first :)
[Xperia Z Original Android Development] fards:
You have a bug earlier than that that is linked to wlanc

[ 2892.517730] [<c025190c>] (sys_ioctl+0x4c/0x70) from [<c0106220>] (ret_fast_syscall+0x0/0x30)

Not seen anything similar.
[Xperia Z Original Android Development] aidfarh:
Looking at the timestamp, that happened quite some time before the reboot, so I don't think it's related.
[Xperia Z Original Android Development] diabole:
Is somebody intrested in making a nice Kma wallpaper for me? ?

Skickat från min Xperia Z via Tapatalk
[Xperia Z Original Android Development] BrateloSlava:
You think, that all the patches only lead in improved performance? Ie all the patches, that are in the this project, obtained as a result of performance measurements? I may be wrong, but highly doubt it.

A references to the patches, I post because one person can not cover all the existing GitHub projects. If you think that I'm doing stupid things - I'll stop doing this.
[Xperia Z Original Android Development] zakitheracer:
Recovery

I just wanted to know how to install TWRP on Z as I am new to this device.

Great ROM BTW
[Xperia Z Original Android Development] muphetz:
this ROM include TWRP just fastboot boot. img before flashing the rom..
[Xperia Z Original Android Development] zakitheracer:
I did but I got Philz Recovery and not TWRP :confused:
[Xperia Z Original Android Development] Tommy-Geenexus:
It won't work, the recovery isn't in the kernel ramdisk like on stock Rom.
[Xperia Z Original Android Development] zakitheracer:
So there isn't any way to get twrp...?
[Xperia Z Original Android Development] Antonnzr:
It appears that after the 20140715 update my phone exchange is charging considerably slowly - as if fast charging is disabled. Is anybody else having this issue?
[Xperia Z Original Android Development] aidfarh:
Go here if you want to install TWRP on the Xperia Z:

http://teamw.in/project/twrp2/187
[Xperia Z Original Android Development] naitik2012:
man please release ur kernel :S

i want some overclock feature :D
[Xperia Z Original Android Development] golfgtiedition30:
https://play.google.com/store/apps/...shify&pcampaignid=APPU_tRXIU7XyF8aL7AbbpYHIDA
[Xperia Z Original Android Development] Irseq:
[MENTION=2228255]thomas1991_12[/MENTION] Could you please merge this patch? https://github.com/AOSPA-legacy/and...mmit/fc7f9ea343e9a909e4f467fb82e9b2ab9a51074a I found it in another PA thread, its purpose is to stop network from crashing when trying to make a phone call.

Thanks in advance
[Xperia Z Original Android Development] buche23:
Already merged

Has been integrated a while ago:

http://xdaforums.com/showpost.php?p=52033878&postcount=54

As I am able to make and receive calls (and wasn't before this was merged) I assume it's still in.

Buche
[Xperia Z Original Android Development] Irseq:
On both 07/15 and 07/12 builds I'm not able to make a call so I don't know... I'll just take a logcat.
[Xperia Z Original Android Development] buche23:
Good luck. Had a similar issue once while I was flashing a 2506 build to get Waldi back. Formating system, wiping data, and reinstalling everything got things back to normal.

Btw. Im not sure whether it's relevant but I did install the lastest Sony ROM once, just to ensure NFC and all the other things are up to date.

[MENTION=2228255]thomas1991_12[/MENTION]@ For a non coder like myself is there a way to use the compiled waldi binary on your current ROM? Can it be called through and init.d script? I miss the little watchdog! ;)

Cheers

Buche
[Xperia Z Original Android Development] macia10:
Hi,

Where can I find 91mpdecision file?
[Xperia Z Original Android Development] deepongi:
https://www.dropbox.com/s/ho6z0uf8fx24qrj/91mpdecision
[Xperia Z Original Android Development] Tobbyax:
Here, with today build, Spotify FC immediatly on launch. Am I the only one?

Reverted to the previous build (by Infected), and Spotify works fine.
[Xperia Z Original Android Development] thomas1991_12:
What does the log say?
[Xperia Z Original Android Development] rlees85:
Last build wouldn't boot for me. Stuck on Cyanogenmod logo (screen brightness still bright - it didn't get to the bit where it goes to auto and dims a bit). Unfortunately, too soon in the boot process for a logcat.

I am assuming it is because I had ART enabled before trying to flash. So this latest build may not be ART friendly ;) Please don't take this post as a bug report, just a warning to others!

The build before - the one infected posted - does boot interestingly...

EDIT:

Also something about MP-DECISION on Infected's build, it looks like it attempts to start the MPDECISION daemon (in logcat) but fails due to "pm_qos file missing". This occurs weather the INIT.D script is present or NOT.

I managed to get the init.d script working by adding a sleep 60 statement to make it wait 60 seconds after bootup before trying to run mpdecision. It then works, and the pm_qos error is not present in logcat.

What I am saying is, I think mpdecision could work "out the box" without any init.d scripts on infected's build if it just tries to start it a few seconds later...

To clarify:

infected build + no init.d: logcat reports mp-decision tries to start but fails due to pm_qos file missing.

infected build + init.d: same again

infected build + my custom init.d instead of the provided one: mp-decision appears to attempt to start twice in the boot process. first early in the boot process but fails due to pm_qos and was not initiated by init.d. But when my script tries to start it after a 60 second wait it starts successfully.

EDIT again:

99mpdecision

#!/system/bin/sh
# Start the mp-decision daemon if it is not already running...
#

log -p i -t mpdecision "Waiting boot to complete... (60 seconds)"
sleep 60 > /dev/null

ps mpdecision | grep mpdecision > /dev/null
if [ $? -eq 0 ]; then
log -p i -t mpdecision "Process is already running!"
else
log -p i -t mpdecision "Process is not running, starting..."
su -c "/system/bin/mpdecision" &
fi
[Xperia Z Original Android Development] Tobbyax:
Here is the logcat.

I don’t know if it’s possible/useful to grab the app crash log.
[Xperia Z Original Android Development] thomas1991_12:
Is this a fresh install? If not try that, else provide dmesg/kmsg logs.
[Xperia Z Original Android Development] Tobbyax:
If you mean having wiped everything: no it’s not. I can try a clean install, but it takes time since I have to backup everything. But I’ll try, since nobody else seems to encounter this issue…
[Xperia Z Original Android Development] thomas1991_12:
New build and redid first post.
[Xperia Z Original Android Development] kaotomut:
Your rom is really interesting. I have never flashed CM Rom on my my Xperia Z before though. Would you mind update your first page about step to step to get fully completely installation includes some screenshots?

Thanks
[Xperia Z Original Android Development] thomas1991_12:
I suggest you follow this wiki: http://wiki.cyanogenmod.org/w/Install_CM_for_yuga
[Xperia Z Original Android Development] Tobbyax:
With your today release, fresh install:

impossible to make a call (5 bars goes to empty triangle, message callFailed_outOfService “Out of service area”), receiving calls work fine

spotify still FC

Please find dmesg and logcat.

Thanks in advance! :)
[Xperia Z Original Android Development] :
I can confirm the "impossible to make a call". I had the same problem with the build before this one.

Flashed back the official CM11 nightly cause I needed to call someone, which worked again, so it doesn't seem to be something in the CM code-base.
[Xperia Z Original Android Development] SuperHanss:
[MENTION=2228255]thomas1991_12[/MENTION]

This commit fixes outgoing calls: https://github.com/AOSPA-legacy/android_device_sony_qcom-common/commit/fc7f9ea343e9a909e4f467fb82e9b2ab9a51074a
[Xperia Z Original Android Development] thomas1991_12:
Thans for the headsup. Here is a fixed build:

https://docs.google.com/file/d/0B7XCSgymRoP0V1Y1cE8yNTNuN1E/edit?usp=docslist_api
[Xperia Z Original Android Development] hrulik:
cant download, "You need permission" message
[Xperia Z Original Android Development] junixquiaoit:
How to install guys?
[Xperia Z Original Android Development] buche23:
Wait for the latest build (the one two posts up that is currently not accessible as otherwise you won't be able to make calls.

Follow this, as suggested by Thomas.

http://wiki.cyanogenmod.org/w/Install_CM_for_yuga
[Xperia Z Original Android Development] thomas1991_12:
This build should be fine:

https://drive.google.com/file/d/0B7XCSgymRoP0R0F1RkFKSElrcWs/edit?usp=sharing
[Xperia Z Original Android Development] Tobbyax:
I confirm this release solved the call issue.

But I still have Spotify FC. I’ve made new logs if needed.

If someone wants to help me [dis]confirm the Spotify issue, it’s very simple: no need of an account or anything. Just download and install the Spotify app, and try to launch it, it may crash immediately. Thanks in advance for any help about that! :)
[Xperia Z Original Android Development] Irseq:
[MENTION=3825370]buche23[/MENTION] Even on the latest 19/07 PA build with 20/07 gapps, I still can't make a phone call...

You can clearly see the issue at the end of the logcat file attached. [MENTION=2228255]thomas1991_12[/MENTION] Take a look at this, please :)
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

You may take the latest patches for update intelli_plug here. (Jul 19, 2014) ver. 3.8

intelli_plug: fix incorrect cpufreq API usage

intelli_plug: initialize ip_info struct element during driver init

intelli_plug: use primary CPU's info data for non-boot cpu's settings

intelli_plug: older Qualcomm kernel compatibility fixup
[Xperia Z Original Android Development] 6227:
small problem is that I cant mirror screen (miracast) (wifi direct) with my Sony TV (R470B)

everything else is really good
[Xperia Z Original Android Development] Supersaiyan.IV:
On the contrary Chromecast screen mirroring works flawlessly.

Get it working with the following: http://xdaforums.com/hardware-hacking/chromecast/experimental-enable-mirroring-device-t2812193

Probably the easiest way to cast Spotify at the moment. Got 10ms cast delay by casting the stopwatch and taking pic of both on my plebeian b/g wifi.

Sent from my Xperia Z
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

Please, update F2FS from this patches. (Commits on Jul 21, 2014 + Commits on Jul 22, 2014)

My friends, who have switched to this file system, reported, that on f2fs smartphone is loading slower, than on ext4, but works faster.
[Xperia Z Original Android Development] javagreen:
Okay, silly question, but please help as I'm new to CM.

I'm running the 15/7 build, how do I upgrade to the newer 21/7 build? As far as I understand :

1) Flash boot.img from the zip

2) Boot to recovery and clean Dalvik cache and Cache partition

3) flash ROM zip from recovery WITHOUT factory reset/wipe data, to upgrade

Is the above correct? Do I need to re-flash gapps?
[Xperia Z Original Android Development] buche23:
Hi Javagreen,

just put the complete ZIP file onto your external SD, boot into recovery, flash the zip, wipe the cache, done. Flashing the boot.img is just neccessary when you do not have a proper recovery (and as you are on 15/7, you do have one).

Re-Flashing GAPPS is not mandatory.

Have fun

Buche
[Xperia Z Original Android Development] javagreen:
Thanks a lot mate, doing that now. I flashed the boot.img again because I saw the OP mentioned an updated kernel :good:
[Xperia Z Original Android Development] BrateloSlava:
I would recommend to update the application if out their new version, which is placed here.
[Xperia Z Original Android Development] ari197:
flashing the zip will automatically flash the new kernel also ..
[Xperia Z Original Android Development] javagreen:
Okay, I didn't know that.. but now I do :good:
[Xperia Z Original Android Development] pabx:
[MENTION=2228255]thomas1991_12[/MENTION] btw.. i figured out why Google Play Services goes crazy and drains battery like hell:

It looks like the drain is triggered by the new libinversense_hal based sensors framework.

Switching back to DASH fixes the drain - no idea why, but my best guess would be that the libinversense_hal based sensors framework confuses the 'activity recognition' of google-play-services.
[Xperia Z Original Android Development] golfgtiedition30:
Hey thanks [MENTION=3911109]pabx[/MENTION] , I know many people , including myself will be thankful of a fix. Just when you think its under control it creeps back and drains your battery...
[Xperia Z Original Android Development] ari197:
what is the different between the two libraries ? did we move to libinversense_hal when Sony introduces KitKat ?
[Xperia Z Original Android Development] pabx:
Sony used to use a DASH based sensors framework in Android <= 4.3

This was actually very nice as DASH is opensource - but it still needed a few blobs (for the gyroscope). However: This wasn't a big issue as the blobs are dload()'ed by DASH.

Well: in the end, you had a fully opensource sensors-hal that loaded a few libs but even had dummy implementations of them.

For some reason (probably google + qcom), sony switched away from DASH to a 100% closed source sensors framework (libinvensense).

While this framework seems to provide more sensor data, it's also VERY ugly with it's zillion of sysfs files and some crude hacks:

This is how the ambient light sensor used to work in DASH:

-> User turns screen an

-> DASH (running inside system_server) notices this and starts polling the sysfs file containing the sensor-value

-> notifies the android framework about changes

..and this is the 'new' version:

-> user turns screen on

-> something in the blobs connects to the 'illumination_service' socket

-> tells illumination_service to start polling the sensor

-> illumination_service aquires a wakelock and starts the polling

-> illumination_service sends uinput (!) events about sensor changes

-> something inside the blobs catches these uinput events and notifies android about it

-> if the user turns the screen of, something inside the blobs will tell illumination_service to stop polling

-> illumination_service stopps polling and releases the wakelock

Given the fact that the new sensors framework is uglier and causes some heavy issues there is little reason to stick with it.
[Xperia Z Original Android Development] BrateloSlava:
Who watched the indications of charging current at the fastcharge mode? Android Tuner shows me all the time low values​​.
[Xperia Z Original Android Development] ari197:
they probably switch because Android is supporting more and more sensors which our phone doesn't have anyway ..

this actually make sense because lately I notice that the battery drain only happens when I activate Google Now (with the same location setting configuration) .. Google Now takes the information from the sensors to determine our activity (walk, run, drive, biking, etc) which probably overload the new lib..
[Xperia Z Original Android Development] iKillCypher:
Im going to wait for a new build to fix the battery drainage yeah this creep google services isnt going away >:(
[Xperia Z Original Android Development] BrateloSlava:
Need? ;) View attachment 2868393
[Xperia Z Original Android Development] golfgtiedition30:
I found that updating play services only works for a few days.

The problem comes back again...
[Xperia Z Original Android Development] BrateloSlava:
This is a new version.
[Xperia Z Original Android Development] peekay2n:
Do this from AppOps. Also deny location permission to Google Play Services (this will prevent Google Maps from using WiFi for location).

I get zero NLP wakelocks from play services after doing this. Phone sleeps happily ever after.

Sent from my Xperia ZL
[Xperia Z Original Android Development] peekay2n:
quoting so you could try it too!

Sent from my Xperia ZL
[Xperia Z Original Android Development] thomas1991_12:
I tried switchting to DASH again, but some sensors wont work for some reason.Using the blobs from .569 + DASH.
[Xperia Z Original Android Development] hadramos:
Have you the link AppOps to Google play?
[Xperia Z Original Android Development] peekay2n:
Settings -> Privacy -> Privacy Guard -> Advanced

Sent from my Xperia ZL
[Xperia Z Original Android Development] hadramos:
Oups :) :)

Very Thanks!
[Xperia Z Original Android Development] pabx:
Did you check the logcat for unresolved library symbols? You must downgrade libmllite.so : https://github.com/adrian-bl-yuga/yuga-blobs-a806/commit/753b699b2ccd9c1c7f4499df5a11eecaa5cba8a4
[Xperia Z Original Android Development] ari197:
There's also another way using Xpose Framework's wakelock terminator .. but if we can solve this the right way, then why not ?
[Xperia Z Original Android Development] alvino11:
Setting location settings to battery saving eliminates Google services battery drain for good...Have been doing this for more Dan 5wks.
[Xperia Z Original Android Development] thomas1991_12:
Sorry, just forgot the kernel part :silly:
[Xperia Z Original Android Development] iKillCypher:
atleast they fix stuff faster then sony ?

I hear sony OEM users are still struggling with google play services :D
[Xperia Z Original Android Development] fards:
If you're going the permission route then all you should need to do is deny keep awake for play services.

PS relies on external calls to stop the wakes, looks like the current sensor implementation doesn't do that, from what pabx has found.
[Xperia Z Original Android Development] ari197:
I'm sad to say, it works fine up until I start riding my bike.. then I guess the sensor lib got overloaded..

but before that, my battery usage was really great.. with Google Now and location reporting + history..

so my guess, re-using DASH is still the way..
[Xperia Z Original Android Development] peekay2n:
I'm afraid you're right here. battery drain with the screen switched on is too fast.. much quicker than 4.3..

but what I've done kills the usual suspects : NlpWakelock & NlpCollectorWakelock.

so what I gain by preventing wakelocks by the permission route, I lose through bad sensors when screen is on. :confused: :eek:

Sent from my Xperia ZL
[Xperia Z Original Android Development] thomas1991_12:
I uploaded a new experimental build with old sensor blobs, for me the gyro doesnt work. Could you guys test if its the same for you?

https://drive.google.com/file/d/0B7XCSgymRoP0dVFpcU1yblNGSFk/edit?usp=sharing
[Xperia Z Original Android Development] peekay2n:
deleted
[Xperia Z Original Android Development] ari197:
Thomas,

this is a full ROM not kernel only right?
[Xperia Z Original Android Development] ari197:
the same..

also got random reboot and Google Play Service stop working pop up
[Xperia Z Original Android Development] fards:
What does logcat dmesg show when try to use the gyro ?
[Xperia Z Original Android Development] thomas1991_12:
Full ROM. But gyro problem is confirmed, Im starting to think its kernel related.
[Xperia Z Original Android Development] ari197:
currently on the road.. will try to get more data at home
[Xperia Z Original Android Development] fards:
I might test it later and see if I can work out what's going on. Sounds like sysfs isn't being populated correctly.
[Xperia Z Original Android Development] ari197:
just realize that I could change the phone orientation .. isn't that using the gyro ?
[Xperia Z Original Android Development] fards:
nope thats accelerometer/orientation sensor :D
[Xperia Z Original Android Development] ari197:
hmm .. yea .. gyroscope is quite new in Android .. where we could change orientation from the get go ..

so what do we use gyro for ?
[Xperia Z Original Android Development] lonixlon:
Games mostly I think.
[Xperia Z Original Android Development] fards:
camera
[Xperia Z Original Android Development] ari197:
on the bright side .. using DASH really solve battery drain issue .. been using it for a full day and I ride my bike a lot today, with Google Now, location reporting+history, battery has been great .. usually I would hit the battery drain almost right away ..

I'll keep using this build since I don't have any need of Gyro for now ..
[Xperia Z Original Android Development] thomas1991_12:
New fixed build is up already. See OP.
[Xperia Z Original Android Development] ari197:
wohoo .. you are fast .. gyro fix ?
[Xperia Z Original Android Development] zakitheracer:
Is the PA build based on stable branch or alpha branch?
[Xperia Z Original Android Development] Bor_NL:
Is it just me or is the latest build (26-07) suffering from SOD ? I've installed on top of 21-7 build or is clean install recommended ?
[Xperia Z Original Android Development] Tobbyax:
With latest build, Spotify does not play music. I will try to grab some logs asap.

But I'm glad to confirm there is no drain anymore! :)
[Xperia Z Original Android Development] beN..:
Heavy sleep of death yes, only setting that reduces it (but not fixed completely) is performance governor. Avoid last build!

Cannot enter recovery either on this kernel, this sucks as I'm travelling without laptop :/