yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Original Android Development] Raijin:
Try to create a profile with "State > Sensor > Light Level".

I'm just getting started with Tasker too :)

I'm creating a project to enable HBM when the slider is at the maximum. I don't know why the project linked before doesn't work.

Maybe we should create another thread with these Tasker experiments.

Sorry flar2 for disturbing here.

---------- Post added at 11:20 PM ---------- Previous post was at 10:28 PM ----------

You can create a very simple Tasker project to enable or disable HBM if there's high ambient light or not.

One profile called "Low light" with "State > Sensor > Light Level" set to "From 0 To X" linked to a Task "Run Shell" with the command "echo 0 > /sys/devices/virtual/graphics/fb0/hbm" and Use Root ticked.

Another profile called "High light" with "State > Sensor > Light Level" set to "From X To 100" linked to a Task "Run Shell" with the command "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and Use Root ticked.

You need to mess with that X to set the umbral when the light will disable or enable HBM.

You can see in the Profiles tab of Tasker marked in green what profile is being activated by the light in that moment. And remember to exit to launcher or whatever to test it, because the profiles will not enable when inside Tasker.

We can improve the project making Tasker store a variable with the status bar brightness value, and, if the bar is at max and there's ambient light, execute HBM ON, and if there isn't ambient light, then execute HBM OFF. I'll look at it soon.
[Nexus 6P Original Android Development] matust:
Sorry for continuing the OT. I have set up a tasker profile so that when I turn on the screen it records the ambient light as a variable. If the variables above a certain level it turns on HBM for a short period.

Profile 1 - Display state on

Task - Light level

Variable set %Lightvalue to %LIGHT

Profile 2 - Variable value %Lightvalue > (What ever value you want)

+

Display state on

Task - Send intent (action) flar2.hbmwidget.HBM_ON

Wait 10seconds

Send intent (action) flar2.hbmwidget.HBM_OFF

Hope this is useful
[Nexus 6P Original Android Development] Shockz:
[MENTION=4684315]flar2[/MENTION] under powersave mode advanced options lower screen brightness and turn off vibration toggles appear to not be working. Is this a known bug?
[Nexus 6P Original Android Development] dsmpampis:
Hey guys I have a question. I flashed the kernel with stock settings, no dt2w, no slide to sleep etc.

My rom(PureNexus) has an option to dt2w but after flashing the kernel I've lost the ability to dt2w. If I enable via aroma installer is there any chance to affect the battery life?

Thanks in advance.

By the way, the kernel is awesome.

Tapatalked with my Nexus 6P
[Nexus 6P Original Android Development] GCbard:
Thanks. I did some reasearchj and found your commands that can be used to use tasker. I have never used it before. Any guidance you, or anyone, can give as to where some of the procedure of using tasker for high brightness?

is it possible to add some sort of "if" statement for when the adaptive brightness reaches a maximum to activate the high brightness mode toggle?
[Nexus 6P Original Android Development] nathanchance:
No, the 6P wake gestures do not drain any battery.
[Nexus 6P Original Android Development] fenchai:
I Purchased the High Brightness Mode Widget so I could use the intents on Tasker but it looks like nobody knows how to input it to tasker, Does anyone know?
[Nexus 6P Original Android Development] GCbard:
is it possible to add some sort of "if" statement in tasker for when the adaptive brightness reaches a maximum to activate the high brightness mode toggle?
[Nexus 6P Original Android Development] fenchai:
Yes, Easily, just use %BRIGHT from 0-255(255 is around the TOP, some can get higher I guess) the hard part is to actually get this intent to work, which I have zero experience, I know I have to put the intent in the ACTION field but other than that, Im blind. I Hope someone can figure this out.

So basically just put IF %BRIGHT > 255 do the intent to turn on the High Brightness. Add an exit action to it reverting the action.
[Nexus 6P Original Android Development] Raijin:
Create a task and add the action "System > Send Intent".

Just paste the intent you want in Action field. You don't need to touch nothing more there.

You can use that task now with a profile that will trigger it. Or add a shortcut in your launcher, or to pie controls, or whatever you want. :)

Please, if we're having too much OT, just tell us. Thank you.
[Nexus 6P Original Android Development] fenchai:
Strange... It doesn't work on my side. I insert in the Action Field: "flar2.hbmwidget.HBM_ON" but it just does nothing. what is it I'm doing wrong? :/
[Nexus 6P Original Android Development] Raijin:
It should work.
[Nexus 6P Original Android Development] fenchai:
LOL I didn't notice the intent working because I had already set it ON via EX Kernel app LOL ok I'm dumb. thanks xD
[Nexus 6P Original Android Development] Chilidog:
Flashed and wiped cache, all good in the hood
[Nexus 6P Original Android Development] lobrau:
It was simple enough to use tasker to create a profile to detect light sensor level at 100 to turn on hbm and 0-99 to turn it off but is there a way to have multiple settings for a profile. ( I'm trying to get it to need both light sensor at 100 and display slider to max) to active it
[Nexus 6P Original Android Development] GCbard:
Can you post your 'code'?
[Nexus 6P Original Android Development] lobrau:
Not really much to it. Just create a profile and have it as sensor light level and set the variables to 100 to 100. Then create a task that is system>send intent> flar2.hbmwidget.HBM_ON as the name . create a second profile that does the same but light sensor from 0 to 99 and then the same task that sends intentflar2.hbmwidget.HBM_OFF
[Nexus 6P Original Android Development] jesssiii:
Love this kernel, stable like stock, nice added mods, and better battery! Looking forward to when you tweek your own governor [MENTION=4684315]flar2[/MENTION] ?
[Nexus 6P Original Android Development] Namuh:
I haven't updated in a while. I'm on PureNexus ROM 6.0-20151121-MDB08M ( 3 PureNexus rom updates behind) and I'm also behind on updates running on ElementalX Kernel .07. Can I just flash this newest Kernel and get the brightness goodness on my current ROM, or should I flash to the latest PureNexus rom first, then flash this latest Kernel?
[Nexus 6P Original Android Development] nathanchance:
PN 11/21 is not compatible with EX 1.02 because 1.02 is built for 6.0.1 but PN 11/21 is on 6.0. Flash PN 12/09 then EX 1.02 and you should be golden, I have a nice process here for you if you need it.
[Nexus 6P Original Android Development] grayskul:
No you're not. It's happening to me as well! Tried wiping cache and dalvik to no avail.

---------- Post added at 04:08 AM ---------- Previous post was at 04:03 AM ----------

That didn't work: (
[Nexus 6P Original Android Development] brianelv:
Is there a way to spoof the MAC address with this kernel? Thanks :)
[Nexus 6P Original Android Development] Simer03:
I must be one of the few that likes my phone at a low brightness lol
[Nexus 6P Original Android Development] italia0101:
I've set up the task and profile in tasker, but it's wonky, the task activates when it shouldn't, even though I have it set to 99-100 in the profile. Anyone else?
[Nexus 6P Original Android Development] Hussainally:
Sorry but where can I get the on screen widget for the High brightness?
[Nexus 6P Original Android Development] noobhero:
https://play.google.com/store/apps/details?id=flar2.hbmwidget
[Nexus 6P Original Android Development] Hussainally:
Looks cool
[Nexus 6P Original Android Development] Ensifolk:
Hi guys, I am getting around 5 hours of SOT when I reach 5 % each day. I don't use google now, Location is off, Touchboost is off and Hexacoremode is enabled. Adaptive brightness is on at 60 %

To be honest I was expecting more juice from the 6p, or this is the normal SOT everyone is having ? Any of you have tips to push a little more?
[Nexus 6P Original Android Development] sherlock5545:
Yeah, the average SOT is between 4 to 6 hours. It entirely depends on what you do. If you watch movies only you'll get higher SOT, if you do browsing and the such over 4G/LTE, the SOT will be slightly lower. Overall, if you can get by each day, that's plenty. You won't be able to get two days out of the battery if you use the phone a lot.
[Nexus 6P Original Android Development] italia0101:
Think i got the tasker profile working the way i wanted... here it is if interested ;

Task - HBM

Run shell

echo 1 > /sys/devices/virtual/graphics/fb0/hbm

use root

Profile -

State > Variable value > Light level ( should be %LIGHT )

%LIGHT > 450 ( the amount is up to you , i only want it when i'm outside )

Link HBM task

Add exit task > new task -

Run shell - echo 0 > /sys/devices/virtual/graphics/fb0/hbm

just as an example i stepped outside and it automatically turned HBM mode on perfectly , then turned it off when i went back inside
[Nexus 6P Original Android Development] steveo17:
I struggle to get 3 hours of SOT over ~12 hours regardless of what I do. I'm not at all impressed with the battery life on this phone.
[Nexus 6P Original Android Development] Shockz:
Of course in normal usage but when outside in direct sunlight it is nice to have! :)
[Nexus 6P Original Android Development] Ensifolk:
My disappointment is that the battery life on the Nexus 5x is almost equal to the 6p ! Im comparing with my colleague, we are having the same SOT...
[Nexus 6P Original Android Development] italia0101:
[MENTION=4684315]flar2[/MENTION] is there anyway to start the wakegestures app service with tasker ?

Would be awesome for me in the car to skip songs etc :)
[Nexus 6P Original Android Development] steveo17:
this doesn't surprise me. the 5x has a smaller battery yes, but it also has lower resolution screen and slower processor
[Nexus 6P Original Android Development] GCbard:
which action category should one pick to implement this?

Sorry, I am such a newbie with takser that when I look at what you have written here and then look at the UI of tasker I have no idea where to start.....
[Nexus 6P Original Android Development] Ensifolk:
Well that is true, but still from all the youtube reviews everyone was saying the 6p delivers a better battery life and is EPIC, like I said Im hitting 5 hours of SOT with several battery hungry services being disabled. It takes more than 4/5 days to settle in? This is my 5th day with the phone.
[Nexus 6P Original Android Development] italia0101:
If you mean the profile trigger its state :)

Oh and no problem, tasker is quite a steep learning curve but once you have the basics its not too bad, let me know if you get stuck
[Nexus 6P Original Android Development] GCbard:
I saw "zoom state." That is the only action I found when I tried to find "state,"

---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------

when I press "+" to add an action, which tyoe of action would this be?
[Nexus 6P Original Android Development] italia0101:
Ah ok, let me try and break it down quickly

on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .

Make sure tasks is selected on the top , press the + and name it HBM

now press the + again and find " run shell"

in command type "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and tick " use root "

That's your task done

now go back and hit " profile " on the main page, its the first tab

press + ,, choose " state " , go to " variables " , then press " variable values "

on the left box type " %LIGHT , press the box with the wonky line in , change it to "greater than"

on the right put 450

now choose the HBM task
[Nexus 6P Original Android Development] steveo17:
i think the whole "settling in" thing is farce.

what battery hungry services do you have disabled?
[Nexus 6P Original Android Development] rp1226:
I think it may be a good idea to start a new thread for the tasker discussion...
[Nexus 6P Original Android Development] GCbard:
ok. Thank you! I got that part. How to integrate the code that flar2 mentioned in order to turn on the HBM?

Thanks again. Maybe we should start a new thread for this....
[Nexus 6P Original Android Development] italia0101:
Probably should do yea, don't want to clog up the thread, but just to let you know the " echo 1 > /sys/devices/virtual/graphics/fb0/hbm" is the HBM code :)
[Nexus 6P Original Android Development] GCbard:
great. I will copy and paste this content and reference you and start a new thread with your permission of course. Let me know if you are okay with that.

I just put up a new thread and made sure to reference you. If you are not okay with that please let me know and I will take it down. here is the link

http://xdaforums.com/nexus-6p/themes-apps/using-tasker-to-enable-brightness-mode-t3273032
[Nexus 6P Original Android Development] Ensifolk:
Like I said, I have location off, Google now is off too, I just uninstalled Facebook apps to track down what could be eating some juice. On a 3450 Battery I was expecting a 6+ screen on time, even with a QHD display
[Nexus 6P Original Android Development] kauemelhado:
Do you have Xposed Framework ?

I noticed (might be only me hehehehe) a noticible battery drain with Xposed (and only using Greenify module)...

I uninstalled it, and it seems to be better....
[Nexus 6P Original Android Development] Ensifolk:
Yes I have Xposed module ON. But I only rooted and installed it after realizing that my battery life is not up to my expectation after first day getting the phone on stock.
[Nexus 6P Original Android Development] italia0101:
I'm using Xposed and see no drain, i get good battery life too, i don't use Greenify etc though, just Gravitybox
[Nexus 6P Original Android Development] flar2:
At the moment there is no public intent to use with Tasker. I will see if it's feasible to add this when I get around to updating the app.

Are you on LTE a lot? I find that's the biggest battery killer for me, but I still get good battery life. On wifi, the battery seems indestructable,
[Nexus 6P Original Android Development] steveo17:
i just find that when i am doing anything on my phone no matter LTE or WIFI, the battery drains stupid fast. for example when i commute to work in the morning i start with 100% and after about ~50 minutes of SOT my battery will be in the mid 80s

Any web browser i use is the major battery hog according to the battery stats from the system. I've used Chrome, Chrome Dev, Chrome Beta, #nochrome, Opera. They're all the same. Am i doing something wrong? WIFI/Bluetooth On

Wifi & Bluetooth scanning off

Location set to high accuracy
[Nexus 6P Original Android Development] flar2:
Do you have the EX app? On the battery monitor, you can see your active drain and idle drain. My active drain is generally in the 13-15% per hour range for typical usage. This will depend on your usage. My routine is mostly Chrome, with several tabs, flipping between my XDA threads and typing messages like this one, plus some texting and respongind to emails. Active drain is more like 7% per hour when passively watching a movie, and approx 10% per hour while reading and scrolling slowly through a long article. I never use Bluetooth or listen to music.
[Nexus 6P Original Android Development] steveo17:
looks like active drain is at 18%. now i know that the LTE area that i'm in when i'm on the train is notoriously bad signal which could contribute to this?

also i've been streaming spotify for the past ~half hour
[Nexus 6P Original Android Development] flar2:
Dammit, always bugs in the screen off stats. Someday I need to find time to fix that.

Your idle drain is bad, and I think this is due to your cell signal. There's probably not much that can be done. 2% per hour is gonna hurt over the course of a day. My idle drain ranges from about 0.5%/hr to 1.5%/hr while on LTE, especially bad in my office building.

If you are streaming spotify while the screen is off, that will account for it.

That's not too bad active drain, a little high, but probably accounted for by the 2%/hour drain from LTE and/or spotify.

Try resetting the battery stats when you are at home and on wifi. You should see very little idle drain, I often go 5,6,7 hours without losing even one percent.
[Nexus 6P Original Android Development] kauemelhado:
My LTE signal is pretty ****ty (Brazil right?!?!?!?!)...

But my 3G is stable, I'll give it a try using only 3G. (H+).:silly:
[Nexus 6P Original Android Development] steveo17:
i'll check it out. I feel like i'm only home for an extended period of time on the weekend anymore
[Nexus 6P Original Android Development] saturated:
Thanks flar2, great addition. Swipe up is a good choice for the gesture too I think. The enhancements this kernel provides to 6p are great and the companion app makes it beyond easy to use them.
[Nexus 6P Original Android Development] Simer03:
I will admit, I'm not usually all about battery life, but I do notice more of a drain since 6.0.1. Still average about 5 SOT but I used to get an easy 6. I'll have to do some digging but no wakelocks or anything either
[Nexus 6P Original Android Development] littleprince86:
Hello, after flash kernel in cyanogenmod i have a Red sardine on boot. "Your device is corrupt. It can't be trusted and May not work properly". Before, in cataclysm rom it was yellow and message was different.

Please, help me.

It's dangerous? What's happened?
[Nexus 6P Original Android Development] Bwyan Benton:
It's normal on CM. Don't worry about it.
[Nexus 6P Original Android Development] littleprince86:
Thanks

Con you say me because Red message and don't more yellow?
[Nexus 6P Original Android Development] Bwyan Benton:
Not sure what your asking here?
[Nexus 6P Original Android Development] littleprince86:
It's show with elementalx kernel
[Nexus 6P Original Android Development] flar2:
Could be another release tonight. Slight improvement to the HBM code and also possibly the vibrator.
[Nexus 6P Original Android Development] Bwyan Benton:
I don't think the kernel matters. It's because your bootloader is unlocked.

---------- Post added at 07:30 PM ---------- Previous post was at 07:30 PM ----------

"The vibrator" I'll keep to myself haha
[Nexus 6P Original Android Development] flar2:
Update!!!

This is a minor update.

A small improvement to the HBM code and now if you set vibration to its minimum, it will be disabled completely.

Download

ElementalX-N6P-1.03

Changes:

-improve HBM code for angler

-disable vibration at min setting
[Nexus 6P Original Android Development] dhappyman0:
Hey just FYI there is no changelog in the elemental x app when updating although I confirmed it did update to 1.0.3
[Nexus 6P Original Android Development] mpgrimes:
I'd be taking a look at your apps... I have 3 hrs screen on and still 50% left I used to get less before I turned off ambient display and notifications from Facebook etc.
[Nexus 6P Original Android Development] resynx:
Flashed the update earlier, thanks flar :)
[Nexus 6P Original Android Development] zer0se7en:
Updated. Still waiting for USB Fast charge when plugged to computer.
[Nexus 6P Original Android Development] nadiros:
Great, and thanks for letting us know :svetius:
[Nexus 6P Original Android Development] thagringo:
Hi [MENTION=4684315]flar2[/MENTION],

have been trying to get detailed information about this and havent been sucessfull.

I have read in a couple of places (for example in francos kernel thread) that it is apparently possible to get the BIG cores offline when sys load is low by tunning the scheduler but i have no idea what tunables have to be touched. Not that i expect any difference in battery life, this is just for the sake of knowing how to do it and have fun.

Any ideas ?

Or are you maybe thinking about this for your own scheduler ? :)

Have also been playing with touchboost enabled/disabled and i have been unable to see any difference.

Battery life is more or less the same for me AFAICT and i havent realized any improvement with it enabled either, apart from the cpus ramping up more quickly of course.

TIA !
[Nexus 6P Original Android Development] LiquidSolstice:
Thanks. We were all wondering what you were waiting for, it's a relief that you've told us you're still waiting for it.
[Nexus 6P Original Android Development] Gorgtech:
I´ve been stalking flar2 for a while. His kernel was the best I could get for my old Nexus 7 ( 2013 ) and Nexus 5 ( 2013 ). Now I can stick to this tradition with my Nexus 6P ;)
[Nexus 6P Original Android Development] :
What's hbm?
[Nexus 6P Original Android Development] dabug123:
Lol
[Nexus 6P Original Android Development] arunkr:
High Brightness Mode...i guess.:P
[Nexus 6P Original Android Development] geoff5093:
You realize this would fry your computers USB port right? Its not designed to deliver 3A.
[Nexus 6P Original Android Development] Shockz:
Nailed it!
[Nexus 6P Original Android Development] jesssiii:
Updated. Still waiting for world peace when not plugged to computer. ?
[Nexus 6P Original Android Development] aamitabh28:
Latest kernel rocks as usual [MENTION=4684315]flar2[/MENTION]!

Thanks so much for all your work!

What are ur next major goals for the kernel if i may ask!
[Nexus 6P Original Android Development] zer0se7en:
I have faith in Flar2 that he can do it. It doesn't have to be as fast as the fast charger that came with the unit. Just faster than how the normal plugging to USB port can give. It did worked on Nexus 5 and Nexus 6.

Flar2 is workin' on it it's why I wait for it. You don't realize how useful it would be. Never have to worry about leaving the charger at home when at work and just rely having just a cable and a computer. That feature worked like a charm on my Nexus 5.
[Nexus 6P Original Android Development] tech_head:
Actually it won't fry the computer since the computer just won't deliver the current.

There is limiting circuitry.

I don't know why people think that if you plug something in that asks for current you fry the device?

Just won't work.
[Nexus 6P Original Android Development] steveo17:
this device has quick charge built in already i think.

I plugged it into my Retina MBP (2013 model) and found that it was charging at over 2 amps
[Nexus 6P Original Android Development] ShermanTenor:
[MENTION=4684315]flar2[/MENTION] - do you find that the idle battery drain is lower if you allow WiFi to remain on, vs switching it off and running on LTE? I had assumed powering off the WiFi radio would lead to better battery life and have been using tasker to do this when I switch the screen off.

?
[Nexus 6P Original Android Development] geoff5093:
It's not a matter of him "doing it", it's that a computer USB 2.0 port can not deliver more than 500mA per port per. Fast charging needs to be 2000mA or greater, with 3000mA being the max the 6P supports.

It's not possible without causing damage.

You must not have seen all the reviews from the Google engineer. While yes the host device providing power is supposed to have protection circuity to limit the current, many cheap chargers do not have this, as they relied on the client (at the time) not requesting more than say 2.4A, now it will try to push 3A and either overheat or brown out the charger.

Granted computers are usually better protected, but you never know if someone uses a cheap USB add-on card or a no-name brand motherboard that may have skimped on these.
[Nexus 6P Original Android Development] italia0101:
I think that depends, my router seems to keep my device awake more that it should, so i turn my off at night like yourself and have 1-2% idle drain ( one night i had 0% idle drain, it was glorious ) .. with it on i was getting 5-6% not much all in all, but still, for me having it off while overnight helped.
[Nexus 6P Original Android Development] ynksbsbll2:
I get significantly better drain with both WiFi and Bluetooth turned off (around 0.3% an hour usually), but it seems like most people have no problems keeping everything turned on and experiencing little to no drain overnight.