yashsingh1/xdaforums huggingface dataset:
[HTC Desire X] dansou901:
will wait for final s2w too, am always there for testing when you need me. Sad to see you're going, but I wish you luck with your new phone, whatever it will be.
[HTC Desire X] ckpv5:
I thought we make a pact to leave only in April :(

So maybe I will follow you shortly.

Thanks for your all your great help.

You made great kernels and recoveries.

Wish you all the best
[HTC Desire X] dansou901:
What? You leaving too? I don't have money for a new phone yet, otherwise I would move on as well...
[HTC Desire X] ckpv5:
I'm not leaving because of new phone. In fact now I have M7 (HTC One) a birthday gift last November added to my collection of device ;)

I'm thinking about retiring from making ROM as I spent too much time on that. I need a break, that's all.

And I promised my niece to pass her my DX if she get a good result in her last school exams.
[HTC Desire X] MoshPuiu:
So goodbye all of you! Thanks for your work, I will miss you.

I hope that you will pass here from time to time for giving some advices or something like that. Also I hope that Nexus will finish s2w because DX users really needs that since the hard button is not behave very well (I have a flip cover and then I use 'Auto Screen On Off' from market until s2w will be ready)
[HTC Desire X] neXus PRIME:
I haven't bought the new set yet. Just transitioning . eventually, I knew I had to leave it. Just didn't know when.

By the way, I was on my sense DX 5 rc4 when I gave it. Bro loves it. Gonna stay that way for a long long time until I switch it for him.

Thanks again to all. I'll definitely try to finish the S2w project.
[HTC Desire X] soham1990:
soo nw our dx community wil become too weak.. main pillars are disappering so its obv that dx community wil crash dowm

:(:(:(:(:(:(:(:(:(

so after breakdown we wil need to ask other community ppl to build roms, kernels, or to get soln for doubts... and i dnt think they will do it.. plz tel dem to help us if u knw any of dem...

really sad to see no development..
[HTC Desire X] neXus PRIME:
I know some people will be sad, but Please no offtopic comments.

I kept this thread open for discussion for kernel.
[HTC Desire X] CurtisMJ:
Hmm, [MENTION=4350492]neXus PRIME[/MENTION] the s2w code in the source repo on the OP doesn't seem to be complete. Would you mind posting the source for the latest build of the kernel? I'd like to have a crack at it. :D
[HTC Desire X] atifjay:
request 4 kernel compatibility,,,,,

[MENTION=2988582]NexusPrime[/MENTION]
[MENTION=830797]ckpv5[/MENTION]

:silly:

any version of nexuskernel supporting HTC desire x dual sim T329w,,,

as stated

it has disabled system write protection.........:fingers-crossed:
[HTC Desire X] neXus PRIME:
you havent switched to the correct tree (https://github.com/ProtoU/neXusKERNEL/tree/s2w). I always keep my github updated with local changes.
[HTC Desire X] CurtisMJ:
Thanks, my github skills are a little rusty. :laugh:

Been testing alpha build in meantime, woke up from deep sleep this morning with a swipe (two actually). Wonder if I'm gonna be another perfect tester. :p

Edit: BTW, for live kmsg,

Sorry if it was already figured out. Just realized my successful wake this morning may have been bugged. Haven't used s2w since then, so it should be easy to spot the flags in last_kmsg.
[HTC Desire X] -Johan:
Noob question incoming.. How would I install this? Installing it with the toolkit doesn't work. Thanks in advance.
[HTC Desire X] GtrCraft:
In fastboot do ''fastboot flash boot kernelname.img'' with cmd
[HTC Desire X] Tresox:
Just boot into bootloader and choose fastboot.

Make sure that the kernel is named

boot.img

NOT boot1.img or boot.img(1) .

Then connect your phone on your PC with a usb.

Open your toolkit and select install kernel, it's gonna say phone not detected.

So close that window and another one will popup and then it's done:D
[HTC Desire X] -Johan:
So I did the right thing before, how long is the 'waiting for device' window meant to be there though? It doesn't seem to be closing.

Thanks for the replies!
[HTC Desire X] CurtisMJ:
It should close as soon as you connect the device via cable. Do you happen to be working on Windows 8? If so, you'll need to do this on an older box or from the terminal in a linux distro until HTC updates the drivers to be Windows 8 compatible. Even if you don't have windows 8, try on a different machine anyway, low-level drivers tend to be weird. If you happen to have an android tablet with a usb port, there are arm builds of fastboot as well.
[HTC Desire X] -Johan:
Well yeah, I have Windows 8. I'll try it on another computer when I can get my hands on one, thanks!

Edit: Well, now it doesn't automaticly reboot to the bootloader and says 'can't find path 'C\users\pcname''. It does open a reboot CMD after exiting the 'can't find path' one now, though.
[HTC Desire X] McGrady:
i hate my new Desire X for the PowerButton before i use your Sweep2Wake feature ;) now its no problem to wake up the phone... Thank You !

But there are there any chances of success for a solution to the display problem? I know the problem is known. The funny thing is sometimes it works without reboot.

When I turn on the screen, I sometimes can not pull the lockscreen ring. Screen on and off after press the power-button. But can not do anything.

Press Screen off.... wait a little ... then sometimes goes again. Sometimes wait a little longer

can i help ... More information, logcat or something else?
[HTC Desire X] neXus PRIME:
Thanks for testing.... Yes, there are buggy wakeup by sweep sometimes which cause hangup.... Known issue, but I will try to fix it when I find some free time from office....
[HTC Desire X] kostovdean:
Why don't you make several kernels for testing so we can report back?

Sent from my HTC Desire X using Xparent Cyan Tapatalk 2
[HTC Desire X] neXus PRIME:
As i said, i cant find time... if you guys wanna help me here, find some patterns, do this...

Any compiler out there, please make a boot.img using my tree

https://github.com/ProtoU/neXusKERNEL/tree/s2w

After you have forked it, go in below file:

https://github.com/ProtoU/neXusKERN...4cfe63/drivers/input/touchscreen/himax8526a.c

Put some flags in suspend, resume, earlysuspend, and early resume functions.... compile it... and post the boot.img here

THen people flash it, use the s2w a lot of times, copy the kmsg from device, and post here.... reading that kmsg, and the flag sequnce when a freeze occurs, we can find the culprit and go on debugging it.

So anyone up for it?
[HTC Desire X] hell_lock:
Can someone actually describe me how the freezes were? I am asking it in the point of view of a user and not a developer.
[HTC Desire X] filipcar:
For me the freezes were happening when you unlock your phone (button or swipe) you cant do anything the screen is not responding .You can still unlock and lock your phone with swipe2wake and the only solution i to wait(hour or something ) or just reboot .Maybe it wont freeze if you disable lockscreen , maybe the lock screen freezes i dont know i forgot to test it im on V3 and its awesome and it is great for the battery.

Hope this helped.
[HTC Desire X] neXus PRIME:
The resume function to wake screen called by a Swype sometimes remained incomplete... Causing the touch screen to be disabled.... However display lights up.... If you wait a couple of minutes, the kernel sorts out the bug, recovers, and then swipes work again....

Just the temporary screen disable caused by some buggy swipes is the issue.... Otherwise it work ok 90% of the time
[HTC Desire X] alkox:
any idea when desire x will get complete s2w...

I will have to rely on it as my power button is almost dead.. :rolleyes:
[HTC Desire X] McGrady:
When I turn on the screen, I sometimes can not pull the lockscreen ring. Screen on and off after press the power-button. But can not do anything.

Press Screen off.... wait a little ... then sometimes goes again. Sometimes wait a little longer, than goes again or i must restart the DX.

When the Screen is on without Touchscreen working i test the vol + and vol - keys and this works! But it probably seems to be a pure touchscreen problem.

After i Install no-frills cpi with 1008 ghz, 245 mhz smartass V2 and bfq I have a feeling that the problem is not so common. But just a feeling;)

it would be awesome if S2W would run stable! :good:
[HTC Desire X] neXus PRIME:
Omg... You guys really rub in the issue....

Screen not responding is a known bug
[HTC Desire X] McGrady:
i know... but InfinityShooter ask if a user can describe the error. or have I misunderstood?
[HTC Desire X] neXus PRIME:
Oh... Ok.
[HTC Desire X] CurtisMJ:
Debug Build

Here you go, debug build as requested by nexus PRIME (Sorry for being late, I was too busy with school to do big stuff)

Instructions for testers:

Make sure you have USB debugging enabled in developer settings!

1. Test till the screen freezes.

2. Once you get it to freeze, hold down the power button till your phone reboots (It should display a message saying "Your phone is rebooting in [x] seconds" or something similar)

3. Once rebooted, connect your phone to your PC and type the following command in a command prompt.

adb pull /proc/last_kmsg KernelLog.txt

This will generate a file called "KernelLog.txt" in the working directory.

Post KernelLog.txt to this thread with any other information you can provide about the circumstances!

Thanks in advance to all testers.
[HTC Desire X] -Already Exist-:
How to flash kernel, like boot?
[HTC Desire X] CurtisMJ:
Yes, boot into bootloader and use fastboot to flash it in the boot partion.

fastboot flash boot boot.img

If you're trying this kernel for s2w, please use the debug kernel I compiled :fingers-crossed:

http://xdaforums.com/showpost.php?p=50176269&postcount=280

(If you're using some UI, it should be as simple as selecting the boot image file you downloaded).
[HTC Desire X] kostovdean:
Debug kernel works great in last two days only one hang up ( black screen when call ended)no freezing when screen lights up like before. So this is good base for further development. Goog job :thumbup:

Sent from my HTC Desire X using Xparent Cyan Tapatalk 2
[HTC Desire X] CurtisMJ:
Its the same code as alpha build though, just different toolchain, give it time(Or maybe it was some freak compiler optimization caused error all along. Nah...... Can it?). Remember to give logs!

Tappadappa
[HTC Desire X] alkox:
U mean :

when the phone freezes

I force restart

and after restart I pull the kernellog ? right. ?
[HTC Desire X] dansou901:
Yes, that's right.
[HTC Desire X] neXus PRIME:
My tree on github has one less commit than my local changes.

I was trying some new functions to fix freezes.

Curtis built from the old version, which I didn't release here... It might seem stable, but hang ups are still there.

Once you guys start posting logs, we can try something's
[HTC Desire X] dansou901:
If you have S-OFF and want to flash the debug build by Curtis via recovery, just use attached file, should work.

EDIT: I'll post a log as soon as I get a freeze.
[HTC Desire X] $îMpŁÿ_¢ØmPłİÇåŤęĎ:
It doesn't seem stable for me! My phone froze (touch stopped working while buttons were working) 4-5 times in an hour or so & I had to remove & reinsert battery & restart the phone again.
[HTC Desire X] dansou901:
So can you give a log?
[HTC Desire X] $îMpŁÿ_¢ØmPłİÇåŤęĎ:
I dont have pc right now! Can't do it before tomorrow.
[HTC Desire X] hell_lock:
According to my latest findings, these hangups are not because of s2w but instead the general touchscreen driver is faulty. I made a kernel with s2w disabled from your source, tried using it for some days and freezes were still there.

We need to port it again from scratch imo.
[HTC Desire X] McGrady:
Hi,

I would like to help ... So the debug version easy as flashing a kernel?

Then ofproblems (freez, no touch) i post the log here?

Should I still test now or wait do you want to eliminate the normal hangups? Like you said it in the last post.
[HTC Desire X] CurtisMJ:
But aren't they largely the same drivers from v3? Maybe some s2w changes are outside the compiler tags? V3 never had this problem, did it? Little confused here... Oh well.

Tappadappa

---------- Post added at 09:10 PM ---------- Previous post was at 09:08 PM ----------

Screen freeze is only problem, so you can test now if you want.

Tappadappa
[HTC Desire X] hell_lock:
Something wrong was done while porting which is leading to instability.
[HTC Desire X] alkox:
so wished to flash this.. but since m on Windows 8.1.. Fastboot didn't work.
[HTC Desire X] McGrady:
here is a KerneLog after a Reboot after Screenfreeze

i must zip the txt its over 512 kb and i unterstand nothing in this file ^^ but i hope this help you to solve the problem ;)

on the phone runs nothing... no music or some thing. no unread sms or email are incomming! It lay on the desk and i want to wake it with swape 2 wake and than freeze.. than restart to make a kernellog

any questions? then asks ;)
[HTC Desire X] CurtisMJ:
Thanks. I'm testing a change made based on this.
[HTC Desire X] McGrady:
another kernelog...

after a call I have the phone taken away from the face. It shining only the 3 buttons on the screen but the screen are black (this is not normal..). i want to wake up the screen and freeze
[HTC Desire X] CurtisMJ:
Try this. Logs if it freezes.
[HTC Desire X] neXus PRIME:
Are you committing to git your changes???
[HTC Desire X] CurtisMJ:
Froze on me this morning, so no. Not surprising though as I'm pretty much coding blind. We really need to figure out a reliable way to re-produce the problem, it just seems to happen randomly to me. I may just give up on this. (also, I didn't add anything malicious, just saying... ;) )
[HTC Desire X] McGrady:
install and test it too... when freeze i make you a log
[HTC Desire X] soham1990:
tested kernel debug3.. it still hangs.. i dnt hv tym to post a log.. i wil post it in 24hrs if no one wil post it
[HTC Desire X] neXus PRIME:
It's not random... I know why it is formed....

The function which calculates whether there was a swipe or not, sometimes when you swipe, its counter for swipe gets extra increment in its counter, for the immediate next swipe, the counter faces abnormal counter situation and it hangs...after a while, the whole function gets reset so counter is normal again....

Let me put it another way...

If some person uses swipes to sleep n wake device with perfect finger movements, not overdoing, not under doing... There would be no freeze at all

Try it... Carefully swipe. Each n every time, I'm pretty sure there will be no freeze.... Start from back button with smooth motion and when on recent key, lift it quickly and don't keep it there for long... Contact on the 3rd key, either back or recent, should be very brief... Just enough to make it count as a swipe
[HTC Desire X] neXus PRIME:
Don't drag the finger... Just swipe normally, but lift just after. Contacting 3rd key
[HTC Desire X] hell_lock:
why is it still there when using the same touchscreen code but wid disabled s2w?
[HTC Desire X] neXus PRIME:
No freezes for me when s2w disabled... You must be doing something wrong
[HTC Desire X] hell_lock:
I remember it clearly. There were freezes. I am 101% sure. Wont complain without experiencing it..
[HTC Desire X] McGrady:
can anyone tell me if the kernel supports ext4 partitions or how I can test?
[HTC Desire X] neXus PRIME:
I didnt... Maybe depends on hardware to hardware.
[HTC Desire X] McGrady:
another KernelLog...

do you need more Logs? Otherwise I would go back to stable version 3 without S2W.

Although I will miss S2W very much. Hope you can fix the error in the near future.

can anyone tell me which ext-partitions the kernel support?
[HTC Desire X] neXus PRIME:
Did you try the careful swipes I talked about?? And does it reduce the freezes???
[HTC Desire X] CurtisMJ:
Yes. The logs have served their purpose. Resume and Suspend functions seem to execute in order.

Tappadappa

---------- Post added at 04:46 PM ---------- Previous post was at 04:43 PM ----------

Yeah, I've noticed the freezes only seem to occur when I get more casual with my phone. I've got some schoolwork now, but basically I should just look into refining the detection function so it doesn't get confused?

Tappadappa
[HTC Desire X] dansou901:
Yeah, I can confirm that too. When I swipe really careful, I get no freezes. But sometimes the display switches on after 1 or 2 seconds after swiping it off (not always, however).
[HTC Desire X] neXus PRIME:
I knew the solution before I left this phone but didn't get time to implement it. Please update your git and let me have a look at it.
[HTC Desire X] CurtisMJ:
I kept it local actually, then discarded it. Bad idea, I know, but I'll get around to it when I actually make any useful changes. What must be done exactly though?

Edit: Forked properly, will try and commit some small detection optimizations tonight and then you [please] can tell me what to do ;)

https://github.com/CurtisMJ/neXusKERNEL/tree/s2w

Edit: Committed. Whether it will make any difference will remain to be seen. Should I post a latest build if anyone wants to test?
[HTC Desire X] CurtisMJ:
I know this is probably going to complicate things a little, but I decided to implement this feature http://xdaforums.com/showpost.php?p=50640472&postcount=1

Here is a build for anyone who wants to play with it ;) (I'd say it's in about alph...beta)

How to use Sweep2Lock

Once your screen is on, sweep across the soft buttons, hitting each one. Not too fast! (The last button might trigger, I'll try and fix that)

Now your soft buttons are inactive!

To re-activate them, simply sweep again in a similar manner to Step 1.

They're re-activated! Simple!

UPDATE: Improved Sweep2Lock sensitivity and soft keys should no longer be triggered while sweeping. NOTE: To avoid confusion, Sweep2Lock only works sweeping from right to left ("Recent" to "Back"). Sweep2Wake works in any direction. Sysfs values were added to control the function. I may make an app to toggles these too and maybe even customize all aspects of Sweep2Wake!

To control sysfs until I get around to making an app: (In terminal, after an su command)

- Turn S2W off, as usual is "echo 0 > /sys/android_touch/s2wswitch"

- Turn S2L off, "echo 0 > /sys/android_touch/s2lswitch" (Sweep2Wake will then be able to put the device to sleep again)

(Type these with a "1" instead to turn them on)
[HTC Desire X] dansou901:
Won't this conflict with Sweep2Wake? How would I use both features in the same kernel? Am I right if I say that this is not possible?
[HTC Desire X] neXus PRIME:
Not very useful if you ask me.... If you want to do the same... Just build an app to toggle a sysfs value... And then use that in kernel to toggle the soft keys enable or disable....

Essentially you are doing the same thing... But now you use sweep to toggle the value and use it for enable disable
[HTC Desire X] hell_lock:
we can easily create a sysfs interface to switch between s2w and this parental lock.
[HTC Desire X] neXus PRIME:
For example... Fast charge toggle works the same way...
[HTC Desire X] elproduc3r:
What if sweep to wake is right to left direction and sweep to lock is left to right? That should work

I dont have soft buttons so cant try...
[HTC Desire X] neXus PRIME:
I suggest you revert your commits and do them again on a different branch...

then on my branch,

before this line

"ts->just_resume = 1;"

put a flag

printk(KERN_INFO "[TS]%s: Flag for screen resume\n", __func__);

Make a build and let people test. I think its for resuming the touch screen... After test results, maybe we can find a better location for this function.

2nd idea is to alter the sweep detection function. But i am thinking about that.
[HTC Desire X] CurtisMJ:
Usefulness depends on the person I guess, I have a habit of accidentally pressing soft keys during video playback or games etc, so I thought it was a pretty good idea.

They base off the same function, but the result changes depending on whether the screen is off or not. Basically, Sweep2Wake can no longer put the device in sleep, this makes way for Sweep2Lock.

BTW, could you guys still test the build to see if the freezes have been resolved?

Debug flag added, build will be attached (I already altered the function a little in my own tree as well, dunno if that will fix it though)
[HTC Desire X] McGrady:
nexus4_rev_debug.img is install and i want to test it :) *fingercross*
[HTC Desire X] CurtisMJ:
I've updated the Sweep2Lock build! It should work better now!

Also, guys, I made changes to the s2w code in that build with the intention of eliminating the freezes(or at least the situation neXusPRIME mentioned). So once you're done testing the original build with the resume flag, please test this build too!

http://xdaforums.com/showpost.php?p=50651756&postcount=318
[HTC Desire X] McGrady:
i have a strange problem... the last build or with V3 Kernel from first Post. Sometimes i put the Powerbutton and the Screen doesnt goes on. Only the Buttons have lights. I must restart the phone

With the last kernel build without swape2lock i have some freezes too. I make a kernel log its freeze again when I am at home.
[HTC Desire X] CurtisMJ:
There is a small bug where the device takes a long time to wake up from deep sleep. Next time, leave it for ~5 seconds and try wake it again. (My previous device had the same problem too, dunno if it's a general android thing, hmm...)
[HTC Desire X] McGrady:
thanks for info... i will test it when its next time comes :)

my DX played TuneInRadio with display off... i want to turn the display on with the powerbutton (not swape2wake) and the screen goes on but no touchscreen are freeze

Here is the log
[HTC Desire X] neXus PRIME:
Curtis I suggest you revert your changes and place the just resume function flag and get logs...

Sent from Egyptian Pyramids
[HTC Desire X] CurtisMJ:
Did that on a different branch. (s2w-orig) nexus4_rev_debug.img should be built from it.

Tappadappa
[HTC Desire X] CurtisMJ:
1. From which build is this log?

2. How long after the freeze did you reboot?
[HTC Desire X] McGrady:
1. From this post

http://xdaforums.com/showpost.php?p=50652242&postcount=325

2. round about 30 second or 1 minute... than reboot and directly make a kernel log
[HTC Desire X] CurtisMJ:
Right, so the log should cover it. Couldn't find a flag, so I might need to check if I've built properly. In the meantime, can you test the Sweep2Lock build to see if it freezes?(you can disable s2l if you don't like it).

Tappadappa
[HTC Desire X] realCyphox:
i'm using the "rev" build several days now, no freezes, but sometimes it takes some time to get the screen working.

sometimes i can activate the screen, but i cant unlock it, the touchscreen doesnt recognize my input, i have to turn the screen off again (via power button), have to wait 10 seconds or so, and after one or two tries, unlocking via touchscreen works just fine.

tried to deactivate the sweep2lock/unlock via setting the s2wipeswitch file to 0, cant set it in root explorer, cant set it in twrp file manager, dont know why, it just doesnt work permanently, but when it set when the phone is bootet, it seems to work at least temporaraly and the problem i portrayed earlier seems to be gone.
[HTC Desire X] neXus PRIME:
The touch screen not responding after screen wake up IS THE FREEZE

Sent from Egyptian Pyramids
[HTC Desire X] CurtisMJ:
Those values are reset every boot. You're meant to use an init.d script to set them permanently. (I'd recommend using a terminal to set them instead of a file explorer too). Next time the touchscreen stops working, try get a kernel log as well.

Tappadappa
[HTC Desire X] McGrady:
i install the last build with swape2lock... must say a nice feature to have. but i disable it and usw swape2wake for on and off the screen :)

To turn swape2lock on and off with the terminal is the best! So everbody can use what he wants

i post kernellogs when come the first freeze and i [MENTION=313982]home[/MENTION]

thank you that you continue working on the kernel