yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] hitardo:
People - like me - are saying that because... They are having issues.

Maybe it is because I have a custom ROM. Maybe it is due to some application. Or even one XPosed module.

I change some settings. I disable other services.

There are so many variables that is impossible to pin-point each one.

You need to analyse each case.

But I am glad you are having no issues :)
[G2 Android Development] saarxee:
Battery draining in 7.4.

only for me?
[G2 Android Development] hitardo:
I have the occasional battery drain, like I had today.

But, in my case, that is due to LG's (Smart Notice, Weather App, etc...) and Qualcomm's (SVI Setting, for example) own apps.

On battery stats it shows Android System and Operating System at the top, and only then Screen.

Usually, when Screen is not at the top something is wrong.
[G2 Android Development] berezker:
But why report this info to the dev if you're not using stock rom?
[G2 Android Development] hitardo:
It is stock-based.

I am using CloudyG2 v3.3, like many people here on this thread.
[G2 Android Development] wikowikowiko:
Hi, i got 2 freeze this morning.

Attached the logs.

Edit:

The first freeze was when i was watching movie on mx player. The phone restared itself.

The second was when it was in my pocket. The phone was unable to wake up with double tap or power button. The led notification was active though.
[G2 Android Development] Yoyo117:
7.4 is working good!

Reporting one freeze, maybe helpful:

afaics last_kmsg contains a BUG

https://drive.google.com/file/d/0BzYNRHEwQzVtRmxiTUdUdzRGX3M/view?usp=docslist_api
[G2 Android Development] tripii:
2 sudden freezes in a row. I don't know what happened, everything was working without issues. Maybe now the logs will be helpful

dorimanx_debugFirst.zip

dorimanx_debugSecond.zip
[G2 Android Development] dorimanx:
Rom bug, recents service, crashed kernel.
[G2 Android Development] qweewq22:
I have many freeze 7.4 .. Wake up 10% chanse to take freeze. Only long pw help. Sorry i go cm
[G2 Android Development] :
For people with freezes maybe go to Q&A and share which rom/mods you are using. Perhaps there is a common theme for you all? For me with cloudy 3.3 and xposed installed I now have 160+hours uptime and others have reported similar so I don't believe it is a direct kernel issue. Just a thought. ☺
[G2 Android Development] oTeMpLo:
It is a kernel issue.. At least for 802 30d. As there are no issues with stock kernel...
[G2 Android Development] dorimanx:
News Update!

Kernel 7.5

04/12/15

*Merged updates to memory and io global kernel defines.

*Set sweep2sleep to off by default in kernel. to fix always ON

after boot. now if user leave it ON in config, it's will be enabled

30sec after full boot.

*Fixed ondemand gov tuning that prevented usage of high OC freqs.

and speedup performance for all other freqs.

*Merged updates to sched core.

*Merged updates PM code.

*Reverted CPU QOS code that was merged from Nvidea kernel long time ago.

Found to be unstable with new cpuidle code.

*Reverted CPU relax code from Nvidea kernel, to gain stability in cpu code.

as we have 3.10.y sched core now.

*Merged updates to kernel futex code that allow faster code processing.

*Merged updates to time code.

*Merged update to SMP to prevent memory leak from hotplug driver.

*Reverted few changes to WIFI driver. now it's 99.85 stock. any wifi bugs!

Report to LG. i dont have answers for you.

*Merged updates to MMC driver from CM13.

*Disabled DMUX fast shutdown, possible bug hit on calls.

*Reverted HACK for modem no crash. was added to fix D805 modem, now we don't need it.

Seems it's was blocking modem restart and panic kernel with it.

*Updated all profiles! they will be reset on boot! do not restore your saved profile.

Just tune new one for your needs.

*Updated UKSM sleep limit to max 1000, no more can be set.

*Trying to fix F2FS with SELINUX ON. need to test.

This kernel should be even more stable than 7.4 that was great. for massive amount of devices!

We need to focus on this tests:

*Stability test (no reboots/freeze)

*CPU performance.

*Battery usage compared to 7.4

*WIFI operation.

*Modem restarts... (cell tower disconnect and connect by ROM order) like airplane mode ON/OFF

*F2FS DATA with selinux on! if bootloop! i need to see dmesg log! kernel boot without data too.

you just need ADB connection. and pull dmesg and mount output

and post txt file for me to inspect.

Request for F2FS debug goes to advanced users/devs only!

all the rest use EXT4. or dont enabled selinux with F2FS partitions.

Have fun :)

And for few people that scores in antutu is all for them.

here is compare lg g2 stock kernel. With my.

especially for other "senior member" that reached 49k with hacked beta antutu. Hahahahah....
[G2 Android Development] falconhawk81:
We do not understand why you 're still here....
[G2 Android Development] dorimanx:
use stock. spare me from this. i dont care. all great for me. so....:confused:
[G2 Android Development] khanjui:
"*Set sweep2sleep to off by default in kernel. to fix always ON

after boot. now if user leave it ON in config, it's will be enabled

30sec after full boot."

This made my day, thanks dorimanx!

Edit: Still on...
[G2 Android Development] krija:
It can be ROM issue. Maybe there is very important change/update which can't be handled with dori's kernel. What if everything is good with 30B, with other branded and modded ROMs and you are on 30D? Think little bit about that ;). Without 30D kernel sources it will be difficult fix your issues. For now you will need wait for next dori's magic. Patience ;)
[G2 Android Development] stroge:
Dori, did you change the default settings? settings in Dori app were reset by installing 7.5, but governor sample rate on master core tab was reduced to 30k instead 50k ,and as I see there are some changes on Cron tab as well.

Additionally, you said sweep2sleep is off by default. however I see the checkbox cheked in, and the function is on?

thx
[G2 Android Development] 60nine:
+1
[G2 Android Development] Nussi29:
Sweep2sleep is allready on in new kernel

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

V7.5 no WiFi issue anymore :)

I think that set country vendor code made it slower. It exists in driver source, but seems to be removed by LG due to their patched firmware.

EDIT:

Now testing USB audio connected to DAC. In earlier versions there was a 15% higher battery consumption when connected to USB DAC then on stock. Now drain seemed to normalize. But I'll report when some time has passed.

EDIT2:

For real work benchmarks try PCMark app. I don't look to Antutu as it can be detected by ROM/Kernel and HW pushed to ultra mode.

PCMark has real life benchmarks like web scrolling, picture editing, text editing/copying (I was amazed that when app copied text it was left in my clip tray ==> that means it's real bench, not some hack). :)

Then look at real results compared to stock :)
[G2 Android Development] sheikhramnuj:
V7.5 with performance profile :D Thanks master another victory!
[G2 Android Development] stroge:
<OT> Fun fact: i ran antutu with extreme battery and extreme performance profile as well and got 7k difference, so hw was not pushed to ultra in case of battery profile :D </OT>
[G2 Android Development] dorimanx:
All good. See ramdisk git for last changes.

Sweep2sleep is enabled in config by default with all profiles.

But when kernel boot, driver is off.

And waiting for dori app to tell it to work or not.

If you leave it on, then its will be online 30sec after boot.

If off, then stay off.

Sample rate updated to reduce small lags.

Stock kernel has 10k sample rate. Just for info... but its burn battery without need.

30k is good balance... set as you feel right...
[G2 Android Development] dorimanx:
Good.

My device is full of apps and much in ram. All needed for me... :)

Clean rom. Can get even higher scores.

But its still not what i try to do.

Some people just brain washed, and install only rom and kernels that score higher than others.

So i need to maintain there needs :)
[G2 Android Development] stroge:
I get the s2s logic now, thanks for clarification :)

Yeah, i always decreased the sample rate thats why i checked, but from now on i can leave it as is, great! :)

Thanks again for all your efforts!
[G2 Android Development] n@vier:
I never see a benchmark so useless.

The best thing to do this benchmark is to have the phone with lower temps and only antutu (official) open clear before ram e we can get with your kernel even 44k points (i have more than 80 apps) with performance profile and 4 core min online and oc 533mhz of gpu and it's a crazy score for a s800. This test however is totaly useless. Benchamarks in general are only numbers, tests must be in the same conditions to be accurate but often change! So they should be taken for what they are....but there are many people many people who are set on these stupid things...

Speaking about serious things v7.5 is in test from a few hours wifi s2s etc. till now everything perfect...also it seems smoother and it's incredibile because v7.4 was great!

Thanks for your great work you are simply the best!

Ps: I'll update my report after some days of test ;)
[G2 Android Development] dorimanx:
Question for rom/app devs.

How can i give adb command to systemui to clear all tasks from resent apps...

Same as if i will open resent and push clear all.

That can help with ram drain.

We can have auto cron task to push the clean all every 6 hours, or more.

This will create great ram leak fix.

Let me know if you find a way.
[G2 Android Development] duki994:
Recents activity is using OnClickListener method. It'll need to be started as activity and then cleared. There are no explicit Intents so that clear all could be called from shell without interfering with normal operations of user.

And that's only time that clear all is used in code in LGSystemUI. I used jadx to see parts of code. Plus they are incomplete due to LG scattering code so others could not sniff easily :)

Plus I can't see where activity is loaded. From code it seems that it's loaded only from recents button on nav bar.
[G2 Android Development] renzo090513:
I think this is the key for open resent apps

adb shell input keyevent

KEYCODE_APP_SWITCH

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] duki994:
Yeah. That'll open recent apps :)

And then hardcode x,y coord for touch and send touch input event via shell which will emulate finger press on 'Clear All' button.

Problem is that script written using that code logic will open recent apps and then clear all. If user works something it will interrupt him.

But it can be done on screen off only [MENTION=2376110]dorimanx[/MENTION] ? :)

In don't see a way on how to fool OnClickListener ('Clear all' is implemented simply with one if check). It'll only be taken into consideration when recents UI is loaded. Otherwise it's class is not loaded in RAM. OnClickListener can't be manipulated with unless activity UI is started. So no background shell command that can work the 'silent' way.
[G2 Android Development] dodora3d:
I have freeze once when i play boom beach ... Ver 7.5

2. I get update software now.. Can i install it ? Or can't?
[G2 Android Development] falconhawk81:
2.- NO, with custom recovery you cant update for OTA
[G2 Android Development] dodora3d:
oky i can install autorec to flash Stock recovery and install OTA ? then back to custom one ?
[G2 Android Development] 60nine:
you realize that this has nothing to do with kernel?

and you're asking questions in dev thread

two of two wrong...
[G2 Android Development] dodora3d:
sorry for ask here
[G2 Android Development] marek_poland:
[MENTION=2376110]dorimanx[/MENTION]

There is again problem with miracast.

I hope there is anything helpful:

https://www.dropbox.com/s/kcx7xe70nf5dbpg/dorimanx_debug_logcat.txt?dl=0
[G2 Android Development] dorimanx:
Game or rom bug.

Last Kernel dmesg Info before BUG/Opps/Panic triggered: there was no /proc/last_kmsg to read from

About update, i dont know.
[G2 Android Development] dorimanx:
Again? was it working for you before?

I have lg tv. New model 2015.

Its has miracast, but i cant connect to it from my device, or from full stock lg g3 that my wife own.

So, where is the problem i dont know.

People reported that miracast works.
[G2 Android Development] oTeMpLo:
It wont install succesfully... You must do it trough LG suite... And than root it again and flash kernel..
[G2 Android Development] dorimanx:
Well, idea was good, but its will not work.

We cant touch screen with commands.

To make kernel do that in code, will be not simple.

Maybe i can try... but screen has to be on. And app should be open.

Then send command to touch driver to tuch one spot. And close the app. By pressing home.

Too crappy way... i was hoping for simple way..
[G2 Android Development] marek_poland:
I bought week ago new samsung smart tv and miracast was working until I flashed v7.5. I thought that if i revert back to 7.4 it will work but not.

Now I don't know why it's not working.

Btw it's strange that two devices from lg(your tv and phone) can't connect each other.

I'll try and find the cause, maybe i'll see something strange and inform you.

Thanks for your reply and hard work.

Best greetings:)
[G2 Android Development] oTeMpLo:
WiFi lag sem to be gone.. Or its defenitly better. Needs mor testing. Tody im not at work..

My first impression of 7.5 is really good.

Than you, for listening Dori!
[G2 Android Development] iall5tar:
And the day has come first freeze typing in plus app...

Here is the log.

Ram performance is awesome btw I have more than 500mb free!!!

And is really snappy!!!

https://www.dropbox.com/s/20lcv76ki39eody/dorimanx_debug.zip?dl=0

Cheers!!!
[G2 Android Development] goran_oh:
My impression of 7.5 is awsome,no problems at all.

Send from my LG G4 using Tapatalk
[G2 Android Development] n@vier:
It's very strange because for me miracast continues to work perfect (and it always worked also with previous versions) with my smart tv Samsung.
[G2 Android Development] crazymika:
Today I played ingress with super intensive network and super crowded screen objects (mission day in Taipei) whole day long, the 7.5 kernel runs very well, nocrash even once! Many player's phone crashed up to 15 times. Impressive, and the lag is inevitable, i can accept that.

Well done, thank you master Dori
[G2 Android Development] dorimanx:
well seems not kernel bug :) GOOD.

Last Kernel dmesg Info before BUG/Opps/Panic triggered:

there was no /proc/last_kmsg to read from
[G2 Android Development] dorimanx:
So its was working with 7.4?

As nothing changed to any video code or miracast...

I have reverted few changes to wifi, now its stock. And i think miracast use wifi to connect to tv...

Maybe i am wrong... but if reverting to 7.4 not change anything, then bug is with rom.

Kernel is super complex thing, BUT one thing sure, if you go back to other kernel, there is no trace from previous one. Nothing is left... as kernel loaded to ram. And ram cant save anything after boot.

Sure apps that added with kernel stay, they written to system and data.
[G2 Android Development] Morts:
7.5 is working with no problems on my G2.

Just on thing, my G3 miss your kernel so much.
[G2 Android Development] goran_oh:
Also my G4 miss your kernel very much.

Send from my LG G4 using Tapatalk
[G2 Android Development] 139277:
Phone rebooted in my pocket, thought at first battery was low but after restart i had 15%. Now time wont update, it is probably the same as when phone shut down. 2hrs 3min behind, maybe the same amount of time phone was off.
[G2 Android Development] dorimanx:
Time is updated from net.

Any way, there was no kernel crash log.

Last Kernel dmesg Info before BUG/Opps/Panic triggered: there was no /proc/last_kmsg to read from

And that is good, report to lg.
[G2 Android Development] oTeMpLo:
https://drive.google.com/file/d/0BzGdGHHs0zdxWVN3M2VQYVhxdE0/view?usp=docslist_api
[G2 Android Development] oTeMpLo:
Black screen killed battery to...
[G2 Android Development] falconhawk81:
Miracast dongle working good here.
[G2 Android Development] dorimanx:
App Analytics-Norma crashed zram.

Cant fix your apps.
[G2 Android Development] amin44:
I do not know why peopel got reboot i run many version of this kernel and many defferont rom with no reboot or crash. Even with test build or buggy 7.1 build ultra stable for me thank u [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] oTeMpLo:
Again.. no problems with "stock kerenel" with this app.

Wat app is this "analytics-Norma"? a part of what ? Facebook or some Google app ? if so, it is installed on every phone?
[G2 Android Development] runekock:
My guess is that it is Google Analytics which is probably used by thousands of apps. Norma may be normal that has been truncated.

Is this a problem that happens repeatedly? If it only happens once every ten years, it is impossible to say whether it would also happen on a stock kernel.
[G2 Android Development] dorimanx:
dont make me to add you to ignore list.

use stock and be well.

I didnt changed WIFI for you. dont fool your self.

yes i am mad. some people just burn my fuse.
[G2 Android Development] oTeMpLo:
Sorry did not want to offend you, or make you mad!

Just wanted to make a point, that stock kernel can handle bad apps like "analytic-norma", so there is or can be a way that your kernel can handle them to.. as they are installed on almost every phone out there..

And yes i know.... Wifi is now better working for every other Dori kernel user too... and that a good thing!

Wont comment any more.. as i don't want to be excluded.
[G2 Android Development] dorimanx:
I have merged 227 commits to dev-rcu branch in my GITHUB.

Full RCU and SRCU merge from 3.10.y kernel! now that i have merged all the sched core!

It's WORKING! it's ALIVE!!! Yyhahaha,,, :p:D testing on my device first.

performance boosted! ram management improved. tons of bugs fixed!

What more can dev wish for! ;)

Stay tuned.
[G2 Android Development] DennisvandePut:
Sounds good. 7,5 rocks... But i'in stay tuned ;)
[G2 Android Development] n@vier:
You are simply great! Thanks for your awesome work!

PS: if you need beta tester before release new updates you can send me in pm for testing... feel free I'm here ;) :good:
[G2 Android Development] Peppe91:
1 not one reboot/ freeze

2 mooore smooth! More responsive! Quickest! Seems always ready to do anything the user wants with any kind of problem or lag

3 difficult! Maybe the same. By the way the drain it's not noticeable lower or higher.

4 never had any issue about it. But seems a bit more stable when signal it's weaker

5 never had such problem but today I've noticed that strangely had 2 disconnection but the signal wasn't to strong so I'll test more and report later

6 didn't try it

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] _Legend0:
7.5 and f2fs with selinux

Well.

Just wanted to report. I've tried to enable selinux on 2 ROMS (stock from somboons and CloudyG2), both had /data on F2FS. No success. Wiping dalvik-cache didn't helped too. Also tried to grab dmesg while on endless boot - no luck, just empty file, like it's not doing anything. Logcat was working, and I remeber that something was repeating, on the end of the repeating lines was something like GPU is busy or smth like that. Sorry i didn't saved it. But I saw small progress. On versions <7.5 phone wouldn't go past LG logo, now it was stuck on boot animation. On EXT4 no problems.

As for now i'm on ext4 because i need working phone for next few days. Maybe in some free time i'll check again.
[G2 Android Development] runekock:
One tiny detail: after using remove adblock in the app, /etc/hosts seems to get the wrong permissions. It gets rw/w/w, but I think it should be rw/r/r.
[G2 Android Development] khanjui:
7.5

No reboot, freeze, lag etc. Everything looks fine.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

First freeze and hard reboot with extreme performance profile.

Attacched the log maybe it can be useful. Thanks ;)

Ps: performance works as always perfect without problems ;)
[G2 Android Development] falconhawk81:
1 freeze and Hard reboot in Chrome after disconect from the power.
[G2 Android Development] dorimanx:
From log, seems like camera buffers crashed. Camera is stock.

I seen such reports before too.

If there is bug, then its there :)

Nothing i can do.

Some process do some work and use kernel with request for overflow buffer size, and driver crash, kernel stop responding.

I have no source updates for camera for lg.

Its all we got.
[G2 Android Development] dorimanx:
Rom or app crash.

Last Kernel dmesg Info before BUG/Opps/Panic triggered: there was no /proc/last_kmsg to read from

Nothing reported by kernel.
[G2 Android Development] n@vier:
Exacly in stress mode (I'm testing stability in extreme conditions :) ) it happens that with more apps open ( too apps :) ) I take a picture and camera stuck (cloudyg2 3.3 has lg g3 camera porting with advanced drivers).

Thanks for your support and explanations ;)
[G2 Android Development] Alexander1988:
BSOD after some time asleep. And one this morning, at least that's when I saw it, the LED was frozen and also the screen. Can't understand what happened because everything was going smoothly since I flashed 7.5. Cloudy 3.3 as ROM. Hope the log helps. Have a great day everyone !!!
[G2 Android Development] adydac:
My device just got stuck (was not responding while in Contacts app) and I restarted it by long-pressing the power button.

D802 + Cloudy 3.3 + v7.5

Here is the log.

Thanks
[G2 Android Development] dorimanx:
Nothing in log, all was clear. Rom died.
[G2 Android Development] dorimanx:
Rom service GCDaemon crashed kernel with stack overflow using percpu kernel instruction.

Tell that to lg. I cant fix it.
[G2 Android Development] marek_poland:
Yes, it was working.

I read the log and now I'm almost sure that it's LG's ROM bug.

This week I'll try the newest v30d. Maybe it fixes this, if not I'll back to cloudy.

Btw, for your amazing work:

73L69906FU156325B
[G2 Android Development] lordc:
[MENTION=6627498]dorimax[/MENTION]

Today I got two reboots, one with furefox and the other without any use of the mobile. I can't send you a log due I waa busy at work and I planned send you the firts crash log afterwork. The real motivation for this post it's a question/request: it's posibble that the kernel app generates the error log zip with a time stamp so we can recopiled varioua crash log? Can be automatized _on boot) the crash log zip creation with some kind of option?

2nd craah log added:

https://www.dropbox.com/s/k34himey9oa1e5x/dorimanx_debug.zip?dl=0

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] dorimanx:
answer NO.

about LOG. nothing is wrong with kernel. no bug recorded. ROM/Apps bug.
[G2 Android Development] dorimanx:
Thanks for support :)

New mega build will be up today! after few more tests.

see GIT.
[G2 Android Development] duki994:
Not LG's fault.

GCDaemon is either native class embedded in Java (or Google's modded class if exists). But from source code, it seems that Google uses native Java class due to it's speed and reliability. It's responsible for multithreading support. It should have crashed thread functions long before percpu functions. And it shouldn't have crashed kernel, but ROM.

You are trying to say there is bug in stable Java JDK version used on all 5.x and higher androids that will crash kernel. There isn't. Really. Or all apps would crash.

It would crash libc and/or libcore (many checks for this kind of error). And there is reported and fixed bug (for GCDaemon) that crashes ROM (not kerbel) due to racy functions in ART and libcore on AOSP git. But it will crash ROM long before those functions reach kernel lowlevel functions. ROM would then send reboot command and that's what last_kmsg would register.

I know 'cause I worked on team to boot CM on Exynos 5422. We changed many source code to make it boot and work good.

GCDaemon is very important and it's stable for sure. Check percpu functions for instability.