yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] fards:
Hmm no sign off sod and can reboot into recovery fine.

Sounds like the upgrade didn't play nicely.

Maybe try formatting system but installing the zip?

Using preservative governor and undervolted with intelliplug
[Xperia Z Original Android Development] thomas1991_12:
I recommend doing a clean install with the new build. I had sods too with a dirty flash, wipe data dalvik and system solved that.
[Xperia Z Original Android Development] javagreen:
Now i'm afraid to flash the latest build. What exactly is SOD? The phone goes in deep sleep and doesn't wake up?
[Xperia Z Original Android Development] Irseq:
Yeah, basically. I had it too, after wiping system, data and dalvik and reinstalling everything's fine, on CM.

On PA however, network still drops when I'm trying to make a call.
[Xperia Z Original Android Development] webbimato:
Wiped everything (/system, data and caches) and XZ still likes to sleep alot :(
[Xperia Z Original Android Development] buche23:
SOD

It mean the phone goes to deep sleep and is not responsing anymore. I does _not_ brick your device. Hold Power-button and Vol-Up for 5 seconds and it will reboot.

However, it seems like a clean install is preferable. Can't speak from experience, as the screens of my XZ cracked in my pocket and I'm now with a Moto E till it's back from repair.

HTH

Buche
[Xperia Z Original Android Development] B14ck7hund3r:
Everything working here. No SOD, no GSM drain, everyone did a great job. This is by far the most stable and speedy custom ROM out there for yuga. I don't miss stock at all :good:
[Xperia Z Original Android Development] fards:
Still be nice to find a way if dropping screen power drain.

Thomas have you had a play with f2fs? I'm tempted to experiment with it
[Xperia Z Original Android Development] ferrari35:
Just updated to the new version and now have sleep of death
[Xperia Z Original Android Development] B14ck7hund3r:
Try if using abvssplugv2 or DanceDance solves the problem. I only had sleep of death with interactive governors
[Xperia Z Original Android Development] BrateloSlava:
Read this page
[Xperia Z Original Android Development] thomas1991_12:
There may still be problems with SODs on the latest build, after switching governors for me it disappeared. I have some logs of the SOD but they dont give away much. It seems to be a scheduling while atomic bug, but no idea where it comes from all of a sudden.

If you guys keep experiencing SODs (after clean install and governor setting) please let me know.

F2FS should work, you just need to change the fstab in ramdisk to f2fs in stead of ext4 for /data. Then use TWRP to format data to f2fs.

PS: If the governor is the culprit, is suspect these one to casue SODs:

adaptive

intelliactive

intellidemand

interactive

lulzactive

ondemandplus

Maybe more..

I also think its related to intelliplug, if you pick mpdecision in stead of intelliplug all seems to be good.
[Xperia Z Original Android Development] lonixlon:
Yeah getting SOD's on cm11, with clean install, noticed on first boot I can't lock the screen by pushing the power button, but after a while it will lock

Edit. When selecting a ringtone no sound is made using the built in sound picker
[Xperia Z Original Android Development] bnm15:
heavy sod on interactive goverrnor and ondemand governor, havent tested others yet but definitely need a fix for this.. :(

and the recovery isnt working really fine....when i reboot into recovery for the first time and try to flash back the previous version after full wipe, it says error message, sth like abortion 7, none of the ROMs can be installed on recovery

and THEN after system reboot,the phone wont enter into recovery anymore, cannot access to recovery..
[Xperia Z Original Android Development] ferrari35:
Thanks that did the trick:)
[Xperia Z Original Android Development] thomas1991_12:
Ill check spotify later, first the major SOD bug. I found out that its related to the new powersuspend driver which replaces early suspend by faux. So im now trying to pinpoint where exactly it bugs.
[Xperia Z Original Android Development] thomas1991_12:
After a lot of debugging I have build an experimental boot image, you can download it here: https://drive.google.com/file/d/0B7XCSgymRoP0OUhrM2NFZjl4VFU/edit?usp=sharing

I tested this for a short time, and it seems to work. I would appreciate it if you guys could flash it and test it too on different governors. Also push the modules to system/lib/modules.

This is NOT a flashable zip.
[Xperia Z Original Android Development] fards:
scratch that.

Looks like I've broken wlan somehow.
[Xperia Z Original Android Development] macia10:
Hi

I recently bought a MHB10 Sony BT earpice and I have problems with it on any rom except the stock one. Bassically when I play music on it it kinda stops playing anything for few seconds and then plays again. It does not pause music just stops sending sound. The same sometimes happens when incall. Please have a look at logs. It should be need the end. And there is alot of errors with cpu overload there. Sorry I dont remember if I took log on your rom ot a CM11 but problem is exactly the same here and there.
[Xperia Z Original Android Development] Vishalkris:
Hi I'm using pa_yuga-4.44-20140726 and when I'm trying to make calls the range disappears.. Can't make calls.. Please anyone reply as I'm stuck with this bug.. I can receive calls but can't make outbond calls
[Xperia Z Original Android Development] fards:
Search the thread for a fix
[Xperia Z Original Android Development] fards:
Played with the test kernel allday, not had sod with any governor, but very slow screen wake on a few of them including intelliactive
[Xperia Z Original Android Development] Bor_NL:
Awesome work i've been using the test kernel the whole day and didn't have a SOD. Just came back home ans saw a new build. Is there anything changed compared to 26th with test kernel ?

Keep on the good work !
[Xperia Z Original Android Development] Vishalkris:
I didn't found any.. Sadly I had to turn back to stock

But I still want to turn back and use this rom... So help me resolving this issue.. Is it rom based bug or kernel bug
[Xperia Z Original Android Development] fards:
Please just learn to search, the fix had been described, plus a zip with the necessary ril files posted.

Try around post 465 or so.

Thomas also says he's fixed the issue in the latest 29th build so try that
[Xperia Z Original Android Development] Vishalkris:
I tried the ril files but it didn't worked for me that's y I posted it again
[Xperia Z Original Android Development] fards:
I've just flashed the 29th P A build (still same bug)

Pasted the files I posted, changed permissions and made a phone call.

If they aren't working for you, then you are doing something wrong. Give it another try.
[Xperia Z Original Android Development] Vishalkris:
A request from me to you.. Can you please upload a zip with two different folder in it so that I can assure I put all the files in there respective folder's...please can you do this for me... It might help others too
[Xperia Z Original Android Development] fards:
No sorry. It's best the you learn how to do things properly, this is a developer site, so it's best to learn then you can fix things yourself without having to wait for others in future.

It's really simple.

The .so files go in the system lib the rild in system bin.

That's all there is to it.
[Xperia Z Original Android Development] iKillCypher:
has anyone here tested the cm 11 29/07 build any sod bugs ? :silly:
[Xperia Z Original Android Development] fards:
I had a play yesterday evening and overnight with it. No sod I noticed using intelliactive.

On pa now for a while(feeling too lazy to factory reset to swap back)
[Xperia Z Original Android Development] B14ck7hund3r:
No sound in ringtone chooser, music playback fails from time to time. Always get "permission denied for -1" in log.

Log from ringtone chooser here: https://docs.google.com/file/d/0B5inxRUMcVnpX0ZzTndneWFKbU0/edit?usp=docslist_api
[Xperia Z Original Android Development] thomas1991_12:
Is this from a clean install, could you grab a kmsg too. Because I cant reproduce this issue.
[Xperia Z Original Android Development] B14ck7hund3r:
Sorry, didn't see the 29-update. Everything fine after updating to newest version. Guess it was a CM issue.
[Xperia Z Original Android Development] thomas1991_12:
New build up. With rebuils RIL, so should be good on PA now.
[Xperia Z Original Android Development] Vishalkris:
Outbound call still doesn't work on this build... Idk why
[Xperia Z Original Android Development] iKillCypher:
PA Or CM ?

Clean Build -> Factory Reset/Wipe Cache ?
[Xperia Z Original Android Development] Vishalkris:
Pa

Clean install
[Xperia Z Original Android Development] iKillCypher:
can you catlog it so maybe they can debug and see what's the issue is it working for incoming call ? as in are you able to receive any call while using pa on your cell ?
[Xperia Z Original Android Development] Vishalkris:
Yes I can receive calls but can't make out going calls and tried replacing the lib and rild files also but after that I don't get network at all
[Xperia Z Original Android Development] javagreen:
Okay, I've tried searching but couldn't come across anything useful. I know this isn't the right thread for this - but is there a 36dpi softkeys mod that'll work on this ROM? I'm using ART so Xposed is out, SoftkeyZ doesn't work......

That's the only thing I want to change now, the default softkeys are HUGE :(
[Xperia Z Original Android Development] Supersaiyan.IV:
Tried SoftkeyZ without ART? Get LMT Launcher if you want more space.

Also, will there be a CM sync for for the .233 blob version? I don't mind using Device Only GPS.
[Xperia Z Original Android Development] javagreen:
That's kinda the point, I want to use ART as it's so much faster than Dalvik. It's like using a brand new Phone with ART. I was hoping for a softkeys mod ZIP that I can flash...
[Xperia Z Original Android Development] fards:
Have you checked the permissions on the replaced files?

644 libs rwrr 755 for rild rwxrxrx
[Xperia Z Original Android Development] fards:
I've just tested the 30th build of PA and ril works fine out of the box, no need to push the files across, on a clean install or a dirty upgrade from 29th build.

Other issues with screen not turning on very quickly, but that's something else to play with :D
[Xperia Z Original Android Development] Burag:
Looks like mpdecision / intelli_plug has a new competitor - simple_plug:

http://review.cyanogenmod.org/#/c/69379/

http://review.cyanogenmod.org/#/c/69380/

[MENTION=2228255]thomas1991_12[/MENTION], it would be great if you could include it in next build ;)

BTW. Do you have any plans for future work / features etc.?

The USB Host crash thing is the only one that keeps bothering me :(
[Xperia Z Original Android Development] Tommy-Geenexus:
Simple_plug exists since a while in several htc kernels.

I would recommend removing all hotplugs and adding autosmp, it's the best performing you can find.
[Xperia Z Original Android Development] macia10:
Anything about this problem?
[Xperia Z Original Android Development] thomas1991_12:
Sorry, but you would do best to ask CM. I currently wont be fixing any bugs which exist in CM 'stock' also.

As for USB OTG drives, could you provide logs? I dont have a OTG cable so cant test it myself.
[Xperia Z Original Android Development] macia10:
So does that mean that you will not contribute to CM anymore?
[Xperia Z Original Android Development] jpacho89:
Don't think so. He probably means that he will not solve every bug in CM code, focusing his attention in ones that are only present in our device.
[Xperia Z Original Android Development] macia10:
Oh I think this is a device specific as I don't have any problem on my other device. And its the same on MIUI and Paranoid.
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

Addition to this patch:

Sound Control: Misc clean up for newer WCD9xxx SOCs

Sound Control: let register lock be dependent on different HW revisions

Sound Control: separate locking mechanism for recording and playback with newer hardware revisions coming from Qualcomm, single register lock control isn't sufficient to cover both playback and recording usage scenarios
[Xperia Z Original Android Development] buche23:
Which makes it a bug to be opened at and fixed by CM. If it's a bug specific to this ROM Thomas will fix it. If it can be found in the generic CM for the XZ, he won't invest his time. At least this is my humble understanding.
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

I'm suggest to make some change in ramdisk.

1. File default.prop

ro.adb.secure=0
ro.secure=0

2. File fstab.qcom

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,nodiratime,barrier=0,data=writeback,nomblk_io_submit,errors=panic wait,check
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,nodiratime,barrier=0,data=writeback,nomblk_io_submit,errors=panic wait,check,encryptable=footer,length=-16384

3. Remove from file init.qcom.rc

service waldi /system/bin/waldi
class late_start

Because file waldi not found, and we have an error in dmesq:

<3>[ 18.238922] init: cannot find '/system/bin/waldi', disabling 'waldi'

PS. I test the functionality of all these changes.
[Xperia Z Original Android Development] fards:
Adb insecure isn't a good idea or needed.

Just use adb root and adb remount
[Xperia Z Original Android Development] SuperHanss:
Those changes made to fstab will most likely mess shiz up, any sudden crash will result in data loss/corruption.
[Xperia Z Original Android Development] Tommy-Geenexus:
[MENTION=2228255]thomas1991_12[/MENTION]

I recommend removing intelli_plug and add autosmp, as it delivers more performance and excellent battery life, it's atm way better than intelliplug.

This way you could also remove stock mpdecision and other unnecessary code.

If you want i could create a pull request.
[Xperia Z Original Android Development] BrateloSlava:
These changes work on my tablet for two consecutive years without any problems. With daily use of the tablet.

Do you offer after every reboot to connect your smartphone to your computer and run this command? (adb remount)

In any case, I suggest options. Accept it or not - to solve the author.
[Xperia Z Original Android Development] fards:
Why would I need to do this every reboot? I do it when needed. Ie When I need to make a change to a file in system.

It's a simple matter of security, it's safer the way it is.

It's like having a lock on your front door, then saying "let's leave the key in it outside so I don't have to unlock it to get in" for the minimum extra effort involved I'll take the security.
[Xperia Z Original Android Development] BrateloSlava:
I can quite agree that degrade safety - not the best solution. I probably did not quite understand your words about "adb remout".

I meant the changes to the file fstab.
[Xperia Z Original Android Development] fards:
Adb remount sets the file system RW for the duration of the adb shell session.
[Xperia Z Original Android Development] Supersaiyan.IV:
This is absolutely dangerous. Do you know the prerequisites for data=writeback to be set? You need to make changes to the file-system journal.

More specifically, this command: "tune2fs -o journal_data_writeback". As trivia, the default setting is: "tune2fs -o journal_data_ordered".

As things stand, a sudden change to data=writeback would render all KMA users' filesystems unbootable at best, and most likely corrupted upon first reboot. Remember that some flags can't be set off the bat.

I'm not just picking fly poop out of pepper here, what you're suggesting is dangerous.

EDIT: noatime already encompasses nodiratime making it redundant. Here's more information regarding flags and their impact.

As a Crucial V4 SSD owner, whose chip is renown for slow handling of fsync commands I landed at the following fstab settings:

Which is an outrageous way to improve SSD performance, but with these simple settings I go from 500KiB/s read to 230MiB/s read. In case of a power outage I'll land at fschk upon reboot.

Had I been using data=writeback it'd been a corrupt drive.
[Xperia Z Original Android Development] Aka91:
I had the google services battery drain...

Again.

:(

Fresh install..banks gapps

On 30-07 build
[Xperia Z Original Android Development] BrateloSlava:
Of course, I performed a similar setting. Thanks for the link.
[Xperia Z Original Android Development] BrateloSlava:
Frankly, it's logging for some partitions do not need at all. IMHO.

I did this so - tune2fs -O ^has_journal -c 1 -i 1d -m 0
[Xperia Z Original Android Development] ari197:
try using PA gapps
[Xperia Z Original Android Development] Supersaiyan.IV:
That disables the journal completely, therefore your data=writeback flag doesn't do anything at all.

You've simply converted your EXT4 to an EXT2, which doesn't employ any sort of journaling.
[Xperia Z Original Android Development] macia10:
Thomas anything regarding MHL being fixed? :)
[Xperia Z Original Android Development] Aka91:
The navigation bar acts weird while in landscape mode.

:/
[Xperia Z Original Android Development] aidfarh:
cpus 1-3 governor reverting to intellidemand

[MENTION=2228255]thomas1991_12[/MENTION], I'm using the 0730 build and I've just found a bug. The cpu governor for cpus 1, 2 and 3 keeps reverting to intellidemand. I've tried changing the governor using system performance setting, Trickster Mod and FauxClock, but the results are the same. If I disable both mpdecision and intelliplug and enable all cores, the new governor sticks, but if I then enable either mpdecision or intelliplug, after a while the governor for cpu 1-3 reverts to intellidemand. CPU governor checked using Quick System Info Pro, see attached screenshot.

I'm pretty sure this used to work fine a while ago, though I'm not sure at which point this bug appeared since I haven't been checking. Kernel log is attached, though I didn't find anything in there to indicate the problem.
[Xperia Z Original Android Development] BrateloSlava:
IMHO, there is only one way to change governor. For example, via init.d script:

chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "intellidemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cpu1...cpuX do not contain such variables. You can check it for yourself.

Any utilities do such governor replacement similarly.
[Xperia Z Original Android Development] aidfarh:
No, it doesn't work for me. Still the same problem. Of course, you wouldn't notice it if you're using intellidemand, but try changing to something other than intellidemand and see if the governor sticks for cpus 1-3.

And it's not correct that the other cpus don't have that variable. The variable disappears when the cpu is offline, which is most of the time, but the variable appears when the cpu comes online.
[Xperia Z Original Android Development] BrateloSlava:
And if it?

echo "1" > /sys/devices/system/cpu/cpu3/online;
echo "intellidemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor;
echo "1" > /sys/devices/system/cpu/cpu2/online;
echo "intellidemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor;
echo "1" > /sys/devices/system/cpu/cpu1/online;
echo "intellidemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor;
[Xperia Z Original Android Development] aidfarh:
In the first place, there's no problem if you want to use intellidemand governor. Try using other governors. I tried using preservative, so this was what I tried:

echo "1" > /sys/devices/system/cpu/cpu3/online;
echo "preservative" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor;
echo "1" > /sys/devices/system/cpu/cpu2/online;
echo "preservative" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor;
echo "1" > /sys/devices/system/cpu/cpu1/online;
echo "preservative" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor;

It doesn't work. Yes, the governor for all cpus were changed to preservative after running that script, but once a cpu goes offline and online again, the governor reverts to intellidemand.
[Xperia Z Original Android Development] BrateloSlava:
This means, that before turning off the CPU core, is not memorized value of the governor for this kernel. And after turning on - is set it by default value.
[Xperia Z Original Android Development] aidfarh:
Exactly. This is a recent problem. Everything used to work fine. Could it be because of this commit? https://github.com/daeiron/android_...mmit/cd4eddd319942bbbe0d9e11d76b75f0e17923eea
[Xperia Z Original Android Development] BrateloSlava:
Very similar to this. Try to ask a question to [MENTION=3332811]faux123[/MENTION].
[Xperia Z Original Android Development] AngelBob:
CONFIG_HOTPLUG_CPU

Was never defined in cm_fusion3_yuga_defconfig so I don't think that's whats causing the issue.
[Xperia Z Original Android Development] Supersaiyan.IV:
Aloha,

Still running the 21-07-2014 CM with .230 blobs build, and haven't had any abnormal drainage for +3 days while Location is on "High Accuracy".

I was hoping that somebody on the 21-07-2014 CM build would verify that the storm is indeed over. Running ART, 'Scanning always available' off, 7 accounts, no wakelock preventing mods, no undervolting.
[Xperia Z Original Android Development] Gustavo RD78:
[MENTION=2961094]aidfarh[/MENTION] [MENTION=4842205]BrateloSlava[/MENTION]

sorry to intrude, this commit can be useful

https://github.com/GustavoRD78/78Kernel-233/commit/efbe488ae3b45e896a0a3ec6c8d7a7c66c13715b

Sent from my Xperia - 78Kernel
[Xperia Z Original Android Development] aidfarh:
CONFIG_HOTPLUG_CPU is enabled automatically even when not defined in defconfig. If you compile the kernel you'll see that CONFIG_HOTPLUG_CPU=y appears in the generated .config file.

I guess the only way to know for sure whether that commit was the cause of the problem is to revert it, compile the kernel and test.

---------- Post added at 10:44 AM ---------- Previous post was at 10:32 AM ----------

Thanks. I'll try compiling a kernel with this when I have the chance, which unfortunately is not for at least another 10 hours.
[Xperia Z Original Android Development] BrateloSlava:
I did not understand why [MENTION=3332811]faux123[/MENTION] released such patch.

Thank, I'm also try your patch.
[Xperia Z Original Android Development] ari197:
do you have Google Now running ? do you have location reporting + history active ?

from past experience, these are what causing the battery drain .. if you don't have these active, your phone will not keep track of your activity thus no sensor overload ..
[Xperia Z Original Android Development] wess786:
I am on ExistenZ right now. Can I just download the ROM, put it on my phone, wipe the usual things and flash? If yes, is gapps needed?

Or do I have to flash the boot.img with fastboot first?
[Xperia Z Original Android Development] lonixlon:
If your boot loader is unlocked, yes and yes gapps is needed
[Xperia Z Original Android Development] BrateloSlava:
== del ==
[Xperia Z Original Android Development] LastSoul88:
why i cant enter recovery using volume button when phone boot?? im on latest cm11
[Xperia Z Original Android Development] lonixlon:
Must be a bug, I have same problem
[Xperia Z Original Android Development] LastSoul88:
ooo.. i thought it just me facing this problem.. hope thomas can fix this bug..
[Xperia Z Original Android Development] iKillCypher:
which is why Im scared to always flash new builds unless the minimum features works fine :victory:

currently on 08/07 Build no idea when I will flash the next build maybe once everything is cool ;) :D
[Xperia Z Original Android Development] AngelBob:
Boot into recovery, FULL wipe and flash KMA, flash GAPPS, job done.

You can't just wipe the 'usual' things
[Xperia Z Original Android Development] Aka91:
Wifi is never off

I made sure i switch it off

And after 7 hours i see this

Clean install,pa gapps.
[Xperia Z Original Android Development] lonixlon:
Turn off scanning always available in wifi settings
[Xperia Z Original Android Development] Aka91:
Thank you very much.