yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] Androguide.fr:
Attention to all the people who are having issues with high CPU usage/slow charging/ksoftirqd process spamming

The current version of Pimp My Z1 doesn't disable the new mpdecision driver, I need to update the app, so when you enable intelliplug with Pimp My Z1 you'll have both mpdecision & intelliplug running at the same time, causing a huge race condition.

(I think TricksterMod handles it properly, but I haven't verified yet)

Please use the following commands in terminal emulator to manage the hotplugging until I update Pimp My Z1:

To enable intelliplug & disable mpdecision:

echo 0 > /sys/kernel/msm_mpdecision/conf/enabled
echo 1 > /sys/module/intelli_plug/parameters/intelli_plug_active

To disable intelliplug & enable mpdecision

echo 1 > /sys/kernel/msm_mpdecision/conf/enabled
echo 0 > /sys/module/intelli_plug/parameters/intelli_plug_active
[Xperia Z1 Original Android Development] Juzman:
Using intelliactive? Will try this setting on slimkat.
[Xperia Z1 Original Android Development] dettofatto:
No, don't try...

Sod for me...
[Xperia Z1 Original Android Development] Androguide.fr:
That's interesting, I have recently merged some KSM optimizations, maybe that's what causing the SOD.

Can you guys having SOD's try to disable KSM in Pimp My Z1 and report back please?
[Xperia Z1 Original Android Development] tcchuin:
The intelliplug and mpdecision toggling doesn't really seem to work on trickster mod. I was able to solve the ksoftirqd issue by toggling the intelliplug on then off. But any changes on mpdecision's parameter doesn't seem to change its behaviour
[Xperia Z1 Original Android Development] husky69:
Started over with de- and reinstalling PMZ1 after having frequent SODs on OmniROM. Since starting fresh no SODs anymore. So far I didn't touch KSM, intelliplug and power suspend have been switched to their opposite from defaults.
[Xperia Z1 Original Android Development] Juzman:
Testing it out.
[Xperia Z1 Original Android Development] lowrider_05:
it must be a change from 16th to 17th kernel the 16th works for me without any freeze or sleep issues and the 17th sleeps to death in 5 minutes after sleep and the phone gets pretty warm in sleep
[Xperia Z1 Original Android Development] Androguide.fr:
Have you properly disabled mpdecision ? (See my post on the previous page)
[Xperia Z1 Original Android Development] ->---:
I disabled all on power management tab including KSM. Still sod
[Xperia Z1 Original Android Development] lowrider_05:
yes i did and it doesen´t help me on the 17th kernel
[Xperia Z1 Original Android Development] Juzman:
KSM disabled, still SOD. doesn't happen on charge.
[Xperia Z1 Original Android Development] 3x3cUt0r:
i'm getting SOD with SlimKat 3.8 and default kernel settings.
[Xperia Z1 Original Android Development] Poesini:
DSOP happens with KSM enabled or disabled but doesnt happen when is connected to any charger so I guess it has something to do when it goes to deep sleep... I remember something like that happened with my HTC One with some custom kernels... I dont know
[Xperia Z1 Original Android Development] :
Phone reboots randomly. I'm on CyanogenMod 11 (18022014 nightly). I flashed back to stock. I'll wait for a stable build.
[Xperia Z1 Original Android Development] ->---:
I flashed the version from the 17th, afterwards the one from the 16th. Disabled KSM and power suspend. Enabled intelliplug and eco mode. Wifi is working, no reboot or sod since 4 hours.

Sent from my Xperia Z1 using Forum Fiend v1.1.7.
[Xperia Z1 Original Android Development] Androguide.fr:
I've pushed a Pimp My Z1 update to google play which adds support for toggling the new mpdecision driver.

You can download the apk directly from my github: https://github.com/Androguide/Pimp_my_Z1/releases/tag/1.0.4-beta
[Xperia Z1 Original Android Development] dettofatto:
It's possible that the old app causes sod?
[Xperia Z1 Original Android Development] Androguide.fr:
Yes, maybe. See my previous post about this:
[Xperia Z1 Original Android Development] dettofatto:
Yes I red... But I didn't read about sod...

So now I can install again your kernel in cm11? What do you think?
[Xperia Z1 Original Android Development] Androguide.fr:
The SOD is probably related to having the 2 hotplug drivers enabled at the same time too, so that when comes the time to wake the device, they conflict with each other and the device doesn't know what to do.

Moreover, I've been running the last build all day and still didn't have an SOD (I'm using intelliplug, intellidemand, power suspend, ksm and dyn fsync).

Keep a copy of CM's boot.img if you reflash the kernel so if you still have the issue you can easily revert back to the previous one.
[Xperia Z1 Original Android Development] dettofatto:
Ok! Only for knowing... I'm using your app with cm11 kernel... sod again!

Now I'm uninstalling and see what's happen...

---------- Post added at 06:06 PM ---------- Previous post was at 06:05 PM ----------

I don't know why, but you must wait some reboots...
[Xperia Z1 Original Android Development] Androguide.fr:
Just installing the app ain't gonna change anything.

Install the new version of the app and disable/re-enable intelliplug, then please report back.
[Xperia Z1 Original Android Development] dettofatto:
Thank you, I'll try!

Sod again....
[Xperia Z1 Original Android Development] tcchuin:
The mpdecision doesn't seem to working properly. At least applying the parameter on trickster mod doesn't change the behaviour of it.
[Xperia Z1 Original Android Development] Androguide.fr:
You're right, I fiddled with it and tunables like idle freq and min cpus aren't working properly. I'm reverting back to qcom's mpdecision for now, will release a build later today.
[Xperia Z1 Original Android Development] Poesini:
I think I have found or think its related to DSOD

Somehow its weird that it sets minimum frequency of 1.4 and Max 2.1 (when min should be 300)...

I couldnt notice it because Trickster was always overwriting those values, but somehow once it didnt apply those min values. Now I have everything (intelliactive/intelliplug/KSM/power_suspend/simple_ondemand) and no DSODs...
[Xperia Z1 Original Android Development] 3x3cUt0r:
The side effect is that wifi no longer works after reinstalling the original kernel, had to reinstall the rom, but it's ok that a flasholic problem.
[Xperia Z1 Original Android Development] Androguide.fr:
I'll make the flashable zip backup your original wlan.ko to wlan.ko.bak in next build.
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-18 Build

Changelog

Download
[Xperia Z1 Original Android Development] :
Flashed the latest update & updated the app. No more reboots for me! I just have to say that the app is so pleasing to look at. It looks beautiful. Maybe you could do the same with your Pimp My ROM app?
[Xperia Z1 Original Android Development] kibaa12:
i proceded to wake up and started having hard resets every 1-2min abot boot was able to get the latest kernel that you not long posted up and it is still doing the resets, what can i give you to help out with information.
[Xperia Z1 Original Android Development] Juzman:
Flashed latest build on SlimKat. No SOD so far. Sound settings still don't stick. :(
[Xperia Z1 Original Android Development] Destroyedbeauty:
Is it "Stop mpdecision" that we shall use from now on? :) and shall we flash camera fix also or is it included?
[Xperia Z1 Original Android Development] Androguide.fr:
Thanks for the nice words.

Actually, I based Pimp My Z1 off of the code I have for the next version of Pimp My ROM, the design and UX will be very similar when I release it.
[Xperia Z1 Original Android Development] Androguide.fr:
Yeah, that's right, we're back to using start/stop mpdecision.

What camera fix are you talking about?
[Xperia Z1 Original Android Development] :
Sure can't wait for your next Pimp My ROM release. Anyways do you know why Cyanogenmod 11 lags a little when I use your kernel?
[Xperia Z1 Original Android Development] Destroyedbeauty:
Did you not release a fix for broken camera a couple of days ago?
[Xperia Z1 Original Android Development] Wolfbreak:
He released a Camera Fix that speeds up Camera Launching especially on 1st Boot it has nothing to do with broken Camera just faster reaction from Camera.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Do we need to flash this on latest kernel build or is it included?
[Xperia Z1 Original Android Development] Androguide.fr:
It's not a flashable fix, just a commit.

To be clear, yeah it's included.

Try tweaking the intellidemand settings (use trickster mod's governor control), if it has powersave_bias set higher than 0, try reducing the value.

Or switch to intelliactive, it should be more responsive but less battery friendly than intellidemand.
[Xperia Z1 Original Android Development] ->---:
I like your mods very much. :good:

There is one thing in the PimpMyZ1 app I am not sure about. If I change the governor of one core, are the other governors also changed? If not, how can I take care that all of the cores get the same gov? Would it be possible to change the app in a way that all the cores are set to the same gov?

Furthermore, which gov would you suggest? I am no hardcore gamer, for me energy saving and reaction time are most important. I also know that most power is used by the display, so the gov has just a small influence. As far as I read wheatley is optimized for multicore cpus. But in this thread I mostly read about intellidemand and intelliactive.
[Xperia Z1 Original Android Development] gallardo5:
Any chance of getting UV on this kernel? Thats the only thing missing in every AOSP ROM and kernel for honami atm
[Xperia Z1 Original Android Development] nadavgal:
When you release the app which we control ??
[Xperia Z1 Original Android Development] Androguide.fr:
Probably later today, tomorrow at most.

I'm working on it, I have some issues with it atm, but it'll most likely be fixed eventually.
[Xperia Z1 Original Android Development] lowrider_05:
i am also waiting for a cm ramdisk version
[Xperia Z1 Original Android Development] Juzman:
I think you may be right regarding the ramdisk. Will wait for CM ramdisk build. :)

Keep up the amazing work!

May even switch to Omni at some stage.
[Xperia Z1 Original Android Development] Androguide.fr:
Sorry guys, that'll have to wait till tomorrow for the ramdisk.

-------------

I updated the OP with the new build and added a flashable zip version.

Download

Changelog
[Xperia Z1 Original Android Development] Juzman:
That's fine mate, no pressure. Appreciate what you do. :)
[Xperia Z1 Original Android Development] Ry Chy®:
Nevermind, take your time. Thanx for the update.
[Xperia Z1 Original Android Development] BunkerBert:
Ty for update. Can u check the flashable link?

THX

Gesendet von meinem Xperia Z1 mit Tapatalk 2
[Xperia Z1 Original Android Development] Ry Chy®:
Not shure, but I think it´s this one :

http://d-h.st/76q

Viel Spaß beim flashen :silly:
[Xperia Z1 Original Android Development] Androguide.fr:
Exactly, that's the correct one. sorry guys I was half asleep and uploaded the wrong one then forgot to update the OP, will do asap.

EDIT: done.
[Xperia Z1 Original Android Development] YamazakiRobert:
i don't know why but this kernel is breaking root for me using cm 25 or 26
[Xperia Z1 Original Android Development] gallardo5:
Accidentaly clicked thanks :p it is because the ramdisk is different. What you can do is wait for OP to update his kernel with cm ramdisk or flash supersu flashable zip
[Xperia Z1 Original Android Development] YamazakiRobert:
no problems i have send you a thanks :p

[MENTION=4752917]Androguide.fr[/MENTION]

it's possible to you add this implementation

http://xdaforums.com/showthread.php?t=2316648
[Xperia Z1 Original Android Development] nadavgal:
cant whit to pimped kernel app !!! you relase todey ?
[Xperia Z1 Original Android Development] Androguide.fr:
Yeah, I'm currently making the last minute verifications and fixes and then I'll do a first release.

There is still a lot I wanna add to it, and I will, but in future updates.

The first release will contain:

CPU Control: set your min & max CPU frequencies, set a different governor for each CPU core, see your current CPU frequency in a real-time graph, set your current I/O Scheduler

GPU Control: set your min & max GPU frequencies (overclock), set your GPU governor and see your GPU's current frequency in a real-time graph

Power Management: toggle IntelliPlug, toggle intelliPlug's eco mode, toggle the power_suspend driver, set your multi-core power savings level (sched_mc)

I/O Tweaks: toggle Dynamic Fsync

Sound Control: digital headphone gain (left/right), analog headphone gain (left/right), speaker gain (left/right), mic gain, camera mic gain

Touch Screen: toggle Pen Mode, toggle Glove Mode
[Xperia Z1 Original Android Development] Ashray_Vk:
The Z1 is really gonna rock with all such developers like you man! :) thankyou so much :)
[Xperia Z1 Original Android Development] nadavgal:
Ok greet work whit to your update
[Xperia Z1 Original Android Development] gallardo5:
What about kernel with cm ramdisk? Are you still planning to make it?:)
[Xperia Z1 Original Android Development] Androguide.fr:
Yeah, don't worry, just one thing at a time.
[Xperia Z1 Original Android Development] Juzman:
Could you add an option to io tweaks for read ahead buffer?
[Xperia Z1 Original Android Development] :
So powersave_bias is 0 and it still lags. So I switched to intelliactive and it's fine now. Thanks.
[Xperia Z1 Original Android Development] MON5TER:
anyone else having issues with wifi tethering ?

this + slimcat and i cant seem to get anything to tether via wifi to it
[Xperia Z1 Original Android Development] Destroyedbeauty:
1) In Pimp My Z1, only one core is changed at the same time. So you'll have to disable every hotplugging module with init.d script, reboot, set governors for all four cores, then delete init.d script and reboot again, and the governors will stay at the choice you've choiced.

2) I can recommend those three (my favourites); a) Tweaked Interactive & ROW scheduler, b) Intellidemand & FIOPS scheduler or c) Intelliactive & ROW for raw performance / or Deadline for more efficent battery saving..
[Xperia Z1 Original Android Development] ->---:
Thanks for the suggestions.

Feedback for version from 18.3. All is running without reboot or sod since 9 hours now. All options are activated including KSM.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Guys..

I spoke to Paul (Faux123) and he did recommend Fiops scheduler for both of his Intelli- based governors! Just so people know..
[Xperia Z1 Original Android Development] Androguide.fr:
Done, along with other things ;)

I pushed a new update to google play, but you can grab the apk from my github too: https://github.com/Androguide/Pimp_my_Z1/releases/download/1.0.5-beta
[Xperia Z1 Original Android Development] Hen Ry:
Hello,

I have everything translated into German, but is not yet in the "Pimp My Z1 v1.0.5-beta".

Greeting Henry
[Xperia Z1 Original Android Development] 301stSpartan:
Fyi, link not working. 404 page not found
[Xperia Z1 Original Android Development] Androguide.fr:
Sorry, here you go: https://github.com/Androguide/Pimp_my_Z1/releases/tag/1.0.5-beta
[Xperia Z1 Original Android Development] dettofatto:
I've seen that if I enable intelliplug, intelliplug eco and power suspend, my phone dosn't go in deep sleep.. did you seen?

Which governor do you suggest for balanced profile? Thank you!
[Xperia Z1 Original Android Development] Destroyedbeauty:
Intellidemand for battery, Intelliactive for balance betweeen performance / battery. With Fiops scheduler.
[Xperia Z1 Original Android Development] ->---:
Version from 18th now running for 24 hours without an error. Power drain in standby about 1% every 5 hours. Great! :victory:

Because most of the power is used by the display, I asked myself if it would be possible to let the backlight flicker with a frequency of >100Hz (eye-friendly)? Does somebody know if the backlight electronics could handle that and if it is possible to reprogram the brightness management therefore?
[Xperia Z1 Original Android Development] Androguide.fr:
Oh, sorry bro, I must have forgotten to merge your pull-request, will be included next build.
[Xperia Z1 Original Android Development] 301stSpartan:
First off, loving this kernel. Working great and the Pimp My Z1 app is great. Quick question: any chance we could get a profile option for CPU and GPU control? Would be nice to have in power saving for sitting in my pocket then just quickly switch profiles for gaming and my frequency, governors and core control would become more aggressive. Right now it's a lot of options to change individually.

Just a suggestion, no worries if you have other priorities in mind. Thanks for your great work
[Xperia Z1 Original Android Development] Androguide.fr:
Yeah, that's on my todo list, I'll try to get it implemented soon.

Just a question, though, I'm not sure if I should make arbitrarily pre-defined profiles or if I should let the user create his own profiles (i.e: "Save current settings to Battery/Balance/Performance profile").

Maybe both would be the best option, having pre-defined profiles that the user can customize if he wants to.
[Xperia Z1 Original Android Development] Destroyedbeauty:
This does sound the most optimal and ideal way to go, yes :)
[Xperia Z1 Original Android Development] 301stSpartan:
I like the idea of both... I mean I'm all about using custom ROMs so I can have a full amount of control over my experience. But then again when it comes to advanced kernel tweaking I'm no dev and would trust an expert like you to know what is best to use. So if you preloaded them with your picks then give the option for the more adventurous users to edit them, I think that would be perfect.
[Xperia Z1 Original Android Development] husky69:
While you are at it - I'd really appreciate if you made it possible to switch profile by apps like Tasker. If implementation of official support is too much for the moment, please document the intent you use to switch them in your app. That'll help, too :)
[Xperia Z1 Original Android Development] Hen Ry:
DoubleTap2Wake & Sweep2Wake

:good::good::good: I find very useful DoubleTap2Wake Sweep2Wake :good::good::good:

DoubleTap2Wake Video

Sweep2wake

Doubletap2wake

for example, comes from the Nexus 7 2013​
[Xperia Z1 Original Android Development] Poesini:
I updated to 4.4.2 Firmware which has a new Baseband I think and it doesnt detect it or so because I get Baseband: Unknown :( ... Do I have to revert to 4.3 one?
[Xperia Z1 Original Android Development] prbassplayer:
Might need to update blobs for new baseband to work. Just a guess though
[Xperia Z1 Original Android Development] Androguide.fr:
Yup, most likely.

Kali- has started importing the blobs for the Z1 Compact, we should be good by next build.
[Xperia Z1 Original Android Development] Androguide.fr:
It's not that easy, those are not generic drivers that can be just dropped-in, compiled and work as expected.

They need to be ported specifically for our display (Synaptics clearpad), which isn't the same as say the Nexus 5.

Plus, as I said earlier, making this port seems like a lot of pointless work considering that it apparently the stock drivers already have some kind of doubletap2wake & swipe/doubleswipe2wake options implemented in them but not enabled, although I haven't manage to find a way to enable them atm.
[Xperia Z1 Original Android Development] :
I'm loving this kernel and all but I'm wondering if [MENTION=4752917]Androguide.fr[/MENTION] is planning on making a kernel for stock.
[Xperia Z1 Original Android Development] jobangill99:
Can you add features like tap 2 wake and voltage control???
[Xperia Z1 Original Android Development] 301stSpartan:
If you read two posts before yours then you'd have half your answer....
[Xperia Z1 Original Android Development] husky69:
Bro, you'd better improve your reading skills. The first request was answered two posts above yours, and the latter was asked shortly before.

Just my 2¢
[Xperia Z1 Original Android Development] Wolfbreak:
He said he will only make CM based Kernels and unfortunetly it wouldnt work anyway on Stock becouse of the same Problem that Doomlord has with Wifi Drivers.
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-21 Build

Changelog

Download
[Xperia Z1 Original Android Development] husky69:
I keep getting offered two apps at devhost - mobogenie and 1mobilemarket.

Ist this in any way related to this kernel? Or something devhost started recently? Didn't have this problem yet...
[Xperia Z1 Original Android Development] Androguide.fr:
These are dev-host ads, not sure how you expect a kernel to cause ads to appear on a website though.
[Xperia Z1 Original Android Development] dettofatto:
I'm trying a new setup, that is very good...

Cpu Max 1457

Governor ondemand

Gpu max 200, min 27

Governor mms_cpu

Intelliplug enabled

Eco intelliplug disabled

Multicore disabled

Power suspended enabled

It's very fast, but also battery friendly..

In dev options I've also enabled gpu for rendering..

Tell me, your opinion!
[Xperia Z1 Original Android Development] Destroyedbeauty:
None mpdecision disabled? ;)
[Xperia Z1 Original Android Development] dettofatto:
How can I disable?
[Xperia Z1 Original Android Development] Destroyedbeauty:
Are you using any app or via init.d script for setting your configuration?
[Xperia Z1 Original Android Development] dettofatto:
The app! It's so simple... :)
[Xperia Z1 Original Android Development] Destroyedbeauty:
I think it is automatic disabled then! :)
[Xperia Z1 Original Android Development] berimornils:
can be obtained to get ant+ driver of official stock kernel 4.4 ?
[Xperia Z1 Original Android Development] husky69:
Androguide.fr, I just installed the Pimp My Z1 update and am a little confused about the setting to have all Cores use the same governor - when I enable the setting it works as expected, but when I open that page again I see all of the four Cores again instead of the governor setting for all of them.

Is that on purpose, in order to show core state?
[Xperia Z1 Original Android Development] Poesini:
Battery life so far
[Xperia Z1 Original Android Development] Androguide.fr:
Yes, it's normal, the governor you chose remains applied for all cores, don't worry.

I realize this is bad UX at the moment, as it's confusing and it's hard to set the per-core governors with the cores going on and off.

I need to find a better way to show which cores are online while still allowing to set different governors for each core, maybe I'll add the core states under the CPU frequencies graph, and keep all 4 spinners enabled all the time, allowing to wake-up a core for a sec and change its governor.

Also, there currently is a bug that FC's the app on boot when it tries to apply your settings, so settings don't stick after a reboot on the current version. I'm fixing that, there'll be an update later today.
[Xperia Z1 Original Android Development] Androguide.fr:
Double post...
[Xperia Z1 Original Android Development] ->---:
I like the option to set the governors for all cores at once :good:
[Xperia Z1 Original Android Development] husky69:
Suggestion: just put one line under the graph, containing "Core" and the numbers along with an LED or something similar next to them. No need to explain, as long as you stick to on/off or green/red, I'd say. Put the spinner right under that line and that's it ;)

OK, I have to admit, that it's probably a bit more complicated, according to my _very_ limited programming experience, but I doubt it will be very hard to do :D
[Xperia Z1 Original Android Development] Destroyedbeauty:
Better to use a command that ticks all four cores to use the same governor, so no one can blame you [MENTION=4752917]Androguide.fr[/MENTION] for battery issues!

Use init.d if you want to use four different governors at once..
[Xperia Z1 Original Android Development] Androguide.fr:
This option was introduced in the app 2 days ago.

But yeah it's hard to set the 4 governors in the app currently unless all 4 cores are online.