yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] MohammadAG:
I tried to port the Nexus 5 one a few months ago, and that didn't work either. I had to do it with custom code in the touch up event :)

I'm trying to add it into Pimp my Z1, I've already opened an issue for you on Github that's either your mistake or my Gradle understanding, or lack thereof.

- The touch sensor runs in LPM doze mode, so it doesn't guzzle battery.

- It's double tap to unlock

Checks out :p
[Xperia Z1 Original Android Development] C_Karhu:
How can I make it work even when screen has been disabled for a while? For me it only works a few seconds after screen of.

Great work!
[Xperia Z1 Original Android Development] Androguide.fr:
Thanks man, I've just finished cherry-picking your tap 2 wake commits in my kernel, I'll add dt2wake control to Pimp My Z1 in a few minutes.
[Xperia Z1 Original Android Development] BaCKo85:
I am with 681 and unlock bootloader . I have install the kernel , but don`t work tap to wake for me ? Why ?
[Xperia Z1 Original Android Development] blakwhite:
Appreciate the effort Mohammad, it works well so far.

Edit: I spoke too soon. It doesn't work sometimes, especially after some time following the lock. But it's there and obviously will work after some revisions.
[Xperia Z1 Original Android Development] MohammadAG:
I really have no idea, it should work unless some app disabled it in sysfs:

/sys/devices/virtual/input/clearpad/wakeup_gesture
[Xperia Z1 Original Android Development] BaCKo85:
Someone with the same problem ?
[Xperia Z1 Original Android Development] tcchuin:
i don't have the problem, but seems like the feature doesn't work if the phone has gone to sleep for a long time.

is this normal?(i.e. power saving feature)?
[Xperia Z1 Original Android Development] Androguide.fr:
[MENTION=2011359]MohammadAG[/MENTION] have you taken a look at enabling Swipe2Wake as well ?

It seems there is already some related defines in the driver:

#define XY_LPWG_STATUS_SWIPE_DETECTED
#define XY_LPWG_STATUS_TWO_SWIPE_DETECTED

...

switch (wakeint) {
case XY_LPWG_STATUS_DOUBLE_TAP_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"double_tap");
break;
case XY_LPWG_STATUS_SWIPE_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"single_swipe");
break;
case XY_LPWG_STATUS_TWO_SWIPE_DETECTED:
rc = evgen_execute(this->input, this->evgen_blocks,
"two_swipe");
break;
default:
dev_info(&this->pdev->dev, "Gesture %d Not supported", wakeint);
break;
}

I tried to echo 2 in the sysfs interface but swiping didn't seem to work, double-tapping still worked fine though.
[Xperia Z1 Original Android Development] MohammadAG:
Haven't encountered this yet, how long woulf you say it was?

The driver doesn't handle gestures at all (well the driver does, but the hardware doesn't)

Swipe to wake might work though, we just need to pipe the info from clearpad to swipe2wake's methods.
[Xperia Z1 Original Android Development] tcchuin:
looks like it doesnt need to be asleep for long. it's that double tap only works sometimes. not sure why. is there any kind of log that i can provide to help in troubleshooting?
[Xperia Z1 Original Android Development] jxx17:
2tap2wake work only sometime but after 15 seconds. Anyone have similar problem?
[Xperia Z1 Original Android Development] Hen Ry:
interesting: currently I am when

charging

and it works the same always

without load it sometimes works

without charging it either works the same and no longer

Excuse me, can only translate with google
[Xperia Z1 Original Android Development] DooMLoRD:
well not entirely.. the device tree files (dtb) are the ones where most of these details go... you can see that from the Xperia Z2 kernel sources...

great work mate!

have been trying myself since a few months now...

recently tried forward-porting from Z (like the one you have done) and also backporting from Z2...

http://xdaforums.com/showthread.php?p=51509354#post51509354

the Z2 implementation is more native and close to driver... if we can get it to work it would be better i guess...
[Xperia Z1 Original Android Development] ekanix20:
Seems to work just fine, have only used for a short time but will report back if I find any troubles. :)

EDIT: The tap2wake feature seems to stop working if I turn the screen of for a couple of seconds. Maybe 30 or so.

Skickat från min C6903 via Tapatalk
[Xperia Z1 Original Android Development] MohammadAG:
The Z2 implementation didn't work, it reads properties that don't exist for our panel.

You can take out the chip_id line, it'll initialize the driver, but gestures won't work.

I'll look into the issue where it stops working, I can confirm it happens when off the charger only, which is why I never noticed it. Must be the panel powering off.
[Xperia Z1 Original Android Development] Hen Ry:
when loading the battery of the XZ1 works Tap2wake
[Xperia Z1 Original Android Development] xperseus:
Tap to wake works!!! Cool.

But I have encountered some problems.

After flash this kernel, the touch screen seems to be very sensitive. Since I always put my phone in my picket with the face inside toward my thigh, I notice that the phone could easily wake up and the screen unlocked and it keeps going crazily in my pocket. So I test by using my finger to touch with a cloth in between, I could touch the screen just fine, just like in glove mode. Is there anyway to avoid this? Otherwise I'll be useless to be able to tap to wake but my phone can get messed around in my pocket just like that.

I'm not complaining, but reporting. This is such a great work, and a cool feature that Sony is so mean to bring us. Even tablet Z had it ages ago. I hope there can be a workaround that.

Another problem is when the phone just boot up, tap to wake will take a while to work, and if I tried to lock the screen and tap before that, the phone would freeze in black screen for a while, but after that it works just fine. I'm on stock 681, C6903.
[Xperia Z1 Original Android Development] olokos:
I think you'd know all of that if you would read those 4 pages, but anyway:

It works flawlessy when charging

It doesn't work after the device goes to the deep sleep (some time after you lock the screen, after 30 minutes it's in deep sleep for sure if the phone is not doing anything and you don't have any terrible apps)

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Original Android Development] MohammadAG:
Sensitivity isn't changed in this, what you're experiencing however, is something I overlooked.

Double taps should only register when close to each other, but right now, tapping the top and bottom registers a double tap. This has been fixed locally, and will be in the next version.

Now I'm looking into what's going on in deep sleep, it works, but something is way off (when it doesn't work, try to tap the screen with five fingers quickly and it'll turn on, so the screen isn't the issue here)
[Xperia Z1 Original Android Development] MohammadAG:
1.2 out:

Double tap will only register if within range of first tap

Switched to a different time keeping mechanism for tap to wake

Prevent touchscreen irq suspend, this fixes tap to wake freaking out in deep sleep

[MENTION=2784807]DooMLoRD[/MENTION] [MENTION=4752917]Androguide.fr[/MENTION] commits are up :)
[Xperia Z1 Original Android Development] Nonda95:
T2W is working good now, thanks :)

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Original Android Development] ekanix20:
Confirmed

Skickat från min C6903 via Tapatalk
[Xperia Z1 Original Android Development] Wolfbreak:
Very good work :good:
[Xperia Z1 Original Android Development] dvha79_ddt:
Working good now. Thank	MohammadAG :good:
[Xperia Z1 Original Android Development] ekanix20:
I think I am getting a wakelock from this new version but I am not sure.

Is anyone else getting these problems?

Skickat från min C6903 via Tapatalk
[Xperia Z1 Original Android Development] MohammadAG:
Meh, no deep sleep here either, can't believe I haven't noticed this.
[Xperia Z1 Original Android Development] ekanix20:
Yeah I thought it might be this new version causing problems, well I am glad I could help. :)

Skickat från min C6903 via Tapatalk
[Xperia Z1 Original Android Development] BaCKo85:
Now is perfect ! Thanks man ! Everything work fine :)

If we don`t have deep sleep , does the battery go drop faster ?
[Xperia Z1 Original Android Development] olokos:
Yes, it does drain faster than usual with screen off.

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Original Android Development] kubook:
battery drain faster :rolleyes:
[Xperia Z1 Original Android Development] Wolfbreak:
Are you guys blind? Look 1-2 Posts above. If you dont have deep sleep your Phone always acts like it is in use so for sure it will drain alot more.
[Xperia Z1 Original Android Development] Gnubaver:
Any update on fixing tap2wake?
[Xperia Z1 Original Android Development] MohammadAG:
It's fixed in the sense that it works, but it holds a wake lock since I'm preventing sleep by keeping the touchscreen driver awake.

I'm actually not sure how to fix this, is it the same on other devices with tap to wake (unofficial ones, Nexus 5 etc)?

The driver needs to pick up the interrupts, and if it's in deep sleep, the touches are delayed, so the timeout can't be calculated.

I'd appreciate any help from anyone with kernel development experience, interrupts and pm in particular.
[Xperia Z1 Original Android Development] Androguide.fr:
I'm far from being an experimented kernel dev, but it seems that all the other implementations require the touch panel to be awake as well.

There might be some optimizations possible (see this commit in faux kernel for the nexus 5 for example), but I don't think it's possible to recognize touch events if the touch panel is asleep, as you said.

These commits also seem to point towards that fact: c5fd65a, 24b968f

Some other commits by showp1984 show that he's tuning the hotplug driver (his open-source mpdecision) in order to save more power when the screen is off but the device is not asleep, or to respond better when dt2wake wakes the display.

I don't think your implementation is very far from the ones on other devices as far as power consumption goes :good:

I'll try to implement an option to enable dt2wake only when the device is plugged-in in Pimp My Z1 for people who don't want the small battery drain when on battery.
[Xperia Z1 Original Android Development] MohammadAG:
Oh yes, the panel definitely needs to be awake, but I think a touch should wake up the device, process the IRQ, then drop it back into sleep.

An interrupt should be able to do that, but I'm not sure how.

The fact is, the driver receives queued interrupts every now and then if the device is in deep sleep, the question is, how would the time between those touches be measured if the two taps aren't after each other (kernel wise)
[Xperia Z1 Original Android Development] Androguide.fr:
Oh, I see.

Does that mean that even if we wanted a single-tap to wake-up the device we couldn't be sure the "event" for the tap would be processed right-away (i.e: when the user actually taps the screen) ?

Maybe try dropping a PM to showp1984 here on xda, or posting in one of his active kernel threads, he might be able to help you.
[Xperia Z1 Original Android Development] MohammadAG:
Yes, there will be a slight delay, but in my testing, I've always received the double tap event eventually, the taps are just a large number of seconds apart.

Then again, I might be wrong, and my device may have been waking up for some other reason.

I'll drop him a PM.
[Xperia Z1 Original Android Development] DonSebbo:
How is it going?

Gesendet von meinem Xperia Z1 mit Tapatalk
[Xperia Z1 Original Android Development] dzupert:
When update to 14.3.A.0.757 ?
[Xperia Z1 Original Android Development] olokos:
[MENTION=2011359]MohammadAG[/MENTION] could you at least implement underclocking and undervolting?

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Original Android Development] aresbv2000:
dude....double tap to wake is a brilliant fu%&$ing ideea!!!can you please make a kernel with this option for xperia z1 compact??Y don`t know if you accept requests but this is only a question.Thank you for your hard work mate!Have a nice day!
[Xperia Z1 Original Android Development] ange1us:
can I flash version:1.2 with .757 firmware? is this work?

Thank you:p
[Xperia Z1 Original Android Development] AndroPlus:
Solved

Thank you.
[Xperia Z1 Original Android Development] dlads:
What about only having part of the screen active to listen for the double tap? Not sure if that's a viable option.

Also has anyone tested to see if it works with the newer firmware?

Cheers. N
[Xperia Z1 Original Android Development] olokos:
You either have the entire screen powered up or you don't. So dt2w is possible for LB, but you would have terrible battery life.
[Xperia Z1 Original Android Development] dlads:
Ah ok, just a thought. :(

How do they do it on the Z2 and LG G2 then? Couldn't the same concept be brought to the Z1?
[Xperia Z1 Original Android Development] olokos:
It's possible to do with high power output on LB without modyfing kernel. It's not possible to do it in low power mode on the stock kernel for Z1.

They did dt2w in kernel on Z2 and G2.
[Xperia Z1 Original Android Development] dlads:
There's no adverse effect on battery so far as i know on the Z2, i've used it for a while in my work now, around a month or so and the battery is decent, what i'm saying is, how did they manage to do it? Could that not be replicated?
[Xperia Z1 Original Android Development] olokos:
It could, in kernel. I know what are you talking about as I've just tested the kernel by myself. Usually when I get back home I have at least 40% left whatever I do if I got straight back from school.. Now I got back almost at the same time as usually (2hrs difference and the phone was almost constantly in my pocket, so it should be around 80-70%). Now I'm left with 13% of battery which is hopeless. :(
[Xperia Z1 Original Android Development] dlads:
Yea that's bad, wonder whats amiss then? In all fairness I don't use dt2w, but when there something I can't have I want it :)
[Xperia Z1 Original Android Development] olokos:
It's for .757 AFAIK. Can't tell for sure, but I've tested it on .757 and it worked. :P
[Xperia Z1 Original Android Development] (((Pipo 79))):
Works in Criskelo rom?

Enviado desde mi C6903 usando Tapatalk 2
[Xperia Z1 Original Android Development] olokos:
How hard is it to try it by yourself? I don't expect Muhammad to test this kernel on any other rom than stock.

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Original Android Development] (((Pipo 79))):
Works fine, but me too telling me update system, and im in .757 :confused:

Sent from my z1 in the table Dance
[Xperia Z1 Original Android Development] lil-diabo:
If you look at the opening post, you'll see that this kernel was based on .681 - The previous version - which is why you're getting that notification

Requires unlocked bootloader.

Requires Sony's .681 KitKat ROM or ones based on it.
[Xperia Z1 Original Android Development] dlads:
All working just fine here, DT2W seems a little sporadic at times and often misses taps but I could live with that. Whats a bit of a problem is the drain.

Got my phone to 70% last night around 23:00 turned off all wireless coms and switched power saver and stamina mode on, got up this morning and it was on 43% at around 7:30 which isn't too bad i suppose but if you need your phone for any amount of time over the space of a day then i'd say to maybe disable or change kernel.

Great work, but think it needs a bit of tweaking.

Usual battery drain overnight is 1 - 2%.

Cheers m8.
[Xperia Z1 Original Android Development] Killer2k8:
is there any chance that dt2w will work without battery drain like nexus/samsung etc devices?? This is one function that i would really love to have on the phone but without 50% battery drain!

Thank you for your trouble making this!!
[Xperia Z1 Original Android Development] omaroe666:
is it true that my phone gets hot while charging and just easy use ? also it has battery drain( which i understand because of the dttw) but can the heat problem be fixed ?
[Xperia Z1 Original Android Development] Destroyedbeauty:
Use Doomkernel!
[Xperia Z1 Original Android Development] Nikito27:
Just wanted to try it on my z1 compact to see if it worked, bug it didn't D: oh well, i'll must nave to w8 and see if anyone ports it for that device
[Xperia Z1 Original Android Development] Wooaarr:
I experimented a lot to get d2w working. I actually use a Z1C, CyanogenMod kernel source and picked the appropiate commits from your github.

I faced the same issue like you and everyone else did - a wakelock...

As i could not figure it out, I asked alin.p for help, as he managed to implement the feature flawless into a very old phone (Samsung Galaxy Mini S5570).

Here is his response

So the idea behind this is to control the touchscreen driver with the proximity sensor.

Screen off & Proximity doesn't detect anything = Touchscreen on

Screen off & Proximity does detect something = Touchscreen off

Screen on = Touchscreen on

If we could manage to implement this, that would reduce our battery drain drastically.

I want to thank alin.p again for pointing me towards the right direction.

I did a quick test build, but failed miserably... :) I also won't have access to a building maschine in the next 2 weeks, so I can't test this any further.

Maybe someone else could jump in and make a few tests :)
[Xperia Z1 Original Android Development] Riyal:
[MENTION=4663907]Wooaarr[/MENTION]

Mind fixing the link of the commit that needs to be removed? I doubt mohammadAG could still continue with the development since he already switched phones. Also the dev you asked... If I were willing to attempt fixing this can he lend a hand on assisting me? I am no pure kernel developer but I know C language hence I'm pretty sure with proper guidance in working with kernel drivers I could get this fixed.
[Xperia Z1 Original Android Development] Wooaarr:
Whoops, sorry for the broken link, this should be working.

I encourage you to contact alin.p, he is not a bad guy at all and might give you some guidance :)
[Xperia Z1 Original Android Development] Riyal:
Ok give me a few more days since my video unlimited subscription is about to expire :D And I'll unlock my bootloader and have a go at it. I'll have a look at the touch driver first then contact him. I attempted this once hence mohammadAG fixed my issue and created this kernel. I tried contacting flar and showp to no avail so maybe this time I'll get a support from a dev with knowledge on this stuff so perhaps I could successfully port it now.
[Xperia Z1 Original Android Development] Riyal:
[MENTION=4663907]Wooaarr[/MENTION] or anybody else here. Since I am using a xperia z1 compact... Can someone here with a Xperia Z1 & Xperia Z post their touch firmware version here?

To do so please open your phone app and type

*#*#7378423#*#* or *#*#SERVICE#*#*

then navigate to Service info->Firmware Info

Then post here the Synaptics Clearpad touch firmware information you have on your device? It should look like this...

This should point me out where to hook the gesture listener in the kernel. If you guys could also post one for Xperia Z also I would really appreciate it but Z1 should be enough. But of course more is better so I could compare the difference between the 2.
[Xperia Z1 Original Android Development] Balaram12:
This? Not so pro on this and I dont have a z but I have a z1 so this is ut
[Xperia Z1 Original Android Development] Riyal:
Yes that's it :) Thank you very much! :D Seems like the Z1 Compact and Z1 have different touch panels. Would be interested on the Xperia Z now if someone has. Regardless I'll start with these 2 for now.
[Xperia Z1 Original Android Development] Balaram12:
Ok
[Xperia Z1 Original Android Development] Riyal:
Update:

Sorry guys I don't think I can make progress with this. Somehow I think the Z1 Compact has different digitizer than Xperia Z1 and our own doesn't really support tap to wake on the hardware side. So since I don't have a Xperia Z1 I won't be able to support development on this. I tried porting CTS kernel and doomkernel to Xperia Z1 Compact with tap to wake enabled and it won't work. The same issue I encountered last year when I attempted to bring tap to wake before Doomlord and mohammadAG made it. Touch isn't really detected when screen is off.
[Xperia Z1 Original Android Development] Ashray_Vk:
Trying is what matters more :) Thank you very much anyway for trying :)
[Xperia Z1 Original Android Development] olokos:
If you need quick testing one build after another for the Z1 I can help you out with this. Just let me know and we'll move to some instant messaging platforms. :)
[Xperia Z1 Original Android Development] jefzisgood:
how about the z1s? i hope it will
[Xperia Z1 Original Android Development] a2zonlyt:
is this work on android lolipo 5.1.1?

and link is not working too.

is there any solution?
[XPERIA X10 Themes and Apps] Afiqskull5:
Download the file and install like a normal apk

Link

https://www.dropbox.com/s/6srve96it...id.music.d72dee9c3fe063ac63923bbeb5a82b20.apk
[XPERIA X10 Themes and Apps] joshmalala:
google play music for 4.0+ right??:confused:
[G2 Q&A, Help & Troubleshooting] abati:
hy guyz,

just installed (Pardus HD RoM™ Classic VIII- 4.4.2) on my lg g2 d802.

nice rom but i prefer the navigation buttons to be smaller, I came from g flex 1,5 rom and there was an option te setup the size of these navigation buttons but not in this rom.

is there an easy way to fix this ..

if so please let me know ^^
[G2 Q&A, Help & Troubleshooting] tonuzzz:
You can try with Xposed Modules like G2 Xposed or G2 TweaksBox
[G2 Q&A, Help & Troubleshooting] abati:
I tried both of.them, and it does not show an option to adjust the size,
[HTC Droid DNA] momoney6:
Got this beautiful Droid DNA running on a GSM network and failing at trying to get the newest update. I know I cant be the only one with this issue but for some reason I CANT FIND A SOLUTION!!! Please reply ASAP if you know the fix or know where I can find the fix

DNA
[HTC Droid DNA] xXminiWHOOPERxX:
Are you htcdev unlocked, s-off, latest custom recovery?
[HTC Droid DNA] momoney6:
Yes sir!
[HTC Droid DNA] xXminiWHOOPERxX:
Then pick a Rom of your choice from the DNA forums and flash with the latest TWRP. If your s-on you will need to flash boot.img via fastboot for a Rom to boot. I'm a gsm carrier myself and I'm on the latest kit Kat sense.
[HTC Droid DNA] momoney6:
Yeah I figured that's the cleanest choice. What Rom are you on? I'm downloading viperDNA 4.4.2 sense 5.5 atm

DNA
[HTC Droid DNA] momoney6:
Yeah I figured that's the cleanest choice. What Rom are you on? I'm downloading viperDNA 4.4.2 sense 5.5 atm
[HTC Droid DNA] xXminiWHOOPERxX:
I'm on my insertcoin Rom I have ported
[HTC Droid DNA] momoney6:
Alright sounds good just got one more off topic Q you might be able to explain. With this whole S-Off thing I will always have root and will be able to update stock OTA updates if That time comes right?

DNA
[HTC Droid DNA] xXminiWHOOPERxX:
S-off allows you to flash almost everything on the DNA , and with it you don't need to flash boot.img via fastboot... And why worry about OEM OTA's, devs here will make a flashable Rom with the ota
[HTC Droid DNA] momoney6:
Alright thanks x156.6 man. If I ever plan on taking over the world I'll make sure to let you live ?

DNA
[Android Apps and Games] Afiqskull5:
Google play music for gingerbread is here just download and install like a normal apk:p

Link

Here: https://www.dropbox.com/s/6srve96it...id.music.d72dee9c3fe063ac63923bbeb5a82b20.apk
[Android Q&A, Help & Troubleshooting] sonukha1:
Hi Developers

I have a china Lenco Cool tab 70

I was developing it by making changes in its stock apps but i did,nt remember to make a backup and now when i open

i See that

Unfortunately system ui,Launcher .etc has stopped

and I am unable to do aNY THING PLS TELL ME HOW TO FIX IT AND ALSO TELL ME HOW TO RE PARTITION STORAGE OF THIS TYPE BECAUSE SD CARD IS IN MY INTERNAL STORAGE
[LG Optimus Black] Alucard:
Has anyone tried miui how is battery life and camer quality compared to izs v2?

-------> http://www.miui.com/getrom-46.html