yashsingh1/xdaforums huggingface dataset:
[Sony Xperia Z Ultra] MusterMaxMueller:
Hi,

as i dont get a lollipop kernel compiled with working recovery could you add f2fs support to your kernel?

https://kernel.googlesource.com/pub/scm/linux/kernel/git/jaegeuk/f2fs

alternatively you could use follwing commits which i tested but i saw the above one yesterday which seems better:

git fetch https://github.com/GreatDevs/android_kernel_sony_msm8974/

git cherry-pick ac7062bbeed51fa9ebabde5bea38229ac1be3d46

git cherry-pick 8fca7c56433cc0bc57dfd79aa64948ed7d53b2db..0c3b770b985ab2d8f89862400da8257375844fae

and add follwing to

fs/f2fs/f2fs.h:

static inline struct inode *file_inode(struct file *f)

{

return f->f_path.dentry->d_inode;

}

and following to defconfig:

CONFIG_F2FS_FS=y

CONFIG_F2FS_STAT_FS=y

CONFIG_F2FS_FS_XATTR=y

# CONFIG_F2FS_FS_POSIX_ACL is not set

CONFIG_F2FS_FS_SECURITY=y

# CONFIG_F2FS_CHECK_FS is not set
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes for sure, i am pretty interested in it too.

This should speed up the storage performance quite a bit.
[Sony Xperia Z Ultra] golfinggino:
Does this latest kernel work with slim ROMs in multirom
[Sony Xperia Z Ultra] Tommy-Geenexus:
It works, but MultiRom not yet.

I'll look into it soon.
[Sony Xperia Z Ultra] theslimed2013:
Does this Kernel have FauxSound Audio/Sound Control installed?
[Sony Xperia Z Ultra] Triflot:
Yep. :good:
[Sony Xperia Z Ultra] madsponge26:
Heavy update! Thanks again for your kernel.:D

Sent from my Bacon Machine
[Sony Xperia Z Ultra] Tommy-Geenexus:
So guys, i just did some quick work on UKM to support the new Intelli_Plug profiles.

You can get the latest build at the UKM thread, it is only suitable for use with my kernel.

And thanks for the heads up, i'll rework UKM on the weekend when i'm free, the kernel runs good so far, will be only updated this week if i find some usefull stuff (of course i'll) and/or if it needs a ramdisk update.
[Sony Xperia Z Ultra] 3ftguru:
Looking through the thread, I believe it is not for AOSP right? Been thinking of flashing FXP Aosp rom
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes, cm only.
[Sony Xperia Z Ultra] Tommy-Geenexus:
[MENTION=5770258]MusterMaxMueller[/MENTION]

I just saw your feature requests, i'll revisit and add the stuff i see is fitting.
[Sony Xperia Z Ultra] MusterMaxMueller:
take your time. prepare for your exams :)
[Sony Xperia Z Ultra] Tommy-Geenexus:
Exams are doing well, so i'll use a bit spare time to keep the kernel up-to-date ;)
[Sony Xperia Z Ultra] Tommy-Geenexus:
i've merged all requested features, but wiimote isn't possible. CM12 doesn't support it yet.
[Sony Xperia Z Ultra] superman9988:
does this kernel work on port lollipop gpe by scrubber??
[Sony Xperia Z Ultra] Tommy-Geenexus:
Hi guys,

a new build is up.

The kernel feels much smoother (benchmarks are back to normal though idk), all requested feature have been merged. F2FS is experimental, not sure if it works, i need confirmation on this.

Flash this only on 14.02+ CM nightlies.

That said, enjoy.
[Sony Xperia Z Ultra] shaolin95:
I got a curiosity question..is there a reason we have not seen anyone release a kernel with OCing options? Just wondering since I was used to seeing at least one for previous roms.

Thanks for your work! :good:
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes there is. OC requires too high voltages which aren't save for low binned S800's, i have tested this myself.
[Sony Xperia Z Ultra] shaolin95:
but on JB Roms there were OCed kernels and mine was perfectly stable without using unsafe voltages.

In any case, thanks for the quick reply!
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes, but with safe voltages there are absolutely no gain in terms of performance, thus no benefits at all.
[Sony Xperia Z Ultra] shaolin95:
What does voltage has to do with performance? If I can hit a specific clock speed at a lower voltage it makes no difference in performance to hitting at a higher voltage (throttling, thermal protection not withstanding of course). I dont think we are talking about the same thing.
[Sony Xperia Z Ultra] Tommy-Geenexus:
A lot. See, i'll explain.

The lower the voltage, the less power the cpu gets = less performance.

If a CPU at 2.4 Ghz only has f.e. 15 mV higher voltage than at 2.15 Ghz (much less than required), there will be no performance gain at all (except if we bump the voltages very high(unsafe)).
[Sony Xperia Z Ultra] shaolin95:
Sorry but that does not make any sense unless the CPU is throttling down. Either the CPU world mobile phones is very different to PCs or something weird is going on here. 2.4Ghz is 2.4Ghz at X or Y voltages..two completely different things. Whether the CPU be stable at the lower voltage that is another question but on JB there was measurable performance gains at higher clocks without running chip melting voltages. Just saying...
[Sony Xperia Z Ultra] Tommy-Geenexus:
https://github.com/Tommy-Geenexus/a...mmit/7a3289ec472b15fb99f8f85dc3f919030ecdfb52

The mobile world is different.

If the CPU hasn't got the voltage required for a frequency, the performance will decrease, by a whole bunch.

I benchmarked OC and stock clocks (see above commit),

the results were roughly the same, and in every task i did no speed gain at all.
[Sony Xperia Z Ultra] MusterMaxMueller:
wow didnt know that.

i thought its the same with arm.

its a long time since i learned this stuff for x86 :)

you know where i can read up about this? does it have to do with the thermal/tdp throtteling thats directly integrated into the soc? so on low power soc "thinks" it reached tdp?

i hope you get what im saying.

would really like to read something about that. did a short google but found nothing directly indicating. if you have anything i would highly appreciate.
[Sony Xperia Z Ultra] MusterMaxMueller:
Hi,

just tested your kernel. but compiled myself.

everything is working fine. tested especialy fiops and westwood. thanks alot!

will test f2fs and report back but before i have to do a new build.

have to link mkfs.f2fs staticly otherwise i cant format to f2fs because twrp 2.8.5.0 in fota doesnt seem to have f2fs support :(
[Sony Xperia Z Ultra] Tommy-Geenexus:
I am speaking of experience.

It was like that 3 years ago when i oc'd my Xperia Neo to 2Ghz and messed with voltages, i noticed a performance drop.

Test it yourself, undervolt the highest freq and play a game, you will notice it starts lagging, the cpu doesn't get enough power to handle things smoothly.

That also why undervolting is not recommended on Android Phones, and we shouldn't mess with higher clocks and voltages.

Here is a looong post why you should not undervolt or overclock any phone: http://xdaforums.com/showpost.php?p=34153152&postcount=15576
[Sony Xperia Z Ultra] MusterMaxMueller:
I new this post from sg2 times :)

But from my knowledge and understanding it doesnt support your statement. Its only about why cpu wont calculate correctly and about lifespan (simplified).

Dont get me wrong i do believe you as you tested! Which benchmarks did you use? So if you have a benchmark which test if the calculated result is correct and otherwise would recalculate, it could explain the perfomance drops.

Also i think the soc bins for the z ultra tell that overclocking might hurt your devices lifespan alot. But that are some wild guesses. As i dont play many games the device is fast enough for me :) But this also implies that undervolting is bad for performance if i understand what you said correctly.

Actually i just want to know how things work. thats all
[Sony Xperia Z Ultra] alia5:
Well, sometimes with overclocking, on x86(!), the cpu may runs stable on a given frquency and voltage, however performance can be worse, unless you hit the voltage wich is truly required.

Dunno about ARM, but even on x86 it can, not will, but it can be a thing ;)

just wanted to say
[Sony Xperia Z Ultra] Tommy-Geenexus:
It represents exactly what i said.

The more you undervolt, the less power the cpu gets, u can test this with any bechmark, this happens with any architecture (see above post).
[Sony Xperia Z Ultra] shaolin95:
In all my years overclocking I have NEVER seen this. If its stable, then you get more performance, at least in the PC world that is. Just clarifying because you mentioned "any architecture" now which is not an accurate statement.
[Sony Xperia Z Ultra] Tommy-Geenexus:
We all have different experiences on desktops, but on phones it is the way i described it.

Let's end the discussion here, i won't enable OC in my kernel, i made my point clear enough.
[Sony Xperia Z Ultra] shaolin95:
Like I said, never seen it on desktop but its your kernel so you can do as you please.

Regards
[Sony Xperia Z Ultra] showstopper1:
http://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080

Is this possible to implement this feature in zombie?
[Sony Xperia Z Ultra] MusterMaxMueller:
Its already implemented.

Or am i missing something?
[Sony Xperia Z Ultra] Tommy-Geenexus:
I'm already in contact with the developer, currently this feature breaks the kernel, i hope to figure out the problem.

Not fully, this extended patch allows gamma control/greyscale/panel inversion plus kcal.
[Sony Xperia Z Ultra] Tommy-Geenexus:
New Kernel Build is out!

This build features the advanced color control by [MENTION=4316709]savoca[/MENTION].

I finally got it working thanks to his guidance.

Thank him in his thread here.

UKM is updated to official v3.7, and it supports the new color control, you can get the latest build from my thread.

Enjoy!
[Sony Xperia Z Ultra] Godaemon:
Dunno why but i am facing low I/O scores with Antutu after flashing Zombie , I am using row with 2048 read ahead size. Am i wrong or what?
[Sony Xperia Z Ultra] Tommy-Geenexus:
Use bfq, it's more up-to-date and better for overall performance.
[Sony Xperia Z Ultra] johnnyman25:
between doomkernel and this one which one u recommend?
[Sony Xperia Z Ultra] showstopper1:
Such a great addition,by reducing the color value in the panel settings the screen contrast gets increased and as a result the colors becomes more crisp and its just awesome,and also I have a small bug to report here,once you start adjusting the hue value it won't reset back at all,even I tried clearing the synapse data but no use,the only way to revert it to back is by reflashing the kernel and ukm zip again.

Thanx for this wonderful kernel,

Regards.
[Sony Xperia Z Ultra] Tommy-Geenexus:
Thanks, will be fixed soon.
[Sony Xperia Z Ultra] toxicdog:
cabc

Any hope for disabling Z Ultra's content adaptive brightness in a future release? It still hasn't been done on any kernel/rom :(

Watching movies/reading webpages/gaming is not really enjoyable with this "feature". I know it helps my battery, but let me decide if I want to use this marvelous screen in its full beauty.

I'd like to ask if there is any chance on fixing this issue?
[Sony Xperia Z Ultra] johnnyman25:
anyone pls?im on doomkernel now with stoneui hd3 rom!!
[Sony Xperia Z Ultra] 3ftguru:
I installed the latest kernel and UKM. When Synapse boots finished, the colours gets skewed like this.

I did a reflash of both zips but the issue remained. My settings are in the other screenshot.

Anyone has any idea to resolve it?
[Sony Xperia Z Ultra] Tommy-Geenexus:
Wait for the new UKM update, the issue is already fixed.
[Sony Xperia Z Ultra] 3ftguru:
So in the meantime we just flash the older version of UKM with the latest kernel?
[Sony Xperia Z Ultra] Tommy-Geenexus:
I can't clearly recognize your issue, but if its the color issue then simply clear the app data and reboot your phone.
[Sony Xperia Z Ultra] Godaemon:
You can't use this kernel with stock based ROMs like the one you already use.
[Sony Xperia Z Ultra] johnnyman25:
Ohh. I can use it only with custom eh.?any differences between doom kernel?
[Sony Xperia Z Ultra] MusterMaxMueller:
[MENTION=5243932]Tommy-Geenexus[/MENTION]

finally tested f2fs with the mount options from your ramdisk/fstab.qcom

Till now working flawlessly. Many thanks for adding f2fs support!

For anyone who wants to have f2fs:

add following line to your boardconfig.mk :

TARGET_USERIMAGES_USE_F2FS := true

change lines in device/sony/rhine-common/fstab.com

/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait,nonremovable
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait,nonremovable,encryptable=footer,length=-16384

flash zombie kernel

adb push mkfs.f2fs /sbin/

adb shell

chmod /sbin/mkfs.f2fs 0755
umount data
umount cache
mkfs.f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata
mkfs.f2fs /dev/block/platform/msm_sdcc.1/by-name/cache

flash rom

Will try more mount options and make some performance testing.

Will report back.
[Sony Xperia Z Ultra] SAMAN_SAM:
........

hi

im flash cynogen mod 12 by twrp recovery but when the phone up recovery is changed to cyanogen and dont work very good for ex dont work for install any things... i flash this kernel by flash tool but dont change my recovery !.... what to do change my custom recovery to philiz or twrp or.... ?
[Sony Xperia Z Ultra] Eddiemc:
Do this:

http://teamw.in/project/twrp2/219

Download the img file. Copy (rename) the file to /sdcard/fotakernel.img and run the following commands using terminal emulator or in adb shell:

su

dd if=/sdcard/fotakernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

Turn off recovery update in dev settings if it's on, and you'll have twrp that sticks through flashes ?
[Sony Xperia Z Ultra] SAMAN_SAM:
....

dont work this way..my phone go to the fastboot and led is blue but dont flash by adb
[Sony Xperia Z Ultra] Eddiemc:
Either you're using Windows 8 or you got missing drivers. Use terminal emulator on your phone instead. Lots less hassle?
[Sony Xperia Z Ultra] SAMAN_SAM:
yes i use win 8...terminal emulator is crash on my phone:(:(

---------- Post added at 09:09 AM ---------- Previous post was at 09:01 AM ----------

i test by terminal emulator

and enter the : dd if=/sdcard/fotakernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

but dont chnage my recovery !
[Sony Xperia Z Ultra] Tommy-Geenexus:
Guys, a quick question regarding hotplug drivers.

Would you like MPDecision back and Intelli_Plug as selectable option?

Because currently none of the hotplugs i tested seem to deliver the performance of MPD.
[Sony Xperia Z Ultra] showstopper1:
Mpd works well for me !!
[Sony Xperia Z Ultra] MusterMaxMueller:
I don trust intelli_plug did some testing and behaved strangely. but maybe i messed up :)

I prefer MDP.
[Sony Xperia Z Ultra] Godaemon:
MPD is by far the best hotplug, there is a slight increase in battery consumption but its the smoothest and best method in terms of performance .
[Sony Xperia Z Ultra] Eddiemc:
In terminal emulator you need to write su first, press enter, then the command, enter, and you should see that it's written some bytes.. If that doesn't work you'll either have to try the hacks to get fastboot drivers to work on win 8 (Google it) or dual boot Linux or find a win 7 pc..

Thats all I've got, good luck
[Sony Xperia Z Ultra] Tommy-Geenexus:
New Kernel and UKM builds out!

MPD is back, Color Control is updated and UKM bug is fixed.

Enjoy!
[Sony Xperia Z Ultra] MusterMaxMueller:
Nice.

Could you add dm-req-crypt?

See here. Altough as stated in the post that performance is bad. I would like to try HW encryption for our device. I have everything ready except dm-req-crypt :(
[Sony Xperia Z Ultra] Tommy-Geenexus:
Believe me, you don't want to try that.

I had a conversation with Imoseyon back then too, we both came to the decision that HW-Crypto should remain disabled.
[Sony Xperia Z Ultra] MusterMaxMueller:
Ok,

just thought that it would be fun :)

I was just wondering why google didnt enable HW encryption. Performance or security
[Sony Xperia Z Ultra] Tommy-Geenexus:
Performance issues definitly.
[Sony Xperia Z Ultra] sanzharis:
Guys when installing this kernel, to Cyanhacker rom, I have strange issues with performance and touch, I should install this kernel and then factory reset?
[Sony Xperia Z Ultra] Tommy-Geenexus:
I have no issues, performance is better than stock cm for me.

Can you describe the touch issue?
[Sony Xperia Z Ultra] sanzharis:
I have no recovery on cyanhacker, only cm recovery built in, and I install kernel with rashr, have issues like, trying to press link in Twitter, and It don't shows up, nothing changes, I have my pc now, and when installing kernel with flashtool I again have this issues, like system overall gets lazier, and loose smoothness, guess u should install kernel over clean rom without apps, for now I have just dirty install of kernel over the rom with apps, maybe an issue in rom itself? U too have cyanhacker?
[Sony Xperia Z Ultra] Tommy-Geenexus:
I am always on pure CM (for development puposes), and have no issues at all.
[Sony Xperia Z Ultra] goodguy909:
How to flash this kernel ?

How to flash this kernel on my Togari :confused:

i am using RR ROM 5.3.6 .
[Sony Xperia Z Ultra] ch3mn3y:
Is this kernel really supports kexec? Coz i just flashed it over clean flashed AICP 7.0 (kit kat) and multirom app says Kernel: doesn't have kexec-hardboot patch! ???

Multirom 30x is flashed and i have boot menu, twrp is working too, just app says NO
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes, it supports kexec.
[Sony Xperia Z Ultra] ch3mn3y:
SO how to make it work?

As i worte before i flashed it, injected boot and still no luck - kernel doesnt support kexec...

Someone know solution? Maybe it doesnt work with kitkat?

EIDT: Ok my bad. Thought that as there is no changelog for kk, its for both, bu now i see that kk kernel wasnt updated since november. Sorry
[Sony Xperia Z Ultra] Tommy-Geenexus:
Ah you are using KK, i can update my kk kernel to support kexec, but you may need to wait a week as i am busy with exams atm.
[Sony Xperia Z Ultra] Eddiemc:
I'm assuming you got selinux enabled (enforcing) by default. If that's the case, would you consider a separate build with selinux disabled (permissive) by default?

I know it's easy to change, but I'd like it to be set to permissive @ boot, not after boot up.., and for this I need a kernel defaulting to permissive.
[Sony Xperia Z Ultra] 457023934:
+1
[Sony Xperia Z Ultra] Tommy-Geenexus:
Do you have a specific reason for this?

It's not the best idea to lower the kernel security
[Sony Xperia Z Ultra] 457023934:
Viper4Android, and a lot of another apps which i only can use with "permissive" status.....

If u can ... do it... a lot of users will thank u...

I know " SE linux mode changer ".... But that app crashes a lot ...

sry 4 my english :silly:
[Sony Xperia Z Ultra] Eddiemc:
I too would prefer better security, but I'm using xposed framework for a few things :

(maps to local language, per app dpi, full Changelog in play, custom settings in Google music, bootmanager, and a few more)

and it needs selinux set to permissive.

This can be done in synapse, through terminal or in selinuxmodechanger, but the problem is that all those will set it after boot, resulting in xposed not working because xposed reads the setting earlier in the boot sequence.

To get xposed to work, a soft reboot needs to be done in order for xposed to read selinux as permissive.

Now the issue is that every boot or reboot have to be followed by a manual soft reboot to get xposed to work, and since selinux is set to permissive anyway, it might as well be default in kernel so that this soft reboot workaround can be avoided.

But for anybody not using xposed it is preferable to have selinux to enforcing, so you'd have to keep two versions of your kernel to keep everybody happy. I know it would be more work for you, but it would greatly be appreciated by everyone using xposed ☺
[Sony Xperia Z Ultra] Tommy-Geenexus:
Alright, i'll see what i can do ;)
[Sony Xperia Z Ultra] 457023934:
awesome \o/ Thx :D
[Sony Xperia Z Ultra] Tommy-Geenexus:
Guys, i took another look on dt2w as I promised,

and i have to say chances that it will work properly are very minimal.

Z Ultra does not support the low-power idle mode which other Xperias are using,

and forcing the touchscreen online all the time results in insane battery drain, and even then it does not work reliable.

That beeing said, the current driver makes it even harder than before to get dt2w running,

so I think we won't see dt2w anytime soon.
[Sony Xperia Z Ultra] 457023934:
please, DO NOT IMPLEMENT DT2W
[Sony Xperia Z Ultra] Tommy-Geenexus:
Yes, as stated above dt2w will most likely never get implemented, at least not in the current state.
[Sony Xperia Z Ultra] Tommy-Geenexus:
New build up for compability with latest CM.

No functional changes for now, it runs well at the current state.
[Sony Xperia Z Ultra] jamaljmys:
thank you for the hard work

Candy 5 Rom couldnt boot to a system after flashing the kernel. its based on CM .

any help please?
[Sony Xperia Z Ultra] Tommy-Geenexus:
The ramdisk needs an update.

I'll push soon but am busy atm.
[Sony Xperia Z Ultra] muximus:
Hi,

cm12 just merged wiimote support, pl. see here: http://review.cyanogenmod.org/#/c/89843/

Pl. include the required config in the next kernel release.. Thanks!
[Sony Xperia Z Ultra] curiouso9:
hi, testing your kernel that built in with blisspop and also try flash on resurection remix rom, same bug appear, sometime when phone idle, wifi is discconnect and disable, when you open wifi setting, its state that like wifi is trying to turn on, and stuck like that

need reboot again to solve that issue.:crying:
[Sony Xperia Z Ultra] Tommy-Geenexus:
The wifi issues are a Android 5.02 specific issue, nothing related to this kernel.
[Sony Xperia Z Ultra] Triflot:
Hi, Tommy,

I've used this kernel intermittently since you made it available and really like it, but I've had an issue since around v3 where, maybe five times a day, the device slows to a crawl and seizes up for 30-60 secs, and then either recovers or locks up, requiring a hard reset.

It happened just now. There was no last_kmsg afterwards, but I managed to copy the kmsg while it was happening, before it soft rebooted. See the attachment. Anything helpful? This is running a build up to this commit on BlissPop, but like I said, I've had the problem for a while, both with your official releases and self-compiled ones, and with various ROMs. Haven't seen anyone else report any problems, though...

Thanks again for your work! :)
[Sony Xperia Z Ultra] curiouso9:
ya? hmm i did encounter that issue with nexus 7 long time ago with lollipop and never once with my nexus 4

did any workaround has yet been found? maybe some patch ?
[Sony Xperia Z Ultra] Tommy-Geenexus:
I experience this too, however it happens on the plain CM kernel too. In most cases the system went oom, i think this is a problem with the lollipop ram management.

On the newer nightlies the lockup issues are happening way less than before.
[Sony Xperia Z Ultra] Tommy-Geenexus:
Nothing yet. We have to wait for 5.1.
[Sony Xperia Z Ultra] Tommy-Geenexus:
[MENTION=4261406]Triflot[/MENTION]

I think i found the issue causing screen freezes.

So far everything is fine, feel free to compile and test yourself.
[Sony Xperia Z Ultra] kanej2006:
Just a noob question. What difference will it make flashing this kernal? Otherwise what should I expect of this kernal?

Thanks guys.
[Sony Xperia Z Ultra] Tommy-Geenexus:
It's all in the OP, nothing more, nothing less.
[Sony Xperia Z Ultra] kanej2006:
Thanks Tommy.
[Sony Xperia Z Ultra] Tommy-Geenexus:
New build up, please report if there are any issues regarding screen freezing.

If something does not work for you, send me a log please.
[Sony Xperia Z Ultra] Tommy-Geenexus:
Development will be halted for the next 2-3 weeks, as i'm having major exams.

I'll try to catch up asap when all is finished then.

Till then don't flash this kernel on any CM/CM-based rom, it will break compability due to ramdisk changes.