yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] jeebspawnshop:
Ahh ok, understood.

I'm confused as to why anyone uses any governor besides Ondemand unless they have very specific goals in mind.

I'm equally confused as to why Dori leaves in such old and obsolete things as PegasusQ...

But I won't question his motives! He is the Mighty Deity here. I obey without question!

(That's Dori on the left...)

[IMG="KNEEL!"]http://www.biblepicturegallery.com/samples/la/world/worship/pagan/p_gods/King%20Ptolemy%20prostrate%20before%20Isis.gif[/IMG]
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

v6.8 stuck and reboot while I'm searching on Google Play.

Attached the log, I hope it can be usefull. Thanks.

https://www.dropbox.com/s/qh6plrr7na0fy2o/dorimanx_debug.zip?dl=0
[G2 Android Development] Androloid:
6.8, Cloudy 3.3

Freezed and rebooted while scrolling through news application.
[G2 Android Development] duki994:
WTF was in that last_kmsg? Some kind of memory corruption. Maybe even CPU L1/L2 cache corruption.

chargerlogo bug for you
[G2 Android Development] dorimanx:
Uptime: 44 hours and 4m.

Since my manual reboot to test all that added in git.

I cant fix something that i dont have.

Sent from my LG-D802
[G2 Android Development] duki994:
I found fix for phone unresponsive when WiFi/Data turns on.

If there's anyone left that has this bug, set dirty background ratio to 0%.

Also setting vfs cache pressure to 100% helps (but it will reset to 60% after screen off/on due to dorimanx's hardcoded values).
[G2 Android Development] n@vier:
[MENTION=3441913]duki994[/MENTION]

Do you mean "Adaptive LMK pressure range" to set 100%?

Thanks for your support ;)
[G2 Android Development] duki994:
Nononononononono. Those are two VERY DIFFERENT things.

You need to change dirty background ratio to 0%. It's on memory tab in Dorimanx app.

EDIT:

You can't set it to 0% in Dorimanx app (but you can on min 5%). I used 3C toolbox for that
[G2 Android Development] n@vier:
For dirty background I understood, but I refer to vfs cache...
[G2 Android Development] duki994:
Sorry...

Do not bother with VFS cache pressure. It'll always reset to 60% after screen on/off due to dori's hardcoded values.

You can change it in any app that can change sysctl values :)
[G2 Android Development] dorimanx:
Vfs cache when set to 100 will force to release cache all the time, and write to flash.

How its can help with bug that i dont have?

Any way, i can remove the lock, and allow to control it via dori app.

MOD EDIT

Sent from my LG-D802
[G2 Android Development] wallyw:
I know people have mentioned charging issues in the past. On 6.6 I can charge at 1300 mah to 1600 mah. On 6.7 and 6.8 I get only 300 mah. I have verified this behavior with multiple chargers and cables and even an anker battery battery pack. The only variable is the kernel version.

Stock ls980 rom. No xposed. Stock dorimanx settings. Looks like something changed between 6.6 and 6.7 for charging?
[G2 Android Development] dorimanx:
Nope, nothing changed in charger code for more than 15 kernels.

Sent from my LG-D802
[G2 Android Development] duki994:
I'm not teaching anyone. Not even trying, since my knowledge is limited. I learned a lot very fast (due to my good C language knowlegde) and I have knowledge of how many things work in kernel, but it's still far from knowing much.

vfs cache pressure is less of a "help" with us that have this bug. I think it's specific batch of WiFi chip related since we all have same broadcom firmware and same kernel WiFi driver/code.

Setting dirty background ratio to 0% eliminated 90% of lag (other 10% are due to vfs cache pressure). Why? I have no idea. Setting dirty background ratio to 5% eliminates 60% of lag when turning on/off WiFi.

You may not have that bug due to newer/older broadcom chip revision. I and several people on xda had the problem even with stock. But this fixes it even on stock. Why is this fixing it? I have no idea.

Whatever background app/service/process or whatever code related to WiFi is bugging out, setting dirty background ratio to 0% fixes it immediately.Even on stock kernel

So this is universal for all that have this bug.

My intention is only to help those that have this bug, and not to blame kernel since this bug is NOT kernel's fault. It's probably ROM/WiFi chip firmware since on KK there were no problems.

This shouldn't be added to default profile, but only mentioned as fix to those who are targeted with this bug.
[G2 Android Development] wallyw:
Thanks for quick response. I know charging issues may be complicated/mysterious and not appropriate or solvable here. Just in case it's helpful for 6.6 kernel all my chargers fast charge at high mah but result in high temperatures while charging (99F).

6.7 and 6.8 I get no more than 300ma on any charger rated at 2.0A or 2.1A or adaptive. On a 1.0A charger I get full speed 1000mah charging.

Could it be a heat issue? I've verified this going back and forth from 6.6 to 6.7 three times on three different chargers.
[G2 Android Development] n@vier:
[MENTION=315446]wallyw[/MENTION]

Tested yesterday v6.8 with the app ampere. I get even 1800ma so I can only say that for me it works great with v6.8 and also with all previous versions.
[G2 Android Development] wallyw:
Still trying to debug the charging speed difference between 6.6 and 6.7/6.8

Per dmesg:

When I plug in the exact same charger/cable on 6.6 I get:

msm_otg_notify_power_supply: power_supply_get_by_name(ac)

On 6.7/6.8 I get:

msm_otg_notify_power_supply: power_supply_get_by_name(usb)

In the dwc3 code it looks like if it reads "usb" it then sets the current limit to 1000ma. Forgive me if I'm off here. I'm not the best with linux power supply core and usb. I'm not sure why power_supply_get_by_name is reading the same charger differently in 6.6 vs 6.7/6.8 but I can replicate that it is and on multiple chargers. I imagine this may be why some people have charging issues and not others. The one's that don't I assume have it reading as "ac". Strangely I don't get a notice about slow charging or usb chaging in my notifications.

Edit: it's also varying on

msm-dwc3: chg_type = USB_PROPIETARY_CHARGER

vs

msm-dwc3: chg_type = USB_DCP_CHARGER
[G2 Android Development] dorimanx:
Ok, that is more information, and its seems to be the problem.

its detect your charger as usb.

Check that your usb connection is set to mtp. And not other.

Make sure that usb debug mode is on. In dev settings.

I will inspect commits that can do any change for usb detection.

Sent from my LG-D802
[G2 Android Development] gurulbn:
System freeze while trying to answer the call
[G2 Android Development] dorimanx:
seems like zram failed in lz4 decompression.

zram: Decompression failed! err=-1, page=1733

Read-error on swap-device (254:0:13864)

swap_free: Bad swap file entry 1c006f00

BUG: Bad page map in process Thread-4454 pte:006f0072 pmd:1c1d7831

addr:b4740000 vm_flags:80000075 anon_vma: (null) mapping:e93e63a8 index:232

vma->vm_ops->fault: filemap_fault+0x0/0x4b8

vma->vm_file->f_op->mmap: ext4_file_mmap+0x0/0x5c

working on it now.
[G2 Android Development] purpleraintoxicity:
No problem here. Charges at 1400+ average
[G2 Android Development] OT-Xtreme:
hey dev, can we get a support for this app:

http://xdaforums.com/showthread.php?t=3240097

it enables usb mass storage UMS.

it needs FUSE driver built in kernel.
[G2 Android Development] dorimanx:
we have fuse driver.

this will not work for us. it's was made for external sdcard

we have row storage that formatted as EXT4

then part of it mounted with fuse to look like fat32 partition, for windows.

root@g2:/ # mount | grep fuse

mount | grep fuse

/dev/fuse on /mnt/shell/emulated type fuse (rw,nosuid,nodev,noatime,nodiratime,user_id=1023,group_id=1023,default_permissions,allow_other)

/dev/fuse on /storage/emulated/legacy type fuse (rw,nosuid,nodev,noatime,nodiratime,user_id=1023,group_id=1023,default_permissions,allow_other)

root@g2:/ #

this will not work.
[G2 Android Development] SREEPRAJAY:
WARNING:

Members,

We have had enough of Off Topic posting And I have been really considerate for a few times now.

Now on moving forward, please make sure that the these things are avoided / dealt within PMs

1. ETAs

2. Comparisons between this Kernel and That Kernel

3. Sarcasm (keep it with yourself and it will serve you good in hell)

4. Thanks posts (use the thanks button)

5. Disrespect to any member / Developer / MOD....whoever it may be

6. FOLLOW THE FORUM RULES- find a link in my signature if you haven't read it yet.

If I were you, I would be ashamed, to be corrected a second time for my behaviour expected out of me in a friendly and highly professional FORUM.

Please keep your and our decorum.

Thanks for the understanding

Note:

a smile would cost nothing but you can smile, only if you have a good heart​
[G2 Android Development] OT-Xtreme:
bummer, always dreamed of a true UMS instead of MTP for modern devices.
[G2 Android Development] dorimanx:
News Update!

Kernel 6.9

08/11/15

*Merged update for input driver.

*Merged update for NET, MEMORY, VFS, SPS, MUTEX, SOUND

*Merged fix for LZ4 compression used in ZRAM.

*Allowed to modify VFS pressure and set it to 100% default value.

*Fixed and updated state notifier code.

*Merged update to ZRAM, now will compact its self when screen goes OFF.

*Disabled cpusets code, our core manage cpu better than ROM.

*Found missing config for multicast IP that needed for mirror cast driver.

*Updated ToolChain GCC 5.2 wiht new libs and new crosstool that create it.

*Modified profiles, see GIT. will be reset on first boot.

*Allowed to modify dirty cache down to 0.

Have fun.
[G2 Android Development] Lycidias:
6.9 d802 running great so far. But after a few hours i got a reboot in Facebook app and then a SOD at the sim Pin. Never had problems the past few versions

Logs: https://www.sendspace.com/file/3is309
[G2 Android Development] Diechel:
2 freezes, 1 with trace
[G2 Android Development] djtiesto22:
Have freeze again with 6.9, I have problems when I set power save switch to performance constantly, when is used power save device lag but no problem whit freezes!
[G2 Android Development] kashif87:
VS980-CloudyG2 3.3-DorimanX 6.8

PC connection keep resetting with sometimes falling back to ONLY charging mode....it was all fine before i flashed kernel

i tried turning Fast Charging OFF, but no difference at all.

what should i do?:confused:

View attachment dorimanx_debug.zip
[G2 Android Development] dorimanx:
nothing in the log.
[G2 Android Development] dorimanx:
CPU: 3 PID: 2319 Comm: AlarmManager

crashed with no ram for something that it do.

no crashes here.

thanks for report.
[G2 Android Development] dorimanx:
chargerlogo: ROM ordered full shutdown.

overheat!

reduce CPU temp. to 72c. your cpu reach critical too fast.
[G2 Android Development] dorimanx:
set usb debug off.

or use what worked for you.

i have D802. i cant do anything.
[G2 Android Development] tripii:
Phone froze and rebooted

dorimanx_debug.zip

edit:

In the meantime I got second reboot

dorimanx_debug(2).zip

I hope that the logs will be helpful
[G2 Android Development] Diechel:
2 reboots today.

1 with tainted process due to mermory

Other with log attached

My setup has not changed since last versions
[G2 Android Development] Peppe91:
reboot while playing a game.

[MENTION=2376110]dorimanx[/MENTION]

can you explain in few poor words what are the "target value" and "cap value" in gpu tab? tried to search in google but with no result. thanks for your time.
[G2 Android Development] dorimanx:
do you have some app that can control the nice level of services?

nice level allow some app to take higher priority then others.

[<c01c2c10>] (update_curr) from [<c01c6a3c>] (dequeue_task_fair+0x58/0x1690)

[<c01c6a3c>] (dequeue_task_fair) from [<c01b9c4c>] (dequeue_task+0x40/0x9c)

[<c01b9c4c>] (dequeue_task) from [<c01bb188>] (set_user_nice.part.11+0xf0/0x1b4)

[<c01bb188>] (set_user_nice.part.11) from [<c08099ec>] (binder_ioctl+0x1b14/0x2808)

[<c08099ec>] (binder_ioctl) from [<c0270ed0>] (do_vfs_ioctl+0x3d0/0x5c8)

seems that there was ram bug setting some service nice level when it's was not in ram, so we get null pointer

bug, that lead to reboot.

this something is c01c6a3c and that not tell me what was it.

i have no problems since release. used my device for hours, and stable as rock.
[G2 Android Development] dorimanx:
low RAM, and seems that whatsup service triggered null division in zram driver.

source is ram leak in ROM or game that you have used.

try to set lmk reclaim pressure to 85%

and set swappines to 50% or 40%

play again.

about GPU. leave it alone. no information for now. i need to dig in driver to understand what is what, and how they interact.

never had time for that. it's set default.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

I confirm no problems for me till now with v6.9 it's rock stable after more than 1 day of use...I think that the only random problem with rom cloudyg2 3.3 is chargerlogo bug...that it is not related to the kernel.

Thanks for your awesome work ;)
[G2 Android Development] 1Jonathan1:
In kernel 6.9 clash of clans is not working. When launching app, screen stays black for several seconds and then the homescreen pops up. Reinstalled the app but problem keeps occurring. Reverted to 6.8 and now it is working fine.

View attachment dorimanx_debug.txt
[G2 Android Development] dorimanx:
works just fine here. this game needs internet, check that you have it.

and please. less not relevant reports.
[G2 Android Development] gurulbn:
Reboot while using FB
[G2 Android Development] dorimanx:
Unable to handle kernel NULL pointer dereference at virtual address 00000000

address 00000000 is in other universe. no idea what is this.

No problems here for 42:11:40 since release.

my kernel is for:

STOCK ROM + Exposed + ROOT

all the rest is not my problem.
[G2 Android Development] Romagnolo1973:
Just a news, Blastagator made new TWRP 2.8.7.3 and now all issue with F2FS are gone and works perfectly fine in combo with Dorimanx kernel. The only things to do if you use F2FS is made a new backup after TWRP installation because old one does not work due to the new f2fs driver
[G2 Android Development] g.paganini:
I had a freeze and reboot while browsing. Memory was about 445mb free. Here is the log. Latest 6.9 kernel, stock ROM, only swipe2sleep disabled.

https://drive.google.com/file/d/0B_LbsT0gdUatay13YjZkV1RKM1U/view?usp=docslist_api
[G2 Android Development] EvilKing009:
6.9 Update is working fine here.

I dont use so much apps so i disabled Zram,Uksm and swappiness and set LMK to extermniate and everything is working rock as they should! :)
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

I'm tuning some parameters in dorimanx app to increase performance with a balanced battery drain (a compromise between extreme perfomance and perfomance) after many test if they are good and stable both performance and battery drain I'll share my settings. I'm noticing that in tab GPU the description of Target value shows: "must not be lower than Target value" but I think that it should be "must not be lower than Cap value".

In others words we always must set Cap Value < Target Value. Correct me if I'm wrong.
[G2 Android Development] ibrakadabrax87:
:D i'm waiting your setting
[G2 Android Development] g.paganini:
Well, damn.... I guess I'm one of the unlucky ones.. Keep up the good work!
[G2 Android Development] dorimanx:
http://www.dorimanx.com/LG/recovery/
[G2 Android Development] destroyer31:
https://drive.google.com/file/d/0B13VwlTs7ha7blJNVzUtZDYycXc/view?usp=docslist_api

Reboot with chrome
[G2 Android Development] blastagator:
While looking through your kernel commits to port some stuff over to DU Kernel, I notice it looks like you forgot to convert something when you moved to the new IDR scheme:

https://github.com/blastagator/LGG2_Kernel/commit/d3648182a0bb7b3c8dbfa4faf5ffd97c68cb42fe

If I am wrong, disregard this message :) ( I am definitely not a kernel dev!)
[G2 Android Development] dorimanx:
I dont use that folder. Events are off.

Sent from my LG-D802
[G2 Android Development] sheikhramnuj:
Master [MENTION=2376110]dorimanx[/MENTION] Please take a look :)
[G2 Android Development] lgnd:
Sudden reboot on the table. Cloudy 3.3 dorimanx 6.9 I had no reboots with 6.8 I hope the log is useful thanks!
[G2 Android Development] dorimanx:
I see that enabling watchdog is not good idea. We get strange reboots.

Had one today, nothing in log.

I will disable it again. As was in previous builds.

Sent from my LG-D802
[G2 Android Development] Lizzacore:
No reboots here:)
[G2 Android Development] n@vier:
I can confirm that today I had a random reboot , I don't have a log because I'm testing my custom profile on dorimanx app and I thought it was my configuration (half way between extreme and performance profile) but for me this is a good info for my tests :good:

I'll waiting your next release and meanwhile I'll continue my tests. Thanks Master for your support ;)
[G2 Android Development] purpleraintoxicity:
Beside having half a second delay between entering the password and device unlock,

No reboots nor any other bugs
[G2 Android Development] gamertwo1:
V6.9 working smoothly on my d800. System is up for more than 24hrs.
[G2 Android Development] pmgnet:
7 days uptime on 6.8! You rock, dorimanx. The phone is super fast, which has to be the best performance over so much time my phone has ever seen. I'll happily hang out for the next build, with that new 6.9 reboot issue.
[G2 Android Development] raptorddd:
same hre ever since i used 6.7 the 6.8 and now on 6.9 never had a reboot using cloudy_3.3
[MENTION=2376110]dorimanx[/MENTION] on a rom in s2 they had laptop mode in memory it said it could improve performance delaying writing but may loose data.. is this option good or not? for your kernel? just asking
[G2 Android Development] dorimanx:
We have async write sync. No need to use other fs sync delays.

Sent from my LG-D802
[G2 Android Development] g.paganini:
Had another reboot at a moment I finished a phone call.. I'm sorry that I'm one of the rare rebooters but here is a log just in case there is something of interest.

https://drive.google.com/file/d/0B_LbsT0gdUatLWhXbkJjWDkyZ28/view?usp=docslist_api
[G2 Android Development] halfdeaf:
Hi,

I'm on ls980 with cloudy g2 3.3 with 6.9 kernel so far i didn't had any reboots freezes or anything at all. Device is super smooth! Thanks to you.

But my charging is really really slow only getting around 320mA (checked with ampere), so it take 4hour plus to full charge! I'm using a 2A charger and fast charge manual is set to 1800mA. :(

I have checked the same charger with my tab but there i get around 920 to 1000mA. Dunno if it's a problem with my battery.

(Tried resetting battery status in dori app it suddenly drops to a very low value)

Regards
[G2 Android Development] djtiesto22:
Try to use other cable if you have one, works for me!
[G2 Android Development] Diechel:
My thoughts (not the truth probably :):

Our LG is very sensitive on which charger and cable are used to charge the phone (resistance?). In my car with a 2AMP charger and a Samsung cable my phone drops in % when navigating.... (charging @ <300mAh)

So you can try again with original charger and cable. If you already used it then maybe the LS980 is not capable of the fast charge feature of dorimanx. Maybe try to disable it in the dorimanx app.

The drop of battery % is completely normal and will be stable in a charge (or 2).

My charging with original stuff is working good @ 1600mAh
[G2 Android Development] Ginel:
if i charge my phone with 1670ma 1700 or 1820 is any problem? it will affect my baterry?
[G2 Android Development] Peppe91:
Wait, it will blow in air!! Just kidding[emoji23]

The answer is no, it depends mostly from your wall charger power. Dorimanx setting are mostly safe to use. Btw can you do me a favour? For next times can you ask questions in the q/a thread? [emoji6] [emoji111] [emoji106]

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] n@vier:
The only problem for lithium battery is the heat, if your g2 seems too hot you can set 1200mA only to avoyd battery's stress. Anyway there is a control for battery temperature and it is always safe if you use original charger.
[G2 Android Development] tarkil:
Random reboot this morning, very little after I restarted my phone, I was just listening music.

Hope this can help!

https://drive.google.com/file/d/0B5XEX3jIlwPuTTNYdG9UYzc4NFU/view?usp=docslist_api
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Bug from a few days ago on 6.9

https://app.box.com/s/sbhcg97gvw1ndzc7hafevr23ww5edkex

Any commits that can cause cpu register corruption? This last_kmsg seems like that. It happened while on home screen. Also happened in 6.7.
[G2 Android Development] halfdeaf:
Tried different chargers different wires etc including stock charger. All i get is an average of about 340ma :(
[G2 Android Development] dorimanx:
Disable force fast charge. Check again.

Ls980 as its own charging code.

Sent from my LG-D802
[G2 Android Development] halfdeaf:
Tried that as well the max i got is 400mA. Dunno if its a ROM issue or not!

Thank you :)
[G2 Android Development] dimakolenko:
Had second reboot today in my life with Dorimanx kernel(

Even not reboot, just phone was sleeping and didnt wont to wake up by 2 tap. Just went off.

Had to reboot it with power button.

Sorry, havent save the log, but I can say that it is something wrong with Dorimanx 6.9, I had the only one reboot in my life with Dorimanx kernel before and it was on one of the first release...

Dorimanx 6.9 - LG G2 LS980
[G2 Android Development] Computoncio:
Dorimanx already said that watchdog has a problem in v6.9.

Use last working version or await for v7.0 ;)

Phone: LG G2 D805

Kernel: Dorimanx kernel v6.9 LP D802

1st ROM : SRK-D80230f_20150926_droidth

2nd ROM : Waiting for custom recovery ;)

MODS: Viper4Android, Xposed
[G2 Android Development] dorimanx:
News Update!

Kernel 7.0

13/11/15

*Fixed EXFAT windows check disk errors.

*Updated ZRAM dmesg prints.

*Merged update to Memory, XHCI, Module load code.

*Merged big updae to sound driver code, improve MIC detect and sound output.

My headphones love the change :)

*Disabled watchdog, causing false reboots.

*Updated toolchain gcc 5.2 with new libs, stable tuning, and new crosstool.

*Merged big update to SPS,SPI,SLIMBUS,OF, drivers from 3.10.y

improved HDMI,SOUND, and other global functions in drivers.

many bugs fixed, many optimizations added.

*Tuned all profiles for dirty memory usage tuning. to reduce ram drain.

Profiles will be reset on boot, once.

have fun. tested all on my device. all good.

Report if something not working! (data,wifi,bt,nfc,hdmi dongle, otg,) or anything else.

many hours spent on merging the code from 3.10.y and adapt to our LG :)

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

I confirm that new sound drivers are impressive! More details and more sound space...great job! ;)

Thanks Master! You Rock!

Ps: after some days of extensive tests I'll report my experience with v7.0 :thumbup:
[G2 Android Development] mathews95:
[MENTION=2376110]dorimanx[/MENTION]

when i install this kernal i cannot use mtp ( charging and installer options are working )

model:- vs980 and problem is there on both stock lollipop and xdabbeb"s 3.1.2 rom

mtp is accessible if i reboot into recovery - now i use this method to transfer files !

if it is related to fast charge setting how to reverse it ??
[G2 Android Development] Computoncio:
Flash a kernel that mtp works and zip all files in root folder and upload.

If dorimanx doesn't mind, i can check usb confs and upload a test version for you to test after the weekend.

Phone: LG G2 D805

Kernel: Dorimanx kernel v7.0 LP D802

1st ROM : SRK-D80230f_20150926_droidth

2nd ROM : Waiting for custom recovery ;)

MODS: Viper4Android, Xposed
[G2 Android Development] pmgnet:
Shutting down my 9 days of uptime on 7.8 to get the new awesome!
[G2 Android Development] EvilKing009:
6.9 update: greatly improved battery life! Thanks! :)