yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.1

Updated feature: Notification LED / BLN with fluid pulsation transitions

Download:

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

Full squeeze to sleep/wake set up description HERE

[youtube]-49yntJF9IQ[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Checked debugged the one place in code I could imagine attaining such information could have been. But no luck, seems this capability is not possible to tap. Unfortunate :s
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Yeh, that's a little disappointing.. but still pretty awesome after your recent additions :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
yep,

and therefore it's time for htc to rollout an update that won't work with current available kernel sources :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.2

FIx: Notification LED / BLN with fluid pulsation transitions - fix synced timing of RGB/Button blinking.

Thanks [MENTION=4782292]mick_soul[/MENTION] for reporting it.

Download:

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

Full squeeze to sleep/wake set up description HERE

[youtube]-49yntJF9IQ[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mazubo:
Any issues with squeeze to scroll? I've replicated the steps, however I haven't been able to get it to work. I am also using short squeeze for camera via edge sense plus if that means anything. Should I not be using edge sense plus app for features, and instead use the features within this kernel?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yep. In the guide about setting up edge sense for the kernel features it's required to free up the short squeeze setting.

guide
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mazubo:
Thanks [MENTION=3088420]tbalden[/MENTION] . That shows only the setup for squeeze to wake sleep?

Scratch that.. I reread and noticed my errors. Even after a few tries at it, this is very very slick! Awesome work!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Glad you got the hang of it. :) thanks for the feedback

Turning direction is not as easy as I wanted to if doing that by squeeze, but at least setting the direction by a small real touch screen swipe is balancing it out

I hope HTC will figure out something similar
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mazubo:
I don't understand the OEM's and the fact that they don't develop these usability features first hand. Thank goodness for XDA and the devs within ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
does this kernel supports verified boot ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yes, if you mean it passes safety net then yes, if using with stock rom or with a custom rom with magisk hide on.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
what I mean is or I think that the new built hTC added checking for verified (locked) bootloader which now triggers google's CTS

I tried going back to stock with stock system image and yet I don't pass safety net I am going crazy XD
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Then yes, this will resolve your problem
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
I will give it a shot
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Playing with new edgsense, it is fun, but not as much fun as already built in this kernel :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
What's new in there?

Also I see that [MENTION=4905624]j to the 4n[/MENTION] just released a nice update with scrolling up down for edge sense plus. Haven't tested it as I'm not rooted, but sounds great
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, let me know if it went fine or no
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
I am not sure how/what I can share, it's all NDA and sht.

:)

http://www.androidpolice.com/2017/09/07/htc-adds-custom-per-app-squeeze-actions-u11s-edge-sense/
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] j to the 4n:
It let's you simulate single/double presses on desired locations per app, pretty cool.

The scroll up/down was your idea tbh, hope you don't mind (-:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
No, I'm glad you added it. I hope HTC looks at your user space ideas, they should catch up and add that.

How is the turning directions work in your app?

Have you added a squeeze only turn direction control and / or some graphical overlay to show direction of scrolling? Or is it short squeeze down, long up?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
I wiped the data and restaored 100 stock then flashed your kernel and I pass safety net :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] dijia1124:
Hello but how to update this kernel from 1.7.0 to 1.7.2 ?Just install the zip by TWRP?:)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Correct :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] dijia1124:
Thx :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
Is it possible to flash CleanSlate directly over ElementalX or not recommend?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I think it shouldn't be a problem. Also just create a backup of only the boot partition , so you can restore anytime.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Possible. Don't think any of those kernels modifies ramdisk. But I always flash stock boot (and magisk) before switching kernels.

---------- Post added at 09:27 AM ---------- Previous post was at 09:26 AM ----------

Ah, I was too slow :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
Thank you, seems not to pe a problem :good:

What is the default value for the button light level? I changed it and cannot find the right one ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
6 is the default
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
Perfect :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
I'm sorry to tell, but unfortunately here on latest version the status und button light leds and are still getting out of sync (well recognizable after a few minutes).
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Hiya mate [MENTION=3088420]tbalden[/MENTION]

I've noticed with the latest edge sense beta (htc official one) https://www.apkmirror.com/apk/htc-c...-edge-sense-1-10-966952-android-apk-download/ the per app settings don't work together with the squeeze to sleep.

When I do a short press (or medium or whatever you'd call it lol ) the per app action is triggered but the screen also switches off.

Don't think that happened with previous beta of edge sense
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm, I think that's indeed the case. The reason why it cannot be perfectly in sync for after a few minutes is that because of using the new fluid blinking the way the light level is set needed change, having impact on timing instead of directly changing current ratios...

This few minutes is the best I can produce right now.

I'll think about connecting button and led light levels together, that could help to be in sync. But then less options
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Do you have squeeze to swipe in usage?

If that's off then short squeeze means screen off
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
This is not absolutely necessary, the fluid blinking is almost perfect as it is. Just wanted to mention it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Nvm. I'm an idiot, was using medium squeeze where I should have been short squeezing..pffffff. Been a long day
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback. Well yep, I'm also somewhat bothered by its getting out of sync, but yeah, if you use it like that you're able to approximate that you got the notification a few minutes back if it's slightly out of sync and even more time if it's got really asynchronous :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yeah, it's getting complicated, but I ended up to use only squeeze and hold in Edge sense to avoid my confusion :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mick_soul:
Good idea :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Haha..Its not a bug...Its a feature:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
is there a way to disable fingerprint unlock vibration ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Not at the moment. It's triggered from the rom framework and even switching to battery saver mode leaves the vibration there.

Although I could add some modifications to block it, but that night interfere with other applications using vibration triggering with the same vibration length time.

I'll add it to my to-do list to check.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.3

Updated feature: fpf fingerprint / vibration strength - unlock haptic vibration feedback can be set off through fingerprint vibration strength settings. (check in LeeDroid Tweaks /EXKM)

Now the "home button" vibration strength applies to the unlock vibration strength.

Thanks to [MENTION=5152761]AlMaghraby[/MENTION] for bringing up the idea

Download:

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

Full SqueezeControl set up description HERE
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Yey! Cheers buddy! :highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
it's all your work XD

nicely done
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] elmor0:
Can this kernel be installed to use with any custom ROM I have?

Will there be any compatibility issues? How to revert back to stock Kernel if ant probs?

Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
back up yourcurrent boot image through recovery before installing

and it is compatible with all roms for the u11 (sense ones)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Well, it didn't occure to me that it was a bit annoying, now I realized it's much less so now that I decresed it in the default setup as well. :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Annoying, very annoying.. my dog hates it when phone is placed on hard surface and I unlock it in the middle of the night :laugh:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yeah, not to mention wife sleeping when one's getting home late after beers and obviously forgetting to set the alarm before sneaking into bed. :laugh: ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
BTW, for those who write init.d scripts and such... haptic feedback/vibration voltage path changed from the m10 -> u11:

old path:

/sys/class/timed_output/vibrator/voltage_level

new path:

sys/devices/virtual/timed_output/vibrator/voltage_level

min/max 116 / 3596 mV

Personally I find ~1800 mV OK for using it with Squeeze functionalities.

HTC's default is 2828 mV
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] dioooi:
Hi Tbalden,

How to disable squeeze to wake permanently.

Because I disabled in the leedroid tweaks, it enable automatically after phone rebooted. Any idea?

Thank you.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hi.

That's something [MENTION=398245]LeeDroid[/MENTION] could be interested in.

Is this with magisk btw?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Next idea: how good kernel side flashlight notifications can be made. on back of the phone

It occurred to me that screen down with the fantastic back of the u11 it's much missing to see notifications.

But the apps on play store hardly work for applications and the light is also too strong and ugly.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] thicklizard:
Great idea
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Tbalden and Lee...would be nice to have all available kernel options in Lee tweaks and that they all persist on reboot.

Seperately I disabled everything but sleep/wake in tweaks. Then edited sys/fpf to turn off scroll and scroll vib since no option for that in tweaks but now no sleep/wake?

Edit...works sometimes but inconsistent.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
That's why my wife is ex wife as I didn't have that feature before :silly:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Will try this configuration.

BTW in this setup you must use only the short squeeze.

Middle long squeeze won't work, maybe that's the

cause of inconsistency.

So use very short squeeze to wake and sleep.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Still inconsistent.

Edit...found issue. Changes to sys/fpf for scroll don't persist after reboot.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
indeed, to make life harder, Kernel cannot store such states, it always boots with the default settings.

if you do not create an init.d script, it won't persist. The default state of the kernel is always taking precedence. Either an init.d script must be added or some tweak app must manage this.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LibertyMonger:
Great work! Just all a little much to take in for now lol. Still trying to figure out how I want to ultimately use my edge sense. I love how we can turn the screen on and off but I also love Edge Sense plus, doesn't seem to play nice with it, or I haven't figured it all out yet. Is it possible to do bottom squeeze for screen off/on and center squeeze for edge sense plus settings? I just need more time to figure it out. Thanks for the great work buddy.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
EXKM has setting but it doesn't persist either after reboot. Can use this after reboot to restore feature or revert to earlier kernel version to deal with it.. Thx for reviewing issue.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmmm, so all other persists in exkm, but this one not?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Yeh I change everything in Lee tweaks and Exkm shows same and both persist after reboot.. except Exkm scroll disable doesn't seem to stick tho few times screen off still works but not screen on??
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Flashlight notification - in-kernel feature - work in progress demo :)

...so that the back of the phone can shine more now that I can see missed notifications blinking ;)

As you can see, it's not blowing up the darkness with flashing light even while blinking... need to check battery drain, but I'm hoping that this type of low level, short blinking will work out and only add little CPU wake time (every 3-5 seconds tho, so I need to check this, if it's going to be a smaller period blinking like 5-6 times and finito)... still much better than anything producible with flashlight notification apps from the store ... without kernel mod they look awful, blow out the eye at night and will blink only once

still a long way to go with all tested, but the proof of concept has nicely worked out

[youtube]wcpdhuQF9fI[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
tbalden...an update. Ok seems Exkm disable of scroll will allow wake/sleep to work. Just have to do the disable after each reboot. Can work with that unless u come up with alternative in future. Thx again.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Bottom top is not possible also left and right not differentiated.

Top and bottom I'd suggest for pixel 2 myself as well.

As for the edge sense plus. When I tried together with the edge sense and plus I only mapped squeeze and hold, that's the only sane way these can co exist
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Maybe [MENTION=4684315]flar2[/MENTION] could be interested in this bit.

Thanks for trying and the feedback
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] dioooi:
Yes I am rooted with Magisk.

It's solved after I reflash the ROM again.

Cheers!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LibertyMonger:
Yes if our Verizon issue doesn't get fixed I'm hoping the pixel 2 XL will have the squeeze functions. Top, middle and bottom would be sweet.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yeah, that would be nice. I'm not sure if three areas or two areas would be better, but I think if it's not visibly distinguished then small surface could be a problem for big hands.

I imagined that the lower two fingers could grip the lower area and upper ones the top.

In between them it could be challenging, especially drunken ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
working away on this one...progressing well. I think tomorrow this is going to be beta ready :)

Even this type of cyclical kernel execution cpu based flashlighy blinking opposed to the programmed non cpu blinking of front leds , seems the cpu can idle in deep sleep abundantly.

Attached is the cpuspy screen shot 70%+ deep sleep :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Finished for today... Fine tuned flashlight blinking pattern, added torch light mode detection to avoid hijacking your flashlight usage.

Some measurements for battery, while testing in depth again tomorrow, and configuration points remain...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LibertyMonger:
The only problem I have with the custom kernels is they do not work well with the HTC wallet case, the screen does not wake when opening the cover. After it goes to sleep and sits for a bit. It works when closing the case.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
It wakes up fine for me on this kernel :confused:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LibertyMonger:
I had the same problem with elementalx. It works once you wake the screen and open and close it, it's just not consistent, it seems after the phone sleeps for a few it doesn't work when you first open it. Not much of a hassle and it's definitely not a complaint. I didn't quite explain myself right. Does it always wake when you first open it?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Yes, at least so far (I just got the case a few days ago).
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LibertyMonger:
Yeah it is mostly if your phone is sitting for a while and you open your case it doesn't wake the screen at first. But after you unlock it once then it stays pretty consistent until you let it go to sleep again. I am using force doze at the moment, trying to figure my battery out cause I'm not getting as good battery life as I was getting with my first 4gb model so force doze may be playing a part. But I also had this initial wake issue when I had my 4GB model using elemental x without force doze. So I don't know, still experimenting and trying to figure everything out. I'm gonna be ditching my wallet case soon anyway, can't enjoy the squeeze functions as much with it. So my initial screen wake issue isn't a problem, just something I noticed. Also, I use fingerprint sensor lock, does these kernel squeeze features unlock as well? Sorry for the long posts.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Well, to sum up the philosophy of this kernels development, it's to remain as stock as possible refraining from all kinds of tweak possibilities in the area of performance and sleep strategy. Only user experience features are added, meaning to change how you interact with your phone and its input and output peripherals, to change to a more ergonomic or more feature rich these parts.

Therefore there shouldn't be much difference in that regard, at least not intentionally.

What might be of interest is the difference between firmware and rom base and the fact that we still only have sources for a very old kernel base 1.03, and of course also different kinds of doze modules could introduce some issues.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
no, that would be a security hole, and also not possible from kernel side.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.8.0-beta1

New feature Flashlight notification - in-kernel feature

Let the phone show its beautiful back - and don't miss the chance to see that you missed a notification :)

On the back of the phone flashlight will rapidly twinkle for half a second at each blink. It activates together with the Green notification LED on the front, and also with Vibration based notification detection when phone is on charger.

settings:

indicator/bln_flash_blink 1/0 - on/off (default 1)

indicator/bln_flash_blink_number 0 = infinite blinks / 1-50 number of blinks (default 0 infinite)

Download:

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

[youtube]wcpdhuQF9fI[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Excellent.. And no noticeable impact on battery?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Well, cpu wise it seems OK. On an active phone, push syncing on, 68% deep sleep is OK.

Will check a bit more myself in the coming days to decide keeping it infinite by default or limit the blink number.

Today I used my phone as usual with it, and can't see much difference.

I'm sure it will impact somewhat the pure stand by mode tho, but I haven't made such a test as I'm using the phone too often.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Where can I find the indicator folder? Can't see it under sys
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
sysfs: /sys/class/leds/indicator/
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Ta, automagic'd it to turn on at dawn and off at dusk to not keep me awake at night.. Good work man...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] dijia1124:
After rebooting ,all the changes I made to them seem to be back to default again.i don't know how to keep those settings changed .For example ,I set the value 1 to 0,after rebooting it becomes 1 again.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yes, in kernel these are not being stored only till reboot.

Use LeeDroid tweaks or exkm to have them manage it between reboots.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] FlowingAway:
Hey tbalden I love the kernel. I'm on Sprint, using VenomROM 1.4 and your new version of cleanslate. I've noticed the capacitive buttons aren't pulsing for notifications now. I imagine it could be a number of things causing this to happen, just wanted to make you aware. Everything else is working fine
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
What you experience is only happening with the new version of the kernel? Can you try the previous version?

Also does it not work even when not charging and your screen is off?

Or is it not triggered when phone is on charger?

Can't reproduce yet, but I'm trying.

Thanks!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] FlowingAway:
Flashed 1.1 and it worked fine. Flashed 1.2 and now it works fine too!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
Can't wait for the standalone v1.3
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Not using LeeDrOiD? It's in the ROM & controllable through tweaks :eek::rolleyes:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
I definitely need to update, I didn't realize you baked In a custom kernel ? Do I need to uninstall this kernel before updating to the latest build? I updated my firmware to the latest US Unlocked build, did you bake in the sRGB display from US Unlocked/dual SIM build builds yet?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Haven't baked srgb in yet but cleanslate is in there.. will be looking at srgb tomorrow ;)

No need to uninstall anything