yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] abhibnl:
Flashed this stable version instead and set the value to 5. I believe it will stop charging at 90%, right?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] viper001:
Thanks for looking into that info. It means the official charger is regulating the Amps while giving constant V and the phone regulator is managing the end charge with V. Smart, [emoji2]
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] chinmai560621:
Many devs used O2 but only one tried O3-Manav Bhagia. Was pretty good. He made a ROM that used O3 for the full.

LMK - I'm speaking of the low memory killer that kills apps from background. We have 6 GBs of ram and why do we even need that?

One question: arter97's kernel manages to open huge apps sometimes as fast as the iPhone. Can you check out his sources? I guess this is because of sdcardfs, but I don't think only that helped it.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Antsu:
Perhaps you mean adaptive low memory killer? It can be switched off.

You can't disable the whole lmk, otherwise you'd run out of ram, but you can tweak its values to be less aggressive if you want.

I can't find any mention of touchboost in /sys/module/msm_performance/parameters, so perhaps it's off by default?

About optimisations, I would trust [MENTION=6295391]bedalus[/MENTION]' tests most.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
About 90% that's right
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Shuvo_bd:
It's pretty strange. I m following this kernel since beginning. Never tried to play with bluetooth . Just tried playing a song via my bluetooth speaker - Xiaomi Cannon. It couldn't play the file. After connecting to the speaker phone becomes very laggy. I have had few crashes with default music player. After pressing play buttons phone seems hanged for a few seconds. :( Flashed V3, and got same result. I'm on stock 3.2.7 rooted, without xposed and any other mod. Anyone else having this issue?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
I've used Bluetooth devices Sony sbh20 and speaker hmdx jam and have had no problems at all
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Shuvo_bd:
Need to sort out the actual problem I'm facing. I m intended to flash other kernel and then tryout again. Can you give me stock OOS 3.27 Kernel image?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] abhibnl:
Tried it today and it's starnge to see battery going up like crazy after 90% lol

After 90%, within seconds it hit 100, and dropped to 85% pretty fast and a few minutes' usage. I guess that's how it's supposed to be, right?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Check First post

That's right :)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
I thought they were talking about one of the parameters in the interactive governor 'input_boost' which is activated when there is user input... Perhaps it's known as touchboost in some ROMs?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Antsu:
I think it's a kernel feature, maybe it's different in moxie because of upstream patches and workload stuff?

Right now, I'm on ElementalX and it looks like this
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Ah, that's something else. It's not a standard kernel feature, it's something flar2 came up with:

https://github.com/flar2/android_ke...mmit/ba0040ae167bce32408e49ee40a12fa4e670e367

https://github.com/flar2/android_ke...mmit/a2b70865948a7c1bc5e1a2a69797aa865c96d45e
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] crzykiller:
Well seems like I was wrong regarding the battery inside the OP3T. It's the same size but the chemistry has been slightly changed and it is actually a 4.4V battery instead of 4.35V which would bring around a 10% increase in battery capacity. Now I've never seen a 4.4V lithium battery in my life before and I seriously hope they've completely redesigned the battery itself so that charging it to 4.4V won't damage it.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] core_x:
Is touch boost active in the stock kernel and flar2 only made it possible to disable?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Thanks for following up on this. So it will last longer but it's not physically bigger. They are charging it to a higher voltage, but this isn't something we can apply to our own battery because the chemistry is not the same.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
That's right :)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Wisniew:
No, You can disable it, set ms of input to 0 and its disabled.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Antsu:
Hi, did you find help for your problem? I noticed the same when using viper4android with guitardedhero zip, the phone is encrypted and selinux enforcing...

The problem went away by flashing magisk v9 and viper4android as a module, to clean rom with no audio mods.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] viper001:
Hello again. Another suggestion?. Is it possible to push a battery capacity value every time the charge parameters are changed?

Ex. If you set 5 which is around 90% capacity, set 2800mah as max cap to the battery life indicator instead of 3000mah.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
I already considered this, but it would only be a cosmetic fix that disguises what is truly happening with the battery.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] abhibnl:
Is anybody else experiencing weird battery drains on the latest build? Charged my phone to 100(technically 90 as per blx mechanism), used it for like 30 minutes, only YouTube nothing else. Both SIM turned on and using 4g. And within 30 minutes, it dropped to 75.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
Need to read instructions, you need to change values 0-10 to get different charging percentages (capacities) just flashing and charging to 100 does nothinng
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] viper001:
That what it's supposed to happen. Since the actual charge is lower.

ie. If 100%=3000mah=3.35V then charging it to 90%=2700mah=3.3V approximately.

Btw, Incase anyone is wondering. Lipo batteries are "drained" @3V and should not go lower than 2.7, unless you want a bonfire.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] abhibnl:
If u can go thtough my previous posts here in the thread, I have already set it to 5 to limit charging to 90%. But the thing is, dropping 100/90 directly to 75 within 30 minutes just watching YouTube video is totally weird and unusual.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] viper001:
PS. Don't use this mod on a new phone. There are chemicals which help in keeping the batteries "fresh" when new. You need to cycle charge and use it from full to empty for a few times to get rid of these chemicals.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
Keep coming back to this! Great job!!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Cheers buddy :) I'm really happy with it to.

I'm just doing some work to bring it up to 3.2.8. Franco's always produced high quality work, so I'll have a trawl through his commits to see if there's any goodies.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Here we go: seven is a magic number

- updated to oneplus source for 3.2.8

- trawled through franco's git and came up with some cypher updates

- linux 3.18.45

- patch kernel exploit 'CVE-2016-8655 Linux af_packet.c race condition (local root)', thanks to [MENTION=5140079]Haggster66[/MENTION] (see this post and here's the patch if other devs want to use it)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Shuvo_bd:
Nope. Could not find any workaround. Flashed Stock kernel and tried other Kernel too. Bluetooth connection became laggy and refuse to play any songs. I clean flashed, the rom and right now i m on Franco's R3. No issues here anymore. Btw, i was not using any mod then. I wonder, what might have cause the issue.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Haggster66:
Hi, probably you already know, but just a quick heads-up:

there's a 7day exploit in the kernel:

https://git.kernel.org/cgit/linux/k.../?id=84ac7260236a49c79eede91617700174c2c19b0c (apparently not in the stable-queue yet)

background: http://seclists.org/oss-sec/2016/q4/607 (can be exploited on Android)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
No, I wasn't aware, thanks for the heads up. I've patched the kernel and rebuilt v7:

http://xdaforums.com/showpost.php?p=69901500&postcount=317

I've also patched up to 3.18.45. This is a minor update, but users of v7 might want to re-download if they want to be sure of avoiding the exploit.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] core_x:
Is the kernel compatible with OOS Beta 7?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
I doubt it. If you try it, make sure you have a way o go back to the stock kernel.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Update: version 8 is here

- Update to Linux 3.18.45 (LTS support for this kernel is due to end next month, so I'm not certain if there will be any further updates from the mainline)

- disabled WiFi debugging code: I saw this in franco's git and was surprised I never noticed it myself. It shrinks the code down by about half a meg

- random: a couple more patches courtesy of franco's git

- Bluetooth: I was always bothered by a compilation warning about a missing parameter in hci_sock.c so pulled in some updates from upstream and fixed it

- improved hash load efficiency

- properly round msm8996 clock rates: found in kairi_zeroblade's git. It ensures that the most efficient clock frequency is selected (incorrect rounding might select an unnecessarily higher step)

This release is an assortment of little tweaks from various sources. Nothing major :)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] tomhtg90:
thank you for the update, sir ;)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
Thanks for keeping up, im still on this and it's great!!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Thanks. I'm pleased with it to. We've a lot of talented devs here in the forum and I'm glad. I've got lots of quality git repos that I can cherry pick from! But I always try to exercise restraint. I've got a sort of less-is-more policy.

The thread's been quiet, but I'm quite happy with that. I can see that plenty of people are downloading it, and no problems have been reported. I like that this thread stays relatively peaceful. However, if anyone wants to discuss any of the commits, let me know :)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
It's been quite a while since I felt the need to tinker with this, but I'm poorly and can't sleep (my wife snores so if I wake up I basically have no chance of getting back to sleep!)

I've moved up to linaro's latest toolchain (6.2.1) since this offers some extra features and optimisations. I couldn't get it to work in the past, but yesterday I managed to track down the problem.

One of the new features is detection of misleading indentation. This has caused the build to fail in a number of places. Some of the indentation were completely benign, but some did appear to be genuine mistakes:

diff --git a/drivers/media/platform/msm/vidc/msm_venc.c b/drivers/media/platform/msm/vidc/msm_venc.c
index 834f28b..45c4fdc 100644
--- a/drivers/media/platform/msm/vidc/msm_venc.c
+++ b/drivers/media/platform/msm/vidc/msm_venc.c
@@ -1466,7 +1466,7 @@ static int msm_venc_queue_setup(struct vb2_queue *q,

ctrl = v4l2_ctrl_find(&inst->ctrl_handler,
V4L2_CID_MPEG_VIDC_VIDEO_EXTRADATA);
- if (ctrl)
+ if (ctrl) {
extradata = v4l2_ctrl_g_ctrl(ctrl);
switch (extradata) {
case V4L2_MPEG_VIDC_EXTRADATA_INPUT_CROP:
@@ -1479,6 +1479,7 @@ static int msm_venc_queue_setup(struct vb2_queue *q,
default:
break;
}
+ }

You can see here that the indentation indicates that those lines of code are supposed to be run as a group, but is obviously missing the scope delimiters (the curly brackets).

There were lots of examples of this sort of thing which all needed fixing in order for the build to succeed, and to be honest, I was rushing through them just to get a completed build. I need to comb through them all again and make sure I've done the job right.

In the mean time I'd appreciate some extra testing: https://goo.gl/mDOOny

I'm running this on my op3 right now and it seems fine, but extra uptime from other users would be reassuring before issuing a release version :)

EDIT: also switched from -OS (optimise for smaller code size) to -O2 (optimise for faster code). Please check all your usual apps and functions to ensure everything works as expected. Help testing much appreciated!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
Will flash today and ill report back, im on the last one.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Hey testers, use this one please: https://goo.gl/mDOOny

I tried and found that I can now successfully build with -O2 optimisation, which I believe should be the normal default for kernels. OP3 have -OS as their default, which struck me as a little odd.

When I tested the O2 build using the 5.x series linaro toolchain, it was a disaster (it worked, but was noticeably sluggish) so perhaps that's why OP3 were forced used OS...? Some sort of problem with the extra optimisations. Who knows... But with the newer 6.2.1 compiler, everything seems good.

I've put it through my usual array of tests at my end, but as always, extra feedback is always appreciated.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Hey [MENTION=2732888]fcisco13[/MENTION]. Just a heads-up, I have built a newer test version, can you test that one instead?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
About to test this for you!

I love how you cherry pick, it's something a lot of people are scared to do. Have you borrowed anything from blu spark?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
[MENTION=3262915]habylab[/MENTION] I know you probably weren't expecting that response, but I think you triggered something in me! Was there something in particular you had in mind?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Oh don't apologise, that was a great read!

Nothing particular from the kernel, just wondered in general if you had looked. I know you mentioned you had gone from Franco's commits, so wondered if you'd done the same for Blu spark, which is quite a heavily modified kernel I find.

The kernel is running well, by the way. Is there any particular things you want me to comment on? It's smooth, and the battery life seems good too. One thing though, the governor is showing as Performance with no tweaks applied. I have a script with my favourite settings, so I've applied that for now, but no CPU boost was showing as well. I've found this through Franco's kernel manager, which has worked with other kernels fine, but maybe not with yours.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] saayuj98:
I am using Kernel Adiutor. For me the default governor was already set as interactive. The Kernel is running beautifully. Smooth, fast. I can't judge battery life just now. Overall, so far so good, Thanks :)
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Yes, I've definitely spent a lot of time looking at the blu spark commits, in fact I think it was one of the first repos I checked out. I can't remember what stuff I might have seen in there but I've no doubt I've cherry-picked a few performance related commits.

If you test every function and app you would normally use, and everything seems normal, then there's no need to report back really. I take no news as good news. The feedback I'm after really is if something got broken! If I was performing all my own testing then it might be days before I've covered all the bases. With extra users testing, the process is much quicker. I use goo.gl shortened links so I can track how many downloads there have been, which gives me a rough idea of how much testing there's been overall. If after a few days there's been no reports, I might check if everyone is happy, just to make certain, then push a general release version.

I've not included any toggles for boosting. Buried somewhere in the thread we had a little discussion about boosting, and I tested it out, and found that disabling it made CPU usage higher. For power saving, we need to keep the CPU frequency nice and low as much as possible. The logic behind hotplugging cores, deciding which tasks should run on which cores, and what frequencies should be used are extremely complex, and I trust that the hardware developers have done a pretty decent job. I don't approve when I see developers ripping out all that stuff and replacing it with their own ideas, because they just don't have the facilities to properly test how their own versions respond to workloads. I won't be exposing boosting or Fsync toggles in my kernel! I like to keep it stripped down, simple, and only provide what my own tests have proven to be consistently good choices. Here's another post earlier in the thread that I'd recommend a quick read of.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Thanks for this, again, very detailed post. The link was interesting too. I'm more than happy to use the kernel defaults, but it's showing up with Performance governor. This can't be right, can it?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Interactive is the default. My guess is that your script is trying to select a governor that is not included in my kernel, so it's defaulting to performance. Upload your script if you'd like me to take a look.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
I didn't actually run the script when I first used your kernel, but now am to correct this issue. No errors being shown now, and the performance is even better with essentially the same settings as other kernels I have used.

One thing though: what GPU settings have you set? I'm getting this:
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Hmm, I can't see that screenshot. Was there an error with the upload?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Can't seem to upload! It's showing up as simple-ondemand and max freq as 510 MHz.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Ignore, duplicate post.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
[MENTION=3262915]habylab[/MENTION]

Hmm, no, still can't see the screenshot. But the top GPU frequency on my device is showing as 624Mhz, and the GPU governor default is msm-adreno-tz. If your script isn't setting these values, then there's probably something setting them in the ramdisk. You could dirty flash your ROM to restore the original boot partition, then reflash my kernel, or you could flash a clean boot.img using the one provided by NevaX1 in the first post. Dirty flashing the ROM is the safest way.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Thanks for introducing me to this app!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] gillim74:
Is this for stock roms only
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] viper001:
Yes
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Thank, I'll give that a go.

Can't beleive you haven't heard of Kernel Adiutor! It's great!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Okay, I've spent a lot of time today running benchmarks on the -OS and the -O2 versions of the kernel to see if there was a noticeable difference.

Results: google sheets

The top right cell is the result of a geomean of the median scores after 6 passes of both geekbench and CF bench, but there was hardly anything in it. Will probably end up going with -OS.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
New testing version, gone back to -OS, still with the linaro 6.2.1 toolchain: https://goo.gl/DxcCWN

Also had a really good look through the blu spark repo again and found a couple of worthwhile additions. We'll give it a few days before calling it a general release. Then I suppose we're all moving up to android N!
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Brilliant stuff, thanks for looking!

Happy New Year! Have OnePlus released the source yet? I'm not certain on how quick (or rather, slow) they are. Either way, I may hold off for the first patch.

Edit: newer test appears to be better for me.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Happy new year!

No source yet. But I had the same thought as you. I think I'll hang on for a bit before I jump on N to see what the feedback is like. I want a stable base to work with.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Happy new year to you too!

I did want to flash and report any bugs, but the whole issue with completely wiping our device and using stock recovery etc. is just not worth it. Hopefully there will be a new TWRP soon (I understand our device has an old version?) to fix the issues, and the source code out for kernels.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
Why not one more update?

https://goo.gl/7kqS9w

Figured we might as well test the latest wifi module code while we're at it. Everything works fine so far for me. We'll have a few more days of testing and then we'll call it version 9. That'll probably be the last release before we start the wait for the N source push from OnePlus.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Update is working well!

I tried to flash a clean boot.img I grabbed from the 3.2.8 update, but I still have issues with the settings I've listed over the past couple of pages. Not sure flashing the whole ROM will fix. For now, I will just settle (#NeverSettle) and wait to clean install the 4.0 update.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Hecke92:
Thank you so much!

Out of experience, when will that happen?
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
In my experience, most vendors who open source their software provide it within a couple of weeks. I guess it makes sense to have a little bit of a buffer just in case there's a problem that they didn't pick up in their own testing.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
just updated to OOS 4.0 can't wait to hear update from this awesome kernel
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] habylab:
You'll have to wait for sources.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] bedalus:
There's no kernel source yet unfortunately. How are you finding OOS 4.0? There seems to be a lot of negative reviews.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Stroky:
I'm on the beta since nougat is out. And the performance and battery life is really good. Definitely better than on 3.2.8.

Also it is completely stable. Never had any issue.
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] Antsu:
For me, everything's fine. Flashed via ota (vpn/germany) from 3.2.8 with stock recovery. After that made factory reset, including internal storage --> data to f2fs. So, everything is stock now, haven't even flashed twrp yet. Battery life is on same level with 3.2.8 stock. In the first hours of usage I had some graphical glitches but now there's none. Black theme is much better now, including dialer and message apps and some others like file manager. But the accent colors are a bit dull now, but xda user ungeeked has made an nice flashable update to colors, including some other optional theming tweaks also. You can find it here: https://xdaforums.com/oneplus-3/themes/mod-h2o2-accent-colors-grammar-fix-t3514804
[OnePlus 3 ROMs, Kernels, Recoveries, & Other Devel] fcisco13:
i do get a bit more battery drain, other than that its nice, fluid

---------- Post added 07-01-2017 at 12:19 AM ---------- Previous post was 06-01-2017 at 11:33 PM ----------

I'm aware of that bro, just keeping the thread active and showing much love for this kernel.