yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] neth15:
[MENTION=5996255]jollaman999[/MENTION] What about Always-On display? IK N5X uses LCD, but I guess with brightness turned off completely it shouldn't drain battery that much.

BTW., I'm not fan of these shi*s available in GP, they keep phone awake and prevent it from entering Doze.

Or am I barking on the wrong tree? Is it ROM thing?
[Nexus 5X Original Android Development] jollaman999:
There is a low power state in kernel driver. (Turn on the screen with black and white.)

The low power state and screen power are manged by kernel.

But when it turn on or off is manged by rom.

Sorry. :(
[Nexus 5X Original Android Development] neth15:
You mean smth like Ambient Display? So, theoretically, if I managed to force Ambient Display to stay ON all the time, it would be the same. However, my experience in coding goes that far that I only managed to make a calculator :laugh:

No problem, I'm just curious :)
[Nexus 5X Original Android Development] jollaman999:
[bullhead-v14.0]

[bullhead-v12.4]

== Kernel ==

>> Common <<

- mdss, sovc: Fix unbalanced mdss off

(The real problem was unbalanced mdss vreg(power) state.

It will try to turn off again after sound stopped.

So it will cause unbalanced state and device can't turn on the screen again.

Do not turn off mdss vreg when already turned off.)

- mdss, sovc: Do not turn off the mdss when it entered low power state

(There is a low power state in the mdss.

This mode is used when the device get an alarm and turn on the screen with black and white.

So it must be not turn off the mdss when it entered low power state.

Otherwise, it makes timeout error messages.)

- Revert "block: maple: Check display state when needed"

(This is useless commit.)

- Applied a sdcardfs related Android mnt change from Google android-3.10

- android: binder: Applied Google's hwbinder branch changes

- net: Applied Google's hwbinder branch changes

- sound: msm, soc: optimize for size

- lib/vsprintf.c: Applied upstream changes

- Input: xpad: Applied upstream changes

- ksm, msm_thermal, dt2w, s2w, sovc: Check low power state in fb notifier

(There is a low power state in the mdss.

This mode is used when the device get an alarm and turn on the screen with black and white.

If user enabled auto unlock screen feature, there will be a problem when mdss turn on the screen in low power state.

The driver will not go into the resume state.

So it must be check this low power state in fb notifier.)

== Recovery ==

- Re-built with lastest LineageOS/cm-14.1 sources

- Applied lastest omni TWRP changes

- jolla-kernel_bullhead_II-v14.0 applied

* OTA Updater's server state is not good. (https://www.otaupdatecenter.pro/)

I will not update changes to 'jolla-kernel Updater' for a while.

Please use MultiROM manager to get new updates.

http://tp.jollaman999.com/jolla-kernel_AIO-bullhead/MultiROM_Only/MultiROMMgr.apk
[Nexus 5X Original Android Development] jollaman999:
Yes, you are right.

Thank you. :)
[Nexus 5X Original Android Development] zurik:
The kernel has already the January Update merged or not?
[Nexus 5X Original Android Development] jollaman999:
Merged. :laugh:
[Nexus 5X Original Android Development] zurik:
Thanks for fast answer. I will try again (if the ROM will not encrypt my phone again)
[Nexus 5X Original Android Development] leolawliet:
[MENTION=5638945]RonnellTapawan[/MENTION] I can see the difference in benchmarks, I know there's already documentation showing f2fs is better. But not in every scenario would a person be able to notice the difference with their naked eye.

My original point in responding about f2fs is that I didn't want to see someone who doesn't know what he's doing with it just lose everything he's got. I just suggested that he reads more and be better prepared for the switch, and then I shared my experience with f2fs. He might not see the difference, he's new to the concept. I'm not discouraging him, just simply advising he doesn't go through with something he doesn't understand till he has a better understanding of the process.
[Nexus 5X Original Android Development] :
hello, does 14.0 have the latest f2fs upstream patches? :o just asking! thanks for the update! :highfive:
[Nexus 5X Original Android Development] ulxerker:
yes, it does.
[Nexus 5X Original Android Development] jugoslavpetrovic:
[MENTION=5282944]tassos_chry[/MENTION], [MENTION=1494718]nders[/MENTION], [MENTION=4206297]leolawliet[/MENTION]

Thanks guys. I kind of figured it out as well and still did not any harm to my files even though I have important stuff backup up with folder sync app but this info now helps me save some time cuz my free time is very limited.

I actually got chance to do some quick instant research as well but got a bit confused with data partition cuz misunderstood it with wiping as formating, silly me.
[Nexus 5X Original Android Development] leolawliet:
What matters is that no important data was lost :)
[Nexus 5X Original Android Development] jugoslavpetrovic:
Of course:)
[Nexus 5X Original Android Development] jugoslavpetrovic:
How abou gzip and lz4, what would in reality be the benefit of lz4?
[Nexus 5X Original Android Development] Mrcactuseater:
LZ4 is faster and more efficient afaik.
[Nexus 5X Original Android Development] jollaman999:
LZ4 decompression speed is extremely fast.

The speed is nearly to when it uncompressed.

When decompressimg the ramdisk. (Booting or installing kernel.)

Or re-compress the ramdisk or when installing MultiROM, you can see the difference.

It is also possible to use LZ4 for kernel Image.

Then the kernel loading speed will be increase.

But our bootloader only support Gzip and uncompressed kernel Image.
[Nexus 5X Original Android Development] :
But LZ4 does not support SuperSU, right?
[Nexus 5X Original Android Development] jugoslavpetrovic:
It does if flashed before kernel and before compressed as lz4. If you need root just after flashing supersu flash this kernel afterwards.
[Nexus 5X Original Android Development] pratamaaudi:
Is there advice setting to improve multitasking with this kernel ?

Thanks ^^
[Nexus 5X Original Android Development] jollaman999:
I recommend to use default settings.

Or increase read-ahead value.
[Nexus 5X Original Android Development] khanjui:
BFQ I/O scheduler is best for multitasking. And you can set your zRAM as 768 MB.
[Nexus 5X Original Android Development] edoardotavecchio:
https://xdaforums.com/showpost.php?p=70492947&postcount=8793

arter97 published this post to explain why superSu has some problems with f2fs formatting. I've never had any problem with supersu and f2fs, but this could be useful now for some users (if someone has problems with supersu)
[Nexus 5X Original Android Development] jollaman999:
Thank you. I will refer.
[Nexus 5X Original Android Development] jollaman999:
[bullhead-v14.1]

[bullhead-v14.1]

== Kernel ==

>> Common <<

- Revert "f2fs: reset default idle interval value"

(This will prevent deadlock in new f2fs changes.)

== AIO ==

- updater: Update libraries

- updater: Source cleanup & replace deprecated lines

- updater: Manifest: Ignore GoogleAppIndexingWarning

- updater: Use my own server and view changelogs from Github

- MultiROMMgr: Update libraries

- MultiROMMgr: ko: Add more translations

- MultiROMMgr: Update gradle version

- MultiROMMgr: Some cleanup

== Recovery ==

- jolla-kernel_bullhead_II-v14.1 applied
[Nexus 5X Original Android Development] :
hello, pardon me but this kernel uses f2fs 4.9-rc6 right? are you gonna update to latest v4.10-rc1? anyway, thanks for the update! :o
[Nexus 5X Original Android Development] jollaman999:
Yes, nearly to 4.10.0-rc4. I'm using 3.10 stable branch from jaegeuk.

Thank you.
[Nexus 5X Original Android Development] khanjui:
I got restart on latest build. [MENTION=5996255]jollaman999[/MENTION]
[Nexus 5X Original Android Development] jollaman999:
It looks interactive commit makes this problem.

I'll reupload it soon.
[Nexus 5X Original Android Development] jollaman999:
Re-uploaded. I was very confused cause of changed updater and server environment.

Sorry for mistake.

[MENTION=4984423]khanjui[/MENTION] [MENTION=6212414]pepa 77[/MENTION] [MENTION=5638945]RonnellTapawan[/MENTION]
[Nexus 5X Original Android Development] khanjui:
No problem, sh*t happens sometimes. :P
[Nexus 5X Original Android Development] Eurofighter_ty:
[MENTION=5996255]jollaman999[/MENTION]

Are you gonna includ this:

https://github.com/rachanta/racer-n5x/commit/2e63b243c3cbcf5136ca37de6d318f654f8ff8e0

in your kernel ?
[Nexus 5X Original Android Development] khanjui:
You can't be serious.
[Nexus 5X Original Android Development] jollaman999:
Are you serious? :D
[Nexus 5X Original Android Development] jollaman999:
Thank you. :D
[Nexus 5X Original Android Development] Eurofighter_ty:
I know that you made the patch but I can't find some changelog for your kernel where it says that the patch is included.
[Nexus 5X Original Android Development] khanjui:
https://github.com/jollaman999/jolla-kernel_bullhead/commit/8566ebb9776791367f9ef8a554696884db687fc9
[Nexus 5X Original Android Development] TheLoller221:
Hi Jolla,

Can you consider to add msn_hotplug? I think it's very useful, but the kernel is yours hahahah

Good job with this kernel :D
[Nexus 5X Original Android Development] khanjui:
It's not useful on this chipset.

Check this: https://xdaforums.com/nexus-5x/development/racer-kernel-n5x-npc56p-t3340070/post70464510
[Nexus 5X Original Android Development] TheLoller221:
Ah okay, thanks for the information :D
[Nexus 5X Original Android Development] khanjui:
Use the thanks button, it's easier.
[Nexus 5X Original Android Development] neth15:
[MENTION=5996255]jollaman999[/MENTION]

Anyone reported random reboots with this kernel?

Today I decided to do major update of everything, so I went from PureNexus to Ressurection Remix, staying on Jolla kernel with F2FS (before I was on previous build). Booted, set up but suddenly, when the screen was off, it restarted. Okay, no problem, maybe crash or something. But no, I locked screen, waited like 30 seconds and couldn't unlock phone again. So I was like Okay, newest RR build is buggy, going back to PureNexus. But there was still the same issue, again with Jolla kernel installed and F2FS set up. So I flashed newest Factory Image without doing sh*t (no SU, no TWRP, no Jolla, no F2FS) and everything works perfect so far.

Tried newest RR, newest PureNexus, newest GApps, SuperSU 2.79 (which worked nice with F2FS untill now) and newest Jolla kernel.
[Nexus 5X Original Android Development] zurik:
I agree that Resurrection Remix if you do something in build 13/01 it will not boot... staying at bootanimation....
[Nexus 5X Original Android Development] neth15:
No, it will boot, you just need to interrupt it first time and start phone again. And it takes some time.
[Nexus 5X Original Android Development] khanjui:
https://xdaforums.com/nexus-5x/orig-development/wip-franco-kernel-r6-t3286128/post70592058

[MENTION=5996255]jollaman999[/MENTION]
[Nexus 5X Original Android Development] jollaman999:
So, it just a placebo?

Thanks anyway.
[Nexus 5X Original Android Development] ndarkside93:
From the way he's talking, he thinks it may have the potential to increase the performance in other areas though. I've talked to him on the issue and he's still testing it.
[Nexus 5X Original Android Development] neth15:
[MENTION=5996255]jollaman999[/MENTION] It looks like it's really because your kernel. Today I flashed PureNexus, SuperSU and Jolla kernel (no F2FS), after being like 30 seconds with screen off, phone restarted itself with no apparent reason. So I reflashed Pure Nexus and SuperSU without your kernel and it works like a charm, absolutely no problems. I'm sorry bro :/

BTW. one or two versions back it worked just fine. I have 16GB Nexus 5X, which came without USB-C to A in box.
[Nexus 5X Original Android Development] Mrcactuseater:
Haven't had a random reboot on this device in a long long time, even with Jolla kernel. You should grab some logs before blaming the kernel Dev.
[Nexus 5X Original Android Development] neth15:
I'm not blaming him, I'm just sharing my observations :)
[Nexus 5X Original Android Development] Mrcactuseater:
[MENTION=5996255]jollaman999[/MENTION] https://github.com/frap129/angler/commit/632a73b0f8210e210e83b50b643d626813d5538f seems pretty cool!
[Nexus 5X Original Android Development] jollaman999:
Did you download again after I noticed the mistake?
[Nexus 5X Original Android Development] jollaman999:
I will check. Thanks.
[Nexus 5X Original Android Development] mr.ace:
[MENTION=5996255]jollaman999[/MENTION] hw_binder source updated,please merge new commits
[Nexus 5X Original Android Development] Mrcactuseater:
You the man!
[Nexus 5X Original Android Development] jollaman999:
Deleted.
[Nexus 5X Original Android Development] jollaman999:
I will merge it. Thanks.
[Nexus 5X Original Android Development] neth15:
IDK what do you mean. Both times I was using 14.1 version of your kernel.

No, I didn't redownload it
[Nexus 5X Original Android Development] jollaman999:
There was a problem at first time I release the 14.1.

Then re-uploaded. If your problem continued, please download again.
[Nexus 5X Original Android Development] a1941fjz:
:(

You'd better say that alone side the download link
[Nexus 5X Original Android Development] jollaman999:
I'll do that next time when there is a problem.

I apologize for my mistake. :(
[Nexus 5X Original Android Development] jollaman999:
[I got a other 5X!]

I changed my old tablet to other 5X.

Now, I have two Nexus 5X!

Now I can test new kernels in a convenient way.

Hurray! :laugh:

Thank you for all of who love my jolla-kernel!
[Nexus 5X Original Android Development] buffer overflow:
Ave, [MENTION=5996255]jollaman999[/MENTION] ! ??
[Nexus 5X Original Android Development] Paulino Necro:
Doubletap2wake

Why does not it always work the doubletap2wake?
[Nexus 5X Original Android Development] jollaman999:
Could say again accurately with symptoms?

* There is a problem in touch wake function. You should tap 3 times sometimes.
[Nexus 5X Original Android Development] Paulino Necro:
There is not something specific, only that sometimes the option does not work, thanks for replying
[Nexus 5X Original Android Development] jollaman999:
I didn't any noticed with doubletap2wake. But I'll check if there is a problem.
[Nexus 5X Original Android Development] khanjui:
https://xdaforums.com/nexus-5x/orig-development/kernel-elementalx-n5x-t3240537/post68203678
[Nexus 5X Original Android Development] jollaman999:
Yes, I only saw the this problem now.
[Nexus 5X Original Android Development] edoardotavecchio:
Is someone else having a huge ram usage on this kernel? Ram and zram (768mb) get filled in less than two hours of normal using, I tried everything (change lmk values, activate ksm, deleting some ram-eaters apps) but nothing worked. With flash kernel I've had a really light zram using (200/300 mb at least). I've even tried by setting a very likely swappiness to save some memory but nothing changes. Could someone explain me why is this happening and maybe give me a solution?
[Nexus 5X Original Android Development] Mrcactuseater:
I'm pretty sure it's due to the process-reclaim stuff that was recently merged. I have not noticed it as bad as yourself, but I do notice that around 400mb of it is used at most, with swappiness at 15. This is a good trade off however as I see apps are being kept in memory more.
[Nexus 5X Original Android Development] mr.ace:
No,racer have this feature too but there's no a problem like this on racer

Please think before say something
[Nexus 5X Original Android Development] rachanta:
The RAM is there to be used, so I don't think using more RAM should be considered a problem. The question is, is there lag, sluggishness or lack of UI response during multi-tasking?
[Nexus 5X Original Android Development] jollaman999:
racer has different value of process-reclaim. So there will be some differences.

I wanted to say like you.

I was considered how I can explain about this.
[Nexus 5X Original Android Development] martinexa:
I am on pixel ROM. Wich kernel recomend????

---------- Post added at 05:51 AM ---------- Previous post was at 05:40 AM ----------

The zip Is a 71mb file???? Can i Flash it un pixel ROM,
[Nexus 5X Original Android Development] pepa 77:
Yes it has 71 MB , the file contains more than just the jolla kernels ! This great core :good: I can only recommend . I also PixelRom:D
[Nexus 5X Original Android Development] edoardotavecchio:
Yes. With ram getting filled in a so little time, after 2-3 hours UI starts to be laggy af. That's the problem I'm reporting. That's not a big problem, it only needs a reboot every X hours. I was just reporting and asking.
[Nexus 5X Original Android Development] mr.ace:
[MENTION=5996255]jollaman999[/MENTION] you tuned per-process values yourself?

this's a better idea using values from electron

write /sys/module/process_reclaim/parameters/pressure_min 50

write /sys/module/process_reclaim/parameters/pressure_max 70

write /sys/module/process_reclaim/parameters/per_swap_size 512

write /sys/module/process_reclaim/parameters/swap_opt_eff 30

Please don't revert this feature this's a important for our device
[Nexus 5X Original Android Development] jollaman999:
I just found those values by Google search and from LineageOS. Not custom values.

1. Same values when the device is aarch64 and 2G.

http://svn.badboyzsvns.com/HTC10_SPR_1.24/system/etc/init.qcom.post_boot.sh

2. Used to both 2G and 3G devices.

https://github.com/LineageOS/androi...b/cm-14.1/rootdir/etc/init.qcom.power.rc#L148

3. ether is msm8992 and 3G device.

https://github.com/LineageOS/androi...r/blob/cm-14.1/rootdir/init.nbq.target.rc#L57

All of values are same.
[Nexus 5X Original Android Development] Mrcactuseater:
Well I have not Racer in a while so I couldn't have known nor could I have compared. If you have problems, conduct research yourself or compare the two manually and let everyone else know to help understand, rather than being passive aggressive :)
[Nexus 5X Original Android Development] jody2k:
So doest mean that you have nexus 10x if you have 2? Such speed very smoothness
[Nexus 5X Original Android Development] jollaman999:
Yap. I can't control my 10X cause of crazy speed. :silly:
[Nexus 5X Original Android Development] :
Try them all one at a time for about 3 days each and see what's best for you. We have awesome devs here on Nexus 5x and all are good kernels IMO. What you or I may like another person may like something different. Always good to make a backup of stock boot.img of rom your on in twrp and flash away and see what's best for you. :)
[Nexus 5X Original Android Development] zurik:
:laugh:
[Nexus 5X Original Android Development] ndarkside93:
Yes that commit, or the equivalent dir this device is included in each of the available custom kernels
[Nexus 5X Original Android Development] mr.ace:
Disable sdcardfs in AIO, this feature have a extra ram usage
[Nexus 5X Original Android Development] jollaman999:
Nexus 5X and Onplus3 etc.. use sdcardfs by default in Lineage OS.

Also, Oneplus3 has recent sdcardfs patches.

It makes no sense.

Edit: I missed 'no' in PM.

There are no differences with enabling sdcardfs.
[Nexus 5X Original Android Development] mr.ace:
Test it yourself disable sdcardfs and you will see more free ram and less zram usage
[Nexus 5X Original Android Development] jollaman999:
I already tested several times.

== sdcardfs Enabled / No recent apps ==

bullhead:/ #
bullhead:/ # cat /system/build.prop | grep -i sdcardfs
ro.sys.sdcardfs=true
bullhead:/ # mount | grep -i sdcardfs
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6)
bullhead:/ # free -h
total used free shared buffers
Mem: 1.7G 1.7G 36M 0 19M
-/+ buffers/cache: 1.7G 55M
Swap: 509M 126M 383M
bullhead:/ #

== sdcardfs Disabled / No recent apps ==

bullhead:/ #
bullhead:/ # cat /system/build.prop | grep -i sdcardfs
1|bullhead:/ #
1|bullhead:/ #
1|bullhead:/ # mount | grep -i fuse
/dev/fuse on /mnt/runtime/default/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
bullhead:/ #
bullhead:/ # free -h
total used free shared buffers
Mem: 1.7G 1.7G 65M 0 12M
-/+ buffers/cache: 1.6G 77M
Swap: 509M 134M 374M
[Nexus 5X Original Android Development] edoardotavecchio:
what do you suggest me to do? I'm on android 7.1.1, should I enable sdcardfs or not? I've not understand if it's enabled by default, so sdcardfs in aroma installer shouldn't be ticked or not. What should I do?
[Nexus 5X Original Android Development] tassos_chry:
Dude, seriously now, I think [MENTION=5996255]jollaman999[/MENTION] is far too kind with you. If you know so much about custom kernels and want to dictate what the kernel will contain or not, why don't you just build your own kernel from source?
[Nexus 5X Original Android Development] Mrcactuseater:
It is NOT enabled by default, so if you want to use it you have to enable it in the aroma settings.
[Nexus 5X Original Android Development] khanjui:
I know that your kernel is based on Franco's when it's comes to input boost, governor tunable settings etc. And I found there is a little bit input lag. Please kindly install the stock kernel on your another 5X and do some scrolling on your both devices at the same time. You will see what I mean, franco.Kernel and every kernel based on its settings has slightly touch delay. Stock kernel and ElementalX kernel feels really smooth. Also RACER is smooth because it's based on ElementalX with cherry picks from another kernels. I think you can "fix" it if you can rebase your kernel on ElementalX. Just a suggestion.

A sample video: https://mobile.twitter.com/hallstephenj/status/821768472996835328/video/1

Like I said, there is a slight delay so don't expect anything like that video. It's only a sample. :P [MENTION=5996255]jollaman999[/MENTION]
[Nexus 5X Original Android Development] mr.ace:
[MENTION=5996255]jollaman999[/MENTION] this's main reason that why I said everything to you in pm

I'm not expert here just tested with disable and enable sdcardfs but please exuse me i said something wrongly, no different in disable/enable sdcardfs
[Nexus 5X Original Android Development] jollaman999:
Okay. I understand what you want to say. I'll check.
[Nexus 5X Original Android Development] jollaman999:
I'm also not an expert. But I can say that this is not related with sdcardfs.

zram usage and memory usage are always changed by Android and lowmemorry killer.
[Nexus 5X Original Android Development] jollaman999:
I will re-work the source.

There are some lags and sometimes it makes battery drain.

I want to go back to the clean source.

So, no more updates for 6.0.1 and 7.0.0.

And I will no more receive requests and only receive bug reports.
[Nexus 5X Original Android Development] mr.ace:
Still based on franco?
[Nexus 5X Original Android Development] jollaman999:
No.

Stock + 3.10.74~3.10.104 + My customs (Other branches in github) + CAF

Disable msm_performance max/min change + Some improvements for cpu_boost

Some improvements for msm_thermal
[Nexus 5X Original Android Development] jollaman999:
Only merged some needed commits.

Makefile optimization, Disable msm_performance, preserve max freq, sound control.

https://github.com/jollaman999/jolla-kernel_bullhead/commits/android-7.1.1?author=franciscofranco