yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] McRIP:
Its really great app, wow!
[Windows Mobile Apps and Games] joemp:
Hello everyone.

My name is Jose Gallardo S, I'm the author of this little app and I'm glad you enjoyed it during around one month.

I want to share a new project I'm working on currently: Fleux

http://xdaforums.com/showthread.php?t=844005

It's a UI engine which hopefully will help other developers to build apps with a smooth, fluid, touch friendly and modern User Experience for Windows Mobile devices.

Please feel free to take a look at the video preview linked in the thread.

Thanks again!

-J
[Windows Mobile Apps and Games] wardh:
OMG! We need some Fleux apps right away! :D
[Desire Android Development] bponury:
I've managed to do some dirty hack to wake phone using trackpad.

It's kernel update so i believe it will only work with MCR r3.1 (which I am using)

Thank's to kingchris for his lockscreen apk mod this now should work:

Tested ONLY on MCR r3.1.

Do not flash on ANY Froyo roms

http://ponury.net/desire/tp-wake.zip - trackpad wakes, nothing unlocks

http://ponury.net/desire/tp-wake_unlock.zip - trackpad wakes, trackpad unlocks

http://ponury.net/desire/tp_power-wake_unlock.zip - trackpad + power wakes, trackpad unlocks

http://ponury.net/desire/tp-doubletap_wake_unlock.zip - trackpad wakes AND unlocks when pushed fast twice (slow push does nothing)

Here's that diff: (just a single line added :-) )

Always send DPAD_CENTER event!

http://ponury.net/desire/oj_send_dpad_center_ev.patch - download

--- a/drivers/input/misc/gpio_matrix.c	2010-05-12 08:24:13.000000000 +0200
+++ b/drivers/input/misc/gpio_matrix.c	2010-06-17 08:05:08.223812817 +0200
@@ -162,6 +162,7 @@
need_send_spec_key = !pressed;
printk(KERN_DEBUG "%s: send key, pressed: %d\n",
__func__, need_send_spec_key);
+	input_report_key(kp->input_devs->dev[dev], keycode, pressed);
}
}
#endif

Send DPAD_CENTER event when pushed twice (fast) when screen is OFF:

http://ponury.net/desire/oj_send_dpad_center_when_doubleclicked_ev.patch - download

http://ponury.net/desire/oj_send_dpad_center_when_doubleclicked_ev_mod.patch - download + mod to automatically unlock (this one is used in doubleclick mod)

--- a/drivers/input/misc/gpio_matrix.c	2010-05-12 08:24:13.000000000 +0200
+++ b/drivers/input/misc/gpio_matrix.c	2010-06-17 12:53:47.893816146 +0200
@@ -29,6 +29,8 @@
#include <linux/curcial_oj.h>
#endif

+extern struct wake_lock main_wake_lock;
+
struct gpio_kp {
struct gpio_event_input_devs *input_devs;
struct gpio_event_matrix_info *keypad_info;
@@ -118,6 +120,8 @@
unsigned short keyentry = mi->keymap[key_index];
unsigned short keycode = keyentry & MATRIX_KEY_MASK;
unsigned short dev = keyentry >> MATRIX_CODE_BITS;
+ static unsigned long last_jiffies = 0;
+ static bool sent = 0;
#ifdef CONFIG_OPTICALJOYSTICK_CRUCIAL
static unsigned need_send_spec_key = 1;
#endif
@@ -162,6 +166,18 @@
need_send_spec_key = !pressed;
printk(KERN_DEBUG "%s: send key, pressed: %d\n",
__func__, need_send_spec_key);
+ if (!wake_lock_active(&main_wake_lock) &&
+ pressed && jiffies - last_jiffies < 75) {
+	input_report_key(kp->input_devs->dev[dev], keycode, pressed);
+ last_jiffies = 0;
+ sent = 1;
+ }
+ else if (!wake_lock_active(&main_wake_lock) && pressed)
+ last_jiffies = jiffies;
+ else if (wake_lock_active(&main_wake_lock) && sent) {
+	input_report_key(kp->input_devs->dev[dev], keycode, pressed);
+ sent = last_jiffies = 0;
+ }
}
}
#endif
[Desire Android Development] oclock:
Maybe you could describe what you changed in the kernel?
[Desire Android Development] ieftm:
a kernel update? In earlier builds I saw this being done through modifying the services framework for the ROM.
[Desire Android Development] bponury:
I've changed drivers/input/misc/gpio_matrix.c and drivers/input/opticaljoystick/curcial.c

Also keyboard layout needs to be modified slightly (to disable power button wakeup)

It's my first android phone and I'm just learning how to deal with it :-)

And to be honest - I don't have a slightest idea how to change frameworks, I suppose I just live in low-level world.

If this can be achieved by modifying framework than this thread is useless and admin should delete it.
[Desire Android Development] Konradwalsh:
To some degree yes... Bu t no one posted how to disable the power button. Also no one worked out how to make the track ball work. Before now, it was only the home, menu and back keys that worked by editing the framework.

So dont give up yet.. you are on to something I tried to do and failed.
[Desire Android Development] bponury:
Well it's working... maybe it can be achieved simpler, but it works. Actually I suppose I could do any possible combination to wake/unlock (maybe without volume keys - I didn't try that...)
[Desire Android Development] TheAshMan:
Well the fact that this was discussed earlier a little progress made, then nothing, and then you come along as a newbie to Android (first Android phone at least) with a possible solution, I think it's fair at least to grant you kudos for your work.

It definitely shouldn't be deleted. If it's stable then what's to say people shouldn't use it?

Even if this isn't the most elegant solution, it can at least be used as a base for future development.

Basically: nice work dude.
[Desire Android Development] oclock:
Why do you think that a kernel patch is not an elegant solution?

We have the kernel sources, we can compile it, we can patch it, we can transfer it to new kernels and so on.

Modifying the framework means deodexing the hell out of it, disassemble (smali) it, decrypt the listing, assemble it again and so on.

I think a small kernel patch could be a much more elegant solution, also because you don´t change your kernel as often as your underwear :-) And you dont´t have to wait for a new service.jar (or whatever framework file has to be modified) each time the software is updated by the vendor.

However, because I don´t know what he changed, it could also be a not so elegant solution ;)

Just my 2 cents.

+1
[Desire Android Development] lambrospower:
well how do we do it ???? i want to do it with trackpad...post your guide here please, you can post links with space into the url till you have the necessary posts...

in addition can you tell us if you noticed difference in battery life ??? a xda member posted that since this is an optical trackpad it MIGHT be slept for battery reasons.
[Desire Android Development] SiX-P4cK:
I want a trackball wakeup.

Can use other bouton : http://xdaforums.com/showthread.php?t=683902&highlight=wake+phone+menu

mod for nexus: http://xdaforums.com/showthread.php?t=645481
[Desire Android Development] bponury:
Thank you very much :-)

Don't know what's elegant in android world I'm really new to this...

Just flash zip like any other update (beware it was tested on MCR r3.1 - anything based on stock kernel should work (should) ). Also this update shouldn't have any impact on battery life it doesn't do anything active...

You can have it - first post.
[Desire Android Development] deovferreira:
Nice, please post the diff with your changes.
[Desire Android Development] andycted:
How do you go back to default settings, once flashed ?
[Desire Android Development] oclock:
A diff or just the modified files would also be more helpful than a kernel update to me.

@OP:Is it possible?
[Desire Android Development] ephumuris:
Very nice i really wish i could use this however my trackpad died yesterday and hasn't decided to come alive automatically!
[Desire Android Development] Joshhudsy:
Re: [DONE] Trackpad to wake

Yeah it would be nice to be able to revert, anyone know how to get back?

-------------------------------------

Sent via the XDA taptalk app using my HTC Desire :)
[Desire Android Development] ephumuris:
Flash the stock kernel. I'd still like power button to work too. So i can use both trackpad and power. I can fix my trackpad but it only seems to last a few days at a time.
[Desire Android Development] wuthton:
Excellent, works a treat for me, mcr 3.1.

Thankyou very much, I've wanted this for so long, the phone unlocks far too easy in my pocket with the power button.
[Desire Android Development] andycted:
Nice, thanks. Works with stock rooted kernel
[Desire Android Development] zzleezz:
Anyone tried this with a Froyo build? Will it work with Richards Defrost rom?
[Desire Android Development] andycted:
Actually... anybody experiencing some hardware keys not working randomly after applying the patch ?

I.E. -> nothing is responding -> press trackball -> menu pops up -> everything normal !

[Edit] seems like as soon as you unlock, the trackball goes 'stuck' or something similar. Someone else has the same ?
[Desire Android Development] bponury:
Will post diff when it's tested properly.

Do nand backup before applying patch and then restore.

Well it is a stock kernel no UV OC anything. I will try to make power work.

No it won't it's modified stock kernel!

Not happening to me - which rom are you using?
[Desire Android Development] tatey2457:
Great find, been praying for someone to get this done...Thank you.

Working perfect for me..no trackpad issues after installing. using MCR 3.1 with the MCK
[Desire Android Development] andycted:
I'm using rooted stock rom and had richardtrip uvoc v14 kernel. I've also previously modified keypad file to unlock with menu key. Could it be it ?
[Desire Android Development] Mc0815:
Very good work! Thank you very much!!!
[Desire Android Development] bponury:
It should work unless richardtrip's kernel is that different... Also keyboard layout is replaced by this update.
[Desire Android Development] andycted:
I'll try to flash it again. You mentioned restoring a nandroid backup to go back to default, but could I just flash a kernel and maybe modify the layout file ?
[Desire Android Development] bponury:
Sure! This update only overwrites kernel and layout file, nothing more (i hope)
[Desire Android Development] andycted:
No luck, had to restore the previous kernel
[Desire Android Development] TheAshMan:
Sorry, I wasn't clear. I wasn't saying it's not an elegant solution.

I meant "even if" as a response to some of the earlier comments suggesting that there's better ways to do it.

My post was supposed to be 100% positive and supportive of the OP ;)
[Desire Android Development] bponury:
Anyone here knows how to *easily* find whether screen is ON but Locked?
[Desire Android Development] lambrospower:
press the trackapad once !!!!

or do you mean something else ???

if you mean like hitting the power button just like before then add the WAKE_DROPPED into the keypad_layout.kl like the other method says
[Desire Android Development] bponury:
That made me LOL like hell :D

But seriously i meant - how to check if screen is on and locked, when being in kernel space (trying to get that power button to work - but I don't like that idea anyway)
[Desire Android Development] lambrospower:
i just flashed the kernel and it seems that it does this thing. however on mine it did it the first time i locked the phone...then i did what you did, pressed the trackpad to enable again the buttons and i never encountered it.

NOTE: also i noticed that before when i had the 'menu' button as unlock method if i pressed it twice fast to unlock it it was going straight to the HOME. now with trackpad i cannot do this. i press it twice but it MUST SHOW the unlock screen and then you must press the trackpad again.

edit: i restarted again to see if it happens again and i realized that YOU MUST UNLOCK THE SCREEN just once in order to enable the keys...i tried to press any key before the lock-unlock and nothing was functioning. when i locked it (with power button, only one that works) and unlocked it there was no problem with the buttons.

sorry but i didn't understand what you mean, not even now :P
[Desire Android Development] infexis:
Damn, wifi doesnt work for me after the flash :(

Now i have to reflash the rom.. and cant take nandroid backup, suck ..
[Desire Android Development] tatey2457:
Same here...unable to start
[Desire Android Development] bponury:
You're right! That's probably because I've used stock kernel...

Where can I get Modaco's Kernel sources?
[Desire Android Development] lambrospower:
no wifi for me either...i am flashing back the mck1.1 from modaco...and use menu for unlock till this is fixed
[Desire Android Development] Aqua-Niki:
Same here, WiFi's unable to start on MCR r3.1.

However, good job ^^
[Desire Android Development] bponury:
Well found a bug :-) For now - only WAKE using trackpad no unlocking...

Still not found any elegant way to find whether screen is locked or not.

So now you can wake your phone with trackpad and WIFI WORKS! (at least for me in plain MCR r3.1) re-download from first post
[Desire Android Development] Mc0815:
The kernel OCUV 14 I can turn on a wireless network. (new version trackpad)
[Desire Android Development] Aqua-Niki:
Wow, that was fast ! Works fine on mine, thanks =D
[Desire Android Development] M4cr0s:
I get a "signature verification failed" with the new zip.

Mac

Edit: Strange, (or maybe not) I did a nandroid backup in recovery, and then proceeded to flash the zip, got that error. Rebooted the phone and entered recovery again. No problem, flashed just fine and seems to work, unlike the first version :) On Pays 2.0 with MCR 3.1 I believe.
[Desire Android Development] bponury:
Yeah, I once had that also - I am not sure if I make that updates properly...
[Desire Android Development] M4cr0s:
Another thing, it definitely seems to break OC'ing (dunno about UV, but I'd guess that too) with the 14 oc and ocuv kernels. Never thought about it before flashing, but it's rather logical :)

Mac
[Desire Android Development] kingchris:
Push trackpad again - UNLOCK

this can be managed by

baksmaling the HTCLockscreen.apk and change the Keyevent from "menu" to "Dpad Center"

Menu = 0x52

DPad Center = 0x17

http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MENU

modded Version attached

push via recovery to /system/app/HtcLockScreen.apk

unlock by pressing the Trackpad

--EDIT--

packed the Lockscreen into the Package from the first Page.

download attached
[Desire Android Development] bponury:
Awesome! That's the missing puzzle :D I'll recompile and update zips on first post (if you don't mind)
[Desire Android Development] kingchris:
do it like you want :)
[Desire Android Development] bponury:
Added diff so now you can compile it on your own. That patch *should* work on any kernel.
[Desire Android Development] Pavelol:
well its working just fine, i'm runing modaco r3 rom but i noticed that if u press on the home button its doing nothing :(

plz fix this bug and it will be perfect.
[Desire Android Development] kingchris:
what means doing nothing?

on my desire home button works like before.

i can use Home button to exit an App or to show the "7 Screen-Screen"

so all is working as normal
[Desire Android Development] bponury:
Fixed - check downloads in first post.
[Desire Android Development] Pavelol:
ok guys i figured whats wrong, try charging the phone with your HTC charger and then try using the home button.

when i plug out the charger every thing working just fine!

using modaco r3 rom!

lol the problem solved, its the ****ing generic micro usb cable o.0

laugh laugh but really it was the cable :x
[Desire Android Development] Mc0815:
I'm happy! Thank you. But the kernel (OCUV 14) has been overwritten. I am now reading 2.6.9-bravo-mck-r1 root @ eva # 20. OCUV is now no longer possible. Too bad, or is there a way?
[Desire Android Development] bponury:
I've even tried every combination of locking/unlocking with finger/power/trackpad :P Glad to hear it's working.
[Desire Android Development] bponury:
You can use patches from first post and recompile your kernel... and apply lockscreen apk. If I find some time I could recompile most popular kernels with this mod... But I think only a few people *desire* this mod, it's really just for convenience.
[Desire Android Development] Mc0815:
I understand it is cumbersome this mod always fit with the new kernels.
[Desire Android Development] bponury:
It's not that big a deal. Patches are small and can be applied to kernels without any problems. However you will always have to recompile kernel.

One way is to compile gpio as a module and load it at boot. That way user could overwrite gpio module - no kernel changes. But it's up to rom cookers to make that happen.
[Desire Android Development] Mere Cypher:
Patch Trackpad to wake/unlock not working with [KERNEL] UVOC or OC-only + CFQ + ext4 + tun + 8MB hack + Audio-mod. Pls, repair..
[Desire Android Development] bponury:
I'm working on much more elastic solution for this. However I'm in a middle of exams so this will have to wait for a week or so.
[Desire Android Development] Mere Cypher:
Thanks, i am happy.
[Desire Android Development] jack1985:
Hi guys, I have Pays-ROM Desire Sparta Dalvik+A2SD (NO SENSE) in my desire.. I would like to install the tp-wake.zip - trackpad wakes, nothing unlocks.. Is it possible or I will have some problems??

thanks
[Desire Android Development] bponury:
I don't know whether pays made some changes to kernel... and you probably don't have htc's lockscreen (am I right?), but you could try doing this:

1) do nand backup (really do it!)

2) flash that zip

*** 3) execute: adb shell mount /system

*** 4) execute: adb shell rm /system/app/HtcLockScreen.apk

5) reboot the phone

Please do NOT execute commands marked *** if you have standard htc lockscreen (the one that unlocks when you swype finger from top to bottom). Only use it when you have vanilla lockscreen (rotary or normal).

If anything goes wrong restore from nand.

After that only trackpad should wake your phone and MENU will unlock it (that's because you're using vanilla lockscreen).

If you don't want yo unlock with menu then you probably need to change vanilla lockscreen to use DPAD_CENTER instead of MENU for unlocking.

As I said before I'm working on slightly better solution for this. But it will take a while.
[Desire Android Development] jack1985:
yes, in my rom I have vanilla lockscreen and there isn't the htc lockscreen!

the nandroid backup can't do it because I have partiton ext2 but, however, I will try flash zip..

thanks!

EDIT: in this rom I have OC only kernel now stable on 1113 MHz - 1267 MHz... the rom is based on 3.1 modaco custom rom..
[Desire Android Development] bponury:
So you will lose that (OC) . It's kernel mod :/ You can wait for a week or so I probably figure out how to do it in less invasive way.
[Desire Android Development] jack1985:
ok! thanks:)
[Desire Android Development] janvandusschoten:
Just flashed this on pays Jupiter, and it works for me . I have lost my lockscreen, but trackpad to wake works. Nothing special, just flashed the .zip, and it worked :)
[Desire Android Development] sshaikh:
Just out of interest, what's the difference between this method and the one at topic 683902?
[Desire Android Development] bponury:
Could you please post link to that thread? I can't find it. From what i know other methods only modify keylayout thus can't work with trackpad. I modified driver for trackpad so it does send events and then modifying keylayout works also with trackpad.
[Desire Android Development] sshaikh:
The forum doesn't seem to let me post links...

hxxp://xdaforums.com/showthread.php?t=683902
[Desire Android Development] bponury:
That method doesn't work with trackpad.
[Desire Android Development] Mere Cypher:
New version for all kernels. When?
[Desire Android Development] ipodtouch1001:
Sorry if this has already been asked, but how would I remove this to revert to the normal setup please?
[Desire Android Development] bponury:
Low level version is almost complete. I want this to be more configurable. I need to write application to control this so I hope it will be done by the end of the week.

You must edit keylayout and/or restore HtcLockscreen and/or flash kernel. The better way would be to do nand restore if you did backup.
[Desire Android Development] ipodtouch1001:
Will do, thanks.
[Desire Android Development] mr.vandalay:
any progress? it's almost the end of the week :D
[Desire Android Development] micoud:
i have installed (tp-doubletap_wake_unlock.zip) on mine desire just rooted but i have this problem:

when double tapping on trackpad , desire wekes but stay locked...for unlock it i must to press menu button or use touchpad

p.s. desire have original htc lockscreen
[Desire Android Development] bponury:
I'm in a middle of moving to a new house, so be patient.

It never happened to me - tried re-updating zip file?
[Desire Android Development] micoud:
nothing do to...same problem....also flashing tp-wake_unlock.zip

i need to push on menu for unlock it
[Desire Android Development] mauriesl:
Flashed the first zip-file (trackpad wakes, nothing unlocks) on a rooted Stock-rom (1.21) and works like a charm. Great post. Thanx.:D
[Desire Android Development] Dj!pOner:
Is there a "Trackpad Wake/Unlock" mod for MoDaCo R4 for flashing via recovery? ;)

Thanks :)
[Desire Android Development] AndrewMe:
As far as I see in description, ShadowFrost 1.4 has already trackball wake built-in.. doesn't work?
[Desire Android Development] bponury:
I wonder if it uses my mod or not...

Also new mod is stalled because i've left sources for it on computer which is now offline (power failure) and i'll have access to it in 3 weeks. Anyway I'll try do find time then to make it work. But maybe shadowfrost uses other (easier) method to do it - ask him how he did it.
[Desire Android Development] Hampa_D:
i second that id like a wake on trackpad would be awesome
[Desire Android Development] bponury:
As I said before - you will have to wait 3-4 weeks because I'm on vacations and don't have my sources with me.
[Desire Android Development] AndrewMe:
it's really pity, because there are mods for FroYo ROMs already available, but I don't want to reinstall the complete OS again..
[Desire Android Development] bponury:
Yes I'm a bit pissed also I could swear that I've saved sources on my laptop but I didn't. I will use that time to find bugs and find what can be done also. For now I have working new mod for stock kernel and it allows easy reconfiguration using textfile on SD. Double tap to wake double tap to sleep and so on. I am also trying to make trackpad end call anytime :) My proximity sensor gets fooled sometimes and I have to wait a second or two until my screen goes on.
[Desire Android Development] AndrewMe:
Amazing! Very good ideas! ..and about delays - have the same problem on froyo ROMs waking via normal power button... Cant wait getting bug fixes.. :)
[Desire Android Development] blackfox888:
Great work, but when I flash trackpad to wake and unlock, it has lock my cpu to 998MHz, I can not oc on richard trip uvoc v13 kernel! will there be a fix for this?
[Desire Android Development] bponury:
Sure it will be fixed but in few weeks. You can add patches to richardtrip kernel and recompile it then it will work.
[Desire Android Development] wolf849:
Is there any possible way to make it work on Froyo 2.2 ROMs?

Maybe someone can recompile 2.2 kernel.
[Desire Android Development] endursa:
trackpad ti wake-up for r4 would really be nice
[Desire Android Development] prakashraobs:
can it be used on un rooted HTC Desire???

Please help me with step by step

Thank you in advance
[Desire Android Development] b3ndik:
Really need this mod for froyo!
[Desire Android Development] bponury:
No.

It's obsolete, you can use new easier and far superior solution just look here:

http://xdaforums.com/showthread.php?t=696907&highlight=trackball
[Desire Android Development] b3ndik:
I also want to unlock the phone, not just wake it.
[Desire Android Development] titus1:
I'm on Paul's rom and the "wake-up trackpad, menu unlock works". But it messes with my SD card. It was always in "mount mode". Can't access apps installed in it.

Restored...
[Desire Android Development] ephumuris:
Anyone that flashes this over a Froyo rom needs their head testing. It's an old kernel it will not work on newer roms! Things will not work.

As soon as HTC releases the source code for the newer (froyo) kernel then we can have trackpad unlock. We can have overclock. Until then there is probably no way?