yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] pmgnet:
Hi, Dorimanx, I'm a long time fan of your work, and I spent much time with your kernels in my G2s... I wanted to see if you might have any idea on the effort it might take, or possibility to port over your awesome zram work to a Marshmallow kernel. I'm hoping to convince [MENTION=5398565]electricjesus[/MENTION] that it would a worthwhile addition his most excellent Bliss ROM.

Thanks!
[G2 Android Development] laofan:
Highly doubt it. This kernel is stock base.

Bliss (or any other non stock-base custom rom) uses CM/AOSP base.

If it could be done, it should have been done already.

P. S. I am using this kernel since 2014.
[G2 Android Development] dorimanx:
CM has introduced, old ver of zram, but its far away from zram 4.6.y that we have.

Driver is connected to memory and block code, its must be full merged with 3.10.y android kernel. I did that.

CM will never do this, its not there position about kernel.

3.4.y stay 3.4.y with minor fixes.
[G2 Android Development] GodKiller_222:
Hi, Dori. Two stupid proposals:

1. While installing your kernel - its obvious that we already have root + cust.recovery. Maybe, it would be a good idea to remove fota functional from the kernel? All that stupid services & scripts, that slows boot process and recreate useless empty folders, every boot.

2. There is still a common problem on many win systems - when plugged to pc and rebooted, phone appears in win for 2 seconds, and disappears after second "reconnect". Could you make this reconnect optional, please?
[G2 Android Development] robcore:
[MENTION=2376110]dorimanx[/MENTION]

I'm working on a kernel for a ...let's say, similiar device and have definitely drawn from your incredible work. That said, I'm curious if you have run into any userspace conflicts between android shared object/runtime/native code and your kernel backports/updates. I definitely hit a few snags here or there when stock userspace/system is unable to adapt to certain (otherwise legitimate) kernel modifications. Do you have any insight? Sorry if this is a bother, I simply thought I'd ask an expert on the subject ; )

Hope all is well.

Rob
[G2 Android Development] CampfireVibés:
At first I was like wow what makes that guy think he can steal Doris work.... Then I saw your name ???
[G2 Android Development] robcore:
Haha though open source development really makes the concept of stealing less likely if you follow the gpl, I still give credit to the brilliant minds who inspire me, and the folks whose open source material I use. For me it's almost a life philosophy, aside from being a legal requirement.
[G2 Android Development] Bdev3:
Yes, I got the issue after well over a year's use and have had it a few months and just rotate the phone for a workaround. It's quite annoying but seems silly to replace phone over it when don't see much performance gain compared with a G5 or an S7 or the htc one. This kernel rocks!

Tales of woe with screen can be read here: http://xdaforums.com/showthread.php?t=2478927

Kdz to stock kitkat didn't fix for me. Playing with service menu screen tests has helped temporarily. New and old phones are susceptible and even screen and digitizer replacement has failed. LG should replace all affected phones but won't help after warranty expires.
[G2 Android Development] wikowikowiko:
Just got freeze and automatic restart. Log attached.

Thanks a lot for great kernel!
[G2 Android Development] dorimanx:
There can be problems, if kernel change hard coded path to drivers, then rom or apps fail.

need to be careful not to change special drivers made by manufacture.

My source is open. And public.

If you need any commints for special code, make sure you cherry pick them.

My kernel is hard work of over 100 devs.

I hope you can resolve any userspace issues, or adapt the code to support it.
[G2 Android Development] dorimanx:
Proposal denied.

there is no problem with adb. Problem is with windows and wrong drivers.
[G2 Android Development] jenda.69:
I don't know what am I doing wrong. I have CloudyG2 3.3 and it is occasionally laggy etc.

From time to time I get annoyed by that and try installing other kernels but every time I must revert back to cloudy's stock one.

Dorimanx kernel feels better than the other ones I tried in terms of battery life, but I always encounter other problem with it.

I leave everything on default (except turning off couple of cron tasks, brightness limiter, swipe to sleep...) and after a few minutes, system becomes annoyingly sluggish and it is the same after every reboot, few minutes ok, then sluggish.

What I mean, system should run smooth, say 60fps, but after few minutes it looks like everything is ~30fps, scrolling in launcher or in menus, even games, everything is in lower frame rate.

I thought it could be some kind of low power consumption profile, but everything is on default values. What am I doing wrong? Should I do any cleanup before using kernel? I only wiped cache.

//Just to be thorough, my phone is D802 and I tried latest stable kernel v11.0 today. I also had similar problem with v8.9 when I tried it before.
[G2 Android Development] Nightshadow931:
God knows, try to take a look at used CPU % through some task manager.
[G2 Android Development] runekock:
[MENTION=705591]jenda.69[/MENTION]

I guess this really belong in the q&a thread...

It could be the ram filling up, but my guess is that the governors are not aggressive enough for your liking. Shortly after boot, background tasks are still loading, and will keep the CPU running at high speed.
[G2 Android Development] robcore:
All duly noted, thanks my friend.
[G2 Android Development] jenda.69:
Oops, there's q&a thread, I was re-reading installation instructions etc. and didn't notice big letters, sorry. :eek:

I'll try monitoring CPU usage and switching governors and post my observations to q&a thread.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

Freeze and hard reboot while browsing with XDA labs app...attached the log there...I hope it can be useful...thanks ;)
[G2 Android Development] Cienight:
Which supersu version have you installed?
[G2 Android Development] n@vier:
The last v2.76
[G2 Android Development] Romagnolo1973:
To master Dori,

this month I have tested a lot your kernels version and I revert back to 10.6 that for me is the perfect one.

Since 10.7 I have faces a lot of batery drain in aero mode. This appens with 11 and 11.1 too.

i use my device only in 2G and mosltly it stay in deeplsleep.

In this scenario 12 hours in aeromode on battery consuption is 6-7% alias the same consuption i have un 2g 12 hours during the day. So i need recharge my G2 every 6 days. Reverting back to 10.6 during night consuption is 1% so i can easely reach 2 week withous recharge. No apps update in this month so the system is the same.

I Think that for some reason since 10.7 2G modem stay active even in aeromode, I can not imagine other possibility.

I have tested 1 week 10.7 with the problem so revert to 10.6 and no battery drain, than I tested 11 one week and 11.1 with the same issue so I was once again revert to 10.6 and in aero mode now I have just 1% battery drain at night.

Probably noone face this issue because people recahrge G2 avery night or so
[G2 Android Development] Diechel:
Maybe due to this :

Kernel 10.7 STABLE.

*Fixed DATA modem IRQ enable in suspend. will help with connection stability and notifications.
[G2 Android Development] CampfireVibés:
Hey dori, would you be able to add in Westwood+ as a net congestive control option :) I heard it's even better then Westwood which I think is currently the best option for weak signal range WiFi :)
[G2 Android Development] OT-Xtreme:
what is that aero mode? didn't understand that..
[G2 Android Development] :
I think he mean the airplane Mode?!
[G2 Android Development] dorimanx:
Looks like memory error. Log is damaged, and last words, about gpu driver, but i cant understand what was it.

I hope its app bug...
[G2 Android Development] dorimanx:
Yes, that can be the thing...

Hmm. I will try to change this again.

Need long tests to see results.

Thanks for report.
[G2 Android Development] dorimanx:
is it in kernel drivers? Or i have to port it from some source?

If so, i dont think its good idea.

We have too much net controls already.
[G2 Android Development] Fr3dY:
Hi,

It seems it's available in Kernel: http://c3lab.poliba.it/index.php?title=Westwood:Linux

Linux Implementation

TCP Westwood+ has been implemented in the Linux kernel and it is included in the official Linux kernel from the release 2.6.3-rc1 and in the 2.4 kernels in the release 2.4.26-pre1.

How to select/deselect TCP Westwood+ congestion control

If you have a 2.6.x kernel with x>3 or a 2.4.x kernel with x>26 TCP Westwood+ support is compiled in the kernel. All you have to do to use TCP Westwood+ congestion control is to activate it through a sysctl call.

Instructions for kernels < 2.6.13

As root user issue the following command

sysctl -w net.ipv4.tcp_westwood=1

or:

echo 1 > /proc/sys/net/ipv4/tcp_westwood

If you want to use TCP Westwood+ as your default congestion control algorithm just edit /etc/sysctl.conf and add the line:

net.ipv4.tcp_westwood=1

To switch off TCP Westwood congestion control just run one of the above commands with 0 instead of 1.

Instructions for kernels>=2.6.13

Since the linux kernel 2.6.13 the congestion control layer has been rewritten in modules. In order to use TCP Westwood+ you have to compile it either as a module or in the kernel and then issuing as root user:

sysctl -w net.ipv4.tcp_congestion_control=westwood

or:

echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control

If you want to use TCP Westwood+ as the default congestion control algorithm just edit /etc/sysctl.conf and add the line:

net.ipv4.tcp_congestion_control=westwood

Regards,
[G2 Android Development] Romagnolo1973:
oops sorry yes, in Italy is called aeromode and I forgot to translate it in english, is the airplane mode or called flightmode in other country
[G2 Android Development] zizuka:
Need test build or new BETA with this commit reverted to test.

Takes time to test so maybe dori can push beta so we all can compare results
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

v11.1 for me has a great battery (93% of deepsleep with everything on...WiFi 4g mails push etc.) ;)
[G2 Android Development] dorimanx:
Well, in this case, you just set Westwood and get the Westwood +

All already enabled.
[G2 Android Development] RohanM:
[MENTION=2376110]dorimanx[/MENTION] Device rebooted after plugging to pc.. LS980, please check below log.

Thanks.

http://cloud.tapatalk.com/s/578518db975d2/dorimanx_debug-V11.1.zip
[G2 Android Development] dorimanx:
Hmm... interesting!!!

[FACTORY] PIF_56K detected in NORMAL BOOT, reboot!!

it's detected type of cable that has to be used in factory boot mode only (download mode) and it's set in code by LG! to REBOOT immediately.

WHY??? i have NO IDEA...

use normal thick charge/usb cable.
[G2 Android Development] dorimanx:
News Update!

14/07/16

Kernel 11.2 (should be STABLE!)

*Merged updates for USB/NET/BT from CM13 and CAF sources.

*Merged updates to sound driver for stability.

*Changed Modem driver power save state to allow suspend in low level connections as G/Egde (2g)

has no effect on high level connections, as H/H+/4G. pwr drain is NORMAL in limits, and allow steady link in suspend.

for notifications/mails/other.

This build should reduce power usage in 2G ONLY. i cant reduce usage lower than now without braking the link to net with 3G/4G data.

There is no change in sound quality, just checks to prevent crashes if some app is bugged and access buffers in wrong way.

Have fun.
[G2 Android Development] Fr3dY:
Hi Dori,

Latest SuperSU hasn't been included in this release?

Regards,
[G2 Android Development] saspo59:
Some thing is not synchronize with dori ota?
[G2 Android Development] Diechel:
Yes same here
[G2 Android Development] dracushor87:
no. we are flashing with the OTA app, therefore the kernel is in the internal storage and has no connection with the OTG.

for you i think that the OTG remains mounted in the TWRP settings and that is why it complains
[G2 Android Development] HighlanderZA:
I agree - but even in manual TWRP mode - If i flash anything - I see a red message about the E: storage being missing. Tried a SS from TWRP, just cant find it now. :p

I have a 16GB version so flash most everything from my OTG - when wanting to flash from internal I normally have to 're-point' TWRP to the internal storage as it 'defaults' to the OTG. Once flash has completed from internal, the RED message is visible in the log that the E: is missing or something like that.

And right now I don't feel like doing this just for a few SS's from TWRP - http://xdaforums.com/showthread.php?t=2635736
[G2 Android Development] remorema:
2.2 was slowing down. had to enable performance mode to smooth things up.

edit: to all that live in portugal and are having network issues. its on server side. meo/tmn had major issues nationwide yesterday and its not 100% stable yet.
[G2 Android Development] dracushor87:
that looks complicated :) for now we will have to live with the red messages
[G2 Android Development] dorimanx:
to all with RED ALERT in TWRP.

please upload recovery log from /cache/recovery

so we can see what is wrong there...

If it's kernel install script bug, i will fix, if it's recovery bug, then point it to recovery DEV.

all simple when you not guessing... we need to know.
[G2 Android Development] oTeMpLo:
last.log

https://drive.google.com/file/d/0BzGdGHHs0zdxU3FKRjVmWTZXS0k/view?usp=sharing

( red error is seen when flasing with Dori OTA app)..

in all Log looks ok to me..
[G2 Android Development] Nussi29:
Is this normal? I have the last 2.2 installed and 1600ma in stweaks but charging very slow. With kk always charging fast compare to the original charger of LG with 1800ma

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] TMG1961:
Here is mine

https://drive.google.com/file/d/0B9W6VEyy4ygSenI5OW1hYU83ams/view?usp=sharing
[G2 Android Development] remorema:
random boot browsing tapatalk.

log https://db.tt/q2EPsWyW
[G2 Android Development] HighlanderZA:
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
E:Unable to mount storage.

As I expected - E: Unable to mount storage. - is the RED bit in my manual TWRP flash of the kernel.

Rest of kernel flash looks fine.

2nd log file is from the OTA flash of 2.2 - some odd looking messages in one place?

Running boot script...
/sbin/postrecoveryboot.sh: line 7: can't create /sys/devices/i2c-0/0-0032/led_pattern: nonexistent directory
I:Postrecoveryboot script started!
32+0 records in
32+0 records out
32 bytes (32B) copied, 0.007331 seconds, 4.3KB/s
I:LGE MISC flag reset
I:/sbin/postrecoveryboot.sh process ended with RC=0

But all looks ok and seems to work fine.
[G2 Android Development] Diechel:
Normal flashing from within TWRP of SDCARD

/sbin/postrecoveryboot.sh: line 7: can't create /sys/devices/i2c-0/0-0032/led_pattern: nonexistent directory
I:Postrecoveryboot script started!
32+0 records in
32+0 records out
32 bytes (32B) copied, 0.010757 seconds, 2.9KB/s
I:LGE MISC flag reset
I:/sbin/postrecoveryboot.sh process ended with RC=0

I:Unable to mount '/usb_otg'

Maybe an idea i had earlier for OTA app.

Checking for MD5 file...
Skipping MD5 check: no MD5 file found

Should i create a MD5 file for TWRP or is that overkill

EDIT:

Implemented and tested, better safe then sorry.

MD5 matched
[G2 Android Development] duki994:
Another reboot from last night... On 2.2

Log:

https://docs.google.com/file/d/0B3IE1a81eJwSeElaZ2xseDhLNFU/edit?usp=docslist_api

"unable to handle kernel paging request" and "stack error" in logs may be due to some bad pointer? Or invalid type/return that corrupts some pointer.
[G2 Android Development] dorimanx:
I have destroyed CPUFREQ bugs in all active cpu govs.

https://github.com/dorimanx/DORIMAN...mmit/ba33356a8105783839927476155df89e33141630

so should i release 2.3? or let you boil some more??? :)
[G2 Android Development] Diechel:
For me 2.2 is good with performance profile (default).

If you want to boil more, then i say call me when the cooking is ready :)

OT:

My documentation of my graduation has been assessed positive today:)

Now only presentation and defense.
[G2 Android Development] dorimanx:
it's not strange that you have bugs all the time, and others dont... at least not with last build...

maybe you need to fresh install... no mods. no mess in ROM... then 2.2 kernel.

use default or performance profile. and be happy as others???

before all went to hell for you...

EXT4-fs (mmcblk0p30): re-mounted. Opts: noauto_da_alloc,data=ordered

EXT4-fs (mmcblk0p30): re-mounted. Opts: noauto_da_alloc,data=ordered

when screen wakeup, system was been remounted... by WHO?? and WHY??? my cortex script dont do it on wake...

no other scripts do it... so it's some app you have...

and what if it's set some wrong flag and BOOM?

do you have some TRIM storage app?

maybe you have errors in system partiton!

as kernel not allow that, any error. and PANIC

/dev/block/platform/msm_sdcc.1/by-name/system on /system type ext4 (ro,seclabel,noatime,nodiratime,noauto_da_alloc,data=ordered)

errors in not set "continue" as for data...

try to format system and install ROM again...
[G2 Android Development] ebautista:
For the red flag storage message in twrp. Boot to recovery. Go to mount, uncheck otg and select internal storage from the storage button above disable mtp. Same issue as mine before. Or go to twrp setting look for remember something... :) i forgot the name of that option.
[G2 Android Development] Sfuma:
No, this would not work. You need to wait the relase for your d800
[G2 Android Development] fer2503:
stuck at bootlogo with cloudy 3.0 on d802. any solution?
[G2 Android Development] goran_oh:
Hm flash cloudy stok kernel

Sent from my LG-D802
[G2 Android Development] dorimanx:
i never INCLUDED supersu, so NO.
[G2 Android Development] dorimanx:
FIXED.
[G2 Android Development] dorimanx:
try harder.
[G2 Android Development] Fr3dY:
My fault, I mixed it up with with busybox then... that's the one that shouldn't be installed out of the kernel, right?

Regards,
[G2 Android Development] dorimanx:
busybox 1.26.0 is installed with kernel.

remove any apps that brake that, and install old crap instead or just mess the system.
[G2 Android Development] n@vier:
[MENTION=1559352]Diechel[/MENTION]

I tested dorimanx ota app pro and it works perfectly :good: I flashed new kernel without any problem with new function 1 button (download + flash): great job...thanks ;)

[MENTION=2376110]dorimanx[/MENTION]

After some days of tests I'll report my experience with v11.2 (anyway after that crush with v11.1 everything worked great smooth and stable).

Thanks as always for your awesome support ;)
[G2 Android Development] alirezagoli95:
3% in 45 min

On 2G

?
[G2 Android Development] n@vier:
You need time to test this with accurate results. In general after 2-3 cycles of full charge/discharge in the same condition you can understand if battery drain will better or not.
[G2 Android Development] Romagnolo1973:
Thanks master Dori, I'm testing 11.2 now to see battery drain in airplane mode ans 2G. I will report in 2 or 3 days, just time needed to test properly
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

As always everything works smoothly but I had my first stuck and reboot with v11.2...attached the log maybe there is something interesting...only you can say...thanks master ;)
[G2 Android Development] dreamerx1984:
Why Dori OTA app (free) always shows "not available" kernels? I just can upgrade by recovery...

Thanks!
[G2 Android Development] Diechel:
Post app log in my OTA thread. Link in my signature
[G2 Android Development] dreamerx1984:
It is working fine now, it was a problem with model number. It shows model as G2, I have to select model as D802 and now I can download many kernel versions.

Thanks!
[G2 Android Development] Romagnolo1973:
Tested 11.2 and everything is 100% ok.

No battery drain in airplain-mode, is 2% battery consuption in 12 h in flight-mode.

6-8% in 2G every 12 h of low use;

Is the same consuption I have with kernel 10.6

Thanks master Dori
[G2 Android Development] dorimanx:
Crash in camera driver, triggered by some app, driver is stock. So i cant do much.
[G2 Android Development] dorimanx:
Great, thanks for test and report.

I will think of a way to allow user selection for less drain but delayed notifications, or stable real time notifications, but slightly higher drain in suspend, as it's now, (quite normal)
[G2 Android Development] Lycanlk:
Dori's kernel 11.1 default settings

ICX 5.9 final

Asian modem

More than 1 and half years old battery.

4G on but didnt use as wifi available.

No issues encounted yet.

Launcher is smooth but some web apps are not very smooth when scrolling, even the play store app. Hope its an android issue. Kernel is fine. Thanks.
[G2 Android Development] Aarush69:
How t o fast charge LG G2 D802 using this kernel setting please tell me
[G2 Android Development] khanjui:
Search that in Dorimanx app, next time please use Q&A thread.
[G2 Android Development] fridaynext:
I've only been running Cloudy G2 3.3 and Dorimanx 11.2 for three full days, but I've had absolutely no reboots, and the phone is better than any other ROM/kernel combo I've ever put on it. I'm incredibly happy with this kernel - great job!!
[G2 Android Development] dorimanx:
Me too :) thanks for report.

217 hours, of happy user.
[G2 Android Development] naraykln01:
I had no issues with 11.1. I use NDM 5.5. After upgrading to 11.2, i faced WiFi dropout issue, frequent reboot or hanged and frequent UI reload. So reverted back to 11.1.
[G2 Android Development] CampfireVibés:
Attach a log or its useless as most users don't gave these issues... Not to forget ndm 5.5 isn't a 100% stable ROM as the developer gave his g2 away/sold it and stopped development :) I would recommend cloudy g3 as it just works great or a debloaded stock rom
[G2 Android Development] siggey:
Hi dori, it's been a long time.... Just a thing, why not this like the next dori supported device?

http://www.xda-developers.com/oneplus-3-xda-review/

If you ask, them probably send you a free sample
[G2 Android Development] dorimanx:
Nice. i like the article. good compare and info.

it's 631$ in my country.

and my LG is doing it's job so far. i will wait for price drop.

oneplus 3 is seems to be beast that i need. finally huge RAM chip. 6gb is great.
[G2 Android Development] keaheng:
"Off topic"

bro go for it.. great community.. more devs can help to get job done faster.
[G2 Android Development] n@vier:
I think OP3 it's a great smartphone only display seems to be not good as others top devices.

Anyway the official price is 399$ in many countries (631$ in your country is simply crazy! :eek: )

When time comes if you will go to this device there will be a Wonderful Revolution in AOSP Rom! :)

AOSP Rom + Dorimanx Kernel = Nuclear Fusion! This sounds in a word: AWESOME! ;)
[G2 Android Development] kevin6554321:
Hey there,

Does this kernel prevent increasing brightness while the phone's temperature is high?

Is it usable for CM 13?
[G2 Android Development] Abrilabr:
Hi.

No, just limits to 90% sometimes. And again No CM12/13, just stock LP based ROMS for LG G2
[G2 Android Development] naraykln01:
What about cheloz v5 rom...is it stable? Shall i proceed installing that rom?
[G2 Android Development] siggey:
Hey, I started a thread on one plus forum asking a free phone for dori, I need support

https://forums.oneplus.net/threads/kernel-developer.456175/
[G2 Android Development] Diechel:
Reboot to LG using Waze

Unable to handle kernel paging request
Unable to handle kernel paging request at virtual address 00001fd4
pgd = c0004000
[00001fd4] *pgd=00000000
[G2 Android Development] boyheadkick:
5 days (131 hours) up, no reboots, no freezes, no nothing..great stability for 11.2 :good:
[G2 Android Development] Abrilabr:
Best app to undervolt D801 with latest kernel?