yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] Chad_Petree:
What are you using to tweak the display? I downloaded trickstermod but it doesn't elt me tweak the gamma , contrast etc, I also tried downloading kcal but it just force closes, probably it doesn't work with 5.1 :crying:
[Nexus 6  Original Android Development] Damon13:
Have you downloaded terminal emulator? Here are the commands:

shell@shamu:/ $ su

root@shamu:/ # lkconfig

leanKernel configurator

---

0) display current settings

1) cpu frequency control

2) wake gesture control

3) wakelock control

4) charging led

5) rgb control (advanced)

6) rgb control (simple)

option 6 will let you choose whichever fits your needs.
[Nexus 6  Original Android Development] suku_patel_22:
These settings are there in Franco's app as a profile.
[Nexus 6  Original Android Development] Chad_Petree:
Thank you! <3 <3 Wow what a difference it makes! I can't believe google took a step back in color calibration, the nexus 5 screen had a really accurate calibration , the contrast was a bit poor and it the screen had light bleed but the colors were really accurate, the nexus 6 is ultra saturated, it makes apps like youtube and google music look ridiculous
[Nexus 6  Original Android Development] rauschkugl:
He wasn't talking about the wakelocks...

Gesendet von meinem Nexus 6 mit Tapatalk
[Nexus 6  Original Android Development] grisha1:
It still lowers maxfreq from 2.7GHz to 2.2 GHz when battery drops to 40%. Is it keeping 2.7GHz for others?

On Stock 5.1. And yes, I set 11 to 2 in lkconfig (allow lowering of maxfreq: N)
[Nexus 6  Original Android Development] Imoseyon:
Oh? And does it stay at 2.2Ghz? It's possible I missed an edge case. If you can reproduce this at will and if you know how to pull dmesg (via adb) I can send you a test build that will log some stuff to dmesg.
[Nexus 6  Original Android Development] Imoseyon:
Those of you getting app FC's, are they trying to manipulate the sysfs nodes for color control? If so, I know why. I will fix this in the next release.
[Nexus 6  Original Android Development] garyd9:
2.2 crash. pstore contained only the single attached file (not zipped originally, obviously)

This was very soon after a reboot (where I installed 2.2 after running stock 5.1 kernel.) I was playing around with the color control app (which keeps crashing.) At the time of the crash, I was in nova launcher app drawer, with a folder open, pressing and holding the "color control" icon. (My intention was to get the "app info" so I could delete the app cache to try and get the app working around.)
[Nexus 6  Original Android Development] grisha1:
it will go back up to 2.7GHz when at 41% and higher, and drop to 2.2GHz at 40%, so basically the new stock behaviour of 5.1.

I'm glad if I can be of some help and will pull my first dmesg :)
[Nexus 6  Original Android Development] Imoseyon:
There was a selinux issue with 2.1 and 2.2 with savoca's app (and possibly other apps like Francos too). Try v2.2.2?
[Nexus 6  Original Android Development] garyd9:
color control no longer crashes. Why would color control FC'ing would have caused a kernel oops?
[Nexus 6  Original Android Development] old_fart:
Cat snuggler

For me, when I installed this one, the unit hung on boot up at the white screen stating "Android is Starting". . Before install, I wiped dalvig and cache. . I let it "try" to succeed for fifteen minutes. I got it off ( forced off ) now and am turbo charging it. Geeze, that turbo charger makes that unit nice and toasty warm. . I betcha any cat would want to snuggle up and/or sit on it. . Hey, maybe google could add that to an advertising campaign ? "The Nexus 6 : phone and cat snuggler".
[Nexus 6  Original Android Development] Pilz:
Are there ant adverse effect of doing this?
[Nexus 6  Original Android Development] zephiK:
Nothing from what I can observe. Did it last night when I saw Imoseyon's post.

The only effect I see is that "mpdecision" is missing in Trickster but that makes sense as mpdecision isn't in /system/bin/ so the app won't detect the presence of mpdecision. But the min/max frequencies are for sure respecting the user specific min/max frequencies rather than changing all over the place.
[Nexus 6  Original Android Development] Mistertac:
My phone seems to have cpu1 and cpu2 both idle at 223mhz. Although when I play with mpdecision it will turn off 3 cores and have just cpu1 idle at 223mhz.

Yesterday before I gave up and plugged my phone in I had 26 hours on battery, 3.5 hours of SOT and I had 55% battery remaining. All this with data , sync Google apps and about half or little more of that time on Wi-Fi.

I wish I could have gone the full cycle just to see what the final numbers would have been but to me.. That's awesome!
[Nexus 6  Original Android Development] ChaosMinionX:
Beta5 is up, and some new mpdecision stuff.. No changelog yet, but everything looks good, i also noticed my trickstermod is applying frequencies right with this latest. I also flashed the nominfreqmpdecision file.
[Nexus 6  Original Android Development] Pilz:
What system monitor app do you use?
[Nexus 6  Original Android Development] simms22:
perfmon, love it! it creates a layer over and displays a live chart. it will be on any screen you open :)
[Nexus 6  Original Android Development] Mistertac:
I use this

https://play.google.com/store/apps/details?id=com.cgollner.systemmonitor.lite

I have the paid version but at least you can check it out before buying. I find its very useful and accurate. Been using it for some time now. It has widgets that stay on top of all windows for the most of the various things you can monitor.
[Nexus 6  Original Android Development] Lewis2100:
Wanted to let you guys know that I am able to get my PVS 7 CPU to run at the voltages specified for a PVS 15. Did a few stability tests and it has been stable. There is a noticeable reduction in heat generation, so I am able to run at 2649 MHz longer before it starts to throttle!

Thanks for the user configurable voltages and the stock voltage chart Imo :good:
[Nexus 6  Original Android Development] shane1981:
Im new so dont bash please. It says flash in recovery does that mean flash it same as a rom just pick a file and flash or is it done differently?
[Nexus 6  Original Android Development] Mistertac:
The latest beta release along with the mpdecision fix seem to have my phone running a lot better. At first glance it looks like the CPUs are utilizing more frequencies now than before.
[Nexus 6  Original Android Development] Pilz:
Flash it just like a ROM but you don't need to wipe cache. Just flash and reboot
[Nexus 6  Original Android Development] shane1981:
There are 2 different beta files whats the difference and which one should i try since this will be my first kernel flash EVER?
[Nexus 6  Original Android Development] zephiK:
The regular version is regular similar to stock in terms of CPU frequencies.

The v5ocuc contains a overclock (2.9GHz) and underclock (233 MHz)

Looks like Imoseyon updated op with changelog :D
[Nexus 6  Original Android Development] Imoseyon:
beta5 is up: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!381

1) I'm providing flashable zips for patching mpdecision here: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!394 The no-minfreq version will not change your minimum frequency starting with beta5 leankernel.

2) ondemand fixed, and cpu boost disabled

3) toolchain upgraded to gcc 4.9.3.

The first two changes combined lessons the "butter" effect a bit - I don't think it's noticeable but if you think things are visibly less smooth after flashing beta5 let me know. Instead of completely disabling mpdecision (which could negatively affect your ability to hotplug cpus) I recommend that you flash the no-minfreq version of it if you are into setting custom frequencies. And if seeing min freq changing in your cpu apps bothers you. :)

Edit: if you install no-minfreq mpdecision, you want to keep mpdecision enabled. Otherwise you're defeating the purpose of the no-minfreq version.
[Nexus 6  Original Android Development] knitler:
How are people seeing their battery on the kernel?
[Nexus 6  Original Android Development] hsj1906:
So you have 223mhz for the min? How about for the max and screen off max?
[Nexus 6  Original Android Development] BoOsT:
No mpdecision with interactiveX is amazing. 223-1500 is what I'm uc to.
[Nexus 6  Original Android Development] wrinklefree:
Im seeing one of my cpu cores stuck at 1497 on beta 5. Anyone else seeing this?
[Nexus 6  Original Android Development] mjohnson4580:
Are you going to add more schedulers by any chance?
[Nexus 6  Original Android Development] stuff:
I can tell more juddering with beta5.
[Nexus 6  Original Android Development] Imoseyon:
Would you mind shooting me an email at imoseyon@gmail.com? PM is fine too.

I was asking myself the same question lol. Here's where it's happening:

[ 109.735788] [<c021a134>] (kmem_cache_alloc_trace+0x88/0x1b0) from [<c030b684>] (selinux_file_alloc_security+0x38/0x58)
[ 109.735801] [<c030b684>] (selinux_file_alloc_security+0x38/0x58) from [<c02200bc>] (get_empty_filp+0xc8/0x194)
[ 109.735810] [<c02200bc>] (get_empty_filp+0xc8/0x194) from [<c022019c>] (alloc_file+0x14/0xb8)
[ 109.735823] [<c022019c>] (alloc_file+0x14/0xb8) from [<c025802c>] (anon_inode_getfile+0x9c/0xe4)

I will take a look to see if I can fix it myself. Could be a 5.1 regression too.
[Nexus 6  Original Android Development] :
I finally got around to running LK again (been using stock kernel since 5.1 was released) and boy is my battery life improved. I get nearly double the screen on time when running LK opposed to stock! Can't thank you enough for your hard work Imoseyon.
[Nexus 6  Original Android Development] Imoseyon:
Are you saying v2.2.2 is not booting on your phone? It should not not boot. Something else is going on in your case. Which ROM are you on?
[Nexus 6  Original Android Development] old_fart:
Sorry, I didn't get back to update. . I'm at work. . Hey you used a double negative - your english teacher would be pissed at you ! . It just hung that once and the second ( and subsequent ) boots are all fine. I am running a custom rom. . It is MikeyXDA's MeanPop rom.

.

Thank you for making a fantastic kernel. . I greatly appreciate it !

.

if you wanted to look at some error's, here are some.

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

03-24 12:01:21.883 E/WifiStateMachine(833): cancelDelayedScan -> 20

03-24 12:01:21.893 E/native (833): do suspend false

03-24 12:01:21.951 E/WifiStateMachine(833): WifiStateMachine CMD_START_SCAN source 10014 txSuccessRate=36.75 rxSuccessRate=69.25 targetRoamBSSID=any RSSI=-78

03-24 12:01:22.134 E/libEGL (833): call to OpenGL ES API with no current context (logged once per thread)

03-24 12:01:22.385 E/WifiStateMachine(833): WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=9.19 rxSuccessRate=17.31 targetRoamBSSID=any RSSI=-78

03-24 12:01:22.385 E/WifiStateMachine(833): WifiStateMachine starting scan for "M3-1"WPA_PSK with 2422

03-24 12:01:22.518 E/LocSvc_IzatApiV02(833): E/virtual int izat_core::IzatApiV02::injectLocation(GpsExtLocation):857]: error! inject position failed

03-24 12:01:26.311 E/MP-Decision(281): Failed to reset optimization for resource: 1 level: 14

03-24 12:01:30.010 E/MP-Decision(281): Failed to apply optimization for resource: 1 level: 14

03-24 12:01:33.218 E/MP-Decision(281): Failed to reset optimization for resource: 1 level: 14

03-24 12:01:42.393 E/WifiStateMachine(833): WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=3.00 rxSuccessRate=4.58 targetRoamBSSID=any RSSI=-87

03-24 12:01:46.077 E/MP-Decision(281): Failed to apply optimization for resource: 1 level: 14

03-24 12:01:49.190 E/MP-Decision(281): Failed to reset optimization for resource: 1 level: 14

03-24 12:01:49.888 E/MP-Decision(281): Failed to apply optimization for resource: 1 level: 14
[Nexus 6  Original Android Development] holeindalip:
Some more info about CPU dropping to 2.2 @40% the GPU max clock drops from 600 to 500 @40% also
[Nexus 6  Original Android Development] tw1tch175:
Deleted
[Nexus 6  Original Android Development] slimc84:
V2.2.2 is running excellent with MeanPop 2.03. This thing absolutely flies now. Will send a donation your way on payday!
[Nexus 6  Original Android Development] Phamwich:
Did flar2 Wake Gesture support get removed on 2.2? The Wake Gesture app says wake gestures not supported. Tried setting SELinux to permissive but that didn't seem to help. I'm running 5.1 on the latest Euphoria, for what it's worth.
[Nexus 6  Original Android Development] old_fart:
He did. I saw them talking about it on page 349-350.

.

I apologize. Imo talks about changing the 'method or code' to do a wake gesture and NOT the support for wake gestures. I see the conversation trail in posts : 3487, 3490, 3494 . . . Imo was improving the way it works with respect to taking a call.
[Nexus 6  Original Android Development] Phamwich:
Ah, thanks. I didn't see anything in the main post or the changelog that mentioned the removal of the flar2 Wake Gesture support. I'm sure there's a good reason it was removed!
[Nexus 6  Original Android Development] slimc84:
The wake gesture support is there in V2.2.2.
[Nexus 6  Original Android Development] grinchyyy:
Yup yup, working well here!

Sent from my Nexus 6
[Nexus 6  Original Android Development] Imoseyon:
Wake gesture support was never removed. Is it not working with flar's app?
[Nexus 6  Original Android Development] Chad_Petree:
Is anyone else getting stutters on google maps? Google Photos also lags when you hit the share button :(
[Nexus 6  Original Android Development] PhilDX:
for folks using v 2.2.x with sleep2wake gesture enabled on stock ROM, will you please check and see whether or not your screen responds to touches while the screen is off? i.e., if you have an app icon on your home screen, tap that area while the screen is off and then turn on your screen and see if the app has started (as if it responded to your touch while the screen was off). DTW doesn't count, you have to have sleep2wake enabled. i just wanna know whether or not i'm special :) thanks
[Nexus 6  Original Android Development] BRKotucs:
Yes it is...
[Nexus 6  Original Android Development] gnubian:
For some reason my max CPU freq drops to 1728 when battery is low on 2.2. Any ideas? I set the option to disable in lkconfig.
[Nexus 6  Original Android Development] franciscofranco:
We're aware - imoseyon's working on a small hack after a very lengthy e-mail chain about this and the whole thermal infrastructure.
[Nexus 6  Original Android Development] Imoseyon:
Is that at 20%? My current implementation is not perfect. I've been talking with [MENTION=3292224]franciscofranco[/MENTION] and we're working on a better way to do this. Stay tuned...

EDIT: lol franco beat me to it.
[Nexus 6  Original Android Development] gnubian:
Yes at 20 and below. Just thought I'd mention it since I had only read of people being throttled to 2265.
[Nexus 6  Original Android Development] franciscofranco:
Yes. Check /system/etc/thermal-engine-shamu.conf for all the different configurations. The first one called BAT-SOC-CPUFREQ is the responsible.
[Nexus 6  Original Android Development] Imoseyon:
Yup PM me or email me if you're interested in testing a build for this?
[Nexus 6  Original Android Development] gnubian:
Pm sent.
[Nexus 6  Original Android Development] Phamwich:
I haven't gotten it to work on the Euphoria 5.1 builds, though 5.0.x builds were fine. [MENTION=2906672]dsmitty166[/MENTION] says Euphoria incorporates stock leanKernel, so I really have no idea why flar2's Wake Gestures app doesn't work. :eek:
[Nexus 6  Original Android Development] gnubian:
Testing a new build now....down to 35% and it's holding at 2649 so as long as it holds past 20% it seems imo has figured it out.

---------- Post added at 05:20 AM ---------- Previous post was at 04:57 AM ----------

Down to 19% and all is holding. Good work [MENTION=3357040]Imoseyon[/MENTION] !
[Nexus 6  Original Android Development] grisha1:
Maxfreq

Can confirm this, keeps max freq with testbuild
[Nexus 6  Original Android Development] indigo888:
May be you have it,but not mine.I'm on latest Euphoria 03/22
[Nexus 6  Original Android Development] grisha1:
just wait for Imoseyon to release a version with the patches in (the version I'm running is v2.2.5)
[Nexus 6  Original Android Development] funcrusher:
Does ambient display work for you guys while charging?

Edit: Never mind, it's working. Not sure what was going on.
[Nexus 6  Original Android Development] grinchyyy:
What app is that?

Sent from my Nexus 6
[Nexus 6  Original Android Development] Imoseyon:
Yeah still working out the kinks - thermal driver is a bit more complicated than I'd like.
[Nexus 6  Original Android Development] donjuro:
What if I want to disable tap to wake?
[Nexus 6  Original Android Development] smclaughlin3:
anyone been able to disable forced encryption for the lmy47m tmobile build?
[Nexus 6  Original Android Development] Phamwich:
Not on the 5.1 builds for Euphoria. Strange because I didn't have a problem on the 5.0.x builds.

Just to be clear, I'm not talking about the wake gesture options in lkconfig (those work fine for me), but I'm talking about Wake Gestures by flar2: http://xdaforums.com/android/apps-games/app-wake-gestures-t3030399

What ROMs are you guys running? I'll check against stock 5.1, but I can't seem to get it working on 5.1 builds for Euphoria.
[Nexus 6  Original Android Development] Imoseyon:
Stock kernel in my onedrive folder should do the trick. There shouldn't be any difference in kernel between 47d,e and m.

Did you try the v2.2.2 I posted a couple of pages ago?
[Nexus 6  Original Android Development] bbedward:
The kernels for LMY47D/LMY47E/LMY47M are exactly the same.
[Nexus 6  Original Android Development] Phamwich:
I did, the Wake Gestures app said gestures not supported on LK 2.2.2 and the most recent Euphoria build. Wasn't sure if setting SELinux to permissive would help, but it didn't in either case.
[Nexus 6  Original Android Development] smclaughlin3:
ok was just going off your op trying to play it safe "You should be running the same build as the kernel you install (E.G. if you are running 5.1.0 LMY47D you should install the LM47D no force encrypt kernel)"

but i guess you just confirmed what imoseyon said i should be able to just flash his stock kernel as he said or should i go with your method?

thank you you both are great people !
[Nexus 6  Original Android Development] Imoseyon:
It indeed does not work, but i'm not sure why. No errors in logs either. Perhaps the app does a kernel check to make sure you're running elemental kernel. Can you ask [MENTION=4684315]flar2[/MENTION]?
[Nexus 6  Original Android Development] franciscofranco:
Comon, we all know you did this on purpose!
[Nexus 6  Original Android Development] flar2:
You probably don't have this commit to enable the app support. This patch enables the input device needed for the app, and fixes up some cruft from other devices.

https://github.com/flar2/shamu/commit/94ba2402507d5142416f6e0fe5ee8b439f0841a3

Honestly though, the app doesn't work well on the N6 for some reason, so I don't even use it. Which is too bad, because it's a neat app and works flawlessly on my other devices.
[Nexus 6  Original Android Development] Imoseyon:
Ah I must have missed that commit - thanks for that.

Thanks for nothing [MENTION=3292224]franciscofranco[/MENTION], lol!
[Nexus 6  Original Android Development] Phamwich:
Yep, I was just going to report back that flar2's Wake Gesture app on LK 2.2.2 on stock 5.1 doesn't work either. It's strange Wake Gestures 1.1 worked on LK 1.x, but I guess it looks like it stopped working on LK 2.x.

I did try out this unofficial build of franco.Kernel r21 with added Wake Gesture support: http://xdaforums.com/nexus-6/development/kernel-fk-wake-gestures-t3060196 This does seem to work on the stock 5.1 ROM.

EDIT:

Ah, I guess that explains it, then! Mystery solved!(?) Also, it seemed to work decently well on my N6 when I was able to use the app. What kind of issues have you noticed?
[Nexus 6  Original Android Development] grinchyyy:
Anyone know of a good widget to display kernel info like governor, min max & current frequencies ect..?

Sent from my Nexus 6
[Nexus 6  Original Android Development] flar2:
I don't want to clog up the thread with to much OT, but it does work, just not as well as I'd like. It doesn't always act on the gestures. I've also had a couple watchdog barks causing reboots that I believe are tied to the proximity sensor (pocket detection option). The gestures register fine at kernel level, but the app seems to ignore them. And there's a slight delay compared to the in-kernel gestures. Which is strange because it's very quick and responsive on my other devices, some of which are a couple years old and much slower.
[Nexus 6  Original Android Development] dark79:
Vibrator settings used to be in /sys/vibrator/pwmvalue but now are in /data/data/leankernel/pwmvalue

Any reason for the change? I only ask because I have a Tasker task that would read the vibe strength off the file to toggle all vibration on and off (like a master haptic feedback power switch). But the task doesn't work any more since Tasker can't read files in /data/data.

I guess if all else fails I can make 2 separate tasks that just set 0 or 127 regardless of the current setting. Just curious is all.
[Nexus 6  Original Android Development] Imoseyon:
The stuff in /data/data/leankernel is for lkconfig (for settings to stick at boot). The original sysfs node locations are still valid.
[Nexus 6  Original Android Development] anotherfiz:
Firstly, thanks for your awesome support Imo - Been on your stuff since the thunderbolt days. Secondly, is there any way to increase the sensitivity of double tap to wake?
[Nexus 6  Original Android Development] flyinj54:
If you would like to adjust your CPU speed and quit the throttling here is a way until IMO gets the next kernel version out.

http://xdaforums.com/showthread.php?p=59678116
[Nexus 6  Original Android Development] Imoseyon:
I don't really want tinker too much with someone else's code - I will add this to my todo though but the list is growing. :)

Yeah v2.3 has this fully mitigated within the kernel. Should be released as early as tonight.
[Nexus 6  Original Android Development] Imoseyon:
v2.3 is up.

I think v2.3 should be more stable than v2.2 and v2.1. I reverted some commits that were suspected of causing reboots for some folks.

Also, I completely redid how I mitigate maxfreq being lowered at 40/20% battery. The previous implementation wasn't working so well and could potentially prevent true thermal throttling from working properly. The new implementation if configured via lkconfig/sysfs, should work a lot better and allows thermal throttling to continue to work.

This feature has been tested by several people (thanks) successfully, but there may still need to be some fine-tuning in the future, especially on the temp threshold. To configure this, you want to select "prevent lowering maxfreq":

11) allow raising of minfreq: Y, allow lowering of maxfreq: N

Full changelog: https://github.com/imoseyon/leanKernel-shamu/wiki/Lollipop-ChangeLog
[Nexus 6  Original Android Development] sader2202:
Okay dumb question, I know but how do I use use lkconfig?
[Nexus 6  Original Android Development] gnubian:
[MENTION=2888559]sader2202[/MENTION] Download terminal emulator. Type "su" (without quotes). Then press grant when prompted for super user access. Then type "lkconfig" (also without quotes. Profit.
[Nexus 6  Original Android Development] Chad_Petree:
Thans for your hard work! Just wanted to know , how is it the kernel dealing with the throttling now? With 2.2 I used to experience lag around 40-42% (highly likely to throttling ) , how is it working right now? What's the stock behavior of the stock 5.1 kernel?
[Nexus 6  Original Android Development] 12MaNy:
Or, you can just type "lk".

Either way