yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] Poesini:
Calm down... The man was releasing OmniROM (which has the latest kernel)

Asking for ETA is rude :(
[Xperia Z1 Original Android Development] juicio90:
Okay ... but I did not mean it that way ..:confused:

I just offered to prove ...:rolleyes:
[Xperia Z1 Original Android Development] prbassplayer:
Nope tried doesn't work. Its something else. If I add your source to the rom everything works. Slim's build environment has an option to make a kernel zip with all its modules. If I compile your kernel and use the compiled wlan.ko all is well, else wifi breaks. If I flash the kernel compiled in the slim build environment but remove the built modules wifi breaks.
[Xperia Z1 Original Android Development] tcchuin:
wifi doesn't work on latest rom with 0314 kernel.
[Xperia Z1 Original Android Development] Poesini:
I dont know if its OmniROM or the latest kernel. Anyways I installed latest OmniROM which I guess has latest kernel and 3G doesnt work, just 2G :(

When I switch to 3G radio wont turn on
[Xperia Z1 Original Android Development] tcchuin:
On latest Rom and latest kernel, 3g working fine here. Except for wifi.

just realised that the builtin kernel in omni is pimpedup kernel and is updated and is working properly with the wifi

the latest kernel included in the rom has high cpu usage under ksoftirqd/0, googled and seems like it's sort of related to wifi.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Overheat issue / slow charging is also fixed?
[Xperia Z1 Original Android Development] Hen Ry:
what is the name this app -> I have found it -> Faux123
[Xperia Z1 Original Android Development] Androguide.fr:
That's weird, I don't have this softirq issue at all (see attached screenshot).

Can you please run the following command in terminal and post the output here ?

cat /proc/interrupts

As well as this one (leave it running for a couple minutes):

busybox top | grep ksoftirqd
[Xperia Z1 Original Android Development] Androguide.fr:
3G (and WiFi) is working fine on latest Omni build, see the attached screenshot.

Maybe try clearing your dalvik cache and /cache partition in recovery.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Have you tried with doing an full wipe and re-flash everything from scratch?
[Xperia Z1 Original Android Development] tcchuin:
First

Second

didn't left it running for few minutes though as i think it's obvious that it causes high cpu usage.

---------- Post added at 12:33 PM ---------- Previous post was at 12:31 PM ----------

nope, not yet. I'll do so when I have the time later. Rushing for assignment currently ：（
[Xperia Z1 Original Android Development] Destroyedbeauty:
Maybe that's why you got CPU hi-freq issues..
[Xperia Z1 Original Android Development] Hen Ry:
DoubleTap2Wake and Sweep2Wake

Hello,

is there still something?

https://github.com/nikhiljan93/sony_rhine_msm8974/commit/dd069539323f8e2627b08c08b513bf76add97fce
[Xperia Z1 Original Android Development] Androguide.fr:
Nice find :good:

I'll merge those commits right now to test it, I'll report back.

EDIT: Nope, like my previous attempts the sysfs interfaces are here but the features don't work.

However there might be hope, as by looking into /drivers/input/touchscreen/clearpad_core.c, I can see that there are equivalent features to dt2wake and sweep2wake already implemented in the stock driver, like pen mode, but that seem to be disabled by default:

Definitions:

#define XY_LPWG_STATUS_DOUBLE_TAP_DETECTED	0x01
#define XY_LPWG_STATUS_SWIPE_DETECTED	0x02
#define XY_LPWG_STATUS_TWO_SWIPE_DETECTED	0x04

Usage:

static int synaptics_clearpad_handle_gesture(struct synaptics_clearpad *this)
{
u8 wakeint;
int rc;

rc = synaptics_read(this, SYNF(F11_2D, DATA,
this->easy_wakeup_config.large_panel ? 0x39 : 0x43),
&wakeint, 1);
if (rc)
goto exit;

dev_info(&this->pdev->dev, "Gesture %d", wakeint);

if (time_after(jiffies, this->ew_timeout))
this->ew_timeout = jiffies + msecs_to_jiffies(
this->easy_wakeup_config.timeout_delay);
else
goto exit;

switch (wakeint) {
case XY_LPWG_STATUS_DOUBLE_TAP_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"double_tap");
break;
case XY_LPWG_STATUS_SWIPE_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"single_swipe");
break;
case XY_LPWG_STATUS_TWO_SWIPE_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"two_swipe");
break;
default:
dev_info(&this->pdev->dev, "Gesture %d Not supported", wakeint);
break;
}
exit:
return rc;
}

We just need to find how to enable those, most likely by setting the easy_wakeup_config.gesture_enable boolean to true.

I seem to remember that championswimmer found the same thing on the Xperia Z and managed to enable it.

[MENTION=4308696]championswimmer[/MENTION] have you taken a look into this already ?
[Xperia Z1 Original Android Development] tcchuin:
[MENTION=4752917]Androguide.fr[/MENTION], I've tring wiping everything and the ksoftirq problem persists with nothing installed.
[Xperia Z1 Original Android Development] Androguide.fr:
Which rom are you running ?
[Xperia Z1 Original Android Development] tcchuin:
latest build omnirom.

just to confirm, i don't have to flash the 0314kernel from this thread after flashing the rom right?

I couldn't get the wifi working with the latest rom +0314 kernel anyway.
[Xperia Z1 Original Android Development] Androguide.fr:
That's pretty weird, I checked again, the ksoftirqd process is using between 0% and 0.2% cpu on my device.

All you did is install the latest build ? You didn't fastboot a kernel or did anything else ?

EDIT: yeah, all you gotta do is wipe cache/dalvik and flash the latest omni build.
[Xperia Z1 Original Android Development] tcchuin:
nope, nothing.

I'll try to redownlaod everything and start from beginning again ：/
[Xperia Z1 Original Android Development] Androguide.fr:
Wait a sec, I'm uploading a kernel build for you to test.

Re-downloading the rom shouldn't change anything I think.

EDIT: here you go : https://mega.co.nz/#!eJxmwBpB!W6eWSdQ-55F1BPqSmJL3DvARsWMZLTvLjmAJ2qcIHF0

Flash it in recovery and tell me if you still have the issue. If you still do, I'll revert a recent softirq-related commit and rebuild to see if that's the culprit.
[Xperia Z1 Original Android Development] tcchuin:
just tried. seems like after first boot, everything is fine until I switch on wifi and connect to network.

---------- Post added at 06:55 PM ---------- Previous post was at 06:51 PM ----------

okay, thanks! ：）

---------- Post added at 07:07 PM ---------- Previous post was at 06:55 PM ----------

Just tried the latest test kernel, and the issue is still there. reverting to older build now ：/
[Xperia Z1 Original Android Development] Destroyedbeauty:
Regarding this issue.. I got a temporary fix that can reduce the negative effects that this bug is causing, if someone wants to try it?
[Xperia Z1 Original Android Development] tcchuin:
what is it?
[Xperia Z1 Original Android Development] Destroyedbeauty:
A script that I made with goal to limit CPU high spikes as much as possible and also conserve / improve battery life as much as possible. Made with pimped kernel in mind..
[Xperia Z1 Original Android Development] tcchuin:
Just share and let me see what it is. It's midnight over here, I'll try it morning later. Thanks.
[Xperia Z1 Original Android Development] Destroyedbeauty:
OK! Here we go..

1) Extract script inside ZIP-file

2) Put it inside init.d folder under /system/etc and give both init.d folder and script 0777 permissions

3) Reboot and wipe cache and Dalvik so apps / phone / etc can fully utilize the changed parameters inside the script..

Happy power conservering! Notice that this is just v1 of my Pimped Script - I will add every custom kernel module / power saving hack that is possible to add into it, that is added to Pimped Kernel, and improve the script whenever possible.
[Xperia Z1 Original Android Development] Androguide.fr:
Please try with this one, I reverted the latest softirq commit: https://mega.co.nz/#!mIZ3VAQJ!jLgYKv2OsHDiKwIsnLLTg44djMLWEioSNxhynl8qLmM

If the issue persists, please provide me with the following infos:

Do you have power_suspend enabled ? (either in Pimp My Z1 or by running echo 1 > /sys/kernel/power_suspend/power_suspend_mode)

Which CPU governor are you using ?

Which TCP congestion algorithm are you using ?

Do you use intelliplug or mpdecision ?
[Xperia Z1 Original Android Development] Destroyedbeauty:
One question.. Which TCP Congestion protocol is best for battery life w/o sacrificing any performance?
[Xperia Z1 Original Android Development] Androguide.fr:
No idea, this would require some testing, but I don't think it would make any visible difference in terms of battery life.

I usually use Westwood as it's known to be a good algorithm for wireless networks, but I also tested Hybla and YeAH and performance was ok.

There are some good ideas in your script. :good:

Here are some stuff you could add/change, though:

As your script has power saving in mind, you should set intellidemand's powersave_bias parameter (it's at 0 by default). The value is on a scale of 0 to 1000, where at 1000 it will almost always be at the lowest freq, and at 0 it will almost always use the highest freq it's allowed to use. I personally use a value of 250.

echo 250 > /sys/devices/system/cpu/cpufreq/intellidemand/powersave_bias

Add the following to disable entropy contribution of the eMMC and SDcard:

for i in /sys/block/*/queue/add_random;do echo 0 > $i;done

Some other general queue tweaks:

for i in /sys/block/*/queue; do
echo 512 > $i/nr_requests;
echo 2 > $i/rq_affinity;
echo 0 > $i/nomerges;
echo 0 > $i/rotational;
done;

This might need more testing but in my experience using the msm_cpufreq GPU governor saves more battery than the default msm-adreno-tz one

echo 'msm_cpufreq' > /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/devfreq/governor

The rm /dev/log/main is a bad idea, you won't gain even 1 minute of power on a full charge and rom/apps devs won't be able to get logcats if many people use this script, be a good citizen ;)
[Xperia Z1 Original Android Development] Destroyedbeauty:
Haha, the last thing (Android logger removal) was just something I added for the effect of getting some 'placebo' hysteria claims.. :D

But hey, I will add your recommendations.. Now! :)

EDIT: I am also using powersaving biasing normally, but did delete it because something was causing stuttering / laggy UI for me.. Will add it back now though!

One question.. Anything I can help you with, when it's comes to future releases of OmniROM?
[Xperia Z1 Original Android Development] Androguide.fr:
For powersave bias, maybe try to set it lower then, it could be sluggish combined with other tweaks.

I think you'll be happy to know that I successfully implemented showp1984's msm_mpdecision with sysfs interface (27 tunables) and faux's SnakeChamer/msm_cpufreq_limit driver, will release a new build in a moment.

You'll need to change the stop mpdecision to echo 0 > /sys/kernel/msm_mpdecision/conf/enabled if you want to use intelliplug.

For omni, it's nice to ask but I don't really need anything. I'm almost done with getting the device ready for official support, then I'll let the build servers do their magic.
[Xperia Z1 Original Android Development] Destroyedbeauty:
On latest kernel 03-15 build, there is no such folder on Qualcomms stock mpdecision.. so what can / should I do for get Intelliplug working? :(
[Xperia Z1 Original Android Development] Androguide.fr:
I meant in next build you'll need to do that.

In current builds we are using Qualcomm's closed-source mpdecision, which uses a binary to be enabled/disabled, but in next build it will be replaced by showp's open-source mpdecision, which uses a sysfs interface to be tweaked and toggled.
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-16 Build

New build is up.

You can use trickstermod to control the new mpdecision driver's parameters (under "specific/mp-decision control") until I implement it in Pimp My Z1

Changelog

Downloads
[Xperia Z1 Original Android Development] Destroyedbeauty:
Downloading now!
[Xperia Z1 Original Android Development] dettofatto:
I'm sorry... In cm11 16/03 I've error with android.phone...
[Xperia Z1 Original Android Development] Androguide.fr:
My bad, here you go: http://d-h.st/GsR
[Xperia Z1 Original Android Development] dettofatto:
Fico!!! (Cool!!!)

I'm testing...

Seems ok! Thank you!
[Xperia Z1 Original Android Development] tcchuin:
error with android.phone too

The issue persists with my custom setting and on default setting too. so i don't think that's the culprit ：/

was the commit you reverted this"Re-added softirq latency tweaks" which is added on 13 march build? the 0313 build doesn't have that problem.

i tried several combination of the rom & kernel.

it seems like the ksoftirqd hogging cpu issue only happens on the kernels build NEWER than 0314 build.(i.e. the builds with both wifi and intelliplug working)

hopefully i helped you to reduce the no' of commits suspected to cause this issue. thanks.
[Xperia Z1 Original Android Development] giveme13s:
On beanstalk255 ROM, I can't turn wi-fi on with kernel march 16 ( Pimped-Kernel-2014-03-16-CM.zip). Had to revert to kernel March 10 version.
[Xperia Z1 Original Android Development] tcchuin:
If i'm not wrong it's the rom side which needs to be updated to support the changes in wifi.

I think you can use build 13 march w/o any issue on wifi.
[Xperia Z1 Original Android Development] gallardo5:
WiFi doesnt work with latest CM nightly and todays kernel
[Xperia Z1 Original Android Development] infatality:
[MENTION=4752917]Androguide.fr[/MENTION] is your kernel patched up to the latest 3.4.83?
[Xperia Z1 Original Android Development] Destroyedbeauty:
[MENTION=4752917]Androguide.fr[/MENTION]

1) - How to enable SnakeCharmer through init.d script? What is the proper command line for this?

2) - And one additional wish-feature.. Any hope for Intellithermal in the future? :D

EDIT: I did just notice a reason why I got those nasty heat issues.. It is related to that you have enabled multi core power savings to 1 (=moderate) and this is causing conflicts with ECO-Mode / Intelliplug which is using, what I know, their own specific ways to save as much power out of the multi core CPU inside the Z1

Anyone that got heat issues after enabling Intelliplug and specially ECO-Mode - use this following command in a init.d script with 0777 permissions, and you are good to go.. Better avoid to fry your device ;)

echo 0 > /sys/devices/system/cpu/sched_mc_power_savings
[Xperia Z1 Original Android Development] Androguide.fr:
Sched_MC will not interfere with the hotplug driver, those are two very different mechanism.

I use sched mc level 2 along with intelliplug + eco mode and i don't have any heat issue whatsoever.

For SnakeCharmer it's enabled by default, you set the max freq to limit for all cores using (where XXX is the frequency you want):

echo XXX > /sys/kernel/msm_cpufreq_limit/cpufreq_limit

About intellithermal, I have some weird issues when compiling it, need to fix that.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Isn't sched mc levels above 0 made with quad / multi core set-ups in mind - and using eco-mode disables 2 CPU cores? I mean, the idea behind sched_mc is to make use of one core as much as possible, and when it's loaded to 100% - one another core will kick in, and so it will go on and on..? Just my few cents.. :confused:

Will try sched_mc again..
[Xperia Z1 Original Android Development] Androguide.fr:
It's Multi-Core power savings, not Quad-Core power savings, meaning that it doesn't matter if the hotplug driver makes the device act as a dual-core device, Sched_MC will do its job with the amount of cores it's given.

The level 1 of sched mc tries to load the first core as much as possible before loading the second, but level 2 will do load-balancing, trying to use the available cores each at the lowest level it can instead of maxing out one core and idling the others.
[Xperia Z1 Original Android Development] tcchuin:
Any idea what commit after 0314 build causes the issue? :-\
[Xperia Z1 Original Android Development] lowrider_05:
latest kernel give me Wifi problem (it does not turn on)
[Xperia Z1 Original Android Development] Androguide.fr:
I have indeed reverted the "softirq: reduce latencies" in the last build I gave you for testing.

What's weird is that you seem to be the only one to have this issue.
[Xperia Z1 Original Android Development] Androguide.fr:
Are you sure you're using the Pimped-Kernel-2014-03-16-CM.zip package ? (Link in the OP)
[Xperia Z1 Original Android Development] zhuoyang:
Do I need to turn off mpdecision when using intelliplug?

I am using the latest omnirom build and my phone often goes into inaccessible state ( power button, USB, adb, logcat not working) until I force reboot my phone.
[Xperia Z1 Original Android Development] tcchuin:
I'm not saying that it's "softirq: reduce latencies" that has caused this problem as apparently i don't have problem on 0313 and 0314 build :/

sigh, btw is it possible to have a build based on 0313/0314, and only have the necessary code changes that makes the wifi work on newer version of rom? it's okay if it's not possible, since that this seems to be an isolated issue :(
[Xperia Z1 Original Android Development] lowrider_05:
i tried with both versions on AOSB rom and non of them let me turn on the wifi
[Xperia Z1 Original Android Development] Destroyedbeauty:
Yes. Use init.d script for this!
[Xperia Z1 Original Android Development] tcchuin:
the roms need to be updated if i'm not wrong. 0313 kernel should have wifi working fine.
[Xperia Z1 Original Android Development] lowrider_05:
kernel from 14th also works
[Xperia Z1 Original Android Development] dettofatto:
In mine with last cm11, the wifi is only off...
[Xperia Z1 Original Android Development] tcchuin:
so is the omnirom the only rom which has working wifi on this kernel??
[Xperia Z1 Original Android Development] dehenry21988:
I am running LiquidSmooth with this kernel, WIFI works fine. However, charging is painfully slow.
[Xperia Z1 Original Android Development] Kingcool88:
Can confirm that with version from 16/3, and todays weekly of slimkat, wifi is still broken :(
[Xperia Z1 Original Android Development] prbassplayer:
Easiest way to solve this across all roms, include this kernel's build wlan.ko in the zip. Just my 2 cents

Edit : at least I think this would solve it.
[Xperia Z1 Original Android Development] Poesini:
I am having random reboots and/or totally slept phone (have to reboot it via hardware red button) with latest kernel... Although battery is so superb I can handle it xD
[Xperia Z1 Original Android Development] CappyT:
I have a android.phone and a android.systemUI fc with latest kernel, reverting to 13/03...

Can't test WiFi, due to ui crash.

Latest CM11 (16032014)

Inviato dal mio Xperia Z1 utilizzando Tapatalk
[Xperia Z1 Original Android Development] Androguide.fr:
That's a good idea, it totally makes sense since my Omni build seems to be the only one with wifi working on the last kernel build.

I'm downloading the latest CM nightly to give it a try, I'll report back.

EDIT: attaching the module if you guys wanna try it too (I zipped it as we can't attach *.ko files)

EDIT2: Awesome, this indeed does the trick, I'm modifying my updater-script and I'll release a flashable build which includes the module
[Xperia Z1 Original Android Development] Destroyedbeauty:
No matter what I do on latest kernel build - the one with Snake Charmer kernel module included.. It's always Screen of Death / Sleep issues, so I've to hard reset my Z1 for making it come alive again.

:/
[Xperia Z1 Original Android Development] Poesini:
Me 2. I call it DSOD (Deep Sleep Of Death) :(
[Xperia Z1 Original Android Development] Androguide.fr:
Weird, I've been running it for the past couple of days and I didn't experience that issue. Any idea if adb is accessible when in that sleep of death state ?

Please try to grab the last_kmsg in terminal (although it's likely the ram has been flushed when you hard-reset the device):

cat /proc/last_kmsg
[Xperia Z1 Original Android Development] Destroyedbeauty:
A little bit hard because the device is totally non-responsive when this happens..
[Xperia Z1 Original Android Development] Androguide.fr:
Do this after you have rebooted the device, obviously.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Will do this if the sleep issue happens again..
[Xperia Z1 Original Android Development] lowrider_05:
I had the sleep of death to but only on intellidemand with intelliactive and the WLAN.KO its working and the device wakes up from sleep even after 30 min of sleep
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-17 Build

Here's a quick build with the wifi fixed for all roms (many thanks to [MENTION=3877985]prbassplayer[/MENTION])

Changelog

Download
[Xperia Z1 Original Android Development] Poesini:
You are right, last_kmsg gets flushed and adb devices show nothing :(
[Xperia Z1 Original Android Development] tcchuin:
Does anyone else have high idling cpu clock /usage?
[Xperia Z1 Original Android Development] ->---:
I get spontaneous reboots while KSM in miscellaneous is activated. Sadly I cannot say if it also the case on the last kernels if it is deactivated becaus sleep of death was always faster.

After reboot I tried a modified pimped_kernel.zip from 14.03. but I forgot to copy one file so the update had not the effect I wanted to. So, before rebooting, I reflashed the file from 17.03. and rebooted. The last_kmsg is from after rebooting. Was it already overwritten by the system or my flashing or is the error case from the spontaneous reboot still in it? Means, does it help you or do you need the file without a flash before rebooting?
[Xperia Z1 Original Android Development] dettofatto:
Wich rom? I had random reboot with last cm11...
[Xperia Z1 Original Android Development] Kingcool88:
Nice job! Latest Slimkat and this version got Wifi working again! Tnx!!
[Xperia Z1 Original Android Development] zhuoyang:
does this build fixed the sleep of death issue ?
[Xperia Z1 Original Android Development] Juzman:
I had sleep of death with slimkat. Turned off power suspend, will see how it goes.

Also speaker gain doesn't stick on reboot again.

Edit: still deep sleep of death. Intelliactive/intelliplug/eco mode. Will try with eco mode off and others on.
[Xperia Z1 Original Android Development] nardusg:
I had the deep sleep of death. I am on 16/3 CM11. After enabling Intelli Plug, the deep sleep issue hasn't happened yet...
[Xperia Z1 Original Android Development] :
Question. Will the kernel work with latest nightly, or do you have to keep updating for each nightly?
[Xperia Z1 Original Android Development] ->---:
Not in my case. The bad thing is, I am not able to get wifi to work with one of the older pimps from 10.3 - 14.3. I copied the system folder and the install script from the 17.3. version to the one from 14.3. but that did not do the trick :(

I am on OMNI 15.03. But it was on each OMNI version with activated kernel same page merrging from pimped kernel.Since I turned it of, no reboot so far.
[Xperia Z1 Original Android Development] dettofatto:
I didn't have sod before, but after 2 reboot, I had again.

Now I have this configuration and the sod is go away...

Wifi is ok. Cm11 16/03
[Xperia Z1 Original Android Development] Androguide.fr:
Now that we've worked the wifi issues out, the latest build should be compatible with any future nightlies/roms.