yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] runekock:
Funny, when I change hotplug, it works fine to begin with, but after I turn the screen off and on, it starts using all cores on high loads.

Also, Alucard hotplug works as expected. But all of the other hotplugs don't.

So a good workaround is just to use Alucard.
[G2 Android Development] 7HUND3R:
Hello, for kk bootloader you mean KK-20H-D802-BOOT-LOADER_ONLY.zip 515 kb which I found on dorimanx mirror? so I come from v30b stock, install with srk tool 2.1 root and recovery then follow your procedure with that bootloader zip file? Thank you so much :D
[G2 Android Development] blastagator:
I was having lag, ROM would freeze ~1-2 secs. I think it is ROM and kernel bumping heads. Going to switch ROM tonight to full stock and strip it down myself, then go from there.
[G2 Android Development] andylong42:
Having charging problems here. Using CloudyG2 3.1 on D802 with 2.9 kernel. Set fast charge to on/manual/off tried limits at various settings but only get 30mA max from a charger that was giving 1600mA on CM12. Any suggestions?
[G2 Android Development] Lawlrus:
[MENTION=2376110]dorimanx[/MENTION]

Not sure what device you're on, I'm going to assume a d802, and granted I have been just glancing at this thread, more or less to see what's going on.

But, it seems like most of the people reporting reboots are d802 users, now, I'm an aosp guy, so that's what I flash, and it seems like for a long while on 5.0 aosp, d802 users were having reboots as well.

After many devs did a good bit of digging, it was an issue with the modem. You think that might be playing a part in these reboots people keep having? If you do indeed have a d802, then I'm at a loss for why it seems to only be them. Just tossing it out there to see if you've possibly already covered that possibility.
[G2 Android Development] dorimanx:
Can you hear any change when music play via headphones and you add gain to left or right channels?

I will run tests, maybe with lp control file is changed for small speaker. Or not....

Sent from my LG-D802
[G2 Android Development] dorimanx:
Ok, i know what is wrong, on screen on hotplug fire all cores up to boost wakeup, then its should obey the user set of max cores.

There is delay for this all core boost, then its go normal,

But maybe we have bug there, that needs to be corrected. I will check it out.

I have hard week at work, so not much time for kernel... :(

Sent from my LG-D802
[G2 Android Development] dorimanx:
I have d802 with modem that came with 30b rom.

No problems. No reboots.

Sent from my LG-D802
[G2 Android Development] 60nine:
+1

and i think other variants have more problems, not d802...
[G2 Android Development] duki994:
Hmmm. Noticed something now. I'd like someone else to test.

When downloading large file with highspeed link, phone CPU temp goes up (which is normal), and mmc is heating due to hard working.

Then I set nomerges tunable for i/o scheduling to 2 (effectively disabling all i/o request merges). CPU temp lowered a lot when I did that.

I/O request merging was needed for rotational hard drives, so that drive would not seek everywhere and painfully slow down with read/wrote speed. Then scheduler would merge read/write requests that are close to go in order (example: block 1, block 7, block 9.....) so that drive would not go forward-backward-forward- and so on.

For flash drives that is not needed, since they work dofferently.

SSD's work good with simple merges only (equals to nomerges = 1) since they are fast at multiple reading/writing, but slower with all i/o request merging due to cpu working harder.

Our eMMC should in theory work best without any i/o request merges, plus that would offload CPU a bit. If it's slow in sequential read, then it would be better to leave simple request merges (nomerges = 1).

So, in theory, ZEN sched is, with no any i/o request merges, (judging by it's code if I did not forget it) essentialy rounding data in FIFO order and then eMMC takes care of storing data.

So it would be good to both change nomerges to 2 and set fifo batch a bit higher (8 or 16) to avoid eMMC being unable to write as fast as sched/CPU processes i/o and to slow down system.

But for now everything is good for me, and CPU temps are lower when having heavy i/o + internet operations.

Someone else please test to confirm.

No problems with modem. Although KK modem is better with maintaining stable signal. More dropouts with LP modem.
[G2 Android Development] Peppe91:
Yes, I can hear headphones gain in left and right channels. Really thanks!

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] L22EEW:
Recommended settings when using this Kernel with GloudyG2 3.1? My score with aTuTu at the moment is a measly 34743 - which is quite low?

EDIT: Just done a re-test, score has shot up :) 41153 !!
[G2 Android Development] MilanStojkovic:
Option to disable ipv6

[MENTION=2376110]dorimanx[/MENTION]

I was wondering if you plan on implementing this function in kernel / stweaks? Tbh, I am not sure if this is the right place to ask this, but I read somewhere that in one of your older kernel's (might not even been g2) this option existed in stweaks. Sorry if this is OT and thank you for this great kernel!
[G2 Android Development] Floodland:
Dori, another day, another LP which miserably fail to keep mobile signal with D805 or D806 modems, only with your kernel v2.9 now, but it happened with earlier versions as well (Cloudy's one works ok with latest cloudyG2 3.1, the same happens for cheloz and other LP ROMs I tried before, stock kernels do not produce the issue).

For what I read in the logs, the issue is related to the SIM detection, the system detects a (false) SIM not available at random points, recycle the processes and get the signal back after a second or so, but the phone drop connections and phone calls. It does not depend on the mode (happens with 4g, 3 or 2g)...

Logs at

https://drive.google.com/file/d/0BwI6vUABVqvec05VVHBKMkF0MVE/edit?usp=docslist_api

Please let me know if you need something else, thank you
[G2 Android Development] mannequin:
are you using a script to change those values? i'd love to test this since my temperatures are somewhat crazy.

with 2.9 i can't execute init.d scripts anymore, none of the values are being written. either that or the script can't access certain system folders anymore since selinux change. had no issues with them on 2.8.

so i was wondering how are you changing those values.
[G2 Android Development] jamesd1085:
Trickster mod works...i changed these values and haven't had any issues...but my device never really heats up too much anyway
[G2 Android Development] drew150931:
I need help please. Im on cloudy G2 3.1 rom, then what i did in to install dorimanx kernel 2.9 and reboot to recovery and install doriLP-selinux-enable-v1-blastagator-signed and reboot. after that im stock on lg logo. how do i fix it?
[G2 Android Development] jamesd1085:
If you read as many posts as the amount of forums you posted this in you could probably have your answer by now...hold down power button until it stays off...hold down vol- and power til lg logo shows the release both buttons and repress both and it will ask to go tofactory reset...select yes and you will boot to twrp...reflash rom and reboot

P.S. ports are unsupported by dorimanx
[G2 Android Development] drew150931:
I do what you said but instead to re flash the rom ire-flash the dorimanx kernel 2.9 and its work. thanks :D
[G2 Android Development] LeoPosas:
Random Reboots While Sleeping

Hi [MENTION=2376110]dorimanx[/MENTION], thanks for your awesome kernel, I owe you a beer. Wait for that.

Reporting random reboot while my device it's sleeping, nothing changed about govs or schedule.

Hope to help with this.
[G2 Android Development] blastagator:
[MENTION=2376110]dorimanx[/MENTION] - re: https://github.com/dorimanx/lp_ramdisk_dorimanx/commit/8ea3cf0563ed3c3a63543e9590f3f96045507cc8

/res is already defined on line 11. Having it defined in two places causes an error.
[G2 Android Development] dorimanx:
About KCAL with problem to write to files.

I dont see any problem. files have write access by ROOT,

and working just fine.

root@g2:/sys/devices/platform/kcal_ctrl.0 # ls -la

ls -la

total 0

drwxr-xr-x 3 root root 0 Jan 24 1970 .

drwxr-xr-x 131 root root 0 Jan 24 1970 ..

lrwxrwxrwx 1 root root 0 Jun 17 07:11 driver -> ../../../bus/platform/drivers/kcal_ctrl

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_cont

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_enable

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_hue

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_invert

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_min

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_sat

-rw-r--r-- 1 root root 4096 Jun 15 09:43 kcal_val

-r--r--r-- 1 root root 4096 Jun 17 07:11 modalias

drwxr-xr-x 2 root root 0 Jun 17 07:11 power

lrwxrwxrwx 1 root root 0 Jun 17 07:11 subsystem -> ../../../bus/platform

-rw-r--r-- 1 root root 4096 Jun 17 07:11 uevent

root@g2:/sys/devices/platform/kcal_ctrl.0 # cat kcal

cat kcal

256 256 256

root@g2:/sys/devices/platform/kcal_ctrl.0 #

root@g2:/sys/devices/platform/kcal_ctrl.0 # grep . *

grep . *

kcal:256 256 256

kcal_cont:255

kcal_enable:1

kcal_hue:0

kcal_invert:0

kcal_min:35

kcal_sat:273

kcal_val:255

modalias:platform:kcal_ctrl

uevent:DRIVER=kcal_ctrl

uevent:MODALIAS=platform:kcal_ctrl

root@g2:/sys/devices/platform/kcal_ctrl.0 #

NEXT PROBLEM :)
[G2 Android Development] dorimanx:
thanks fixed.

https://github.com/dorimanx/lp_ramdisk_dorimanx/commit/bc31b71c1f35772efa538a5c9aeef0be3ba7a461
[G2 Android Development] dorimanx:
ahhh.... antutu can be painted in BLUE and thrown to sea.

PLEASE i dont care about this stupid app scores. and not any advanced users are.
[G2 Android Development] dorimanx:
not much point to do it now. as IPv6 is OFF in wifi. when in suspend.

and data not using it. so it's not bothering me.
[G2 Android Development] dorimanx:
magic. yep... no other words.
[G2 Android Development] dorimanx:
i was thinking about this too. but then decided to leave it nomerges = 1, as i had many things to do.

but i am willing to test your proposition. and next build will be tuned as you suggested.

lets see if that speed up I/O and reduce CPU overload.

Thanks.
[G2 Android Development] infected85:
Can someone tell me if doris kernel somehow makes taking screenshots not working? Im using cloudys 3.1 now but before i was using sombons 30b and was having this problem. If so could we find a solution?
[G2 Android Development] L0nelyE4rth:
Dorimanx's not making not work.

I'm using Dorimanx 2.9
[G2 Android Development] iko11:
Fast charge limit doesn't seem to be working, weather is too hot and phone is getting hot too, could you check this please
[G2 Android Development] Peppe91:
Can't raise backlight because temperature it's high. But I've noticed through synapse that temp it's OK. Maybe can help
[G2 Android Development] mannequin:
did you try to test it through the init.d? that's where things stopped working with 2.9.
[G2 Android Development] infected85:
Are u using it with default settings or do u have some changes? What are your selinux settings?
[G2 Android Development] L0nelyE4rth:
SELinux is off for stable
[G2 Android Development] gamerZ1:
What CPU hotplug driver do you use you guys?

At GPU Governors and settings what gpu governor do you use?
[G2 Android Development] smartpr1v4t3:
I use govenor "Please go to Q/A Thread"

Sorry but this questions are so extremly annoying in this Developer Thread.
[G2 Android Development] tomheha:
When will it support F320??
[G2 Android Development] krija:
Maybe when you will read rules of the forum, then you will know and never ask again, maybe when you will be senior member, maybe when you will be best dorimanx friend... ;)
[G2 Android Development] MilanStojkovic:
It's okay, I found workaround, an app in play store to do this.

The thing is, I had this wlan_rx_wake wakelock problem. I didn't really understand what was causing it, reading a bit about it figured out it had something to do with my wifi at home, when my laptop and other devices were connected to it (this issue was beyond my comprehension). And one of the options to fix this (according to some people here on xda) was to disable ipv6 on my phone if I am not using it, and ipv4 on my wireless connectivity settings on my laptop. One of the options op suggested (regarding ipv6) was using a custom kernel, and your kernel was mentioned to have this option.

I find it strange because I have wifi off when the screen is off, but apparently disabling ipv6 using Playstore app solved the wakelock problem. That's why I asked about it. Thanks for the input.
[G2 Android Development] dorimanx:
Works ok for fast charge

And config, all already set.

If you wish to change, search what people say.

I use ondemand.

Sent from my LG-D802
[G2 Android Development] dorimanx:
And what did you do, and how do you see that its always max?

kernel block voltage, how can it be max?

Apps, dont have direct input to read from.

Then do everage calc. Leave it for half hour, and you will see that charge drop in app....

Sent from my LG-D802
[G2 Android Development] duki994:
Check your WiFi options in router for ipv6. If disabled, or not compatible for entire ISP network, then disable it in WiFi options if exist in router.

rx wakelock is due to wifi chip receiving traffic. Maybe router is pinging it, or trying to see if device is still connected. Since no ipv6 traffic, router may try to pong device constantly to see if it's still connected due to no network ipv6 data.

---------- Post added at 01:04 PM ---------- Previous post was at 12:59 PM ----------

Init.d works for me on 2.9

Using somboons v30b.

I made script if you need it:

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

---------- Post added at 01:07 PM ---------- Previous post was at 01:04 PM ----------

Open terminal and type:

su

cat /proc/kmsg

Then connect charger and watch what input current value smb349 thermal mitigation function sets :)

That's the most accurate way to know.

Apps lie.
[G2 Android Development] dorimanx:
root@g2:/sys/devices/platform/kcal_ctrl.0 # grep . *

grep . *

kcal:256 256 256

kcal_cont:255

kcal_enable:1

kcal_hue:0

kcal_invert:0

kcal_min:35

kcal_sat:273

kcal_val:255

modalias:platform:kcal_ctrl

uevent:DRIVER=kcal_ctrl

uevent:MODALIAS=platform:kcal_ctrl

root@g2:/sys/devices/platform/kcal_ctrl.0 #

root@g2:/sys/devices/platform/kcal_ctrl.0 # echo "echo "200 200 200" > /sys/devices/platform/kcal_ctrl.0/kcal" > /etc/init.d/01_test

root@g2:/sys/devices/platform/kcal_ctrl.0 # chmod 777 /etc/init.d/01_test

root@g2:/sys/devices/platform/kcal_ctrl.0 # BB=/sbin/busybox

root@g2:/sys/devices/platform/kcal_ctrl.0 # $BB nohup $BB run-parts /system/etc/init.d/

203|root@g2:/sys/devices/platform/kcal_ctrl.0 # cat kcal

cat kcal

200 200 200

root@g2:/sys/devices/platform/kcal_ctrl.0 #

working perfect. from init.d using same command that my boot script run at boot IF INIT.D is enabled in dorimanx app,

any more questions?
[G2 Android Development] fhasovic:
I have noticed that, too
[G2 Android Development] dorimanx:
About no gain to small speaker when on call and screen is OFF.

phone near ear.

i have set incall gain 1. listen. end call.

set gain +6

called and gain is much higher! works fine for me.

prof.

BEFORE CALL!

2|root@g2:/sys/kernel/sound_control_3 # grep . *

grep . *

gpl_cam_mic_gain:3

gpl_headphone_gain:0 0

gpl_headphone_pa_gain:32 32

gpl_mic_gain:4

gpl_sound_control_hw_revision:hw_revision: 1

gpl_sound_control_locked:0

gpl_sound_control_rec_locked:0

gpl_sound_control_version:version: 3.7

gpl_speaker_gain:1 1

lge_cam_mic_gain:3

lge_headphone_gain:0 0

lge_headphone_pa_gain:32 32

lge_mic_gain:4

lge_sound_pa_control_locked:1

lge_speaker_gain:1 1

lge_stweaks_control:1

grep: sound_reg_sel: Permission denied

IN CALL SCREEN OFF!

2|root@g2:/sys/kernel/sound_control_3 # grep . *

grep . *

gpl_cam_mic_gain:3

gpl_headphone_gain:6 6

gpl_headphone_pa_gain:32 32

gpl_mic_gain:4

gpl_sound_control_hw_revision:hw_revision: 1

gpl_sound_control_locked:0

gpl_sound_control_rec_locked:0

gpl_sound_control_version:version: 3.7

gpl_speaker_gain:1 1

lge_cam_mic_gain:3

lge_headphone_gain:6 6

lge_headphone_pa_gain:32 32

lge_mic_gain:4

lge_sound_pa_control_locked:1

lge_speaker_gain:1 1

lge_stweaks_control:1

grep: sound_reg_sel: Permission denied

boosting gain to lge_headphone_gain adding gain to small earpiece speaker.

tested. and busted.

if during a call you want to test online!

adb shell

su

#to hear HIGH gain

echo "6 6" > /sys/kernel/sound_control_3/lge_headphone_gain

#and to hear LOW gain

echo "250 250" > /sys/kernel/sound_control_3/lge_headphone_gain

why 250?! simple! kernel not accepting -1 or -2 it's counting 256 -1 or -2 and lower the gain!

so 250 it's actually -6 :)
[G2 Android Development] dorimanx:
please notice harder :) in dmesg not in apps.
[G2 Android Development] renzo090513:
Dorimanx have you tried Cloudy 3.1? The fast charge it is working well there?

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] mannequin:
so out of all the values for my color script and your iosched script, the only value that got updated is "fifo_batch". i'm so puzzled.

basically, init.d works but only for that value. any ideas?
[G2 Android Development] tropazr:
I am having a lot of random reboots running CloudyG2 on my d800 with dorimanx's kernel (possibly kernel related?). Tried to wipe and flash just CloudyG2 3.1 without the kernel and I am getting boot loops. When I flash CloudyG2 + dorimanx's kernel it boots right up (possible bootloader issue?). I flashed CloudyG2 direct from stock AT&T LP.

I have a log cat I will link too. Hope it helps but unsure if I captured any good info. http://wikisend.com/download/598856/...56-30-0400.txt
[G2 Android Development] dorimanx:
show me your script.

when ROM boot, color control app if set to "SET ON BOOT" sets defaults and cleaning your changes.
[G2 Android Development] jeyd02:
Not sure why but having random reboots with cloudy 3.1 rom. However so far I noticed that after I change my governor from darkerness to all default I haven't gotten an reboot yet.
[G2 Android Development] renzo090513:
I keep darkness and it works good.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] tropazr:
Just switched from default to Darkness - we will see if the reboots continue to occur.
[G2 Android Development] dorimanx:
News Update.

17/06/15

Kernel 3.0

*Merged updates to cpufreq code structure.

*Merged big update to drivers/base code including power and RAM code fixes.

Many bugs fixed, code updates from 3.10.y android msm.

*Merged update to Dorimanx App by @krija

*Set ZEN and other I/O govs to support high fifo batch tuning to reduce load on eMMC

Thanks to @duki994 for pointing this out.

*Set eMMC nomerges = 2 to reduce CPU load when high I/O is needed for APPS or downloads.

this speedup SQL Data Bases read/write by 6sec! it's LONG time to wait for something to "MOVE"

*Enabled CPU accounting and grouping per task as LP ROM need that, and i have disabled in config.

Seen errors in LOGS and enabled. now all clean. should help with CPU power redistribution per apps.

*Fixed max 4 cores online. even if user set max 2 and turned screen OFF/ON, now kernel obey user needs after boost on wakeup.

*Corrected some Dorimanx XML descriptions.

*Fixed setting SELINUX ON, and mounting modem with full selinux rights and perms after selinux was OFF.

*Corrected busybox not working if Selinux is ON and set to enforce.

*Corrected permissions for selinux ON mode in kernel folders and scripts.

This build brings many fixes, and new tunings! stable for me :)

Now your turn to test. it's has very good boost on I/O read/write speed and lower CPU power usage..

And this brings less heat from CPU. more performance to running apps and ROM.

Have fun testing ,and report any more found bugs.

People with non stop reboots... please try other kernels. i cant fix something i dont have...

Enjoy.
[G2 Android Development] jeyd02:
Yay thanks dori.
[G2 Android Development] 60nine:
thanks for 3.0...

dorimanx & [MENTION=3970210]krija[/MENTION] (if i may notice and state my opinion) - i still think that dorimanx app needs a major color overhauling...

here is why:

- too many text which is in white color on dark background which makes it hard to read and tires the eyes (suggestion - make the white text a lighter shade of bg color)

- overall colors don't quite match eachother (better to use complement colors)

if i'll have time - i might make a screenshot or two with changed colors...

it would also be nice if there was an xml file with all the color hex codes user could change manually or even a menu option for customizing the app look on the fly...

sorry for posting this here in dev thread and don't get my post as "something that must be done"

cheers and keep up the good work
[G2 Android Development] iko11:
This is beyond of just a 'kernel' Having all the power feels good. Thank you [MENTION=2376110]dorimanx[/MENTION] & [MENTION=3970210]krija[/MENTION] for the last update. v2.9 Rock Stable for me, I believe this one will be too.
[G2 Android Development] jamesd1085:
Hard to believe this continues to get better...but every new release brings bigger and better things to lp...thanks for your hard work and your time

P.S. i have no idea why i quoted you...lol...
[G2 Android Development] ceza1380:
I got bootloop after flash 3.0, disable selinux and reboot. Anyone?

I'm using Cloudy 3.1

Edit: It was working good with 2.9
[G2 Android Development] saspo59:
hi , dont know what happen to my "dorimanx ota" app. i cant flash with it,

it recognize the new update download it then when ordering to flash the popup shows saying to tape on it to confirm flash and there its stop and not going into recovery for flash,

i already reinstal the app. and even delete dori dir. in data not helping only manual install works.

thanks
[G2 Android Development] dorimanx:
Selinux already Off when you install kernel.

Reinstall kernel.

G4 roms will not boot with selinux on.

Sent from my LG-D802
[G2 Android Development] Lycidias:
+1

Spoiler content hidden.
[G2 Android Development] Diechel:
With flashing nothing has changed. Problem seems missing folders. Investigating in OTA thread
[G2 Android Development] fhasovic:
Well, I am extremely busy these days and had no time to investigate. Just noticed that it's charging fast even I limit it to slowest speed.
[G2 Android Development] runekock:
Sorry to report that this still doesn't work for me. But thanks for the effort -- maybe this is a sign that I should just be happy that my phone is so fast when all four cores are available. It surely doesn't detract from my enjoyment of your fantastic kernel.
[G2 Android Development] saspo59:
ok i will moove the post to your threade
[G2 Android Development] SimpleX91:
Well, actually you can, if you know what to fix, which you don't. I looked in all logs posted here by me and haven't found any significant errors there, so did you, I guess. :)

Btw, Dori, IMO you could add a few lines in dorimanx app to CPU0 governor section to discourage users from changing ONDEMAND to anything else. Ondemand + 3xDarkness work fine. 4xDarkness don't.

Didn't have any reboots on 2.9 lately. Switched to Cloudy's 3.1, everything seems fine so far. No reboots, no freezes or whatsoever. Will test 3.0 now.
[G2 Android Development] LeoPosas:
No more random reboots with 3.0 and Cloudy's 3.1

Extraordinary job Mr [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] saspo59:
for me yankactiv gov is the best dont have any reboots
[G2 Android Development] Nigglenuts:
[MENTION=2376110]dorimanx[/MENTION] just an fyi, in dorimanx app it says high mem release is off by default, but was on by default.
[G2 Android Development] EvilKing009:
Kernel 3.0 update seams to be reduced cpu usage a bit and now it make device cooler.thanks :)

In dorimanx app. Seagreen highlighted text looks weird.would be great if its in the white colour.

Having some strange black screen issues with this kernel.is anyone having this issue.?? :rolleyes: