yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] tbalden:
Ok, regarding the features i was working on, i have a video about what these are.

So the new features (not yet publishable, i need to mess with some things yet before some betas):

- Flick2Wake - flick the phone, with a good strength, and the phone screen will wake or get to sleep. (It might look a bit awkward on the video, but i already am in love with this feature, it's comfortable :))

- Pick2Wake - when your phone is laying around on e.g.a desk horizontally on its back, and you pick it up in a short motion and turn it to stay vertically still for a moment (like you would generally be looking at it), it will wake up.

But I must let you know that, if you'll want to use these features, it will certainly keep the phone's CPU more busy, less deepsleep, especially when the phone is not sitting still, but being moved (gyroscope sensor being active), when it will keep the CPU up for more time than normally. Unfortunately, that cannot be circumvented, so these features will come at a price of battery juice. It won't eat up the juice like mad, but certainly, i've measured that it WILL eat more. Anyway, if you still interested, don't ask for release date. :)

[youtube]R8Z5_guUESw[/youtube]
[One (M7) Original Android Development] bamidrol:
Thanks for the advise but i got it fixed on my own way. Appearently i was able to use ADB push during startup. So i pushed the file, installed it in recovery and im back in business. I got some knowledge of adb and other things so im not a total newbie. Could u guys provide me with a proper kernel? Im getting kinda confused. Thanks in advance

edit.

nvm. My browser only loaded half the post. I got a proper one right now.
[One (M7) Original Android Development] zopostyle:
WOWW!!! Loved the Flick2Wake
[One (M7) Original Android Development] Techno Sapien:
Flick2Wake...man you are genius :) looking forward for some shaking :)
[One (M7) Original Android Development] poczynek:
That's some genius there! I love dt2w but f2w looks very handy. Um based on how amazing you are with getting things to sleep in different ways can you please install the same feature on my 6 week old. Thanks.
[One (M7) Original Android Development] kevdliu:
Would it be possible to implement a separate flick2sleep? This way we can have a quick and easy (and dangerous) way to shut off the screen without the down side of less deep sleep.
[One (M7) Original Android Development] eng.stk:
Cool, hope that are optional and off by default because of deepsleep and cpu use.

BTW I have a flip cover, would be possible to have an option to use proximity sensor (kind of reverse pocket sensor) so when open flap it awakes the phone?
[One (M7) Original Android Development] danis1997:
can it be used on atyt htc one??
[One (M7) Original Android Development] tbalden:
Yes, that's possible, Im planning on separating them before releasing a test version

Btw yes, flick will be only advised to be used with a grip on both sides of the phone, so you won't drop it accidentally. :)
[One (M7) Original Android Development] tbalden:
Well,all except spring which is cdma. I only test on the wwe (international) Rom base updates, so I'm not sure about at&t and t-mo (wifi call). Be sure to check that you are using a Rom base that is in the first post listed. Do a nandroid backup before trying, so you can easily restore if things go bad
[One (M7) Original Android Development] cb951303:
screenshot ability gone

I've flashed 4.3 gpe stable edition and I can't take screenshots anymore with "power" + "volume down". Any ideas?
[One (M7) Original Android Development] tbalden:
it will be definitely optional :)

Flip cover wake would be too much prone to accidental wakes (like you just hover something over the proximity sensor, and it wakes). So while it could be possible, it's practically too sensitive for a wake solution.
[One (M7) Original Android Development] tbalden:
are you sure? I've taken plenty as i recall. also it's not much differing from the stock kernel of GPe 4.3 released by htc, so it's not removed or something.
[One (M7) Original Android Development] cb951303:
I'm pretty sure.

When I first installed 4.3 RUU I could take screenshots. But then I got fed up with the 3 dot menu and flashed this kernel in order to have logo2menu. Re-rooted the phone and now I can't take screenshots. What key combination are you using?
[One (M7) Original Android Development] tbalden:
i'll test it again, but using pwr + vol dn too :) I'll need to revert to my backup later, so can't confirm this atm. thanks for reporting anyway!
[One (M7) Original Android Development] unk027:
How I can know what is cause random reboots? I get this when the screen off normally

ARHD 20.2 / kernel 4c-performance

Regards

Sorry for my English :(

Enviado desde mi HTC One usando Tapatalk 4
[One (M7) Original Android Development] miten_sheth:
What's a good i/o scheduler with smartmax governor for battery?
[One (M7) Original Android Development] tbalden:
a good choice seems to be fiops.
[One (M7) Original Android Development] tbalden:
Try to raise voltage a bit maybe, if you didnt do it already, and/or try to lower the max freq from 1.9 to 1.7ghz
[One (M7) Original Android Development] poczynek:
Not to get too eee tee aye but any idea when the Kraken (f2w) will be released?
[One (M7) Original Android Development] SSS Desire:
so very cool....:cool::D
[One (M7) Original Android Development] cb951303:
no problems thanks
[One (M7) Original Android Development] n3ocort3x:
About HP control discussion a few pages back:

What's that bulls***. Its a matter of how u adjust the Control. Mpdec keeps more cores online on low loads. Sometimes all 4. That's efficient? That's the mpdec magic. Nothing more u can easily adjust the same behaviour on custom HP. Sorry but if I read sentences like mpdec is faster I could start to puke as it's simply not true. Adjust it more aggressive and u guys are done. Same goes for cpuquiet which should arrive soon on teaMseven

noNeedForAsig
[One (M7) Original Android Development] baste07:
Any recommended trickster setting for optimum battery life?
[One (M7) Original Android Development] danis1997:
Yes, I ask because the hardware are 99% the same I don't have my HTC one now, I will try it when I get it :) and I will tell you what happen
[One (M7) Original Android Development] Denpech:
Too it is interesting to me!
[One (M7) Original Android Development] bia9977:
Did I loose data connection or is everyone standing breathless waiting for [MENTION=3088420]tbalden[/MENTION] to release "pick it up to wake" kernel? :)
[One (M7) Original Android Development] tbalden:
i'm still looking at how to make this battery juice efficient, and will need some other stuff done (sysfs settings is missing yet) yet before it can get out. :) atm looking at this for the gyro stuff :) http://ae-bst.resource.bosch.com/media/products/dokumente/bmg160/bst-bmg160-ds000-07_published.pdf
[One (M7) Original Android Development] bia9977:
We gonna make'em Segway's? Yes! ;)
[One (M7) Original Android Development] tbalden:
:D

Well, Flick2Wake juice optimization has worked out quite well. BUT Pick2Wake is not an easy case regarding juice.

In case of Flick2Wake, i was able to look up info and thus set the sensor's Interrupt settings such that it only wakes CPU on heavier accelerations of the gyroscope, thus the cpu can sleep normally, even while walking around and such.

But that means, that Pick2Wake cannot be applied with those settings, as it's too insensitive for capturing the moment when it's laying and you pick it up to vertical... i'm still thinking about what to do with this, because if i want Pick2Wake to work as expected, the juice friendly settings for sensor Interrupt handling cannot be applied. I'm thinking about just releasing the Flick2Wake for now, maybe tomorrow, as it is really working well, and is battery friendly at the same time now after finding out the 'techy stuff' about setting the sensor up for interrupted (while in sleep) mode.
[One (M7) Original Android Development] bia9977:
F2W can be easily achieved with Tasker. That's how I put to sleep and wake my phone. P2W in the other hand would change the world as we know it. And since I got to know you, I don't believe in that "impossible" bull**** anymore. I KNOW you'll figure something out. :)
[One (M7) Original Android Development] tbalden:
Hmm,i'll think more.

When you say easily achieved, i'm not sure how that could work without sacrificing some juice...well i'm curious how that works with tasker. Problem is, that the default HTC kernel doesn't leave you the perfect option to use the interrupts of the sensor, thus, while with keeping the device sensor awake along with the CPU, it could be possible to achieve it, but i think what i've got here is quite more efficient deepsleep and battery-wise :) Well, i don't know how Tasker works on that, but sounds interesting that it's possible...used tasker a long time ago. :)

Anyway, i'll keep the pick2wake in my mind for now...maybe a bit of battery sacrifice if you choose that option, till we figure out a better way...i'll be back to this tomorrow :)
[One (M7) Original Android Development] bia9977:
Tasker is using Security Settings (an app) to lock or unlock the device.

On the other hand I didn't buy the most advanced device to bother myself with the battery level. If it dies so be it. I'll connect it to the power source. I want to use the capabilities to the fullest. But I need those capabilities. And that's exactly where you step in :)
[One (M7) Original Android Development] Gerton:
C4 stable is running nicely with ARHD 21
[One (M7) Original Android Development] bia9977:
Stable or performance C4 is great on any rom. But it doesn't mean it can't be spectacular.
[One (M7) Original Android Development] poczynek:
I've been practicing flicking all day in prep!
[One (M7) Original Android Development] baste07:
yeah C4 has been great for my IC
[One (M7) Original Android Development] tbalden:
so, today is beta time for f2w/p2w :) i'm preparing the stable/perf beta installers now for Sense 4.3 today :) I'll crank out the GPe 4.3 editions maybe tomorrow if things go right
[One (M7) Original Android Development] bia9977:
I thought you forgot about it :)
[One (M7) Original Android Development] tbalden:
nah, it's just weekday, so really little time to prepare stuff...
[One (M7) Original Android Development] tbalden:
Flick2Wake and Pick2Wake Sense 4.3 beta test installers

DOWNLOAD below the video

- Flick2Wake/Sleep - flick the phone, with a good strength, and the phone screen will wake or get to sleep. (It might look a bit awkward on the video, but i already am in love with this feature, it's comfortable :)) Phone should be held in portrait mode, and flip the phone in a way that the top is flipping around the middle line of the phone...try it and you'll get used to it.

- Pick2Wake - when your phone is laying around on e.g.a desk horizontally on its back, and you pick it up in a short motion and turn it to stay vertically still for a moment (like you would generally be looking at it), it will wake up.

Regarding Pick2Wake I must let you know that, if you'll want to use that specific feature (pick2wake), it will certainly keep the phone's CPU more busy, less deepsleep, especially when the phone is not sitting still, but being moved (gyroscope sensor being active), when it will keep the CPU up for more time than normally. Unfortunately, that cannot be circumvented, so pick2wake feature will come at a price of battery juice. It won't eat up the juice like mad, but certainly, i've measured that it WILL eat more.

Fiddling around with the Flick2Wake/Sleep, if you only use that, and leave the P2W off, deepsleep should be normal.

[youtube]R8Z5_guUESw[/youtube]

BETA INSTALLERS for Sense 4.3, 2.2.0-beta-1

Performance Edition 2.2.0-beta-1 Sense 4.3:

http://d-h.st/bRF

Stable Edition 2.2.0-beta-1 Sense 4.3:

http://d-h.st/ZVc

You can select the F2W or P2W options in the recovery installer.

Changes:

f2w/f2s and p2w added

Manual setting is possible as well:

f2w on:

echo "1" > /sys/devices/virtual/htc_g_sensor/g_sensor/flick2wake

f2w off:

echo "0" > /sys/devices/virtual/htc_g_sensor/g_sensor/flick2wake

p2w on:

echo "1" > /sys/devices/virtual/htc_g_sensor/g_sensor/pick2wake

p2w off:

echo "0" > /sys/devices/virtual/htc_g_sensor/g_sensor/pick2wake

Switch screen on/off again to let the settings work if you change them from shell.
[One (M7) Original Android Development] bia9977:
Than I better be quite and let you work.
[One (M7) Original Android Development] poczynek:
Ok flick to wake working beautifully but flick to sleep can't get to work!
[One (M7) Original Android Development] bia9977:
Try shaking east-west.
[One (M7) Original Android Development] poczynek:
I've tried every compass location. Magnetic north was tough to get right though...

Seriously though, cannot get flick to sleep to work using same motion as I get flick to wake to work.
[One (M7) Original Android Development] bia9977:
Not the magnetic north! You have to point it at the North Star ;). Kidding aside it works for me with any possible way of shaking. What doesn't work is pick to wake.
[One (M7) Original Android Development] poczynek:
Ah yep working now! Stupid me didn't realise that flick to sleep won't work when it's locked...
[One (M7) Original Android Development] bia9977:
You mean password protected?
[One (M7) Original Android Development] poczynek:
Ah no - screen locked. So it's working now occasionally but only if screen unlocked. So you saying it should work even when screen is locked?
[One (M7) Original Android Development] bia9977:
It does for me.
[One (M7) Original Android Development] zopostyle:
Working flawlessly here... F2w and f2s would be nice if s2s can be enabled in this kernel...

Sometimes for me its easier to turn off...gonna use f2 to see how I adapt myself to it..

Congrats and thanks a lot for that!

Ps: check your camera with bulletproof, their screen seems more normal than yours...(too bright)
[One (M7) Original Android Development] tbalden:
Both works here as me is expecting. Try pick2wake first with a short motion starting from laying, and make sure the phone is then still after being picked up, and kept vertically aligned in portrait mode. Is it not working at all or just sometimes?

Also please double check if you have selected the option in the installer, in case you're unsure. It's not checked by default
[One (M7) Original Android Development] tbalden:
Thanks for testing, great that it works fine. (S2s is not planned to be added, as it is finicky and many users report they actually push home or back or start apps from locker screen in the end accidentally on other kernels. I don't like that kind of mess in operation)
[One (M7) Original Android Development] tbalden:
It should work when it's locked too.

Using it effectively means that the phone must get a momentum and suddenly stopped. A moderately strong flick with a sudden end works all the time, if the phone is being flicked around its y axis which is going in the middle of the phone just across the HTC logo.

And yes, flick2sleep is only working with that motion, while flick2wake (if pick2wake is not enabled) works in more directions. I wanted to make sure that you don't accidentally switch it off with just any kind of shake motion.
[One (M7) Original Android Development] poczynek:
Yes I'm having no luck at all in getting it to flick to sleep. I might make a video when I get home to show.
[One (M7) Original Android Development] Techno Sapien:
hi, ARHD 21.0 flick2wake\flick2sleep works perfect. thanks :)
[One (M7) Original Android Development] randykzc:
F2W and F2S working awesome..i would its quite responsive... :good::good:
[One (M7) Original Android Development] tbalden:
That would be helpful! Thanks for testing. Hopefully till then you can figure it out maybe what's the exact movement needed to trigger it. There's a very slight chance that there's some hardware calibration difference, but maybe it's just a matter of practice. I've added the math to be convenient and easy enough. I'm curious what's going on.
[One (M7) Original Android Development] nyteblayde:
Any P2W/F2W feature for the 4.2.2 kernel? :)
[One (M7) Original Android Development] SSS Desire:
F2W/F2S is working perfectly!!! :good::good::good:

Huge thanks tbalden on these innovative features. I'm on TrickDroid 10.0.0 btw.
[One (M7) Original Android Development] bia9977:
I just reinstalled to make sure I did select this option, but it doesn't work. Not at all.
[One (M7) Original Android Development] tbalden:
It will come eventually, planned. :)

I only plan to deprecate the GPe 4.2.2 version, as i think everyone migrated to GPe 4.3.

So essentially, if the feature is stable enough, i'll add it to Sense 4.2.2 kernel and GPe 4.3 kernel versions.
[One (M7) Original Android Development] tbalden:
That's weird.

Could you please check this in adb?

cat /sys/devices/virtual/htc_g_sensor/g_sensor/pick2wake

whether it's 1 or 0
[One (M7) Original Android Development] bia9977:
Its set to 0. If I try to change it to 1 it doesn't stick. Tried to change permissions but still no go.
[One (M7) Original Android Development] tbalden:
Hmmm... strangely it works here, and it's 1, after a reboot too with the init.d scripts.

Are you using " signs for the echo?

Do you have a script named:

/system/etc/init.d/01-p2w

it should be echoing "1" the right way.

what does

ls -l /sys/devices/virtual/htc_g_sensor/g_sensor/

output?
[One (M7) Original Android Development] Macrusin:
My mobile data is not functioning after flashed 4.3 kernel. Any solution?
[One (M7) Original Android Development] tbalden:
What firmware, what rom, what base did you install it on?

It's working for everyone on all 3.09 and 3.17 releases so far, so if you're on one of those bases maybe check your settings, the kernel is fine.
[One (M7) Original Android Development] miten_sheth:
No f2w and p2w for 4.2.2??? :( :( :( :what:
[One (M7) Original Android Development] snachez:
http://xdaforums.com/showpost.php?p=39225672&postcount=2
[One (M7) Original Android Development] jamalau:
The same as me :rolleyes:
[One (M7) Original Android Development] agalvin13:
just flashed this on TD 7.5 and it is running great! Awesome work! Cannot wait to see some performance mods added soon! :good:
[One (M7) Original Android Development] syaoran68:
i noticed it said that on screen wake up its a bit laggy? how long does it last?
[One (M7) Original Android Development] tbalden:
Quarter of second normally
[One (M7) Original Android Development] tbalden:
At the moment nothing special to test, except normal functionality in general, and the wake/sleep stuff. Later there might some more stuff to test, firstly i plan to add the Voltage control patch.
[One (M7) Original Android Development] syaoran68:
interesting thing happened to my keyboard when i installed the kernel... my suggested words in my keyboard shrunk in size to the point where i can barely see them not sure if its the keyboard or if its kernel. stock kernel in first pic se7en kernel in second
[One (M7) Original Android Development] c-prodigo:
Love it , works great in trikdroid 7.5
[One (M7) Original Android Development] olvrick:
what keyboard is this?
[One (M7) Original Android Development] tbalden:
can you tell me which keyboard app is this ? thx
[One (M7) Original Android Development] farang4u:
There's a thread on it here: http://xdaforums.com/showthread.php?t=2329735
[One (M7) Original Android Development] anoraknophobia:
Its the Minuum keyboard -> http://minuum.com/

Got one stupid question. Where can i find my current firmware of the touchscreen ? :confused:
[One (M7) Original Android Development] semdoc:
Youtube videos are fine.

IrDA is fine too - not heavy tested, but it seems to work fine..

Battery life seems to be fine too... After several phone usage (voice calls, whatsapp, Forsquare, yandex(gps on) etc) I have 63% of batt with 1 hour 30 min on screen and 45 min voice calls.. WiFi on, 3G on.

No rush of course, but did you plan to add different governors like Smartmax etc?

Great work as always. :thumbup::thumbup:

Sent by my ONE
[One (M7) Original Android Development] Keasby:
[MENTION=3088420]tbalden[/MENTION]

Are you goin to add sweep2sleep too?

Tapatalked
[One (M7) Original Android Development] :
Bluetooth Audio is broken... Just have Lags during the play

Gesendet von meinem HTC One mit Tapatalk 4 Beta
[One (M7) Original Android Development] tbalden:
I'm using it a lot with A2DP stereo headphone with aptx codec, and it's working mostly fine. If it gets a bit further there's some dropouts, but generally it's working.

I'll add it to the Known issues tho, that it's not as good as the stock when phone is at a distance.

Also i can't produce this all the time, but it happened a few times.
[One (M7) Original Android Development] guidogsbn:
Excellent job !

Really excellent job, worth a few beers 5VL2375729383900N

Unbelievable, that even without kernel source code all necessary things on 4.2.2. are there.

Even HTC Sync is running again with actual version of todays kernel, congrats!!
[One (M7) Original Android Development] ceelo2008:
Any luck?
[One (M7) Original Android Development] :
Yes just happens from time to time..... But the distance is not the Problem ... My phone is 3cm away from my Bluetooth Audio device

Gesendet von meinem HTC One mit Tapatalk 4 Beta
[One (M7) Original Android Development] pigmich:
Hello tbalden, will you fix the S2W sensitive problem? Thank you~
[One (M7) Original Android Development] tbalden:
Patience...as i've written a few posts back, there will be f2w and p2w for 4.2.2 version sense, and 4.3 for GPe later.
[One (M7) Original Android Development] tbalden:
could you post here a /proc/last_kmsg?

thanks!
[One (M7) Original Android Development] bia9977:
The only way I know how to do it is link to Dropbox. http://db.tt/l69dr7wX
[One (M7) Original Android Development] tbalden:
thanks! This is too much the end of it, long after booting up. Could you please do this later when you get there:

reboot, wait till booted up fully, and then reboot asap, and then after booted, grab the /proc/last_kmsg file

thanks!!
[One (M7) Original Android Development] miten_sheth:
Sorry but this feature is too awesome so was a little disheartened to not see it for 4.2.2... :P

But since it's coming for 4.2.2 I can wait.. :D
[One (M7) Original Android Development] bia9977:
File is even bigger.
[One (M7) Original Android Development] SmiLey497:
F2W/F2S work here. 3.17 Sense 4.3
[One (M7) Original Android Development] tbalden:
Please pm a link to it, might be still interesting
[One (M7) Original Android Development] bia9977:
Sent.
[One (M7) Original Android Development] tbalden:
strange, it didn't get here.
[One (M7) Original Android Development] bia9977:
I didn't find it either but thought it just my ignorance. I'll try that trick of mine. Will install different Kernel and then reinstall yours.
[One (M7) Original Android Development] tbalden:
hmm, maybe i know what the problem is! i think the execution permissions part were left out of the Perf edition installer script! Wait a bit...
[One (M7) Original Android Development] bia9977:
Now you telling me? I'm on Elemental already :). And I don't like it. Neither does my One.
[One (M7) Original Android Development] tbalden:
Try this :) beta-2. I'll post it with 4.2.2 versions soon in one bigger post:

So Sense 4.3 2.2.0-beta2-perf edition installer http://d-h.st/oBX

fixing p2w issue (init.d script not properly set, so p2w didnt work, only on Stable Edition was it correctly set)...
[One (M7) Original Android Development] bia9977:
Aha! Perfect. Thanx a million.

As soon as I leave work im gonna walk over to Times Square and write on that building with the huge screen "TBALDEN IS THE BEST KERNEL BUILDER IN THE WORLD. PERIOD". And anybody who questions that I'll skin alive ;)

---------- Post added at 03:43 PM ---------- Previous post was at 03:32 PM ----------

After 10 minutes with [MENTION=3088420]tbalden[/MENTION] Kernel phone temperature is down to 33.1°C. After 15 minutes on Elemental temperature was still sitting on 37.8°C. Both kernels set up exactly same way. Questions?