yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] ThePiGuy:
Ok fair enough. Thanks for all the help. I have been using LOS for about a week now with no issues on enforcing, so I'm going to go for it and if I have any issues, I'll share logs and see if we can sort it :)
[G4 Android Development] Raul Fresh:
Hi there, I'm with "ROM V30 PORT V2.2 [Full UX6+]" (Nougat) and I don't know which one must to be install

"LOS based" or "No big cores" ??
[G4 Android Development] Minto107:
Use your brain lol. Is this ROM LOS based? Do you need to disable big cores? Just think. It's not that hard. If you can't then you shouldn't have unlocked your phone lol
[G4 Android Development] Raul Fresh:
Thanks,haha You're right.

BTW, Besides this, which other rom is good?

or do you consider that this is the best in Nougat ?
[G4 Android Development] kessaras:
v30 was never released officially.

v29 is the latest for g4 (and wasn't even officially released, lol, Thanks LG.)

v29 is the one you should be asking and if you want a v30 ui just install the v30 theme in playstore.

i don't understand why people flash a rom just for the ui since you can even root and change the ui to whatever. you could make it look like oneplus, samsung, htc, etc.
[G4 Android Development] Astrako:
That rom is not only a theme. That rom has the full UX+ from LG, if you know what is this. A theme never will replace this since apps always will be the same.
[G4 Android Development] kessaras:
yes , im just not in the look part as i never was.

im more in the coding part and "how it works". i do not care how it looks.

and when we say its full ux we should also say whats different.

so whats different in v29 ux and v30 ux ?
[G4 Android Development] Astrako:
You never will have V30 UX6+ with a theme in G4 stock Nougat. You can apply a theme and this will change some icons/colors, like any other theme. But Camera, Music app, etc will be always the same as in stock. And finally to have all V30 apps working properly, they need also V30 framework code and lg resources.
[G4 Android Development] kessaras:
Yes but what's different is the question here besides the UI.

Ux it means user experience.

For example one difference I know of when I saw it , is the long press on reboot that rebboted in recovery.

That's a user experience difference.

To rearrange icons and menus is UI again.
[G4 Android Development] ThePiGuy:
Following on from this, could the wifi disconnecting randomly be due to a dodgy selinux policy being incompatible with enforcing?
[G4 Android Development] kessaras:
what wifi disconnection ? in O its fine and in AOSCP N too.
[G4 Android Development] ThePiGuy:
Never mind - I went through the pain of updating everything and rebuilding (seems painfully slow in my VM) and now it is working fine (at least better than it was).

When I charge it, I get a "Charging slowly" message with every charger (I haven't tried with a quick charger). Is this to do with the kernel or the device tree?
[G4 Android Development] iannisb:
governor booting

When the device boots it always uses Conservative governor (BIG) instead of the one i choose in kernel auditor .Can we change that?
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION] I have been having an issue where my G4 says it is charging slowly no matter what charger I use (with the exception of qcom quickchargers - I don't have one of these to test). Having looked around, it appears to be in the drivers/power/qpnp-smbcharger.c file.

The lines affected are "rc = power_supply_set_voltage_limit(parallel_psy, chip->vfloat_mv + 50)"

and "rc = power_supply_set_voltage_limit(parallel_psy, vfloat_mv + 50);" (lines 2430 and 3150 respectively)

Other devices with the msm8992 chipset have the lines

"rc = power_supply_set_voltage_limit(chip->usb_psy, (chip->vfloat_mv + 50) * 1000);"

and "power_supply_set_voltage_limit(chip->usb_psy, chip->vfloat_mv * 1000);".

Should we be multiplying by 1000 as well? (I would try it, but it is in power and so I don't want to mess something up if this is not the problem)
[G4 Android Development] Minto107:
What ROM do you use? I have just charging or fast charging when using Samsung's AFC
[G4 Android Development] ThePiGuy:
LOS 14.1 with titan kernel. Could it be a device tree issue?
[G4 Android Development] Minto107:
Not sure I'm not an expert but I don't think I've ever had that message maybe once, then LED blinks red instead of glowing/staying red but that was issue with my battery, after complete discharging it went away
[G4 Android Development] ThePiGuy:
Having looked further, the device I am looking at (xiaomi msm8992 kernel on the LOS github) has our lines and redefines them as I stated above a few lines further down (all the other LOS devices do it), but the motorola msm8992 nougat repo in the cypher os github does it the same way Titan kernel does it here. I'd be surprised if it was OS specific though - I thought kernels were independent of the OS (except for the interfacing versions - must have the correct version of the kernel for the android version)
[G4 Android Development] Minto107:
Then dunno, maybe try my method by completely discharging the battery and then charging it slowly(with some sh1tty charger for example) BTW did Xiaomi really have SD808 based phone? That's why my phone is recognised by Google as Xiaomi Mi6 lol
[G4 Android Development] ThePiGuy:
I'll give it a go (I think I have done that before though - admittedly on the LOS kernel which had the same issue) . Having looked further at this LOS patch (https://review.lineageos.org/#/c/182677/), it appears to me that we are simply missing this patch (I'd still like to hear from [MENTION=5461026]kessaras[/MENTION] first before I try it in case it messes something else up in the titan kernel).

Btw, Xiaomi Mi4S was SD808 :)
[G4 Android Development] Minto107:
Yep I checked that's weird that it's showing as Mi6 tho. Wow so many OEMs did phones on 'LG's' SD808
[G4 Android Development] kessaras:
yup thats the reason. On Tuesday when im back i will check it and add it
[G4 Android Development] ThePiGuy:
Ok cool so it should be safe for me to add locally now then (I thought it was best not to mess with the power settings without checking in case something went wrong :) )

---------- Post added at 04:07 PM ---------- Previous post was at 03:34 PM ----------

@kessaras one more thing to do with my battery - the gauge seems completely wrong - if I charge it up to "full" and then reboot it, it will drop to about 70% straight away. Could this also be a kernel thing?
[G4 Android Development] kessaras:
all kernel is like a "chain".

every "word" in c or c++ you see there it links somewhere else.

its better you wait until i do it if the cherry-pick fails to merge automatically the patch.

thats more hardware, battery related. Here when i reboot it still sais 100
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION] is NFC controlled by the kernel? I have noticed it is not working on my LOS build, but I know it is working on your AOSCP build. If it is controlled by the kernel, what log would I need to get (I assume it would be an SELinux denial)
[G4 Android Development] kessaras:
Ofc but nothing changed there.

Nfc changes are in device tree. g4-common.
[G4 Android Development] ThePiGuy:
Git diff shows my LOS NFC folder in g4-common is also identical to your AOSCP one so it must be a sepolicy (I think). What log do I need to get inside permissive mode to fix it?
[G4 Android Development] kessaras:
adb logcat|grep denied

if you log all denials on boot until you reach homescreen that should be enough
[G4 Android Development] ThePiGuy:
I have done it (output here https://hastebin.com/dogohapete.hs)

I can't see anything to do with NFC though
[G4 Android Development] kessaras:
That's useless. Are these the only denials you get on boot ?

It can't be. There is no way these policies are so perfect.

Your log can't be since early boot until homescreen.
[G4 Android Development] ThePiGuy:
To do it again, do I literally need to restart, unlock screen and repeat (I am on windows so I assume the command adb logcat | FINDSTR denied also works), or do I need to clear something

---------- Post added at 12:16 PM ---------- Previous post was at 12:11 PM ----------

Having redone it, I still got about the same (https://hastebin.com/opimedebiq.hs)

EDIT: Having done all this, I have just realised that NFC should work in permissive mode (which it doesn't), so maybe something else is the cause
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION] on a different topic (having asked on the LOS forums, it turns out NFC problems are isolated to my device, so I am assuming it is a hardware issue), about the charging I have noticed that when I charge my phone from my PC (which I am fairly certain is slower than my wall charger), it says "Charging", whereas any wall charger I use says "Charging Slowly". Not sure if this is any help, but I thought I would share it
[G4 Android Development] ThePiGuy:
[MENTION=5461026]kessaras[/MENTION] thanks for the battery update (all seems to be working well on the battery charging speed notification now)

Unfortunately, my phone is now running really hot and draining really fast now (plugged into my PC, it is still discharging even when the screen is off and the phone is not being used). Running top in the adb root shell, I get the output https://hastebin.com/ugemovaqik.erl (there is more, but CPU usage for those is 0%)
[G4 Android Development] grantdb:
Just a quick confirmation that this great kernel(v1.8) is working on my h812 extremely smooth, great battery, low heat and no issues to be found!

Thanks a bunch!
[G4 Android Development] Fipselinho:
the gpu min frequenz is set at 300mhz? cant get lower, tried different apps.

stock kernel its 180mhz
[G4 Android Development] Minto107:
Because first step is set to 300. If you set it to 180 then it's fine
[G4 Android Development] kessaras:
i've said it may times but no-one pay attention.

same thing it happens with cpu, it happens with gpu.

when the load is zero the monitoring freezes. i do not want it to monitor a zero load and an idle frequency. its a waste a sources.

gpu gets to 180 only on 0 load to it which is not monitored.

otherwise if you set another gpu governor that will force the gpu to go down more aggressively , you will also see that 180 frequency because there is still a load to gpu when it goes down to 180.

And guys stop thinking so much about stuff that i have already taken care of since months ago. The development part is mine.

What a user should do is just enjoy his phone and report a bug. Well.... i already know the bugs we have and are not kernel side.
[G4 Android Development] grantdb:
Just wondering about the v4l2 error spamming the log when switching bluetooth, anything to worry about?

Titan_kernel_H811_N_v1.8 on stock v29a nougat h812 UsU

Thanks!
[G4 Android Development] kessaras:
nothing to worry about. its a missing module and just like it sais, its switching to legacy.

Not something i did. it was just never there to begin with.
[G4 Android Development] kurdt666:
lg h815T UsU v30 port rom (v29a)

test all version of kernel, issue:

pebble watch app freeze after screen go dark (if not charging) resume working only after relaunch application manual.

With stock kernel no problem.

Try add app to whitelist, move to the system app, change governors, still the same. On h811 the same (bye special for that h815 coz think h811 has Bluetooth issue, but seams that something else. )

i like you'r energy eficient and fast kernel!
[G4 Android Development] kessaras:
its good that it even works.

You need an UsU patched kernel version.

[MENTION=5545101]steadfasterX[/MENTION] will propably build one if he hasn't already. Since LG stopped development this wont be a problem. It's only one build after all, it won't get any update.
[G4 Android Development] 99mike199:
Did someone tried this kernel on bootlooped phone after update ? Last time I tried it created bootloop.
[G4 Android Development] Minto107:
Kernel can't create a bootloop. It's either you flashed something wrong or your phone was already a sh1t(thanks to your usage) and it bootlooped as you have already beaten this phone to death
[G4 Android Development] 99mike199:
Once i had bootloop, I sent phone to official LG Service and they only flashed system, but they should change motherboard o think (not shure). Then I rooted phone, use long time Freedom OS. Then I wanted to try titan kernel and flash it. It created bootloop so I restored last settings, then Oreo with Titan kernel came out and I wanna try it and it did the same thing. Only with this kernel. Not any other. When I first tried to solved some peoples had this problem too. So I thought is cause of kernel.
[G4 Android Development] kurdt666:
Heh) kernel works very stable, fast and battery_lite)

when install UsU patched kernel version - got continuously "intarface error" message

kessaras Can you say what method you use to freeze app after screen dark? (maybe i can find a way to cancel it, or make white list)
[G4 Android Development] kessaras:
you need adb root to freeze an app when your screen goes dark. impossible in a stock based rom.

normally we use adb root

and we adb pm list packages -f to list all installed packages

and we adb pm disable <app package name>

EDIT:

maybe adb shell

su

pm list packages -f (to find the package you want to freeze)

pm disable <package name>
[G4 Android Development] krutik66:
Hello is normal when play some games for few minutes temp of procesor and graphic is 75°C.phone is hot. Play clash of clans. Any good setting for this kernel

Odesláno z mého LG-H815 pomocí Tapatalk
[G4 Android Development] paokara04:
kernel

hello i dont know if i will do a stupid question but can i install this kernel while i have chyper os on my lg g4?
[G4 Android Development] kessaras:
no. Titan is default kernel anyway in g4. there is no other kernel up to date. you r already using it.
[G4 Android Development] grantdb:
I use intelliactive on both little and big underclocked 2 steps in Auditor. And FIOPS at 1024kb on both storages. Long battery life and amazing performance.

Cheers

Edit: with intelliactive I disable cpu boost
[G4 Android Development] Chris_Za:
Hi, I' ve tried Cypher os for my h815 and After many tests, the phone crash and go to bootloop every time After some freeze (test some version of twrp,flash firmware v29a, many version of Cypher os stable and not ecc) , when I install the nougat rom v30 I have the same problem after I flash this Kernel, Now I have nougat v30 rom without titan Kernel and it work very well from 2 weeks.

I think the problem is Kernel because Cypher os has It by default and with every rom I've tested, the freeze and crash before bootloop are the same. Can You help me? Do you have some advice?

Thank You
[G4 Android Development] saksoo:
I am using latest v30 with the old outdated titan kernel (1.7 and 1.8 both work), never had problems still working fine much better than stock. make sure you use the stock titan version.
[G4 Android Development] Chris_Za:
Thank you, but I tried the stock 1.8 version on nougat v30 and I have the same problems I had with the Cypher os Oreo with titan Kernel (crash 1 time and reboot, crash another time and go into bootloop)
[G4 Android Development] saksoo:
are you on 815eu? try to clean install everything or a kdz, this should work without issues.

You tried Oreo with tital kernel you mean N kernel?? because cypher is already titan no need to install anything.
[G4 Android Development] Chris_Za:
Yes, I'm on 815eu, I thought it was enough to wipe all with twrp and flash ROM, Kernel , bootloader ecc clean... Ok I try this in this day, thank you :)

No but Cypher os has his titan Kernel stock and I have the same problems with nougat v30 with titan and I think the problem in the same case are the Kernel
[G4 Android Development] saksoo:
It is enough if you don't confuse things and mess up your system. flash v29 full stock (the one that does not touch your recovery) and then try flash v30, boot it, take a backup, and then try the kernel 1.7 stock.

I don't understand what you are talking about cypheros and titan. cypher is working with titan no need to instal more things and no need to bootloop.

v29 bootloader is required eitherway.

are you sure your lg is alive and did not died?
[G4 Android Development] popy2006:
Is v1.7 better than v1.8 for stock v29a?

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] Chris_Za:
sorry for the misunderstanding but I probably can not explain myself clearly:

First custom rom I've tested is Cypher os (oreo version) , I had some problem after I installed It. Next I installed nougat v30 and when I flashed the titan Kernel I had the same problems.

The problems are crash in every cases two times and next crash the phone is gone into boot screen for many minutes and start into twrp After a new reboot. When it happened I can't unable to start the system.

When I installed clear rom v30 without titan Kernel the phone has no more problems. I think the problem is Titan Kernel because in both cases the phone did the same thing....
[G4 Android Development] raptorddd:
to me 1.7 more tame at frequencies then 1.8 on h811 might be differente on h815.
[G4 Android Development] grantdb:
For me I found 1.7 more aggressively used little cores and 1.8 more aggressive on big. Using 1.8 underclocked big cores working excellent.
[G4 Android Development] raptorddd:
yes the least you use big cores the better battery and cooler phone.

1.7 little cores are more agressive while big only when needed.

1.8 little cores barely do anything even but just opening a pic and zooming they should be used for small tasks but its the other way around big cores a used instead of little.
[G4 Android Development] owlery_hk:
Has cpu hot plugging been implemented?

my big cores seems to be on all the time.
[G4 Android Development] grantdb:
Just noticed this when the 1.7 was released. Going to use 1.6 and see how that goes. Just cause I am bored.

Edit: 1.6 had some display anomalies when plugging in charger. Might not be a issue with the kernel but it only happened with that version. Sticking with 1.7 as it is my personal favorite.
[G4 Android Development] krutik66:
Which version you use 1.7 or 1.8 and root metod supersu or magisk? Its strange but when i have magisk and tried both kernel version i have some bugs. Reflash clean rom V30 port only no root no custom kernel and for 4 days no bugs.bugs are increase brightness and decrrase sleep phone and indicator says 75% but brightness was 40% second i cant go to settings from notification panel. But now without root or custom kernel is good

Odesláno z mého LG-H815 pomocí Tapatalk
[G4 Android Development] popy2006:
Can you please post your settings?

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] grantdb:
That's odd I don't have those issues on either version and I use Magisk.

---------- Post added at 11:10 AM ---------- Previous post was at 11:07 AM ----------

I did
[G4 Android Development] raptorddd:
no hot plug.

yes they are suppose to be on its less lag at times.

if you want big to off but you may feel slow in kernel auditor in thermal select core and it turns off big cores.

its good to be on all the time. at 384ghz but higher more battery drain and heat.
[G4 Android Development] krutik66:
Hi underclocked two freq down for big or both little and big. Thx

Odesláno z mého LG-H815 pomocí Tapatalk
[G4 Android Development] grantdb:
I personally underclocked big cores to 1536 and little to 1248.
[G4 Android Development] mjheid.muc:
[MENTION=5461026]kessaras[/MENTION]

What does "blu_active" do?

You asked for testing and it works without problems for a day know. With normal battery usage.

However, I'm still on v2
[G4 Android Development] kessaras:
nothing. i only want feedback. how it goes.

Its the best governor made by the best eng.stk and modified by me for our device.

Use conservative for big cores, i tuned it for that use (v4).

This combo is the most stable less battery drain without lags
[G4 Android Development] grinch247:
Have you changed Selinux state from permissive to enforcing?

Where is this option?

Where may one find the stock N kernel?

---------- Post added at 09:13 AM ---------- Previous post was at 08:56 AM ----------

H811 SD card broken
[G4 Android Development] kessaras:
I forced it to permissive. Want me to turn it off ?

State reasons if you don't want permissive.

adb shell
su
cat /proc/cmdline

in there you see the command to force permissive.

getenforce

Prints status

EDIT:

sd,with v1 or v2 ?
[G4 Android Development] grinch247:
I see it's permissive...
[G4 Android Development] TOMPPIX:
nevermind... misread the instructions xD
[G4 Android Development] MaZier:
Can you implement sound control in this kernel like imperium one? I really need it
[G4 Android Development] gentr:
Kessaras

This is after clean install H-Rom G6 port and Titan kernel v4
[G4 Android Development] gentr:
I wait for some time and now phone is in great form:cowboy: thanks going to kessaras and for Astrako for helping to resolve this problem:cowboy:
[G4 Android Development] stefan.kurz:
Feedback:

BT doesn't work. No Connection to my car was initialized. Flashing your modified stock v7.5 solve the Problem.
[G4 Android Development] kessaras:
ok but i cant debug without log.

next time do logcat before you take a decision.

if you go to the doctor and tell him that you had a problem and you couldn't walk, goodbuy sir.

How is he going to help you ?

Everyday you do the same thing. Hi this doesn't work so i left.

Hi that doesn't work, i left. So what can i do for you then ? No log, no help.

Now what ? am i gonna buy a new media player for my car to have a bluetooth connection to fix your problem or are you gonna buy me one ? :D
[G4 Android Development] stefan.kurz:
I'll try to het some...sry
[G4 Android Development] doiutzu:
I tried conservative governor on the big cores and blue_active on the small ones. And this is what I got:

The big cores were at 864 mhz and 768 mhz even at 0% load

When I used blue_active for both big and small the big ones stood at lower frequencies most of the time.
[G4 Android Development] kessaras:
yes but blu is tuned to "up" at higher frequencies.

you want big cores to never work ? i did that for smoother ui. ofc you can set it to whatever you like.

the default setting is balanced for all uses.
[G4 Android Development] doiutzu:
I tested it, if this is what you intended I'll keep conservative on the big ones.

I was happy with blue active on both on v1 until this morning but it can get better :laugh:
[G4 Android Development] kessaras:
a lot better. i use v5 here already.

https://github.com/pavlaras/Titan-kernel-LG-G4/commits/Nougat

improved input boot, boost cpu, improved governors and i also found out how LG force pushes their settings on boot and ruin my work thanks to [MENTION=5545101]steadfasterX[/MENTION] again :D

so v5 is many steps ahead of v4
[G4 Android Development] stefan.kurz:
I installed catlog but how can i find the real log?
[G4 Android Development] kessaras:
Read a guide.... I'm not the "mother" of all xda ....

The way to do it is to take a logcat the moment that you have this bug so I can see what's going on.

If there is any chance I can reproduce this bug in home using other Bluetooth device someone inform me.
[G4 Android Development] kessaras:
Fully rewrote the whole blutooth driver. see if it works.

unzip and flash and test.

Give me feedback on that during 2 days. dont forget about me. i wanna know if i will merge those drivers with the main branch or not
[G4 Android Development] stefan.kurz:
Flash boot, recovery or system? Is it a kernel or a bt addon to the v4 kernel?
[G4 Android Development] grantdb:
I think this was explained by the OP that they are not on all the time it just shows 384 even when not in use.
[G4 Android Development] ~SUDHIR~:
flashed this kernel "Disable Big Core" On H815 Stock 7.0 ROM

facing heavy Battery drain issue

any other kernel should i flash for better battery backup ?
[G4 Android Development] raptorddd:
drain might be battery issue or rom issue. i suggest to clean flash rom again. theres no other kernel.