yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] Poesini:
I want to throw down a list of things this kernel (and ROM?) could nicely have which I hope gets done (in no way of forcing it, just throwing out like some ideas of kernel stuff that I have found are good with the other devices I have had):

-doubletap2wake

-interactive governor from MAKO baseline

-ondemand governor from MAKO baseline

-latest smartmax governor

-ported mako_hotplug control from franciscofranco

-Disabled MPDECSION

-removed most of the useless governors (interactive, ondemand and smartmax)

- CPU OC/UC OV/UV

- GPU OC/UC (possibly OV/UV)

- O3 or Ofast compilation flags

- FIOPS scheduler

- Xpad support

- Fastcharge support

- TCP congestion control (other than reno and cubic. Possibly westwood?)

- Link Time Optimization and Polly optimizations

- Qualcomm optimizations

Along with the ones already in...

I know, and I assure you I know these things are hard to implement, but just some ideas what FOR ME seems to be good with the devices I have tested. This is no pressure to do so, like I said, just some ideas.

Thanks man and keep up the great work.
[Xperia Z1 Original Android Development] Androguide.fr:
Thanks for the suggestions.

Just an FYI: GPU OC, FIOPS and disabled msm_mpdecision are already implemented.

Intelliplug replaces the default msm hotplug driver when enabled, so that replaces the need for mako_hotplug.

-O3 would be hard to achieve, there's a lot of uninitialized variables and such, but I'm using -O2 and many optimization flags (take a look at the Makefile).

SmartassV2, InteractiveX2 and Lagfree governors are in the works, same for some TCP congestion algorithms.

There was an initial port of doubletap2wake and swipe2wake made by krabappell258 which I had cherry-picked, the sysfs interfaces were there but the feature wasn't actually working, I need to look further into it.

The CPU OC and VDD control commits are giving me a hard time, but I'm working on it.
[Xperia Z1 Original Android Development] Ry Chy®:
I think ther is no ramdisk support with the new build. App still wants to place data on internal storage. Any way how to check it with some log or something? I'm on omni rom btw since today

Gesendet von meinem Xperia Z1 mit Tapatalk
[Xperia Z1 Original Android Development] Androguide.fr:
I think you're confused as to what a ramdisk is (http://en.wikipedia.org/wiki/Initrd).

Support for placing apps on the external storage is a whole other thing. Were you able to move your apps to sdcard on CM?
[Xperia Z1 Original Android Development] Poesini:
You are right, FIOPS is there my bad. (I was looking @ the CM based which has nothing)

MP-decision still gives me problems disabling (I have Liquidsmooth) and I did attach a logcat somewhere (here or in the Omni thread. If you want Ill attach another one. It just doesnt disable)

Aside from that, yeah good stuff coming. I don't know much of compiling or stuff I do know my ways around doing stuff, so I can help if something you wanna test.
[Xperia Z1 Original Android Development] Ry Chy®:
Ok! Thanx! :good:
[Xperia Z1 Original Android Development] junesque:
Feature Request

Any chance of adding color control as there is in franco kernel?
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-02 build

Here's a new build (with CM ramdisk).

Changelog

Downloads
[Xperia Z1 Original Android Development] gallardo5:
Is it the one made from scratch from CM kernel or still based on omni rom kernel?:)
[Xperia Z1 Original Android Development] loveninecube:
I flashed new build and working fine.

Pimp My Z1 FC bug is fixed, many thanks.
[Xperia Z1 Original Android Development] Juzman:
Flashed new build. IO Scheduler and sound changes don't stick on reboot.

Have intellidemand back though on CM, thanks. :)

Keep up the good work!
[Xperia Z1 Original Android Development] Androguide.fr:
2014-03-03 build

New build:

Changelog

Downloads
[Xperia Z1 Original Android Development] Destroyedbeauty:
Well, I am no expert on those battery related topics at all, but thanks for confirming that!
[Xperia Z1 Original Android Development] CappyT:
Is a bug on the kernel itself, i'm running cm one at the moment, no problem on battery.

Inviato dal mio Xperia Z1 utilizzando Tapatalk
[Xperia Z1 Original Android Development] Juzman:
I'm running pimped kernel. No issues either.
[Xperia Z1 Original Android Development] abbychauhan:
There is too much going on.. Can anyone tell which is the Stable ver.

Edit - Is it 04/03 or 04/05 or 03/31 as mentioned in OP?
[Xperia Z1 Original Android Development] Destroyedbeauty:
I am then wondering why some people got those nasty bam_dmux_wakelocks no matter kernel..
[Xperia Z1 Original Android Development] Michealtbh:
I think it's just something to do with the S800, I had the same issue with my Nexus 5
[Xperia Z1 Original Android Development] tcchuin:
Maybe it's wake lock caused by mobile data?

Try and see if the problem exist on a freshly wiped Rom?
[Xperia Z1 Original Android Development] Destroyedbeauty:
This wakelock doesn't go away, even if I am keeping mobile data & Wifi on at the same time, at thus removes the phone from charger. It leeches the battery so badly in a rapid speed, so it's insane..
[Xperia Z1 Original Android Development] Abomb:
Are there any news on support for PAC rom? Did my logcat help identify the problem or is there anything else I can do to help? Also the pac rom guys said "kernel dev has to add frameworks-pac to his bootclasspath", perhaps that is easy to do?

Really looking forward to use this kernel! :)
[Xperia Z1 Original Android Development] tcchuin:
what i am saying is that is it possible for the wakelock to be caused by some rogue app?

we can only confirm that it's due to the rom/kernel if the issue persists on a newly wiped rom.
[Xperia Z1 Original Android Development] 3x3cUt0r:
In my case the problem happens randomly and i did a full wipe too, it must be related to the slow charge problem (cpu get stuck at max frequency), i have seen this wakelock and something like "event0-836" and "event1-836" that consume a lot of battery, sometime restarting fix the problem right away.
[Xperia Z1 Original Android Development] Androguide.fr:
This sentence doesn't mean anything: "kernel dev has to add frameworks-pac to his bootclasspath"

Bootclasspath is a java thing, for app development, it's basically just what libraries to compile with your app.

If he meant to the ramdisk, then I really don't think framework files belong in the ramdisk, and if it does on their rom then it's a big architectural mistake, or it's that they purposedly mean to break custom kernel compatibility.

I won't maintain builds for a specific rom, if they do things right like most/all other roms, I don't need to.

---------

I haven't seen this charging problem you guys are talking about, please post a kmsg of this next time it happens to you.
[Xperia Z1 Original Android Development] prbassplayer:
According to PAC's manifest they are using straight up CM device folders, so they are either messing with main init.rc (which is dangerous and shouldn't be done unless it's a truly universal change like in it, or such) or they have an alternative repo they aren't showing. At any case bad move from them imo.
[Xperia Z1 Original Android Development] ->---:
I can confirm the randomness, that restarting fixes the issue. My system never stuck at max freq anyways.

So what do we know about the higher power drain after loading?

- If it is an app or a process it is related to the charging mechanism.

- It is not always reset after a restart of the device.

- Just unplugging from loading does not reset the issue.

- It is either on USB or on docking port.

- It seems to be a watchdog which is waking the system to often or prevents the system from entering deep sleep properly.

add: - A simple restart does not reset the issue. The phone has to be really shut off.

That leads to some questions.

- What are the processes and apps which are started during loading?

- Is the docking behavior/app always started when charging (dock, USB) and is it automatically terminated afterwards?

- There are several apps which have some kind of docking behavior. How is that programmed into the apps or/and partial part of the system?

- Which system processes are started during loading that have a watchdog included?
[Xperia Z1 Original Android Development] abbychauhan:
And about PA? Im on PA and I flashed the ext4 zip of OP.. Got Bootloops.

Correction - new build of PA is using the caf sources, so need to use the Pimped-Kernel-caf-v1.0 kernel: http://d-h.st/wUG

No bootloops.. Working fine
[Xperia Z1 Original Android Development] Papa Smurf151:
Funny that you say a custom rom team shouldnt be touching the ramdisk and adding custom bootclasses when you yourself as a kernel dev are touching the ramdisk and adding in your own custom classpath. If you wish to do kernel deving the correct way id suggest that you learn how to use the anykernel method or not be lazy and add on small line to your modified ramdisk in your custom kernel.
[Xperia Z1 Original Android Development] owain94:
Are you developing a custom kernel or a custom ramdisk?

BTW adding our framework to your ramdisk will fix the boot problem pac roms and won't cause any issue on other roms

But you should just dump the custom ramdisk from your kernel (not entirely sure if this is possible on this device)

But still you make a kernel not a ramdisk

So if you decide to provide your ramdisk I stead of a proper installation method for your kernel that makes the ramdisk your problem to deal with and not ours (again just add our framework to your ramdisk bootclass and this will fix the bug and will not break other roms)
[Xperia Z1 Original Android Development] prbassplayer:
I agree having a proper install script that adds to existing ramdisk is a better idea, but saying ramdisk and kernel is unrelated is ridiculous. One goes with the other, this goes for all devices lol.
[Xperia Z1 Original Android Development] Androguide.fr:
I could respond to that by quoting the person below: "Are you developing a custom rom or a custom ramdisk ?"

There is no custom ramdisk for my kernel, the ramdisk included in the boot.img is the stock CM ramdisk, used by all other roms (the only time I modify anything in the ramdisk is changing the fstab to use f2fs in the f2fs builds).

However, what you are asking me to do is to maintain a custom ramdisk which includes your framework.

Framework files don't belong in the ramdisk, no matter what, any developer will tell you that.

Simply include those files in the rom's flashable zip like any decent rom does. There is nothing that warrants this kind of shenanigans.

Also not sure what you mean by the "bootclass" of the ramdisk, the ramdisk has nothing to do with java and has no such thing as a "bootclass" or a "bootclasspath" or "classpath".

I suggest you read a bit more about initrd, seems like you could really use some kernel knowledge: http://en.wikipedia.org/wiki/Initrd

I have no problem with packing my zImage with the existing ramdisk in my updater-script, but I don't think it's possible to do so on this device due to the use of dtbTool, we need a dt.img which matches what it's been built with to the bit.

I'll try to pack my dt.img and zImage with the existing ramdisk of another kernel to see if it boots.

Either way this framework thing is nonsense, please explain me why you need it to be in the ramdisk, and also what you mean by "adding our framework to your ramdisk" (i.e: which file(s) ?).
[Xperia Z1 Original Android Development] owain94:
check the init.environ.rc in the ramdisk (it's probably called that not 100% sure though)

here is how it looks for me on my hammerhead

http://hastebin.com/haxamuxiri.mel
[Xperia Z1 Original Android Development] Androguide.fr:
Alright, I'll add support for your rom next build, but I still don't see why you guys had to create a separate jar instead of adding your modifications to the existing framework like all other roms do.
[Xperia Z1 Original Android Development] Langes:
Thanks man.

Our frameworks-res ran out of library space, so we had to create a new one.
[Xperia Z1 Original Android Development] Androguide.fr:
Oh ok, that makes sense, there's no google play extension files for the framework-res apk^^

That's a pretty crazy kang you got going then, props :good:

EDIT: You could actually look into the apk expansion library to load an .obb into the framework-res.apk instead, it might work: http://android-developers.blogspot.in/2012/03/android-apps-break-50mb-barrier.html // http://developer.android.com/google/play/expansion-files.html
[Xperia Z1 Original Android Development] Paradelle:
Thanks for this! Exactly the same happened to me, and v1.0 solved it!
[Xperia Z1 Original Android Development] abbychauhan:
Thank Androguide.fr he helped me
[Xperia Z1 Original Android Development] Langes:
EDIT: Those expansions do allow you a bigger apk, but frameworks is a different ballgame, and the issue with us is not the size of the apk, but the number of methods we have defined.
[Xperia Z1 Original Android Development] Poesini:
I dont know if you know but kernel lacks offline charging :o

And, expecting the new kernel, it will have the same features that the AOSP had or you will remove/not add some?
[Xperia Z1 Original Android Development] Androguide.fr:
It will (and almost already has) all the previous features, plus some new ones.

It still lacks many of the optimizations I had merged in the old builds though, but I'm re-adding those little by little.

I'll try to release a new build later tonight.
[Xperia Z1 Original Android Development] Poesini:
Great

Also I saw that Doom removed DT2W, supposedly because of increased battery drain... Could it be what the other users are reporting?
[Xperia Z1 Original Android Development] Androguide.fr:
That's a good guess, I haven't had much time to keep-up with the z1 development this week though so I don't know.

I'll provide a separate build with dt2w disabled, so people having the issue can report whether or not if fixed it for them.
[Xperia Z1 Original Android Development] vnblueberry:
bootloop on latest cm

hi all -

i was on cm11 latest nightly then decided to flash pimped kernel available on the OP (Latest build: 2014-03-31EXT4 Version) using CWM.

now i have a bootloop after the pimped kernel logo. any idea why?

also, i made a nandroid backup before the flash but i cant seem to enter CWM :confused:

thanks in advance
[Xperia Z1 Original Android Development] Destroyedbeauty:
Did you wipe Dalvik cache & cache before and after flashing?
[Xperia Z1 Original Android Development] vnblueberry:
:silly: oops?

no i didnt ..

but now i cant get into cwm?
[Xperia Z1 Original Android Development] husky69:
Open the zip of the installed ROM and extract boot.img. Then enter fastboot mode and flash boot.img by issuing "fastboot flash boot boot.img" That'll get your phone going again...
[Xperia Z1 Original Android Development] vnblueberry:
thanks for this.

however i had one question - i update automatically so i don't know/remember which rom build/date i was on

can i use any or do i have to use the one specific to the build/date?
[Xperia Z1 Original Android Development] ilia1985:
It doesn't matter as you just need recovery to restore your nandroid back up
[Xperia Z1 Original Android Development] husky69:
I'm not a coder nor do I know about boot images in Android, but as Android runs on top of a Linux kernel I'd say Linux stuff should apply here as well.

Most if not all Linux distros nowadays run a kernel that has a specific Ramdisk coming with it and that contains everything needed to boot into the initial process. Thus it contains a number of binaries needed and all kernel modules that haven't been compiled into the kernel.

I'm rather sure the Android boot images for honami contain the recovery binaries and thus it should be safe to use any custom honami boot.img

Hope this helps (and that my speculation is correct)
[Xperia Z1 Original Android Development] _Garry_:
Your problem is you flashed the latest official kernel build.

Latest CM build uses Sony's CAF stuff so its required to use a kernel which has CAF included as well.

Just download latest cm build, extract boot.IMG and flash it using a flash tool - remember to flash using fast boot. XD

Gesendet von meinem Xperia Z1 mit Tapatalk
[Xperia Z1 Original Android Development] Androguide.fr:
You need to use the caf version for the newer CM nightlies and builds of other roms: http://d-h.st/wUG
[Xperia Z1 Original Android Development] aresbv2000:
i know i am on z1 forum...but one simple question....can we(xperia z1 compact owners) have double tap to wake kernel also?Is it possible?
[Xperia Z1 Original Android Development] Androguide.fr:
Yes, it should work on the Z1c too.

I need to find some time to make a proper build for the Z1C.
[Xperia Z1 Original Android Development] aresbv2000:
Wow...thank you so much.I can't wait for it.Keep up the good work man!
[Xperia Z1 Original Android Development] Androguide.fr:
New CAF build

Here's a new build, mostly up to speed with the features on the previous sources.

No f2fs version available atm, didn't have time to do the required testing.

Changelog

Download
[Xperia Z1 Original Android Development] Androguide.fr:
Uploaded another build, I have just managed to add some usable CPU frequency steps.

We can now use the regular 2.15GHz step along with the new 2.26GHz step (was only 1.9GHz -> 2.26GHz before), and I also added the 345MHz step.

I edited my post above & the OP, but here's the link: http://d-h.st/r4z
[Xperia Z1 Original Android Development] Abomb:
Works like a charm on newest PAC nightly, thank you so much for adding pac support and this awesome kernel in general!
[Xperia Z1 Original Android Development] abbychauhan:
Again CWM Recovery.. Requesting TWRP in next build

Edit- is it me or some1 else also facing that phone is not shutting Down.. Getting Started Automatically.
[Xperia Z1 Original Android Development] juicio90:
Same here... And this I have to flash it before or after flashing the pimped kernel?

---------- Post added at 11:38 PM ---------- Previous post was at 11:33 PM ----------

Just flash it in the fotakernel. I've Philz recovery and everything work OK right now... Never had to flash again another recovery...
[Xperia Z1 Original Android Development] madalone:
awesome! new version! yaay! :D only..

yep, same here. phone won't shut down.. :/

i've got philz_touch_6.25.0-honami installed but all i get is a blank screen when booting into recovery..the screen is on and if the phone idles it goes off and wakes on touch..could you please explain what's this fotakernel you speak of? :)
[Xperia Z1 Original Android Development] 301stSpartan:
Thanks man... is this kernel caf? Can't get it to boot on CarbonROM, not sure why.
[Xperia Z1 Original Android Development] abbychauhan:
Yes its latest CM CAF one..
[Xperia Z1 Original Android Development] infatality:
[MENTION=4752917]Androguide.fr[/MENTION] had you consider taking reference from [MENTION=2376110]dorimanx[/MENTION] commits? [emoji6]

https://github.com/dorimanx?tab=repositories
[Xperia Z1 Original Android Development] husky69:
[MENTION=5596751]juicio90[/MENTION]: Can you please explain what fotakernel is? Didn't find info in this forum and would like to know more about this.
[Xperia Z1 Original Android Development] juicio90:
Who everyone need to knows about fotakernel, [MENTION=4752917]Androguide.fr[/MENTION] is a corresponding guy to do that.

I only know how to do. Step:

First, just putting at sdcard the philz.img and rename to recovery.img; then open a terminal and type: dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel . that is everything I know.
[Xperia Z1 Original Android Development] hornedfiend:
Have any of you guys tested voltage control on binning 4?

What are the lowest values you could get while keeping a stable device? I need the table for each threshold, because I'm too lazy to test this by myself. :D

Thanks in advance.
[Xperia Z1 Original Android Development] Androguide.fr:
Yes, some of the features like alucard hotplug, alucard governor & the modded intelli_plug were cherry-picked/ported from his G2 kernel.

That's pretty much all you need to do ;)

FOTAKernel is simply the name of the partition where the recovery resides on this device.
[Xperia Z1 Original Android Development] @ARC-S@:
[MENTION=4752917]Androguide.fr[/MENTION] I've found out that the latest kernel is preventing my phone from being turned off. Right after I turn off the phone, after 3-5 second it boots up again. Hopefully this can be fixed by a small patch, thank you for the great kernel tho.. Using it with PA :)
[Xperia Z1 Original Android Development] Androguide.fr:
I'll look into that.

You can always hold power + vol. up to power off the device if needed.
[Xperia Z1 Original Android Development] abbychauhan:
Ya but hold power + vol. up is just switching it off.. Then it again starts after few seconds.
[Xperia Z1 Original Android Development] Poesini:
You can still use the red button to power it off completely (but I really dont see why)
[Xperia Z1 Original Android Development] wiadrovit:
Not sure if it's only me, but WiFi is no longer working after flashing the latest version. I'm using latest pac nightly on C6903.

EDIT:

Reflashed and everything is working ;)
[Xperia Z1 Original Android Development] Androguide.fr:
You probably fastbooted the boot.img

Either use the flashable zip or manually move the included system/lib/modules/wlan.ko module to your device.
[Xperia Z1 Original Android Development] wiadrovit:
That's right sir, issue sorted :)

Thanks!
[Xperia Z1 Original Android Development] noob_user_:
No offline charging....
[Xperia Z1 Original Android Development] madalone:
juicio90, do i have to literally type dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel ?

that /by-name/ throws me off.. :/

[EDIT] nevermind, it works as you said (:
[Xperia Z1 Original Android Development] juDGEY2k10:
Mate in the old nokias they used to wake up if you put an alarm on...

So say i put the alarm on for 6am i could turn the phone of and the phone would turn back on with the alarm.

Is this anything you could do mate??

Cheers
[Xperia Z1 Original Android Development] ArmadiloDS:
Hey guys is there a version with caf and F2FS? Im stuck on the old version without it :/

And I dont like the idea to format it back to EXT4... :confused:
[Xperia Z1 Original Android Development] 3x3cUt0r:
Same here, i don't mind testing a beta
[Xperia Z1 Original Android Development] juicio90:
[MENTION=4752917]Androguide.fr[/MENTION]

I've Philz recovery installed in the fotakernel. When I flash the lasted version pimped kernel and caf.zip everything work fine, just have little problem; Aroma File Manager isn't work again. I can confirm this because when I flash again cm kernel, it's work. Something broken the aroma file manager into recovery.
[Xperia Z1 Original Android Development] ->---:
Is the caf kernel for every ROM or just some specific? I use OMNI, would I have benefits from using caf?
[Xperia Z1 Original Android Development] 301stSpartan:
From my understanding and experience, if your ROM has CAF your kernel must have it. If your ROM doesn't, your kernel can't have it. I could be wrong though, but I tired a CAF kernel on a ROM that didn't support it and got boot loops.
[Xperia Z1 Original Android Development] ->---:
Thx. And how would I see if my ROM has CAF included? It's not always mentioned explicit.
[Xperia Z1 Original Android Development] 301stSpartan:
Honestly don't know... CM does as of recently, no clue who else has implemented. I'd just ask in your ROM's thread.
[Xperia Z1 Original Android Development] Androguide.fr:
If the build of the ROM you're using was released this month (april), then it most likely has the CAF stuff merged-in (or at least enough of it for the kernel to be compatible).
[Xperia Z1 Original Android Development] _Garry_:
Problem solved.
[Xperia Z1 Original Android Development] ->---:
Until now I use your OMNI from march because the april version does not work correct as I saw on the OMNI thread.