yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I'm closing on in my target thoughts... most of the ideas are there... ready:

- Squeeze 2 Swipe direction based on your touch screen swipe activity (last real swipe direction = squeeze2swipe direction)

- Thus middle long squeeze is freed up (don't need to change direction with that gesture),

---- and is used for screen off --- if Squeeze 2 Sleep is activated (otherwise if no sleep needed, middle long squeeze will change direction of the squeeze2swipe)

- suppression of touchscreen events while squeeze2swipe is scrolling

- Edge Sense default long press camera + short press for taking photos is back in this mode (the camera app will get a swipe tho when taking the photo but it doesn't matter as it looks), ---- as squeeze2sleep is now on the middle long squeeze in this swipe mode.. (@p50kombi you can take that golden photo now :D )

So these all got together in a nice bunch and squeeze 2 peek / wake / keep / swipe / sleep, all work together in a somewhat intuitive manner :)

Testing and looking at landscape mode yet, and also sometimes the swipe gets stuck when too trying too quickly....but that's for tomorrow. Then I plan to publish a first beta :)

Demo:

[youtube]f3EmHPHxKXY[/youtube]

Many thanks [MENTION=2344619]guidogsbn[/MENTION] for the donation!

Let me know what you think of these...

[MENTION=8395457]velimirchek[/MENTION] [MENTION=3428502]Freak07[/MENTION] - you might want to check the progress here :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] doyou37:
I'm not sure if this is kernel related or it would be ROM related, but is it possible to add double-tap to wake for AOSP lock screen? It is present for the HTC lock screen but when you switch from that to the AOSP one, you lose the function. [MENTION=3088420]tbalden[/MENTION] obviously not high priority at all since I am probably the only one asking lol. Just curious.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] akenis:
What's the garble about %$#Network connection required for persistent night mode notification? Hope we can hide the whole thing soon!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Haaa, so it'l be waking & scrolling the next times:cool::good:!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
yep! looking good today, extensive testing while commuting to the city :D :fingers-crossed:

I have a shortening list of issues yet, but so far so good, I think it's mostly beta ready, just one issue buggers me, when scrolling gets stuck on very quick rounds of squeeze gesture. :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.6.1-beta1

Feature:

- Squeeze2Swipe ! - brand new feature which is default on. Test and report. Workings:

- SCREEN ON:

---- Short squeeze -> Does a Swipe into the last vertical direction that you used on your phone's touchscreen (it cannot and doesn't know which application/lockscreen etc you're in, it will swipe)

-------- will thus scroll in applications like Chrome / BlinkFeed / FaceBook / GMail ... whichever is in the foreground. The emulated swipe happens around the middle of the screen...

-------- you'll feel a vibration feedback after a half second, then pressing again will swipe again. (vibration can be switched off on sysfs fpf/squeeze_swipe_vibration = 0)

-------- if you quickly squeeze again before the vibration, it will swipe a stronger one, scrolling faster

---- Middle long squeeze (two vibrations) -> screen off if squeeze2sleep is on (and it's on by default). If squeeze2sleep is off through sysfs (fpf/squeeze_sleep = 0), a middle long squeeze will turn the direction of the squeeze2swipe

---- longest squeeze (three vibrations) -> default Edge Sense "squeeze and hold" gesture

- Edge Sense default long press if mapped to camera + short press for taking photos is back in this mode by default (the camera app will get a swipe tho when taking the photo but it will just work even so)

So these all got together in a nice bunch and squeeze 2 peek / wake / keep / swipe / sleep, all work together in the default setup.

--- squeeze2wake/peek/keep remains the same

Download:

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

Full in-kernel squeeze control set up description HERE

Demo video:

[youtube]f3EmHPHxKXY[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=2344619]guidogsbn[/MENTION] [MENTION=8395457]velimirchek[/MENTION] [MENTION=398245]LeeDroid[/MENTION] [MENTION=1722162]sardroid[/MENTION] [MENTION=1162986]Captain_Throwback[/MENTION]

takers wanted :) :highfive::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
How bout me :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Excellent! I'm really curious how it works out. I find it especially useful when walking, commuting... People will wonder tho how stuff scrolls on your phone by itself

?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Ohhhh it's nice mate
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] sardroid:
Any mirror?

Wysłane z mojego 2PZC5 przy użyciu Tapatalka
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for reporting! Added to first post. Good to know that the new base is ok with it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.1.0

Changelog:

- addition of Button Light Notification features (default on)

- BLN while on charger feature while notification vibration is ON on the phone (default on) - so you won't miss led notification while charging

Download:

https://www.androidfilehost.com/?fid=889764386195910707
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks go to [MENTION=398245]LeeDroid[/MENTION] for including the kernel in LeeDroid U!

In a while, again I'll have more time for refining the BLN feature, to have some configuration possible like it was on the HTC m10.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
I will get to work on tweaks & make sure all of your configurations are accessible buddy ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
That looks really good. ! Code and feature wise. Thank you!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks :) still need to work on a few missing features that might prove challenging, but it's cool that the driver code is finally not so much cryptic like first it seemed. Luckily long power press blinking served as a good example in it for the blink..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Greetings from Corsica, hope you all enjoy your u11.

I'm using it for good, phone photography at its best ;)

Attached is one of the results...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] =dave=:
Enjoy your vacation bro
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
Does anyone try this kernel at newest ViperU 1.3.0 ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Should work absolutely fine buddy
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jhill110:
It's what I've been using.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Chromatic charging led in the works... almost ready for a release...

will look like this, just like it looked on the htc m10 it will be on the u11 - except for 100% battery level: instead of warping amber/green color it will slightly pulsate

the led while on charger will indicate the battery level mixing red and green colors, morphing from amber to green while reaching certain levels.

It's possible to approximate the level of charge without turning your screen on. If it's greenish, you can unplug and good to go .. if it's pulsating slightly it's 100% :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
...seems like it's good to go, I've polished the remaining glitch with level 100% battery charge led pulsation... Testing a bit more and it'll be version bump time...

https://imgflip.com/memegenerator
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.2.0

Changelog:

- addition of Chromatic Charging LED feature (default on)

Download:

https://www.androidfilehost.com/?fid=817550096634786041
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
Is the color control app crashing for anyone else? Using version 1.2 and on the latest US Unlocked
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Indeed, it's crashing here too, but I don't have the phone with root app at the moment.

Do you have root?

Also as an alternative you could try https://play.google.com/store/apps/details?id=com.clumsy.kerneltweaks clumsy kernel tweaks with a rooted phone.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
started to work on the remaining Button light notification/LED features like short vibration pattern doubleblink on buttons, configurable number of button blinks before it stops, speed and probably intensity...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
I'm using magisk su and I'll give this other app a try thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Great, hopefully it's working just fine.

These days I rarely use root, somehow it's strange, because I need special strategies to test kernel settings :) but seems like I've become accustomed to this too much.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Progressing well, only intensity remain on the Todo. Thinking about releasing without it for now.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
Actually it works quite well , just had a few hiccups so far where it wasn't responding but nice little thing you have brought to us.

Cheers
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Yeah, it does do some weird things when in just your home screen and you squeeze

I found it activates one of my widgets and launches the app behind it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] FlowingAway:
No mirrors found. Dang it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Giant steps in squeeze revolution! A really nice new feature for daily use. Nice that f.e. reaching the top position in blikfeed, when it can't scroll no more, it refreshes the site. Now we have to learn again to better feel the haptic feed back. Turning the device off (two vibrations) is a new thing to learn. But it works! Thank you! An excellent job again!!:

good::good::good::good::good:good::good::good::good::good:good::good::good::good::good:good::good::good::good::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yes, it actually scrolls my widget on one home screen, and kinda almost starts an app. Hehe

But yeah, it's not possible from kernel to know application so where to swipe and where not.

It's up to the user to not use where it's not meaningful.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Strange, it finds a few here. Hope it gets synced already
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hiccup: was it like it didn't register your squeeze, so no haptic or was it like it haptic was there but it didn't do swipe. Or something else.

In general so far, when the haptic is there the swipe works consistently.

Let me know any details that might be important for polishing the feature to perfect..

:good::highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Great!! :D

It's not something vital, but something that rounds out the user experience.

It should be non intrusive and intuitive to use. It's mostly intuitive right now, but I feel there is room for improvement...

Visible feedback instead or together with haptic could be easier to follow, but that's not possible solely through kernel..

I'm still thinking about an easier way to input swipe direction, so touching the screen first wouldn't be necessary...

But first things first, if it proves to be stable without side effects, then it can be released as stable and then improve upon it as time goes :)

:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] shasen1235:
Damn...even though I'm not sure if I will use it a lot in the future or not.

This is actually quite genius mate, HTC definitely need someone as creative as you lol
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
Haptic is present but randomly it ain't swiping.......

Hope that cleared it up a bit, not a biggy at all just wanna give you a feedback on it......
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
I can't seem to use middle long squeeze to turn off the screen after I have used scrolling.

Is that intended behaviour? I thought you could still use medium long squeeze (two vibrations) to turn the screen off
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
If the application is loading content, or rendering it, in some cases it might block the execution of the swipe. I do have occasions where it moves just a tiny bit or it's blocked by loading in facebook..

If it's in a scenario where the content is actually there then it should swipe all the time...

Don't know if we can narrow it down to one of these two scenarios, but it could help me to reproduce.

Thanks for trying and the feedback! :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Not sure but don't you have squeeze_sleep sysfs set to 0?

In that case it turns the direction of scrolling instead of sleep.

Actually I use middle long squeeze for screen off and works so far
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks :D

I wonder when they'll add something like this to the HTC sense edge. Honestly I thought when first heard of it that it's going to have this by default.

Camera start shoot photo is great too, but not overused by me. I wanted easy scrolling while holding my backpack or riding a bus and handling the phone with one hand.

This greatly reduces the risk of dropping the phone when just reading through news, headlines, social media apps...

--

squeeze2swipe
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Nope, it's set to 1...strange...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm. And what happens when you get the second vibration and release the squeeze?

Could you please list all fpf sysfs variables? I wonder which combination bugs out

--

squeeze2swipe
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
The only thing I changed is squeeze max force to 6,all others as stock
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Wuh, can't reproduce :(

From Guido's comment seems it's working there too.

Could you please grab a dmesg? Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
So to jump in, installed it finally and it is amazing piece of work. Thank you [MENTION=3088420]tbalden[/MENTION]

If it will be used regularly, time will tell.. need to change some habbits..

But I see a perfect usage for it: scrollable screenshots (short press - screenshot, medium press - scroll to next "section", short press take another screenshot, medium ... (Repeat as many times as you need).. when at the end of "section" it would just merge it in one screenshot.

But, I have no idea if it can be done without rom or app support.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Here you go.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for taking the time and testing/reporting!

The idea sounds cool and when trying to grab a series of screenshots it would come handy.. but indeed this would need an application level support to work.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, I have reproduced it I think. Occasionally happened today twice or so.

Will check and dig the logs

--

squeeze2swipe
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
Thanks and keep up the good work ??
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Think I'm going to try a reinstall..

It's not turning off for me at all atm with squeeze.

Hope the dmesg gives some insight
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
It's running fine here.After a short time using sleep is easily to manage by holding until second vibration and then let go.:cool:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
After reinstall it kicked in again... Weird... Must have been a fluke..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm while it was erroneous, have you rebooted or was it during one boot... It could be that some variable in driver went nuts that lasted till reboot...

Thanks for reporting continuously. I'll keep an eye for this problem and check the logs later when I got home
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] alexchin91:
hi. currently im on viper 1.7 . is this kernel compatible with the custom rom without any issue? thanks!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hi

Shouldn't be an issue as long as edge sense viper and kernel squeeze features are not conflicting.

You can turn off squeeze features of this kernel in exkm or through scripting. Otherwise I don't see conflict or problem.

--

squeeze2swipe
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
To be perfectly honest with you I think I didn't reboot, but can't remember, been a hectic day.. Hehe...

Maybe the logs will clear something or show something, no idea, neen working fine so far after..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
ok... getting ready for a beta2. Not all things fixed, but I think some stuff improved :)

- adding Turn swipe direction to Squeeze2Swipe feature, even when Squeeze2Sleep is active:

---- if after a short swipe squeeze, you quickly before the haptic feedback happens after scrolling, you do a middle long squeeze (two vibrations squeeze) it won't do a Screen off, but instead turn the swipe direction and start scrolling the other direction.

---- if after a short swipe squeeze you waited and enough time passed (haptic feedback happened), middle long squeeze will mean a Screen off (like on beta1)

Changes:

-- accelerate if you squeeze quickly before haptic feedback: the quicker you do the next short gesture, the faster it will scroll :) to get faster on top of the page etc.

Fix:

-- avoid small scroll on direction turning
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Ohhhh.. New goodies... :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Haha, it's starting to be demanding for one to keep all in mind and be quick enough :D

I'm testing one last round...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.6.1-beta2

Change from Beta 1 -> Beta 2

- Squeeze2Swipe !

- adding Turn swipe direction to Squeeze2Swipe feature when Squeeze2Sleep is active:

---- if after a short swipe squeeze, before the haptic feedback happens signalling the end of scroll, you do quickly a middle long squeeze (two vibrations squeeze) it won't do the Screen off, but instead turn the swipe direction and start scrolling the other direction.

---- if after a short swipe squeeze you waited and enough time passed (haptic feedback happened), middle long squeeze will mean a Screen off (like on beta1)

Changes:

-- accelerate if you squeeze quickly before haptic feedback: the quicker you do the next short gesture, the faster it will scroll

Fix:

-- avoid small scroll on direction turning

Demo for turning direction with a quick middle long gesture after a short one:

[youtube]vMM7GZyB4dw[/youtube]

Feature:

- Squeeze2Swipe ! - brand new feature which is default on. Test and report. Workings:

- SCREEN ON:

---- Short squeeze -> Does a Swipe into the last vertical direction that you used on your phone's touchscreen (it cannot and doesn't know which application/lockscreen etc you're in, it will swipe)

-------- will thus scroll in applications like Chrome / BlinkFeed / FaceBook / GMail ... whichever is in the foreground. The emulated swipe happens around the middle of the screen...

-------- you'll feel a vibration feedback after a half second, then pressing again will swipe again. (vibration can be switched off on sysfs fpf/squeeze_swipe_vibration = 0)

-------- if you quickly squeeze again before the vibration, it will swipe a stronger one, scrolling faster. If you squeeze before the vibration a middle long (two vibrations) it will turn direction of swipe

---- Middle long squeeze (two vibrations) -> screen off if squeeze2sleep is on (and it's on by default). If squeeze2sleep is off through sysfs (fpf/squeeze_sleep = 0), a middle long squeeze will turn the direction of the squeeze2swipe

---- longest squeeze (three vibrations) -> default Edge Sense "squeeze and hold" gesture

- Edge Sense default long press if mapped to camera + short press for taking photos is back in this mode by default (the camera app will get a swipe tho when taking the photo but it will just work even so)

So these all got together in a nice bunch and squeeze 2 peek / wake / keep / swipe / sleep, all work together in the default setup.

--- squeeze2wake/peek/keep remains the same

Download:

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

Full in-kernel squeeze control set up description HERE

Demo video:

[youtube]f3EmHPHxKXY[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
douuble post
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
new beta ^^^^ :)

[MENTION=2344619]guidogsbn[/MENTION] [MENTION=8395457]velimirchek[/MENTION] [MENTION=271041]p50kombi[/MENTION] [MENTION=2354101]The Great Dane[/MENTION] [MENTION=398245]LeeDroid[/MENTION] [MENTION=3428502]Freak07[/MENTION] [MENTION=1162986]Captain_Throwback[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] sardroid:
Downloading right now☺

Wysłane z mojego HTC U11 przy użyciu Tapatalka
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Thanks, flashing in 5, 4, 3, 2, 1.......
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Hi, changing swipe direction does not work here. In LeeDrOiD tweaks all kernel features are enabled. Instead of turning direction I either get sleep or the classical squeeze and hold reaction (for me opening spotify). I read instructions 3 times and tested but never changed direction. Sorry!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Same here. It just switches off for me..

Nvm.. Just figured it out, had to squeeze faster.. Lol
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm this might prove tricky a little bit. I don't know if the new video I've added to the previous post helps in any way.

The trick is to try this:

Short squeeze gesture released, the scrolling starts,

Before the very very short haptic feedback comes signalling the end of scrolling, do the middle long gesture and release it on time, so it wont trigger the Squeeze and hold gesture...

I think it's a bit over-complicated, but should work :S

If no, then please send a dmesg when you try it. Thank you!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
the trick is that shortest haptic feedback at the end of one scroll round... if you catch it before that with the middle long squeeze, it will turn :D
[MENTION=2344619]guidogsbn[/MENTION] I hope you will find the same...

I'm planning to probably lengthen the period of time before the small haptic feedback, to make it easier for everybody to use this...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
Same pattern at my end , it can be a little tricky to find the right strength for haptic feedback so lengthen the period of time for the small haptic feedback would do the trick:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the test and feedback!

I'll check how to proceed with a long enough time and bit slower moving scroll if I raise that timer. It must be coherent with the non-turning scroll-scroll-scroll use case, but I think we're getting there :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Nice words, but nothing my hands would get working, sorry . Kernel log is enclosed