yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

I think my log has same problem as the log of [MENTION=4656786]60nine[/MENTION] or I'm wrong?
[G2 Android Development] hitardo:
I have found that LG's own apps stress the CPU all the time.

Portugal, where I live, is a hot country and I had many problems during Summer time, specially when using GPS.

The solution DorimanX pointed is the best "secure" option:

Reducing the max temp (second tab on the DorimanX kernel app) to ~74º on the first and ~71º on the second (the second has to be less than the first).

This will prevent major problems.

To solve the solution - in order to decrease the heat even when screen is off - I use three apps (all paid):

- Greenify, to hibernate apps on the background;

- MyAndroidTools, to disable some services; and

- Amplify, to reduce the frequency some services can trigger wakelocks.

Other solution I have not tried yet is the "Thai" SRKG2-3-00 ROM.

The "Kra-Pow-Moo-Sab" version is very Lite and should be enough to keep that heat down.
[G2 Android Development] SimpleX91:
Hi! 7.3 since release here, everything is good, no reboots at all. Good job as always! :good:

I keep seeing the same err msg in logcat over and over:

E/ThermalEngine( 374): [GPU_MON] GPU busy read fail

Should I just ignore that?
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

From stock QC proprietary thermal-engine code:

static struct /* I hide name */ = {
{"tsens_tz_sensor5", "cpu0" },
{"tsens_tz_sensor6", "cpu1" },
{"tsens_tz_sensor7", "cpu2" },
{"tsens_tz_sensor8", "cpu3" },
{"tsens_tz_sensor3", "pop_mem" },
};

In our intelli_thermal (msm_thermal) all temp control is being done based on core0 temp.

If in some crazy case or hotplug/governor code bug cores 2 and 3 got stuck on high freq, and core0 was on min freq

then core0 would get to max temp slower than cores 2 and 3.

Example 1 (cores 1 and/or 2,3 thermal runaway):

cores 2 and 3 go to 85C.

core 0 is at 75C. /* it's temp will rise much much (divide by quadratic factor) slower */

Then cores 2 and 3 get stuck while thermal polls in next moment (after 250ms) to offline now much overheated cores 2 and 3.

Example 2 (GPU thermal runaway):

GPU overheats due to ultra high graphics quality 3D game.

Next moment, CPU cores are getting hotter. But GPU is physically away from CPU cores, so CPU cores are getting hot very slow!

Now GPU goes overstressed and shuts itself down by HW mechanism (black screen CAN be caused by this - but only in or after heavy 3D games) before thermal

had any chance to throttle (250ms is very much for this kind of fast temp rising). And I don't think KGSL will get any info from GPU since it's register report that it's working.

Only HW mechanism shut down GPU cores due to emergency temp.

Making array struct with msm_thermal_data_intelli for each CPU scheduling temp check work for each CPU on the CPU being checked would make intelli thermal

much better check thermal and use per-core freq limits. But that's too complicated code with many delays and not being able to move cores to deep sleep fast.

And hotplug control is degrading performance too much when phone uses some heavier app.

So here's an idea :)

Stock thermal-engine binary polling is 65ms.

Since intelli_thermal is in-kernel 150ms should be better to cope with this situations. Plus lowering global thermal limit to 72C solved all thermal issues I had.

And from kgsl:

GPU power levels can be externalized as gpu power level index variable in header file. And that file included in intelli_thermal (msm_thermal).

On high temps, intelli_thermal could lock GPU freq to 389MHz and if temp goes to hell hot than to 320MHz..

EDIT:

I haven't looked at GPU code, but from skimming it, no GPU thermal control.
[G2 Android Development] 60nine:
[MENTION=3441913]duki994[/MENTION] - you deserve a medal :good:
[G2 Android Development] RohanM:
Device did not wake up.. Ls980 cloudy 3.3

Also since kernel 7.3 the device is getting little bit hot.

Log attached.. Please check [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] dodora3d:
I face freeze twice today .. Must press power off ..

Stock lp
[G2 Android Development] dorimanx:
New crazy beta test!

I have worked 2 days, and was able to merge main core code from 3.10.y

This is only for D802! ONLY for beta testers! skilled and PRO users.

it's 300 commits! :)

*Many fixes to sound driver.

*Tons of changes to CGROUP, FREEZER,SCHED CORE,SCHED FAIR,STATS and more.

here are all the changes!

https://github.com/dorimanx/DORIMANX_LG_STOCK_LP_KERNEL/commits/dev-sched

for now in dev branch till full test.

http://www.dorimanx.com/LG-LP-BETA/Kernel-Dorimanx-V7.3-LP-[01-28]-[25-11]-LG-D802-PWR-CORE.zip

Kernel BOOT. and SMOOTH!!! :)

all seems to work. need more testers.

If you report about beta, please state that in post.

Have fun.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

Flashed latest beta boot perfect without problems on my g2 d802 with cloudyg2 3.3

I'll report after 1 day of test :thumbup:

Thanks. You Rock! ;)

EDIT: Sound is INCREDIBLE! Simply wonderful!

For the rest I'll wait to be more accurate but now after some minutes I can only say that everything seems super fast and smooth! Great job! ;)
[G2 Android Development] Diechel:
[MENTION=2376110]dorimanx[/MENTION]

Booted and running good for now. Will report if any problems
[G2 Android Development] sheikhramnuj:
Just installed beta test kernel and booted fine. I will report back for any strange behaviour occurs. ;)
[G2 Android Development] Claudius A.:
Rebooted while using Chrome.

Dorimanx app not open.

Tried to take logs, but none.

Screenshot attached.

---------------------------------------

Solved!

http://xdaforums.com/showpost.php?p=64001736&postcount=5866
[G2 Android Development] lynxrz:
reRoot device from twrp if you're using 7.3

Then try to enter dorimanx app
[G2 Android Development] Claudius A.:
Hmmm, but how to do so? Please!
[G2 Android Development] krija:
Open SuperSu app, there remove Dorimanx app from the list. Close SuperSu app, open Dorimanx and add root privileges again.
[G2 Android Development] Claudius A.:
Same issue!

Flashed 7.3 again, nothing new. :(
[G2 Android Development] Morts:
I don't know how you do it, but you do it again.

Awesome performance!

Thanks dorimanx, I will keep testing the beta release.
[G2 Android Development] babe0607:
I'm not a beta tester. I have LG G2(D802) with cloudys rom g2 3.3. I've install the beta version. Everything is fine :)

Send by my LG G2(D802)
[G2 Android Development] romasik:
FM Radio not work with any kernel Dorimanx :( LS980
[G2 Android Development] hitardo:
For me, when DorimanX app stays like that, I just open the "Recent Apps", closing the DorimanX app.

Then I just open the app again and extract the log.

It has solved it every time.
[G2 Android Development] dorimanx:
Works with stock?

Sent from my LG-D802
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

I think I've found ROM black screen bug. It's LMK's fault. It kills 'd.process.acore' (android.process.acore). Also it kills 'kscreensaver' (bam black screen happened around this point), some qualcomm apps (used for signal routing/tunneling), and SuperSU.

After that ROM UI dies. When I pressed power button to reboot, it showed reboot menu. It's just overlay UI that died due to LMK killing it and it's child processes.

I think it needs to protect those apps. If they belong to one of uid's you set in LMK to protect, then it's LMK is not obeying it.
[G2 Android Development] dorimanx:
Thanks.

You are now, (beta tester)

Reporting to other testers:

Kernel survived the night! Good.

kernel survived 5 hours drive with gps(waze) and music stream(di fm) from net to bt to my car, and charger connected with 1800ma charge rate.

Cpu was 82c all the road. Stable.

All works smooth, ram free, and cpu is cool during xda chat and git checks for news, same for calls.

Sound is great too.

So far all great, i am very pleased.

Hard work was not for in vein.

Have fun and keep reports flow.

Sent from my LG-D802
[G2 Android Development] smartpr1v4t3:
Using Beta since 5 hours and everything works fine.

Doing nothing heavy, but i check the phone often and heard 2 hours to podcast without problem.
[G2 Android Development] dorimanx:
d.process.acore is the home app.

Its can be restarted when you push home.

Lmk do not kill apps, its send restart command. Kill 9

every service that killed is restarted by init.

Every service that marked by low oom score can be killed with no problem.

Lmk obey the oom scoring. And will never kill any thing that is critical.

About your post for thermal control.

First, gpu has termal control, freq locked to lower when cpu is hot.

Done by kernel and thermal binary in rom.

Cpu cores locked to lower freq, all of them! There is no locks for each.

Lock is before main core freq function in cpufreq. Cpu cant get higher freq. Stuck not stuck, code not care, its lock the freq and thats it.

No need to add anything.

Sent from my LG-D802
[G2 Android Development] romasik:
yes with stock kernel all works!
[G2 Android Development] Claudius A.:
Found the problem. Yesterday I changed the hardcoded DPI setting in build.prop from 460 into 430, the Dorimanx app does not support this value, so it stopped working :D . I have just changed it (the DPI) into 450 and the Dorimanx app worked well. Thanks all. :good:
[G2 Android Development] Ganjax:
New beta survived night with plugged charger in car and all time gps were turned on. Total 2h calling, 3h music, 9h GPS. NO REBOOT, NO LAG, NO CRASH. YES, U ARE MASTER!

Wysłane z mojego LG-D802
[G2 Android Development] falconhawk81:
For now the beta kernel work fine, zero freeze and reboot. In D806.
[G2 Android Development] stroge:
I'm also beta testing - I've never did it before :) I'm on D802/Cloudy 3.3.

It feels great, no issues so far. Lots of apps running in background as well as cached. Still have 800MB free RAM

Play store is updating the apps, while charging and listening to music and viewing maps (by the way, we have great sound! :) )

No lag, no microlag at all, only a small UI lag due to play store updating.

Charging has been limited to 1200 as it has been set in dorimanx app (however initially it started charging on 1700 rate, but dropped in like 2 minutes to 1200).

One thing I could mention: If you are maintaining the sound driver that could cause louder sounds, could you please reset the settings during the update? my ears still hurt ;)

Thanks for your hard work! I'll keep reporting upon any issues!
[G2 Android Development] sheikhramnuj:
Just dropping by to say beta kernel works smoothly without any problems encountered during 8hrs testing period. Thanks [MENTION=2376110]dorimanx[/MENTION] Master your my hero! ;) Keep it up!
[G2 Android Development] Trixanity:
Phone froze today. Gave it some time to recover but it didn't. Might have something to do with heat. Log attached. On 7.3 with mostly default settings.

PS. Anyone else finding it annoying that you can only attach images on the XDA app? Have to transfer log file to laptop and post the log that way. Maybe there's an alternative for doing it on your device?
[G2 Android Development] 60nine:
easiest way

1. catch log zip

2. upload to dropbox and get a link (with dropbox mobile app)

3. paste the link to the file here

if you don't have a dropbox account, PM me your e-mail and i'll send you an invitation so we both get some extra space...
[G2 Android Development] dorimanx:
give me the stock kernel binary.
[G2 Android Development] n@vier:
I confirm everything I said this night and all you have said.

In stress mode, v7.3 beta (spotify, chats, chrome, while using settings of viper4android) stays alive and everything is smooth and rock stable only spotify a couple of time was closed but no one freeze and/or reboot... I stressed to see if it crushed but not it stays strong!

The boost of perfomance it's remarkable and battery drain seems very low I need more time to confirm but I'm pretty sure that is great for what I'm seeing in these 15h+ of use! The sound in terms of levels: before my gain was +2 l/r now is 0 because it is very high with headphone! What you are doing it's simply awesome!

Thanks ;)
[G2 Android Development] dorimanx:
well, no idea what was wrong.

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

there was no /proc/last_kmsg to read from

try the BETA posted one page before by me.

you have D802.
[G2 Android Development] merlin21:
D802 / somboons kra-pow-mo saab rom 30b here...

Kernel 7.3 and just listening to FM Radio here [emoji106] [emoji16] all works like it should
[G2 Android Development] dorimanx:
His device is ls980, please be in focus. Something is missing, or changed in sound driver.

Sent from my LG-D802
[G2 Android Development] Trixanity:
I don't know for sure, but isn't last_kmsg only recorded if kernel reboots the phone? I had to manually shutdown/reboot phone with power button to get out of the frozen state (ironic since the times I have encountered this have usually been when the phone is hot :P)

I'll try the beta.

Regarding Dropbox. I do have an account.

Currently I use Pushbullet to transfer the file for attachment, so at least I'm not breaking out the usb otg cable and usb drive :)

But perhaps I should start using cloud links instead, as you suggest.
[G2 Android Development] Diechel:
Just upload logs within your post.

Scroll more down and you see 'Additonal Options' there you have a header called 'Attach Files'. Click and that and upload your logs.

Easy...!
[G2 Android Development] Trixanity:
Are you referring to the xda premium app? Because that's what I'm using and I do not have that option. I do in browser though but if I recall it's a bit awful to navigate on phones.

I'll mark the problem as solved though to avoid too much non-dev talk :)
[G2 Android Development] lynxrz:
Sir, Beta kernel not recording video.

Photo taken... Ok

Cam shows but when I press record it doesn't work.

Reverted back to 7.3 and it works
[G2 Android Development] merlin21:
Sorry didn't notice that fm don't work with ls980, device. Just want to help, but i can confirm like report above that if i want to save recorded video it leads to an error with beta 7.3.
[G2 Android Development] stroge:
I can confirm, it does record the "video", i mean there is a file, but nothing can play that. Total commander error is attached, i dont know if it helps. Xcam only says "an error has occurred" when I stop recording.

Framelapse app can record and play the video however... Strange...
[G2 Android Development] renzo090513:
Same problem here. It says "an error has occured" in xcam(vam that i use) only in beta kernel.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] Morts:
I can confirm that.
[G2 Android Development] capoooro:
About video same here
[G2 Android Development] g.paganini:
Confirmed about video also. Everything else seams to be good, no reboot no black screens for now on beta.
[G2 Android Development] 0xetrov1:
Yeah, Everything works perfectly, without any issues, abut Camera can't record Videos.
[G2 Android Development] sheikhramnuj:
[MENTION=2376110]dorimanx[/MENTION] master confirm videos not recording with beta kernel. Revert back to old 7.3 and video recording works again. I don't know how to get logs from video app :D
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

This might be useful for non working video camera debug.

Audio buffer allocation fail

<6>aac_in_open:session id 2: success

<3>audio_in_ioctl:session id 2: Buffer Alloc failed

<3>audio_in_buf_alloc:session id 2: Buffer Alloc failed

<3>aac_in_ioctl:session id 2: buffer allocation failed

<6>audio_in_release: session id 2

And (pretty sure I've seen this on stock):

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3>msm_isp_get_buf_ptr: Invalid buf index

<3>Invalid buffer prepare

<3>msm_isp_buf_enqueue: Buf prepare failed

<3>msm_isp_get_buf_ptr: Invalid buf index

<3>Invalid buffer prepare

<3>msm_isp_buf_enqueue: Buf prepare failed

<3>msm_isp_get_buf_ptr: Invalid buf index

<3>Invalid buffer prepare

<3>msm_isp_buf_enqueue: Buf prepare failed

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3>msm_isp_send_hw_cmd:533 hi 8 lo 8

<3> msm_ispif_init:947 camera_wake_lock unlock

<6>msm_led_trigger_config:67 called led_state 0, values 0, 0

<6>qpnp_flash_set: 1178: name = led:flash_0, val = 0

<6>qpnp_flash_set: 1178: name = led:flash_1, val = 0

<6>qpnp_flash_set: 1178: name = led:flash_torch, val = 0

<3>msm_isp_get_buf: Incorrect buf index 13
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

I confirm that we have video camera bug when we record a video as mentioned above.
[G2 Android Development] babe0607:
confirmed by me too using xcam...

Send by my LG G2(D802)
[G2 Android Development] dorimanx:
seems like one of the buffer over flow protections that i merged to audio driver.

i will find and fix.

Thanks for reports! :)

keep testing beta for now for other problems
[G2 Android Development] kondzio66:
Frezze with glitches at screen (7.3 beta) Anyway smooth, good battery life and cold. Thanks for your work.
[G2 Android Development] romasik:
this stock kernel ZVG View attachment boot.7z
[G2 Android Development] dorimanx:
fixed camera rec for BETA D802 kernel.

https://github.com/dorimanx/DORIMAN...mmit/6196aaf1438861ba26b2ee2561490338b8aa67d7

i will roll new update soon. for all.
[G2 Android Development] n@vier:
Dorimanx Saint Now! :D

Thanks for your hard work and for your great support.

PS: I'm very proud to be one of your beta tester.... anyway v7.3 beta continues to fly :)
[G2 Android Development] dorimanx:
News Update!

Kernel 7.4 MEGA BUILD!

26/11/15

*Merged HUGE amount of updates to kernel core from 3.10.y!

CPU code and scheduler code updated big time, many bugs fixed.

Fair scheduler updated to max, CGROUP and AUTO GROUP for task per CPU updated to max.

*Fixed binder min_nice level set bug.

*Merged many updates to sound driver that allow great sound and safety from buffer overflow and null panics.

*Merged fixes to driver core printk functions.

*Updated BFQ with new cgroup structure.

*Merged NET and module fixes from CM13.

For people that used the BETA for D802:

fixed the camera recording and binder stuck in min_nice check. (last report)

I was dreaming to do this update long time now. but it's was too hard.

And after few tries, i have managed to adapt and sync the core kernel code with 3.10.y

we have parts from 3.18.y in core! so some stuff is way better than in 3.10.y :)

Have fun using this build. it's seems great for me, and to other beta testers.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

v7.4 video bug solved :good:

Thanks! You rock! ;)
[G2 Android Development] Diechel:
Ondemand still locking my frequency to 1728.

Cpu temp = 40 degree

Extreme performance profile

While running stability test I get this image

When I switch to pegasusq for example it does go to max.
[G2 Android Development] dorimanx:
Ondemand has smart freq controls. Pegasus is old junk.

Now ondemand has middle power step, if its getting from core shed, info that task you run, not push the pedal to max, its rise freq to 1.7ghz to reduce battery usage, when app tell to sched that its needs more cpu power, ondemand release the freq to max allowed.

Its not bug, its was set that way.

Its possible to change, but only for core 0 others cores once off, will be on with default kernel config.

Its called optimal_max_freq in ondemand controls, use some app that can tweak cpugovs.

Set higher freq, and you get it as optimal freq, but loose power.

Why you think my kernel scores less than stock kernel?, this why.

Power save, not stupid pedal to the metal :)

Sent from my LG-D802
[G2 Android Development] babe0607:
Video recording with xcam app is ok now with v7.4. :)

Send by my LG G2(D802)
[G2 Android Development] g.paganini:
I had to reboot twice after flashing with dorimanxOta because after flash and reboot I got black screen right away and could not wake up the device with double tap. The third time I immediately swiped to unlock to let it boot with screen on. Now everything OK. Well, I guess I have a somewhat faulty device.

EDIT: After 6 hours of sleep 0% drain :D
[G2 Android Development] romasik:
On ls980 with new kernel FM Radio still does not work, no sound :(
[G2 Android Development] dorimanx:
I think i will not be able to fix this.

When you say no sound, its same if you say i smell cake. I dont...

(point was, no logs! no solution)

Sent from my LG-D802
[G2 Android Development] mats_youri:
On 7.3 and 7.4 FM Radio ok. LS-980
[G2 Android Development] romasik:
Sorry Dori i found problem, this Viper4Andrid, i delete and all work ok. :)
[G2 Android Development] duki994:
Did you delete/comment deep_buffer line as said in second post of OP?

You can use Viper4Android with FM radio app. FM app doesn't use normal audio route/pathway. Viper4Android shoudn't "intercept" that audio route. Check your audio_conf and delete previous audio mods if you have any :)
[G2 Android Development] dorimanx:
i have sent you a PM. ignore it. :)

And check what [MENTION=3441913]duki994[/MENTION] said.
[G2 Android Development] delacruzivancarlo25:
here is my experience on Tuesday night i update my kernel using dromanx app and in the early morning i use it and seems fine no reboot or whatever, and while i'm at work i manage to browse into google browser and suddenly it freeze so i waited to automatically reboot the phone and it goes to lg logo, but it seems it will not go to reboot because i waited to about 5 minutes to blink the noti. light and the phone is getting hot, it's like it goes to bootloop so i shut it down by pressing the power button for about 8 sec and waited about 5minutes to cool it down and start it again then still no luck it goes to bootloop again i do it several times but still not getting to boot it always shows the logo but not booting. then i go home and i put it on the freezer to cool it down and it boot so test the phone for stress i multitask play heavy games. and it shut down again sometimes by simply opening any apps whether its light or game apps freezes and bootloop again or simply browsing to fb watching video on gallery it freezes. it seems like over heating is not the issue here so i re flash the rom i wipe all before i install, and after the first boot it's seems fine i play nba 2k16 it heat up while i play and did not reboot but when i open my music app it freeze and reboot and bottloop again. so i reflash it again and while on the installer at 100% of intalling it freezez. before all of this happened i have experience the same thing before in the stock rom of d800 and previous version of cloudy and drimanx kernel but it's not worst like what happen now, it does freezez but it will reboot normally and it's not oftenly happen.
[G2 Android Development] n@vier:
Best way it's to post a log so [MENTION=2376110]dorimanx[/MENTION] can investigate otherwise this is useless to understand and find if there are bugs or not related to the kernel.
[G2 Android Development] romasik:
Thanks for idea! in my audio_policy.conf after installation Viper4Android there was no line deep_buffer, if i replace stock audio_policy.conf FM work but not work Viper4Android . Then I added in audio_policy which the works Viper4Android line deep_buffer only for FM device . And now works Viper4Android and FM Radio . Thanks :highfive:
[G2 Android Development] dorimanx:
problem is with hardware. i cant FIX hardware defects.

all i can suggest is to use STOCK kernel.

if problems like that still happen. request board replace at LG service.

no such problem here, ever... and not for other people. (other <= 10 people) from 6000! :)
[G2 Android Development] falconhawk81:
My phone flies! Thank you very much again! I think 7.4 worth be stable version!