yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yep, these are tuff nuts...

I'm doing excessive comparison testing between 300hz and 100hz tick time. While it somewhat feels like they're mostly the same probably some difference under load, but I don't have generally two phones to compare it really thoroughly.

I feel like sitting on a big heap of code with underlying bug bombs.

To be more clear switch to 300hz requires a series of patches to all drivers that use jiffies and hertz definitions. While most of the drivers are updated thanks to [MENTION=3428502]Freak07[/MENTION] helping out, I still feel this is a tiny bit too much unknown factors, that's why I only released it as beta.

I'm planning on keeping the stock 100hz for these reasons. Helps a bit with some responsiveness but meanwhile qcom hasn't put the time into this stock kernel line to move to the 300hz...

So if we don't find the problem with the buttons, it's sure next stable stays on 100hz and no issues
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Whiskey103:
Yea, for testing purposes I switched back to the non beta 2.0.0 and no issues there.

Must indeed be something you did with the beta editions.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
[MENTION=3088420]tbalden[/MENTION] what's the path for the adrenoboost tunable again so I can set a script that when a game starts, it switches to 2 and when game exits it switches back to 0 again?

Thanks, been a while and I deleted my old adrenoboost script
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
This for beta2:

Adrenoboost v2

/sys/class/kgsl/kgsl-3d0/devfreq/adrenoboost --- 0 off, 1 smooth/battery friendly, 2 stronger, 3 aggressive
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RebelShadow:
Can someone please tell me how to turn off the flashlight notification?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
scripting:

echo "0" > /sys/class/leds/indicator/bln_flash_blink

You can add this to an init.d script,

- or you can create a command to be run in LeeDroid's shortcutter application.

- Or you can use EXKM in advanced settings to set this path to a given value at boot time.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Feels like google gearing up on Oreo probably, and breaking stuff... Strange. Hope it helped to downgrade
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Tikerz:
Thank you both!!! I'm glad I wasn't going crazy :D. [MENTION=3428502]Freak07[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Working on enhancing scrolling feature a bit.

I have found a bit skippy, how the scroll starts when it's slower. I'm adjusting it a bit.

Scrolling:

1. It's going to be slow scrolling smoother,

2. and it won't automatically refresh the page at the top of Chrome/Blinkfeed/Gmail etc.

3. on double short squeeze scrolling it will refresh (quick scroll activated after reaching the top of the page, two short squeeze needed)

4. adding prevention of accidental edge of the touchscreen "squeeze" direction turning (I've tested squeeze scrolling without a case, and realized it's easy to accidentally change direction with just squeezing and touching edge of the panel)

I find it too much in Chrome, to refresh page on reaching the top, but this way both possibilities can coexist, and all scrolling will be smoother :)

Also , now it's possible to turn direction at top of the page without refresh, with a short squeeze + middle long squeeze quick combo without touching the screen with finger :p
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
For what it's worth beta 2 runs perfectly for me. I don't use chrome so I have no issue. I use Samsung beta internet.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Working great and no stutters on conservative gov.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
I really love the scrolling function running very smooth now. Great job again! :good::good::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Great, been experimenting with it for a bit, and it's now getting there! Unfortunately short squeezes in a quick row still can freeze for a blink or two the scrolling, but that's a bit like when you quickly tap-swipe on the touchscreen as well...

Thanks for the feedback :good: :highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Gone back to 100hz on beta3 so the upcoming release will be led safe :D ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Another idea:

I plan something else too, *an amplify notification vibrations switch , where when screen is off and a longer notification vibration is called it will pump up the voltage. *All other short vibration on normal level.

I miss vibration- only notifications all too many times , this would make sure those are extra powerful, while otherwise in hand haptic keyboard, unlocking would stay low and gentle
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Dude, you're machine...

---------- Post added at 09:03 PM ---------- Previous post was at 08:55 PM ----------

DND/Total silence, turns off scrolling too?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
No, DND doesn't do that, tho I'm not sure what total silence means.

If you mean, you switched off Vibration feedback for Edge Sense, now that would turn it off, yes. It's, because of shortcomings how this could be added as a feature, the vibration feedback is needed to identify squeeze events on kernel level more consistently. Otherwise there were missed squeeze events undetected on kernel level.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Using htc u11 sprint version and it running latest kernel. Not sure if this is an app problem or kernel but I was wondering if anyone can make a wifi call using Google Hangouts. I can make a call but I'm not hearing anything and the other person can't hear me. But I can connect the call. Just curious. Maybe it's an app or rom issue. Thought I'd check here real quick.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Easy checking: flash back stock kernel like by dirty flashing your rom and choose stock kernel. Then we will know if it's a kernel issue.

I can't test this no Wi-Fi calling around here
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Will do

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

Flashed back to stock and Hangouts wifi calling works fine now. Will do a little more testing and get back
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, now I realized you are mentioning Wifi calling through hangouts, thought it's wifi calling through Sprint.

So just now i've tested it on my DUGL dual sim device, and all seems fine on latest stable of cleanslate. I hope this will sort out by the simple dirty flash...

I have to add tho' that I'm on stock 1.27.400.9 rom base
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
My DND has 3 choices. Total silence, alarms only and priority only.

---------- Post added at 01:57 AM ---------- Previous post was at 01:25 AM ----------

But yea, it turns off all vibration. So that explains it..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Dirty flash and reinstalling fixed it. Thanks.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Good to know, will add it to the description of set up :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, thanks for checking and letting us know
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
New poll up. If you installed latest stable, check out new feature Notification booster and give some poll feedback please
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Jump1ng:
[MENTION=3088420]tbalden[/MENTION] First huge thanks for your continuous improvement to CleanSlate these added features are great and you truly don't realize how good/useful they are till you don't have them.

Know got a question/request not sure if it is possible to do in the Kernel or not...but here goes. Would it be possible to turn of the charging light or dim it very low when the phone is on DND or Nightmode, the reason I ask is because if i plug the phone in to charge to early in the night the missus moans at me ...your phone was lite up all night grr and I don't need the nagging first thing in the morning. Then when your alarm goes of and DND goes of the light come back on as normal.

I normally start charging as I wake up and with QC it gives me enough boost so when I head out is enough but thought it could be a semi useful feature.

Again massive thanks for all that you do for us with the awesome CleanSlate!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
I really missed that notification feature too!

Thank you for the innovative ideas :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback, I too think that this is a good distinction, why would I need the same level of haptic strength for all phone functionalities...! :good:

Related to this, since then I discovered/realized that Phone ringing and Alarms need some extra care as those have the screen on, still I'd want them to buzz strongly in my pocket... Will check them tonight.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback! :good:

Unfortunately I can't access the state of DND/Nightmode in kernel.

my question is, is it not a possibility to put the phone screen downwards while charging at night? I know some special nightstands can block that, but otherwise that could be a solution.

If you put phone in DND mode then the Flashlight notifications by default will be off too.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Jump1ng:
I thought that might been the case that kernel wouldn't access that state.

Yeah as I said I can put it face down and not start charging till I wake anyway. Also could dim the light down as well...was just trying to keep the nagging down from the one that has to be obeyed :P
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK now I get it, you only want to charge till it's full, and not keep it on it, so you need to check the charging led. Well yeah, anyway I'm going to think about this a bit.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Alarm and call vibration boosting with screen on now I have fixed.

Looking at the DND stuff, if it's possible to detect somehow
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
found out this:

pressing volume + / - at the same time will mean changing between "Low lights and no BLN while off the charger" / back to normal mode with lights + BLN while off the charge if BLN is set.

Pressing vol up/down at the same time, is not really used for anything else, so I'll take it over... (still it will change volume levels if screen is on) --> you will feel a stronger haptic feedback when going into Low light mode for reassuring it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
- Update 2.1.1 stable -​

Notification Booster feature for Vibration update:

- adding notification vibration boosting for screen on Alarms and Call notifications

- bringing up the default haptic strength to ~1800mV, 1600 was a bit too low

- maximizing boosting to around 3200mV as some of you suggested in the voting that it's too strong

Low light mode switching new feature!

Press VolUp/VolDown buttons at the same time to switch between Full Light Mode and Low Light Mode. When Low light activates you will feel a longer haptic feedback to let you know it's active. Deactivation doesn't have feedback to let you differentiate without actual lights being on while pressing the combo.

- Full Light mode: normal

- Low light mode: led / keys light will be much dimmed, Button light notifications will only show if on Charger, Flashlight notifications will be off.

You need to check all notifications/switch screen on/off, replug the charger if you want to get the lower brightness levels. Pressing the volume keys will only get results when a next event happens that would switch on the LED/key lights

Thanks [MENTION=3075720]Jump1n[/MENTION] for bringing up the idea!

Download:

https://www.androidfilehost.com/?fid=962021903579480704
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] android_patrizian:
Thanks a lot for the hard work and time you are putting in this.

A suggestion: Maybe better than a haptic feedback would be flashing the notification light or the bottom lights as confirmation. Because pressing incidentally only the volume down button will cause a haptic feedback, too.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback!

Here I was thinking about the same as well, but went with the haptic feedback because lights can be active already and didn't want to mess up the notifications.

What I did was to try and make the haptic feedback so long that you cannot mix it up with the other feedback of reaching zero volume.

So I see one more option here, have this switching available only when screen is off, then there's no mix up at all. Or make the feedback even longer as a fix for this
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Jump1ng:
That's very neat! Thanks for your continuous innovating of the cool features!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] sasa.kljucaric@yahoo.de:
Hello tbalden. Thank you for all the hard Work. Superb kernel. I've one question... Is it possible to include the blueborne security patch in the kernel? Thanks in advance.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback!

Yep, I'll have a look. Just yesterday I realized there's kernel side as well, earlier only system side fixes I've seen available
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, I've made up my mind about this. Next step with Low light mode:

Low light switch will be only available to press when Screen is OFF. That way issues with notif Volume setting conflict will be avoided.

Also I plan to add a double short haptic or single short haptic feedback for Low light mode off, instead of not giving feedback. I'll check which one's better.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] sasa.kljucaric@yahoo.de:
O.K.!Thank you for the fast answer.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Whiskey103:
FYI, so far on 2.1.0 and 2.1.1 no issues regarding button backlight acting wicked [emoji106]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback. I see no drawback of keeping 100hz so we're good, happy campers :cool::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
- Update 2.2.0 stable -​

Low light mode switching updated!

Changes:

- now you can only activate it when screen is off (no confusion with notification volume settings)

- three modes now:

--- Normal mode (all lights on, notification vibration booster on)

--- Low light mode (led/key light lowered, no button light notification if not on charge, no flashlight notification)

--- Low light/low vibration mode (Notification booster off, led/key light lowered, no button light notification if not on charge, no flashlight notification)

How to switch modes:

1. Turn screen off if not already off...

2.

- short press VolUp+VolDown at the same time: switch between Normal and Low light mode (feedback: normal mode: short haptic feedback / Low light: long haptic feedback)

- long press VolUp+VolDown for a longer time and release -> activate Low light/low vibration mode (feedback: LowLight/Vibration mode: double haptic feedback)

BlueBorne kernel patch

The vulnerability on Framework/app side is still present, so test programs will say, still vulnerable...

Download (2.2.0v2 - reuploaded to fix a minor issue!):

https://www.androidfilehost.com/?fid=745849072291677051
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Originally I intended something like this for chromatic charging led, but I got a result that was not consistent.

I will try it again to see if I can fix it as that would look good indeed
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
What about a red green red green red green pattern? :cowboy:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Will check this or the other or both.

It occurred to me that it could be fun to have a triple fast green that triple fast red alternating too.

Problem seemed that starting a blink pattern on two leds simultaneously leads to some synchronization problem. But there's something like a red green blink by default in the original led driver. I'll check that if it gives a good example
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
so, [MENTION=3428502]Freak07[/MENTION] , it looks like it's not possible to blink and meld the two leds at the same time, at least I can't, based on the codes.

When it's set to blink both leds, mixed color, then the RG led brightness becomes very dim, almost can't see it.

So for now, only the green blinking can be used.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Test-Update:

OK, so here are two betas for you before I bump the thread...passed it to [MENTION=398245]LeeDroid[/MENTION] for some tweak app updates :P He's extra busy this week, so I decided to provide you two versions for the taste of the new features, and the update.

First version is containing the release candidate, with a fix for the bug where the physical keys light got turned on when screen was off.

DOWNLOAD 1 with only the fix by default: https://www.androidfilehost.com/?fid=961840155545585828

Second version is the same except,

- Notification LED pattern is set to slow "1Plus 5" pattern, demonstrating the slower, dimmer OnePlus 5 blue led pattern (in green of course on the u11 :))

- Also Dim BLN is on with unlimited number of blinks, which means that after the default strong 6 blinks it will go into Dimmer BLN blinking mode, so it does not consume that much battery but still the BLN goes on.

DOWNLOAD 2 with the above defaults: https://www.androidfilehost.com/?fid=745425885120752550

[youtube]XRBCW0B8vNU[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
So I've it confirmed that the fix is working (thanks [MENTION=471306]grega_slo[/MENTION] ). Yesternight I've looked at the change request of changing normal brightness of hw keys brought up by [MENTION=1162986]Captain_Throwback[/MENTION], implemented in a way that enables "bln_light_level" parameter dim the brightness of the capacitive key leds, as it can be useful for those who don't want a userspace level mod for that. It worked out. A little bit of testing today here and I'll release these new features together...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.4.0

Changelog:

- Adding BLN Dim blink mode: 0 on, 1 off / sysfs bln_dim_blink

--- BLN number of dim blinks: 0 infinite 1-50 / sysfs bln_dim_number

- Adding Notification led patterns (0 to 4): Normal / 1Plus 5 / Triple / Triple Up / Triple Down

--- sysfs: bln_pulse_rgb_pattern

- BLN light level modified to dim the normal button light brightness when screen is on, besides the Blink brightness

--- sysfs bln_light_level

- Fixing bug: adding squeeze vibration detection to avoid Button light notification when squeezing with screen off

- Fixing bug: accidental Button lights staying on

Quick explanation:

BLN Dim blink - default BLN is set to six blinks by default, which means after 6 blinks the buttons, if dim blink enabled, will stay blinking dimly (8 times dimmer), except when on charger, then it will be blinking indefinite time till unplug or screen on event.

Notification LED patterns: when pulsating notification led is enabled, you can choose from 5 different patterns (slower and faster patterns available). Default is the normal pulsation.

Download:

https://www.androidfilehost.com/?fid=745425885120753033

Patterns video:

[youtube]3mSNxmz_ogo[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Check [MENTION=398245]LeeDroid[/MENTION] rom and / or tweak app for the latest settings possibilities of the new Bln feature dim Bln.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Do you guys think it's meaningful to

add squeeze to wake and squeeze to sleep

into kernel?

As I see there's no ROM Mod or app that is able to do this.

I'm working on this, and with advanced edge sense mode and short squeeze unmapped it works quite well.

Out of twenty times 17 times works great, screen on, off.

I'm still investigating sometimes it's not perfect
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Kisakuku:
Very useful indeed. ViperU does have toggle screen as an Edge Sense function.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I'm still using my phone without root, so I think that's why I didn't notice it in edge sense plus, right?

Thanks for the heads up.

May be still useful for those who don't root their phones, but seems i missed it's already available with another mean.

If I find a way to make it working without hiccup, I'll add this for those who otherwise don't use edge sense for anything
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Kisakuku:
I meant it's available as a ViperU tweak, but yes, it is also a function in Edge Sense Plus that requires root.

Either way, it would be great for those running without root.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yep, I was just speculating if it's a rom thing then it must be in the app too.

That's clear then
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Kisakuku:
On an unrelated note, I've been meaning to thank you for the recent development push and for squeezing every single drop of customization out of the LED and BLN. Your work on the 10 made that phone a lot more functional, but now you've clearly surpassed that achievement by implementing custom LED blink patterns, dim BLN and LED / BLN sync for U11. I tend not to run your kernels, but since your commits get cherry-picked by many kernel devs, I'm always enjoying and appreciating your work. Thanks again!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Same as above, many thanks for your work! Much appreciated and I sent donation your way.

I am also on another kernel, but tried clean slate yesterday as I have strange issue (maybe a feature lol)

When screen off bln is set to 6 and that is OK. But after 6 blinks, notification light at top also stops blinking.

Is there a way that bln stops and led light at top continues, or I am total newbie and missing something? :crying:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the donations! Much appreciated.

Cleanslate will be always here for bonus functionality and stability :)

About your issue, I'm unable to reproduce it. Continues blinking on top. Honestly there's no tweak code added that ever stops the upper led.

Isn't it a setting in the rom to stop blinking after a while? I remember there's such feature earlier on the 10 as well in some roms
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Many thanks for your answer.

I am on [MENTION=494185]LlabTooFeR[/MENTION] Maximus HD and [MENTION=3428502]Freak07[/MENTION] eas so I will check it with him, it's just happening in last few days. Never experienced it before.. Even after clean install.

Thanks again!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
BTW is it happening all the time? If you change the number of blinks to a lower number, both upper led and buttons stop blinking at the same time?

I'm still trying to reproduce...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Yes.

Just now it got even funnier. Now only bln blinked for 6 times and notification didn't blink at all..

I though few days ago I found a pattern, if you get 2 or 3 notifications from same app and you don't read them something goes wrong and kills both led and bln. Then another app notification arrives and starts blinking again.

Notification light works fine when screen is on.

Here is logcat and dmesg if it helps, but please don't waste your time if you don't have it.