yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Questions & Answers] badboy_6120:
Hi there

Is there any phone in the market that use the same rear camera module as One Plus 3T ??

I can't find the camera module for this phone in my country

I'm facing the focus problem
[OnePlus 3T Questions & Answers] serafko:
You can buy module online.

http://www.witrigs.com/oem-rear-camera-for-oneplus-3t
[LG G2 Mini] Vagelis1608:
-V- Kernel X

w/ AnyKernel2 for support on all LaOS 14.x -based ROMs!

import /disclaimer.md

I am not responsible for any damage done to your device/SD card/OTG cable/washing machine/toaster etc.
You are responsible for what you do.
If something brakes, it's on you!

Furthermore, functionality on older/newer ROMs not guaranteed.
Some may work.

Governors:

IntelliActive

IntelliDemand

Conservative set as default (from interactive)

Hotplugs:

IntelliPlug

Alucard

Use only one! And disable MPDecision!

Extra Features:

Forced Fast Charge v2

GPU: UC to 100MHz, OC to 533MHz

RAM: Added 133MHz (UC) and 566MHz (OC)

ZRAM: Enabled LZ4 compression + Auto resize to 500MB

Intelli_Thermal v3.0

Fixed ROM's init.d

Included kernel-side patch for BlueBorne vulnerability

KSM: Duplicate page check added (I recommend disabling KSM)

Simple GPU Algorithm (by faux123)

Script to force stop MPDecision + Auto enable IntelliPlug (can be disabled in /data/vkx.prop)

Power Suspend Mode v1.5

NTFS read/write support (write is limited, only supports overwriting existing files)

Config accessable from /proc/config.gz

More to come... Make suggestions and I will see what I can do...

Compiled using the Android NDK!

Installation:

You must have unlocked your bootloader!

Download the attached file!

Custom Recovery required

Make a backup of the boot partition for restore/uninstall purposes

Just download and flash the latest auto-install .zip file.

Then, use a kernel tweaking app or script (I use Kernel Adiutor).

To-Do:

Add more governors

Add some IO schedulers

Make suggestions...

Known Bugs:

Found one? Report it.

Source code:

-V- Kernel X

LineageOS (kernel)

Thanks to:

@mobiusm , for his general assistance, some code, and for putting up with me no matter how annoying I was/am/will be. :p

@likeadracula , for his general assistance and recommendations.

@faux123 , developer of anything starting with "intelli" and 'Simple GPU Algorithm'

@osm0sis , developer of AnyKernel2

and to anyone else I forgot!

XDA:DevDB Information

-V- Kernel X, Kernel for the LG G2 Mini

Contributors

Vagelis1608, mobiusm, likeadracula, faux123, osm0sis

Source Code: https://github.com/Vagelis1608/-V-_Kernel_X

Github Releases: https://github.com/Vagelis1608/-V-_Kernel_X/releases

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 1.3.1

Stable Release Date: 2018-04-13

Development Status: Abandoned :/

Created 2017-07-27

Last Updated 2018-06-27
[LG G2 Mini] Vagelis1608:
Github Releases: https://github.com/Vagelis1608/-V-_Kernel_X/releases

Changelog:

v1.3.1:

Fixed the RAMDisk-based script

v1.3:

KSM: Tuned default parameters (still, I recommend disabling it)

GPU: UnderClock to 100MHz

Replaced Qualcomm's thermal driver (Thermald) with Intelli_Thermal v3.0 (by @faux123 )

Fixed ROM's init.d (Enforcing SELinux blocked it, now it works)

RAMDisk script: IntelliPlug is now automatically enabled when MPDecision is force-disabled

ZRAM: The RAMDisk-based script now sets it's size to 500MB (can be disabled in /data/vkx.prop: change persist.use.big.zram )

Swappiness is also set to 100. If you use a swap file, then this MUST be disabled (/data/vkx.prop: change persist.using.swap.file). Otherwise, problems will arise. You have been warned!​

v1.2.1:

Included kernel-side patch for BlueBorne vulnerability

Enabled LZ4 compression for ZRAM

v1.2:

KSM: Duplicate page check added

Simple GPU Algorithm (by faux123)

Script to force stop MPDecision (can be disabled in /data/vkx.prop)

v1.1:

GPU Overclocked to 533MHz (from 450Mz)

RAM: Added 133MHz (UC) and 566MHz (OC)

Power Suspend Mode v1.5

Alucard Hotplug

v1.0.1 (hotfix):

Fix faulty frequency in IntelliDemand (two_phase_freq)

Tuned IntelliDemand and IntelliActive

Delete 'placeholder' file added in the RAMDisk by mistake in v1.0

Disabled device check

v1.0:

First release.
[LG G2 Mini] mobiusm:
MY POST
[LG G2 Mini] cahiri0:
Oh, was not expecting this. What a pleasant surprise. Thank you.

Perhaps you could add spectrum support, you can find more info in here:

https://xdaforums.com/android/apps-games/app-spectrum-kernel-manager-users-t3601542
[LG G2 Mini] Vagelis1608:
Should be fairly simple to implement.

However, since this is a ramdisk mod, you can add it yourself using Android Image Kitchen or the injector in the third post on that thread. Be sure to set the correct frequencies.

That way, you will have it before I push an update with it implemented.
[LG G2 Mini] cahiri0:
I flashed it after release, but after new system build clean flash I could not find time to make new profiles, as they are empty in injector. Hell, lately I can't find time to update system, I flash new one every 4-5 weeks.
[LG G2 Mini] eicrag123:
is it working on RR6 ?
[LG G2 Mini] Vagelis1608:
No. Only Nougat ROMs.

So, not RR6. But, if upgrade to RR7, then you can use it.
[LG G2 Mini] Vagelis1608:
Hotfix release out!

v1.0.1 (hotfix):

Fix faulty frequency in IntelliDemand (two_phase_freq)

Tuned IntelliDemand and IntelliActive

Delete 'placeholder' file added in the RAMDisk by mistake in v1.0

Disabled device check

If you use an app that applies all values by default and you use IntelliActive or (especially) IntelliDemand, then force it to reload the new values for tunables.
[LG G2 Mini] berraffarouk15:
tryin to install it tells me unsupported device ? like is this for 620 or 618 ?
[LG G2 Mini] Vagelis1608:
I disabled device check in v1.0.1 and reuploaded it.

Download the v1.0.1 zip and let me know if it works.
[LG G2 Mini] berraffarouk15:
okay i'll give it a try now thnx :D
[LG G2 Mini] berraffarouk15:
installed fine can u tell me which kernel manager u use ?
[LG G2 Mini] Vagelis1608:
I use Kernel Adiutor.

Also, which variant do you have (D620/D618)?

EDIT: Apply on boot has some issues (some settings don't get applied). To fix it enable the 'Script' option in Kernel Adiutor's settings.
[LG G2 Mini] berraffarouk15:
okay thnx, and i hv d618 and ca i know if there is a kernel manager that whne installed to system apps it appears in the stock settings menu i mean like magisk does and supersu and other ,,,, u get me ?
[LG G2 Mini] Vagelis1608:
Oh, I get you...

That's one of the reasons why I use Kernel Adiutor.

(This is on RR7)
[LG G2 Mini] wild_fire:
OC?
[LG G2 Mini] Vagelis1608:
According to [MENTION=6173631]mobiusm[/MENTION] , the max and min frequencies are locked on the hardware level.

As such, overclocking and underclocking are impossible.

Well, unless you replace the actual CPU, so yeah...

He can correct me if I am wrong.
[LG G2 Mini] wild_fire:
Umm... But didn't this one guy make a kernel that oc's the CPU to 1.6ghz? It was for cm12 I believe...
[LG G2 Mini] Vagelis1608:
He did. I don't remember his username, but the kernel is called Kool-Aid.

However, [MENTION=6173631]mobiusm[/MENTION] said that OC is impossible and that that guy's OC didn't really work.

He knows better than me and I have no way to prove him wrong. As such, I believe him.
[LG G2 Mini] wild_fire:
Alright... Seems fair enought...

Thanks for the info ;)
[LG G2 Mini] berraffarouk15:
Ma man thnx u get me bro :P m on the same ROM and i prefer this feature okay i'll make sure to install it later

---------- Post added at 02:04 PM ---------- Previous post was at 01:19 PM ----------

hey can you please talk us about those new gov and what they does ? and other gov if u like please
[LG G2 Mini] Vagelis1608:
https://xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957

This covers it.

IntelliDemand is 20. IntelliActive is 29.

I use IntelliActive, but IntelliDemand is also good.
[LG G2 Mini] kasa ssg:
is it normal for intelliactive to be so laggy?
[LG G2 Mini] Vagelis1608:
What version are you on?

That is why I tuned it in v1.0.1.
[LG G2 Mini] kasa ssg:
I'm on v1.0.1, scrolling is laggy as well as other animations. intellidemand or ondemand or interactive doesn't have any issue whatsoever.
[LG G2 Mini] Vagelis1608:
It's good for me...

Disable apply on boot for whatever kernel manager app you are using then reboot. The governor should reset to conservative. Then set it to intelliactive.

That should force the app to use the new tunables I set in v1.0.1

If that doesn't work, delete the data of the app, reboot and then set the governor to intelliactive.
[LG G2 Mini] berraffarouk15:
amazin if u could do me another favor how bout the other configurations like min,max frequency, specially with this audiator kernel ?? okay
[LG G2 Mini] Vagelis1608:
Min 300MHz, Max 1190MHz

Which are the actual min/max frequencies.

Not much to it...
[LG G2 Mini] Tomekpedal666:
After reading the comments, I'm suprised... I didn't know, that overclocking this device is impossimble because hardware lock... Is any way to skip this or something to make overclocking possible? U know, I'm asking, because this LG model still having potential and more CPU frequency would make this phone yet more powerful :D Nevermind. Is there some higher performance after flashing your kernel? :) P.S sorry for bad english if you not understand some part of my comment :P
[LG G2 Mini] mobiusm:
It's not a lock that you can "break" or something. The processor physically just can't go higher or lower on the clock, that's it. It's not designed for any of that capabilities.
[LG G2 Mini] Vagelis1608:
MobiusM covered the OC question.

As for the performance one, I use the intelliactive governor with IntelliPlug enabled and set to Conservative.

It gives me great performance and battery life.

Remember, only one hotplug should be enabled at a time. So disable MPDecision if you are gonna enable IntelliPlug or (spoiler!) (soon to come) Alucard.
[LG G2 Mini] Tomekpedal666:
Thanks guys for explaining and tips for kernel using :D Thart was very helpful to me :) Last question , GPU also have that phsyical lock as CPU? :P
[LG G2 Mini] Vagelis1608:
I believe so.

[MENTION=6173631]mobiusm[/MENTION] can clarify.

EDIT: MobiusM says it's possible. I will look into it.
[LG G2 Mini] mobiusm:
Some GPU stuff is tweak-able, yes.
[LG G2 Mini] Tomekpedal666:
I saw one time stock lollipop Kernel with overlock to 533mHz, but i thought that was fake tweak like in Kernel with pseudo CPU overlock for CM12.1 xd so, you can try to contact with the author of modified stock lollipop Kernel and then maybe you can do much better Kernel than this (but of course I don't mean to tell you that this Kernel sucks or somethin' xD)
[LG G2 Mini] Vagelis1608:
I am working on something and I would like the help of someone with a D618.

I would like a specific file: /system/build.prop

Just pull it, zip it and upload here (attach) or on some file hosting service

It doesn't matter if you have the kernel installed or not.

EDIT: I think I figured out something that doesnt need it. So never mind.
[LG G2 Mini] Vagelis1608:
New version is out!

v1.1:

GPU Overclocked to 533MHz (from 450Mz)

RAM: Added 133MHz (UC) and 566MHz (OC)

Power Suspend Mode v1.5

Alucard Hotplug

All RAM frequencies are tied to the CPU frequency. 133MHz to 300MHz and 566MHz to 1190MHz.

As for the hotplugs, only one can be enabled at a time, and that includes MPDecision. So, in order to enable one, the other two must be disabled.
[LG G2 Mini] kasa ssg:
I don't know if it's a placebo or not, but with the overclocks the UI fluidity is great now, multitasking is faster. Nice work :D
[LG G2 Mini] Vagelis1608:
They should have improved.

I wasn't sure that the improvement would be noticeable, but it's certainly there.
[LG G2 Mini] Tomekpedal666:
I noticed that fast charge is not showing information the phone is charging with fast charger. I've connected original LG Fast Charger with Fast Charge v2.0 support, and my phone is showing me that it's charging with 5 volts ans 800mAh. Do you know what may be wrong with that? Same fast charging is working, it's giving me about 2-3% per two minutes. EDIT: Fast Charging isn't actually working.
[LG G2 Mini] Vagelis1608:
Use an app called Ampere to see the current the battery is accepting.

On percentages below 70%, it should show over 800mA.

The lockscreen counter shows the limit the kernel has set on the current it accepts. However, when Fast Charge is enabled, that limit is bypassed without being disabled. As such, when an app tries to see the current limit it sees 800mA.

P.S.: Yes, you have to enable it on every boot. I use Kernel Adiutor, which does it automatically, once you set it to. There are other ways to do it.
[LG G2 Mini] Tomekpedal666:
Honestly I can't use fast charging for everyday because I don't have fast charger and tried to use that when I was visiting my cousin, he has fast charger xd But thank you for information that this function is actually working ;)
[LG G2 Mini] Vagelis1608:
Just get any charger that outputs over 1500mA and you are good. No need for a "Fast Charger".

They are fairly cheap.
[LG G2 Mini] Tomekpedal666:
Oh, good to know :D I also have noticed somethin' about the Kernel. When I set CPU controller to "Intelliactive" and hotplug to "Intelliplug" my phone is working much lower than stock ROM :/ on AnTuTu score is a little more than 6 K - so terrible. Can you tell me what am I setting wrong? I'm using Kernel adiutor
[LG G2 Mini] Vagelis1608:
I run a couple of benchmarks myself, with AuTuTu:

Intelliactive with Intelliplug set to conservative: a bit over 8k

Performance with Intelliplug set to performance: a bit over 23k

Honestly, I tuned Intelliactive and Intellidemand with battery life in mind.

Use Kernel Adiutor to change the tunables.
[LG G2 Mini] Tomekpedal666:
So Intelliactive is recommended for no-intensive using i guess? Personally I tuned Interactive with Intelliplug and it's working pretty good and also battery consumption is lower when I set frequency to 300mHz while phone is sleeping. I didn't set CPU controller to Performance because I didn't know if that could make my phone unstable. Thank you for your advice [MENTION=4849551]Vagelis1608[/MENTION] :)
[LG G2 Mini] cahiri0:
[MENTION=7769799]Tomekpedal666[/MENTION]

You need to try few settings, I had terrible performance and battery drain when running Alucards hotplug with intellidemand.

But intellidemand + intelliplug set to balanced scored like this:
[LG G2 Mini] Tomekpedal666:
Okay then, I'll try that. I had bad performance on Intelliactive with Intelliplug but I haven't try Intellidemand yet, good sugestion :D

---------- Post added at 03:08 PM ---------- Previous post was at 02:46 PM ----------

My score isn't as high as yours but it's also good I think. I feel that my phone is working much better. Thank you so much =D
[LG G2 Mini] dibik:
why fast charging works only from 0 to 70%? after 70% it charges slowly.
[LG G2 Mini] DrAcula04:
It's because of the battery. When it gets more full you need more effort to fill it. It's not continuously like putting water in a glas, but rather like compressing air.
[LG G2 Mini] Vagelis1608:
That's... surprisingly accurate, actually.

Well, that, and the fact that the device (probably a dedicated chip, but I don't know) cuts down the power intake. Perhaps, because of that?
[LG G2 Mini] Vagelis1608:
New version released!

v1.2:

KSM: Duplicate page check added

Simple GPU Algorithm (by [MENTION=3332811]faux123[/MENTION] )

Script to force stop MPDecision (can be disabled in /data/vkx.prop)

About the page check:

On Android, because of the way processes are forked, some pages end up getting scanned multiple times in the same scan cycle.

However, there is no gain from that.

Now, a page that has already be scanned will be skipped.

Simple GPU Algorithm provides some basic control on how the msm_andreno_tz GPU governor scales frequencies.

MPDecision behaves in way that I consider 'bugged'.

Basically, it disables KSM, locks both min/max CPU freq to 1190MHz, and (the one that I really consider 'too far') it will renable itself when disabled.

As such, I wrote a script to force it to stay disabled.

You can renable it by changing 'persist.mpdecision.stop=1' to 'persist.mpdecision.stop=0' in /data/vkx.prop and reboot.

Also, disable MPDecision in Kernel Audiutor (or whatever kernel tweaking app/script you are using) to make sure that it wont renable it.

Note for Magisk users: You probably have to reboot twice after changing it (that includes the first flash of a version with this included).

Furthermore, I should mention that I included a build of busybox compiled by [MENTION=4544860]osm0sis[/MENTION], taken from here: https://xdaforums.com/showthread.php?t=2239421
[LG G2 Mini] builderkage:
Do you think you could add support for D610 device? Or i can use the D618 file? Cuz are the same i think just D610 isn't dual sim
[LG G2 Mini] Vagelis1608:
I don't know.

Make a backup, then flash it.

Then let me know if it works.
[LG G2 Mini] builderkage:
Seems like it's working, going to try a configuration posted few comments ago
[LG G2 Mini] Vagelis1608:
Make sure the camera is working.

Everything else should be good.
[LG G2 Mini] dibik:
is there any custom kernel or any way to enable fast charging on RR Marshmallow ?

I have a device which is still on Marshmallow because of xposed and it would be very nice to have this feature on it.
[LG G2 Mini] Vagelis1608:
[MENTION=6173631]mobiusm[/MENTION] gave me build of his kernel a while ago, with fast charge.

I will look for it.

If I can't find it and I have the time, I might build it myself.

However, all that may not be necessary:

https://xdaforums.com/showthread.php?t=3034811&p=73462376
[LG G2 Mini] dibik:
thanks, I really appreciate your efforts, you and mobiusm and all the other developers are really keeping this device alive :)

and that's good news, hope xposed will be official for nougat soon :victory: :victory:
[LG G2 Mini] builderkage:
Its working fine, just on settings Kernel version says unknown, but its no a problem i think
[LG G2 Mini] Vagelis1608:
Do you want to see a magic trick?

Tap that "Unknown" thing...

I noticed it some time back.

I don't know why it does that.

I believe that the "problem" is at the settings app and not the kernel.

I don't see why it would cause any issues, though.
[LG G2 Mini] kerimcem:
thank you....good kernel.....best perfonmance..
[LG G2 Mini] Vagelis1608:
New version released!

v1.2.1:

Included kernel-side patch for BlueBorne vulnerability

Enabled LZ4 compression for ZRAM (thanks to [MENTION=5130627]likeadracula[/MENTION] for recommenting this)

Keep in mind: In order to be protected from the BlueBorne vulnerability, you must flash a ROM that is patched for it.

The latest version of LineageOS is patched and a new version of ReserrectionRemix Nougat will be released soon (with the patch included).

So, update your ROM, everyone!

As for LZ4 compression in ZRAM, LZ4 has a better compression rate and has several more optimizations than LZ0.

(I am not sure that it was using LZ0 before, but I think that is the case)
[LG G2 Mini] thetransit123:
hi [MENTION=4849551]Vagelis1608[/MENTION], im new in this phone but i have a problem, i flashed yesterday your kernel in my d618, but when i connect to the pc, and select transfer files, my pc (windows 10) crashed, appear the blue screen of error and then restart, i try twice but it happen :( , i have resurrection remix (nougat)
[LG G2 Mini] Vagelis1608:
Remove LG's drivers and get Google's
[LG G2 Mini] likeadracula:
New updates will come for the kernel soon!!! :cyclops:
[LG G2 Mini] Vagelis1608:
Spoilers... :)

:p
[LG G2 Mini] DrAcula04:
You are working together? :)
[LG G2 Mini] Vagelis1608:
Maybe...

Still, spoilers. :)
[LG G2 Mini] likeadracula:
[MENTION=7960501]eicrag123[/MENTION]

Looks like that this amazing kernel runs on Marshmallow very well !!!!

I make a test but we are not responsible for damaged phones :P

See the image below:
[LG G2 Mini] iMaterial:
If you want to use the kernel but don't want the overclocking settings and tuning? Is that possible?
[LG G2 Mini] Vagelis1608:
I suppose you can set the GPU Max to 450 MHz in Kernel Adiutor (or any other kernel tuning app/script), but I don't see why you would want to do that. As for the RAM, you can't do anything.

And, what do you mean by 'tuning'?
[LG G2 Mini] iMaterial:
If you don't want to overclock, the tuning I referred to was any other tweaks done in this kernel, maybe now or in any future release. I'm quite happy with the speed as it is, as I come from a single core smartphone to this one. :D
[LG G2 Mini] Vagelis1608:
There is no OC to the CPU (processor).

The OC is at the GPU (graphics processing unit) and the RAM (a little bit).

If you do want the tweaks of the kernel, why do you want the kernel? Why don't you stick with the one included in the ROM you flashed?
[LG G2 Mini] iMaterial:
Just for the new features maybe, NTFS perhaps. In the future it might even include exFAT. Yeah, sure I can stick to the one I have, I was having some problems with the phone, that's all. Kalispera! :silly:
[LG G2 Mini] Vagelis1608:
Most features can be enabled/disabled with a kernel tweaking app/script (like Kernel Adiutor)

Honestly, I recommend using them and setting them up according to your liking.

What was the problem?

Also, I checked my config. exFAT support is enabled.

Καλησπερα :)
[LG G2 Mini] Vagelis1608:
New version released! :D

v1.3:

KSM: Tuned default parameters (still, I recommend disabling it)

GPU: UnderClock to 100MHz

Replaced Qualcomm's thermal driver (Thermald) with Intelli_Thermal v3.0 (by [MENTION=3332811]faux123[/MENTION] )

Fixed ROM's init.d (Enforcing SELinux blocked it, now it works)

RAMDisk script: IntelliPlug is now automatically enabled when MPDecision is force-disabled

ZRAM: The RAMDisk-based script now sets it's size to 500MB (can be disabled in /data/vkx.prop: change persist.use.big.zram )

Swappiness is also set to 100. If you use a swap file, then this MUST be disabled (/data/vkx.prop: change persist.using.swap.file). Otherwise, problems will arise. You have been warned!​

KSM is a battery-heavy process and the amount of memory it saves is very small.

I recommend to disable it. It's just not worth the battery it consumes.

GPU min freq decreased to 100MHz.

Intelli_Thermal allows you to choose at what temperature the thermal driver will start throttling (limiting) frequencies and shutting down cores.

The ROM's built-in service that runs init.d (sysinit, in init.cm.rc) does not include a 'seclabel' and, as such, SELinux (when on Enforcing) blocked it.

To fix that, the installation zip (v1.3+) disables that service and a modified one (with a 'seclabel') is run from init.vkx.rc

init.d now runs after my script. So, any changes it does will overwrite the ones from the RAMDisk script.

IntelliPlug now gets activated when MPDecision is force-stopped because (previously) there was no hotplug enabled by default.

As for the ZRAM, the 250MB default is too small and fills up quickly. 500MB should last a lot longer.

Remember to disable swappiness auto-set to 100, if you use a swap file! (/data/vkx.prop: change persist.using.swap.file)

If you don't use a swap file, you should leave it as is.

Huge thanks to [MENTION=5130627]likeadracula[/MENTION] for his help on these features and for (accidentally) figuring out that this kernel works on MM!

All MM users are welcome to try it.

likeadracula didn't find any bugs. So, everyone who tries it on MM, please report if it's working as it should.

EDIT: Here are the Low Memory Killer values that likeadracula recommended. They are great, I must say.
[LG G2 Mini] GriMarkz:
I use LineageOS 14.1 on my device, but the battery seems to drain rather fast (not in standby, but while using it), can this kernel help me with that?

I know i am a little Off-Topic, BUT if not this what should i try.

Edit: I forgot to mention, in settings it looks like the screen is draining most of it. And on standby it's ok... It isn't drained too fast. But I get short on-screen time.
[LG G2 Mini] Vagelis1608:
It might help.

Try it and let me know.

Also, try using a lower brightness level.