yashsingh1/xdaforums huggingface dataset:
[HTC One S] Zarboz:
Right now there is an issue with the way the touch drivers are ran for our unit

as of now it appears there are two seperate controllers

Cypress cy8 CS

and

Atmel244e

the Atmel244e Controlls the "touch portion" of our screen

the Cypress CS controller is the "soft key" portion of our screen

but in the board config our screen has a flag for TOUCH_KEY_FILTER. This flag cuts about 10px off the bottom of the "screen area" declared in the board config.

Heres a way you can witness what i speak of

Download an app called Yet Another Multitouch Tester.

start the app

put one finger in the middle of the screen and put a second finger on the screen.

Drag the finger to the "soft key" area of the screen. You will notice the reading dissapears IF YOU OWN another android

do the same steps with it.. You will get a XY reading from the "soft key" area

I have tried removing this flag and still cannot get the sweep2wake to read the output from the CypressCY8c CS controlled portion of the screen

I have spoken with showp1984 in reference to this and he has promised to look at the coding i have done when he wraps up his nexus 7 kernel project. I also was looking into getting a device to mail out to showp1984 or finding a german user who is close to him that may assist in testing

On a side note i broke the screen on my one S today so i am ordering a replacement. I am excited to get inside the unit and see if the digitizer is a single unit or physically seperated to divide the "touch screen" and "soft key" area. I have sweep2wake fully ported to our device but alas it fails to read the "soft key area" because that area doesnt produce XY coordinates when being touched effectively making the idea of sweep2wake null

the idea of sweep2wake: A physically read action that mimics the function of power button. This will be done by having a straight line with 2 vertical lines through it. We will define the left side of the line as A and the breaks as 1 and 2 the right side of the line B. We will make a code that says. When line A -> B has activity AND 1 & 2 barriers are broken. Then mimic power button activity. and vice versa for the return.

Since the cypress keys dont give me a XY coordinate the above mentioned concept of swep2wake wont work for our device

BUT

the keys do define themselves with numbers...

0x2

0x1

0x4

and

0x0 = off

So I wanted to rewrite the sweep2wake code to say more like

If button 2 then 1 then 4 are pressed then mimic the power function and vice versa for the sleep

i know i make it sound very easy but its ALOT of code and was very well thought out and written by another individual and breaking my unit slows me down on production of cool stuff. The guy who wrote it lives in Germany and I live in Denver so it makes it a little hard to get together and talk about code when it isn't a crazy hour for him.

That is where I am at with sweep2wake on this device. As for as the other devices my team and I support : One XL and Evo LTE. These devices have a Single touch controller through a synaptics driver and should be getting support for s2w soon

Sorry were left behind right now wich sucks cuz this is my main device.
[HTC One S] :
Thanks for the very descriptive answer, have more of an idea what's going on now and can understand your coding issues. I'm begining to think HTC went all out to make the One S series a pain in the arse for modders and its out to get us all! :D

Sorry to hear about your phone fella but at least it gives you a mini break.
[HTC One S] MuurHekker:
Thanks for the clear answer! Looks really diffecult indeed. Good luck with sorting things out and coding! And replacing the screen:p i will shut up now and wait :thumbup:
[HTC One S] plakers:
Guys,

Re-flashed my Viper... And that Kernel. But with any custom Kernel (and this one) I experience the same issue :

* Choosing SmartAssV2

* Setting preferences under "/sys/devices/system/cpu/cpufreq/smartass"

* Some seconds, minutes later... The folder no longer exists, "ondemand" has gone, "smartass" too... only vdd_table remains

I found a directory created after choosing the governor : "/data/28" on my phone. It contains all the settings of SmartAssV2 governor :

awake_ideal_freq

max_cpu_load

min_cpu_load

sleep_ideal_freq

sleep_wakeup_freq

Hmmmm... Don't know if anyone experience these issues. Can you confirm the governor is "stable" and well supported ?

EDIT : inetllidemand seems to work, Lionheart too... Are they only "variants" on OnDemand ???

EDIT 2 : when choosing interactiveX : the interavticeX is created... and smartass is created too... lol

Thanks.

Hehe OK, found some intersting info about them :

So, Governors can be categorized into 3/4 on a high level:

1.a) Ondemand Based:

Works on "ramp-up on high load" principle. CPU busy-time is taken into consideration for scaling decisions. Members: Ondemand, OndemandX, Intellidemand, Lazy, Lagfree.

1.b) Conservative Based:

Members: Conservative, Lionheart, LionheartX

2) Interactive Based:

Works on "make scaling decision when CPU comes out of idle-loop" principle. Members: Interactive, InteractiveX, Lulzactive, Smartass, SmartassV2, Brazilianwax, SavagedZen.

3) Weird Category:

Members: Userspace, Powersave, Performance.

BUT, I still don't understand why the settings are so volatile and the "cpufreq/$governor" disappears... :(
[HTC One S] Zarboz:
What Governor settings are you referring to as volatile? as most have tweakable definitions wich is why that folder exists

Scary, Smoothass, Asswax would fall into the interactive based category.
[HTC One S] plakers:
The directory itself is deleted after few minutes (randomly, sometimes it gets dropped in few seconds after the governor change).

/sys/devices/system/cpu/cpufreq/smartass

The problem only seems to occur with smartassV2 on my phone, I'm now with intellidemand and no problem.

(may be because it is "ondemand" based?)

Checked in logcat, nothing special :(...
[HTC One S] Zarboz:
If you have some reading time i will show you why :D :D :D

and the way smartassv1 is written i would consider it more interactive than ondemand
[HTC One S] encho:
@zarboz thanks for your explanation. That is probably a reason why soft button registers touch when swiping from the screen, which I find very annoying.
[HTC One S] :
Depends on the rom, neither TD8.1.0 or Viper register soft button when over swiping.
[HTC One S] plakers:
Hehe no problem, I'll take the time ;)

Still playing with my init-script to find the best batterylife (governor, core activation, undervolt, sysctl...) and I was testing the main governors to match my needs. Gonna give a chance to SmartAssV1 and see if the problem occurs, or I'll probably go back to the stable "ondemand" on try to tune it as fine as possible.
[HTC One S] Hopie:
is this ok? i choose smartassv2.

why shows me here ondemand?

Sent from my HTC One S powered by ViperOneS
[HTC One S] cannondale0815:
I am trying to change the voltage settings using SetCPU. I checked the set on boot option, but even after a reboot, the voltage table is unchanged. Setting the clock speed works fine though.

What is the best tool to set voltages for this kernel, short of having to edit boot scripts?

Thanks!
[HTC One S] ickedmel:
System tuner or if you're using viper you can use vipers CPU settings
[HTC One S] Zarboz:
standby while i type you a small book :D :D
[HTC One S] cannondale0815:
You know, I didn't even realize that the viper tweaks app includes CPU settings. That tab is practically hidden because it's all the way on the right.

Thanks for pointing it out, seems to work great!
[HTC One S] Zarboz:
So as we discussed a few days ago that the One S has 2 controllers for touch one for the screen and one for the soft keys

I received my replacement LCD screen today for my One S and did the repair While doing the repair i found some VERY odd things

I started to dissasemble the phone and noticed there was a ribbon running behind the battery down to the soft key area

I then removed the frame and started removing my old LCD

Notice where it broke at too btw (and that its clean that means there is no digitizer back there)

I then started to remove the old soft key cover

realized there is no digitizer there at all......... so how does this read touch then??

here is the 2nd touch controller wich has zones as i previously stated when talking about how it reports the soft key press to the system

and you can clearly see on the EU replacement screen i got

there is no digitizer on the soft keys just some colored white paint

now she is pretty and no longer says tmobile :D :D :D :D

next i will post a thread on how to do a proper conversion to MAO Black casing as mine will be here friday/monday

:D :D :D

there is a way to do it with NO modification involved just a extra 20$ in

so where we sit now with sweep2wake ....it will NEVER work on our device the way its written right NOW... I am going to get with the author of the mod (showp1984) and see how plausible it would be to replace the xy coordinates with keypresses instead or attempt to write my own version with his input

this is where im at g uys
[HTC One S] invasion2:
Thanks for the update man. Good luck with everything, take yor time!

Sent from my HTC One S running ViperOneS!
[HTC One S] Zarboz:
The HTC branded LCD is brighter IMO
[HTC One S] sensationfan623:
That's interesting. Any explanation?
[HTC One S] pyro43284:
I think its cleaner looking with the HTC up there.. can't wait till you post that thread
[HTC One S] germandude68:
Absolutely, that's why I'm so happy to have a none provider EU device and in black :P

If you hold the hTC letters on the top of the screen against the light it looks silver. It's really cool.
[HTC One S] Zarboz:
Its pretty lol
[HTC One S] flex420:
can i flash this on a stock 4.0.4 rom? ( it's already rooted and TWRP recovery installed )
[HTC One S] blklexluthor:
Just wanted to say thanks for the hard work OP with moderate use... A few short calls, 20 texts, browsing, 2 hours of music, 5 games of pool and some social apps (whatsapp,Twitter, etc) I'm now glad I got this over the sgs3.

Edit: sorry forgot to add screen on time
[HTC One S] plakers:
OMG... Thanks for the information ;)

I'll take a serious look
[HTC One S] sbryan12144:
On other news, we ported the one xl kernel to the one s. Which doesn't mean much now, but it does mean that if one device is more up to date, they all will be
[HTC One S] Zarboz:
it means alot :D :D :D :D :D :D :D :D gettomg ready to do some testing now D:
[HTC One S] Zarboz:
there is much more to share my friend :D
[HTC One S] invasion2:
Zarboz, you might want to talk to show-p: http://xdaforums.com/member.php?u=4195844

He implemented sweep2wake on the One X, and the S is similar..hopefully he can help you. If not, it was worth a shot right? Thanks for your work!

Sent from my HTC One S running ViperOneS!
[HTC One S] Zarboz:
Spent two hours talkin to him today actually
[HTC One S] kira411:
Anything news after discuss with show-p1984? Thank you so much for everything you did for our HTC one S.
[HTC One S] Zer0r:
I am on Ville-Z v 2.0 over a week or something. Honestly, I even forgot what kernel do I have! It means - it works really flawless! It simply works, that's it! :) It is really great job, Zarboz! Battery life is quite good for me. But what is more important - is performance. I have no lagging of Sense for really long period of time.

Really good!
[HTC One S] Zarboz:
We talked about re writing sweep to wake to work off the button presses rather than the x and y coordinate touch read . Idk when ill have time to do this I'm already about 90 hours worked time on this and I don't get paid for it lol so my job is first then school then family then hacking

Rest assured I am working to get us sweep2wake
[HTC One S] mliou:
Hey Zarboz, I was wondering if you can look into hwcomposer? klin mentioned that it was the reason that causes graphic glitches for some of us.
[HTC One S] Zarboz:
I can but as far as i knew HWcomposer was a rom side function.

Let me research more please
[HTC One S] de_annere:
I'm moderator for the One S on Android-Hilfe, the biggest German speaking Android-forum (FelixL over there). If he happens to be in Munich, I'd be glad to help.

Couldn't you "just" change the area to the lowest area of the screen right above the buttons? Or did you implement it into the button driver expecting to get coordinates there?

Also, your findings do explain why it's hard to implement a proper status bar pull up. IIt's nearly impossible to touch the small bar without touching the soft-keys, and they can't measure if the finger is lifted or moves up onto the screen (and the press should therefor be canceled), like on every other Android device.
[HTC One S] Zarboz:
Currently our device has Buttons there.. yes buttons.. the function of the sensor is only to read it pressed regardless of area pressed. The signal is then sent as a V.K. (virtual key) pres to the system and identified as back home recent app/menu via a numbered code.

The concept of sweep2wake is set like this imagine this square as your phones screen.. The digizer on other devices would read X and Y input for soft key area.

|------------------------------------------|

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| below is the softkey |

|________________________|

| This part still reads |

| X and Y touch |

|________________________|

^^^^^^^^^^^^^^^ this is now a normal device functions

The sweep2wake function takes that block at the bottom of the screen and lays out a line with breaks in it

1 2

A----|----|----B

When users sweeps from A->B and Barrier 1&2 are broken THEN mimic power key.

The way it gets AB and 12 coordinates are X and Y locations of the screen..

Since we have no digitizer down there:

|------------------------------------------|

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| |

| below is the softkey |

|________________________|

| No X or Y coordinate |

|we just have a btn pad |

|________________________|

The proposed thought is to rewrite the function to run off the concept of

a/1---2---3/b

When user Starts at 1/a breaks barrier 2 and stops at 3/b THEN mimic power key.

While this thought is plausible it will take a complete rewrite of the sweep2wake using showp1984's original idea as the model for the function

github was down when i wrote this so i will post the function to explain what's happenening and how it's intended to be altered

I am unsure of his current location we didn't discuss that yesterday but I did make mention that we had multiple users willing to meet with him to test things but I still am considering purchasing him a test unit out of my own pocket to further our developement here.
[HTC One S] Zarboz:
HTC dropped a new base.. looking at it now
[HTC One S] dsellers2:
Damn if I'd known that I'd given him one of my test units I had. I gave it up to a kernel dev a month or two ago and have yet to see any of his development although he is maintaining quite a few devices right now.
[HTC One S] ickedmel:
Awesome if that resolves the screen glitches somehow that would be awesome.
[HTC One S] Zarboz:
I'm gunna reach out to klin and inquire what he was talkin about with hwcomposer so i may attempt to resolve the glitch
[HTC One S] germandude68:
Happy birthday, Zarboz!
[HTC One S] Elloco305:
Just incase that was trolling

Happy burfday. :)
[HTC One S] :
Deleted.

Don't drink and post! Someone needs to invent a breathaliser app!
[HTC One S] sbryan12144:
Wow. All ill say
[HTC One S] invasion2:
Read rule #2 in your signature..
[HTC One S] Ergo Proxy:
does this kernel have init.d support? because the scripts aren't running
[HTC One S] Rampage:
I think that is ROM related, but I could be wrong.

Gesendet von meinem HTC One S mit Tapatalk 2
[HTC One S] Zarboz:
The installer doesnt touch your ramdisk wich is where init.d support is stored..

any C developers in the house wanna look at sweep2wake ... the breaks aren't registering as part of the reformed algorithm
[HTC One S] Ergo Proxy:
Nope I flashed klins kernel just to check and it worked so it's not Rom related.

So is that a no? Oh and if I flash your kernel over Klins, would init.d be enabled? Because you said something about injecting something into the current kernel.
[HTC One S] Rampage:
Deleted
[HTC One S] Zarboz:
https://github.com/zarboz/BeastMode-Evita/commit/dcae33381c23c9b4b21c4dc6a4b1db375ce5b7bb
[HTC One S] Rampage:
I don't understand anything but it looks cool haha :D

Gesendet von meinem HTC One S mit Tapatalk 2
[HTC One S] Ergo Proxy:
This guy got sweep2wake working for htc one x, maybe he can help you

http://xdaforums.com/showthread.php?t=1895214
[HTC One S] invasion2:
I totally did not tell him that a few days ago and he totally did not say he talked to him about it.

Sent from my HTC One S running ViperOneS!
[HTC One S] Zarboz:
Mentioned more than once in the thread too lol
[HTC One S] Zarboz:
Not the same thing if it was that easy it would have been working months ago
[HTC One S] Ergo Proxy:
Well sorry for getting a bit excited and getting my hopes up. Just thought that it would be similar bcos of same series
[HTC One S] Zarboz:
Update tomorrow but no sweep2wake yet
[HTC One S] klin1344:
Zarboz, you can take a look at ktoonsez's commits in his github for sweep2wake. He successfully got it working in the gs3.
[HTC One S] Zarboz:
It's the way our sift keys function ill look tho for gs3
[HTC One S] Zarboz:
Our unit has no xy reading from soft keys so I have to rewrite the function to rely on a virtualkey press as a number rather than a xy coordinate
[HTC One S] snwman:
Be waiting for the update tomoro:fingers-crossed:
[HTC One S] ickedmel:
Ohh I wonder what the update will bring. Anything for the people that get graphical glitches ?
[HTC One S] snwman:
Imo i am getting no graphical glitches on any of the kernels for this device. Even people getting problems when overclocking the phone that the battery drains to fast its not down to the kernel but the device. I remember when i was a tester for a dev back on the galaxy w testing out roms and kernals there was about 10 testers and we each had different problems. Alot had to be blamed on the device it seems some parts are just built better than others. For instance i was able to oc my phone and but 6 others on the team was not, phone would not even boot up,

Its alot down to how the device and parts where put together even though they are put together in the best manner and there are not suppose to be any flaws their can be. And as many can see their is flaws on some phones.

So its not always down to the developer it can be down to the device as well
[HTC One S] Zarboz:
Possibly its a new base
[HTC One S] ickedmel:
Very good info I def agree and trust me I def don't blame dev this device has a lot of flaws and I think HTC failed it. But It's great zarboz is working on this kernel for us. Just being hopeful maybe with the new base I'll be lucky.
[HTC One S] snwman:
After all he is the only man updating his kernal now on the one s
[HTC One S] ickedmel:
Very true he's all we got left kernel wise lol
[HTC One S] Zarboz:
And here this whole time i thoght you guys just liked me :P

OP updated with new build

yes i know there is only one clock selection in the flasher

if you dont want it clocked to 2.1ghz then just use system tuner or some other cpu manager to lower your max clock

the phone will boot at 1.5 ghz max 192mhz min as ondemand as the governor

so you should not have ANY problems booting it

take that back i just tried my update.zip i posted

its broken????? somehow the file got corrupted coming from

my vmware to my machine to my virtual machine to my real machine to dropbox..

will fix when im home
[HTC One S] kira411:
I am tmobile user and using maximus 2.5 base 2.31. Can I flash this base 2.38 kernel. I really love this kernel.
[HTC One S] Zarboz:
i test on viper rom since thats what i run daily

it is a 2.31 base as well and i have not noticed anything not working yet
[HTC One S] Zarboz:
just realized i built the wrong folder SMH

its been a long day guys sorry

rebuilding the right tree and testing before i upload this time
[HTC One S] Zarboz:
I would be very interested as well

there were a few minor differences but the ones i cared about were related to adreno/ion (our GPU ) drivers :D

https://www.dropbox.com/s/8rvcjz7f5zjyvs9/VilleZ.238.RC1.fixed.zip

sorry guys updating OP

stupid N00B mistake from my end :D
[HTC One S] kira411:
If we can not use soft buttons to wake. Can we use the screen, when sweep on screen from left -> right, device wake up and vice versa. It will base on xy coordinates, right?
[HTC One S] ssniper:
How to install this kernel? I have used fastboot and CWM, but don't work.

I have the message "error" with boot.img, and "error" with file .zip

I have the Maximus v 2.5 Rom.
[HTC One S] Zarboz:
you can... i have set it to do this before just for testing purposes it made the UI not as usable i found myself putting the screen to sleep by accident when trying to just navigate the phone. I have an idea brewing for it and half put together.. i just need to find what gathers the virtualkey press data in the function for cy8c_cs.c

Sorry about the update.zip posted it was bad

i have fixed this and verified all versions working (i will do this from now on for you all)
[HTC One S] DrRyder:
Hey Zarboz. Awesome job getting another kernel out. The change log has lots of interesting things in it that I'd like to try. If possible, could you do what you did before for us 1.14 Hboot users and post your boot.img so I may flash it with Dumlock?

Also, could you make an flashable zip without the kernel but for the 2.1 Ghz so I may install the other files in the update zip? I think I might know how to do that myself, but not sure...

Would it be a matter of just removing the boot folder with the zImages and the 15, 17, and 18 folders of the modules folder along with the flashboot and install_kernel files in the tmp folder? Then, would just have to modify the updater-script, right? If so, then I can probably do that myself.

Would be much appreciated.
[HTC One S] strker45:
the boot files you included arent formatted as .img and when attempting to flash through fastboot get a failed massage saying something about bootmagic check failed
[HTC One S] invasion2:
Zarboz, a guy in the old HTC Glacier section got sweep2wake. He used the above mentioned, left to right screen swipe. It does not interfere with the interface or ROM at all. I'm running it, and it's great. You might want to PM Synthetic.Nightmare. Good luck, this may be of no use to you.
[HTC One S] Zarboz:
thanks for the idea

[YOUTUBE]lb9G0hA8EQo[/YOUTUBE]
[HTC One S] ickedmel:
So I'm happy :) initially when I installed this on viper I had the graphical glitches still so I decided to set the minimum to 384mhz the stock instead on the 192mhz and everything was perfect except for google play books had some glitches. I did a full wipe installed viper, before starting the phone up I went and installed this kernel with 384mhz as default no graphical glitches so I'm happy :)
[HTC One S] Zarboz:
Sweep2wake is here
[HTC One S] dima901:
Is it possible to port it to your AOSP/AOKP Kernel ?

Would be awesome :)
[HTC One S] Zarboz:
Tomorrow my friend tomorrow
[HTC One S] Elloco305:
Epic thank you!!!!