yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thank you!

I'll check the log and also try to see how the timings can be made convenient.

Probably I'll just remove the exact binding between the end scroll feedback and the time for turning the swipe direction.

That might work as well...

Will try the suggestions on this thread so that it works without too much hassle and complication to all
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Haaaa, got it working now! Made all settings new (calibrating lowest level) and changed squeeze + hold from open ing spotify to opening opera browser and suddenly changing direction works the way I allways tested before. Now I know, that my hands and fingers still do their job correctly:laugh:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm, thats something to remember... Don't know yet how that app choice influences the workings. Glad that you figured it out. It means that it's something that is most probably doable...

I'm not sure yet if I need to change the period length to a bit longer tho. Maybe I'll make it a parameter...

:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
A bit of progress towards the beta3, or probably Stable if no other errors/problems reported...

Sorted a bug, where the small haptic feedback happened already, yet a very close short squeeze gesture triggered a fast swipe instead of the normal swipe. It was an annoying minor problem, but now solved :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
I pledge for a bit longer. For me getting the right moment after first/second/third start scrolling to turn direction is like russian roulette:cool:

I now changed back to my first settings (long squeeze+hold = spotify) and it also works well now, if I meet the correct timing. For an old man like me it's near to heart attack,hehe:laugh:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I lean towards this as well. Mostly because using small swipes (when you wait for the short haptic feedback and only do the short gesture then) is for reading content. In which case a little bit longer time is OK, because the eye is still reading the details on the phone, before doing the next short slow scroll swipe... and thus it fits well the use case pattern to lengthen it say about 1.5 times longer, thus making turn direction easier as well...

I'll fix this up before the next beta3 then. :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Great idea !:highfive::highfive::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
SQUEEZE CONTROL

- Squeeze2Swipe !

- SCREEN ON Squeeze2Swipe set 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

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

---- 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

Full in-kernel squeeze control set up description HERE

Demo video:

[youtube]OlSVny6lk1c[/youtube]
[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]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Seems I need to RUU my phone, BRB :)

Anyhow, thanks for all the great work!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
No mirrors for on afh , also, if you want us to get a mention, you need to put at least a space between our @ names... Lol;)

OK, downloaded now...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
hmm on the post it looks ok at least the mentions :)

as for afh...let's hope it gets mirrors soon

EDIT: why is it that it shows mirrors on my end on afh :S
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.6.1-beta4

Change from Beta 3-> Beta 4

- Squeeze2Swipe !

-- fixing Turn direction scroll length: now it's back to the intended normal small swipe, instead of the buggy long/speedy swipe

-----> making it easier to change direction without scrolling too much to follow

Download beta4:

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

Full in-kernel squeeze control set up description HERE

Demo video:

[youtube]f3EmHPHxKXY[/youtube]

[MENTION=2344619]guidogsbn[/MENTION] [MENTION=271041]p50kombi[/MENTION] [MENTION=2354101]The Great Dane[/MENTION] this is getting to be the release candidate, with this last bit I see it as a complete and relatively easy and intuitive to use feature... Let me know if any other suggestions remain...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Edit: it is not Magisk issue, it happens with supersu also. Also it is not an issue at all, just me being idiotic as I said bellow, it is intended behavior by HTC and all ok. Won't delete my post under because I was wrong and maybe someone will learn something from it.. Sorry.

Edit2: after further tests, script mentioned bellow is executed as it should and sleep_disabled is set to N, but then HTC pnpmgr comes in an sets it to Y.. disabling HTC pnpmgr and applying on boot, sleep_disabled is set to N correctly. Sorry again.

It shows mirrors for me also. And mentions also look correct to me and I got notification.

Sorry for taking this offtopic, but before I RUU, can some good soul from this thread that is rooted with magisk superuser and on this kernel or stock see something, as it seems no .sh (scripts) are running for me (just restored clean system image and just rooted with magisk 13.3. zip):

Using some (root) explorer app go to /sys/module/lpm_levels/parameters/sleep_disabled and tell if it is Y or N

It should be N if qcom post boot script run as it should, that is in /etc.. this makes my brain hurts, whatever I do it is Y and looks to me scripts are not running for me or I am an idiot that should buy an iPhone.

[MENTION=3088420]tbalden[/MENTION] sorry again for taking this offtopic, but kind of too tired to RUU :(

Edit: posted in Magisk support thread, not to take this offtopic.. sorry again.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=8395457]velimirchek[/MENTION] no worries... yeah these kind-of things can drive me nuts as well. Hope someone may be able to help out... Honestly that's why I try using scriptless kernel default configuration but I'm really sticking to stock system too
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
But someone would notice it I guess.. so I must be an idiot doing something wrong. Because it happens on stock kernel for me also and HTC wants that script to be executed.. aaaaa.. my brain hurts :eek:

Thanks for your patience!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
As I updated to beta 3 and tested to report back that I have problems with scroll speed (too fast, too much) I found the new update to beta 4 and installed and tested it ( btw software information still says "b3"). It still is not an "easy go", but it runs much better now. So I'm going back to test my reaction timing...

To fast/quick testing reactions make problems, not the kernel! If I wait for the haptic reaction after having changed direction and then squeeze and hold for turning direction again it works fine. So it's "wait-then squeeze":cool:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thing is, if you wait enough till the scroll stops and the tiny haptic feedback, pressing a short gesture should be really slow about little more than half a page.

What's your mileage in that case, waiting long enough and then press only
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
[MENTION=3088420]tbalden[/MENTION], you're in oar with [MENTION=398245]LeeDroid[/MENTION] shortcutter beta releases now... Lol..

15 releases a day...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
ok, regarding BlinkFeed, it's indeed even in this mode above which I advise, it is scrolling through too many items (one row is skipped generally). I'll fine tune that for blinkfeed, this short scroll mode [MENTION=2344619]guidogsbn[/MENTION]

Otherwise I think the speed of long scrolls are okay, but I'll have a look at making a bit slower by the time it almost already reaches the timelimit between long scroll and short scroll...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.0-releasecandidate1

Change from Beta 4-> RC1

- Squeeze2Swipe !

-- Slowing down "after haptic feedback" slow short swipe to even slower to match appropriate Blinkfeed scrolling size

-- Stretching out strength scale of the Long fast swipe (when pressing the short squeeze quickly after another swipe squeeze)

-------- if you leave longer time between the two, scrolling gets much slower now

-------- if you leave shorter time between the two, scrolling gets much faster now

Download RC1:

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

Full in-kernel squeeze control set up description HERE

Demo video:

[youtube]f3EmHPHxKXY[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
yeah, and another one just now. Now speed ranges from getting top/bottom of the page in a few seconds to slowly scrolling... all depends on the tempo, how little time one leaves between the gestures.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Last bug : if middle long squeeze time passed in the time counter work function, but squeeze started earlier, like middle long, it powers off currently.

In this case, it should turn direction instead, as user started it before knowing the vibration will happen while holding the device.

Will fix it soon
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Yep, that was the right way. Working fine now, thank you very much:good::good::good::cool:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
+1
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for reassuring the rc1 changes. I find it better as well. Now off to fix the last few bits
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.0 stable

Feature:

- Squeeze2Swipe ! - brand new feature which is default on.

Detailed description/explanation here: LINK

Download:

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

Full squeeze to sleep/wake set up description HERE

Thanks go to [MENTION=2344619]guidogsbn[/MENTION] [MENTION=2354101]The Great Dane[/MENTION] [MENTION=271041]p50kombi[/MENTION] [MENTION=8395457]velimirchek[/MENTION] for feedback and testing!

Demo video:

[youtube]f3EmHPHxKXY[/youtube]

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

[youtube]vMM7GZyB4dw[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
So frikkin cool.. well done mate!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks Lee! :)

I'm really happy about this one... with so much help from folks around here it truly has become something that is as close to intuitive and useful as I could imagine it...

And just now finished preparing a tutorial video "Let's learn Squeeze Control" for those who are planning to use it and speed up the journey on "the learning curve"

[youtube]OlSVny6lk1c[/youtube]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The Great Dane:
Whoop whoop......:laugh:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Tikerz:
This is freaking amazing. Just got my U11 yesterday I am really digging this "gimmick" that everyone else calls it. Super innovative. Well done!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
It´s working (scrolling and changing direction) very precisely now with 1.7.0 and it is easy to handle. Extremely great job [MENTION=3088420]tbalden[/MENTION] !!:good::good::good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Have to agree, working very nice and stable so far.. Good job matey.. :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
[MENTION=3088420]tbalden[/MENTION]

I didn't think I was going to like the squeeze2scroll, but with your 1.7.0 stable version, I must admit - it's pretty cool.

I'm glad I brought up the squeeze2peek idea to get the ball rolling :). Great work on all these tweaks - now Edge Sense is actually a complete feature for me :good:.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yes, brainstorming on Hangouts, around what HTC might hold in its own Edge Sense implementation betas in the near future got this thing moving on... Thanks for that! :highfive:

To add a small background, the "squeeze to peek" moved forward with the necessity for addition of touchscreen input detection where that would keep screen on. That involved starting to connect my codes with Touchscreen input driver events.

At that point it occurred to me that my original idea about what HTC will include with the Edges Sense (before actually U11 was released) was that it certainly will have something like Edge Sense scrolling.... but it hasn't been there yet.

And at that point, thinking about that touch screen input handling/filtering was just added, I realized grabbing that input device pointer, it could be easily used for emulating simple touchscreen events through kernel.

Much like what HTC added in userspace with configuring the Edge Sense to emulate button presses, but that I find less useful than scrolling.

here we are, it just needed about a week to add something useful, with so many great feedback on usability, I think it's something that has its own value, especially when handling the phone single handed.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
I second that notion! :highfive::victory:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
[MENTION=3088420]tbalden[/MENTION]

I do seem to have issues with the squeeze gestures after switching to a different user account on my device, and back again. There appears to be delay and inconsistency, at least until a reboot. I'll have to grab a log for you, unless you can test multiuser. It may be a function of lack of permissions on the secondary user account causing issues.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I think it might be a problem with the way squeeze detection works.

Unfortunately I had to rely on user space wakelock registration call towards kernel, instead of a way to rely on the nanohub or edge sense driver.

I can imagine that with two sessions more than the expected amount of wakelock registration might happen or not happening... That could be cause for trouble..

A dmesg log would certainly help.

BTW how can one switch to multi user on a phone?

Noob question :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Just ask someone that's close by to push the home home button whilst you press volume... Multi user voila
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
If you're using LeeDroid, it's in Settings -> Users. The option isn't there on stock. Adding it only requires two props, though, for which I believe a Magisk module even exists.

EDIT: I'll grab dmesg shortly.

EDIT 2: dmesg attached. [MENTION=3088420]tbalden[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmmm looks like it doesn't work with the second user at all.

I'm guessing HTC didn't test it a that's a double vibration on the log, like two sessions do the job instead of one at least for two users.

Isn't the haptic vibration of starting the squeeze like a doubled slightly longer one?

The timestamp doesn't differ that much that one could actually feel it.

I'll have to compare to a normal log.

I guess two nanohub programs are running at the same time one detached from user
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
That log is actually from the primary user, after I switched back. I feel the vibrations, and the default Edge Sense behavior that triggers the Camera to launch actually works (I think that's the middle long squeeze, but there's no visual feedback). But when I went back to the secondary user, the camera was open there too, and I can see the visual feedback again. It seems to be really confused.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] shukyuen:
It's cool! Love it! Thank you! Tell you a strange thing, I am in Leedroid R53,flash cleanslate 1.7...after reboot my rom change to viper 1.7....I don't know why this happened... ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
It relates to nanohub code may run in background. And it's an Htc problem then, probably because this is not tested at all.

The kernel of course logs both vibrations from the two running framework parts.

Now camera.. I think you'll have the same problem on stock kernel.

Maybe I could fix this on the custom functionality and not the stock. I'm not sure, but do you crucially need it? :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Well, I use both user accounts daily, so I'm not sure what to do, lol. I do believe you're correct about Camera launching on both user accounts on stock kernel. But that part I don't really care about. It's the losing of my squeeze features when switching accounts that is the problem.

I guess this is what we get for enabling stuff that HTC disabled. Now we know why, I suppose :rolleyes:.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I suppose kernel squeeze features could be saved.

All others seem to be going haywire in user space probably.

I like fun and this challenge seems like fun.

I'll try to check logs and see if it's doable blindly :)

I don't flash anything but zimage these days :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Could you please try this before anything

Go into user one. Disable vibration feedback in Edge sense.

Go to second user and enable there.

Does it fix the kernel feature?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Interesting...now it seems to be working for both users, but the visual feedback is gone for both users now too.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yep, as I expected with the kernel side. Only one nanohub client expects vibration.

And thus only one happens, and that's used by the custom feature ... :good: but if two happens it confuses the detection

As for the others... Well it's an uncharted territory. :o :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
That's what I somewhat expected as one nanohub client stops doing vibration...

The double pattern causes problem in my detection code.

As for the rest, visual feedback...its uncharted territory...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] 3lMghraby:
hey

I would like to thank you for this awesome kernel

also if I may I would like to ask about something which is adjusting hardware button brightness independently for recent and back keys if it is possible by kernel impelentation?

and wether you could add it ?

thanks in advance
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I've tried to do something like this at the beginning, but the only thing I got accidentally is having one of the buttons lighted, and the other not, but I couldn't identify how exactly to do that on purpose.

I'd need a detailed documentation how the key leds can be programmed, but I don't have such.

In short it's not possible right now.

But I'll check if I can reverse engineer by trial and error, as I'd like something like that too. But for now I can't promise this
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
So, I've found this http://www.ti.com/lit/ds/symlink/lp5562.pdf. Unfortunately it's not possible.

But while reading this, I see that I can have a new look at patterns, for a smoother blinking for the different leds (notification and buttons LED)!

I'm going to check it thoroughly...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Good thing for us you don't have any other hobbies... :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I do have but I'm a semi perfectionist lol

That's the luck :D ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
[MENTION=3088420]tbalden[/MENTION]: Heh, I found a new one: in landscape mode , scrolling goes through all the home pages - and back! Now you should find a way to get this in normal mode. That could be scrolling at it's best! I bet this can be really made....:good::good::cool:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
yeah, I kinda had been thinking about this one, and my problem is that there's no kernel side information about the gyroscope state, landscape or portrait... probably relying on the last swipe direction on the touchscreen with finger...

but for these problems I decided to think more about this... it's on the todo/to think list :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
so... here is a status video about the revamping of LED blink driver programming... A smooth 120 step ramping up/120 step ramping down fading program instead of the bare 6 step used in the 1.7.0 last stable release...

I'll have to restructure the code/refactor speed / pattern handling, so it's gonna be a few more days ... but look at the fading ... wow ... just like it was on the m10 and is on other phones :D

[youtube]-49yntJF9IQ[/youtube]

sorry for the video quality...but you will see the difference I'm sure, those to whom it generally matters always see :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Can the 2 sides be picked up independant of eachother? :laugh:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Tikerz:
Off topic, what case is that? [emoji2]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
Edge sense is alot better with this kernel, wouldn't be surprised if HTC adopts some of your ideas. :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Interesting thing is that I think the edge sensor driver could do that but in the layers above I didn't find anything that indicates that. Anyway I'll have a look some logs if it shows in the nanohub level..

But yeah the idea suggested is really good, holding it in landscape you can squeeze it one or another side ..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Seidio dilex. I had an accident with the phone and since the repair I started to take cases seriously. ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
That would be awesome, it seems they are continuously working on improving it, and plan to take it forward with the pixel2. There's much potential in it.