yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] lambrospower:
hey man i just tried this on mine and it doesn't work....also the getevent for my trackpad+c is

0001 0110 00000001

and not

0001 0110 00000000

edit: i am using mcr r4

edit2: hey i just remembered that i didn't changed the bravo-keypad.kl at all....does it matter if i have the menu WAKE_DROPPED too ?
[Desire Android Development] blackfox888:
can you show how you do it?

edit: try pulliing /system/usr/keylayout/curcial-oj.kl file out to edit but command return 'does not exist'

im using Official Sense rom v1.0c from AdamG.
[Desire Android Development] lambrospower:
you must create that file........

As my problem is concerned i tried removing the WAKE_DROPPED from MENU and had only the curcial-oj.kl with WAKE_DROPPED and again doesn't work........

i think it's a problem with my getevent results........that 00000001 at the end is the difference
[Desire Android Development] LeeDroid:
Use the clockwork mod recovery and go in to key test, click the trackball and it tells you the key ref.. mine is 272 the same as everyone else.

I have created and pushed the curcial-oj.kl to /system/usr/keylayout/ containinng the string key 272 DPAD_CENTER WAKE_DROPPED but its having no effect?
[Desire Android Development] blackfox888:
how do you create it? btw what terminal app are you using? I'm using SUFBS app but in their terminal it return permission denied when i type command 'getevent'
[Desire Android Development] LeeDroid:
hit "su" then enter and then "getevent"
[Desire Android Development] lambrospower:
i didn't understand the finish line...did you managed to get it work ????? anw that's what i did too but no effect

create a text file with ANSI encoding in notepad containing the

key 272 DPAD_CENTER WAKE_DROPPED

and rename it to "curcial-oj.kl"

my terminal is better terminal pro.....before the getevent command type

su

in order to get full system access
[Desire Android Development] blackfox888:
ok I tested the key and its 272 aswel. soori for being a noobie, to create the file do I use notepad on pc:

-type string key:

key 272 DPAD_CENTER WAKE_DROPPED

-than save it as curcial-oj.kl

-push it in recovery

is that correct??

edit: cheers guys:) going to give it a go....
[Desire Android Development] lambrospower:
yes this is how it 's done.....if you manage to work it out then i must be the problem :P
[Desire Android Development] blackfox888:
Not working:(

btw as I cldn't get dpad to wake-dropped I thought I try the search button so I edit bravo-keypad.kl to have search button wake-dropped. than when I rebooted the phone, power button did not put phone to sleep! phone is on constant wake!! put back the original bravo-keypad.kl file and phone is working again. what am I doing wrong?
[Desire Android Development] stainesy81:
Not working for me, I try to flash and it wouldn't just said installation aborted. Is cos I'm running 2.2 not 2.1?
[Desire Android Development] LeeDroid:
Any other progress on this guys? no joy my self
[Desire Android Development] blackfox888:
can you pull out and post your curcial-oj.kl file here pls:) btw what rom are you using?

Also to RagnaKaos, can you do the same as you are using AdamG Official sense Froyo Rom. cheers
[Desire Android Development] Vorbeth:
Here's mine,

Got it to work by pulling the bravo kl editing in NotePad++ and renaming it.

Oh, I also left the extra blank line at the end of the file.

Flash in recovery.
[Desire Android Development] blackfox888:
Thanks you very much, just flash it and it WORKED:D:D:D and Thanks you to jwickers_1234 for working out the fix:D:D:D

you guys are the best!!

btw is there a way to make it DPAD to wake and unlock? that will be awesome:)
[Desire Android Development] jwickers_1234:
The last digit 1/0 is for key up / key down, don't worry about it.

No it does not matter if you have menu WAKE_DROPPED.

Running LeeDroid 1.3a, i guess this should work with any of the roms running the HTC kernel.

I guess for poeple having trouble creating the file, perhaps those running windows would run into line termination issues, better use something like, copy the bravo-keypad.kl, open with NotePad++ and replace it's content. This should preserve any encoding / line termination.
[Desire Android Development] mythxs:
worked on the leaked official 2.2 rom of Desire 1.0c as well, thankyou~~
[Desire Android Development] lambrospower:
ok your file works klutch........and the problem was that blank line at the end :P:P so much trouble for a blank line....thanks for the trick!!!!

also does anyone knows how to unlock the phone with a key ????? in 2.2 sense i must drag the bar down to unlock
[Desire Android Development] Vorbeth:
@lambrospower

It's a bool setting in framework-res.apk I think.
[Desire Android Development] markuz85:
Works on r4 :)

Anyone got a .zip with trackball wake/screen off ONLY? :)

I keep waking my phone up in my pocket...
[Desire Android Development] goksar:
thx dude!could you also make an update file for unlock with trackpad pls?
[Desire Android Development] Vorbeth:
That I'm not sure if it's possible, I know you can unlock with Menu.

You need to decompile the framework-res.apk then change

<bool name="config_disableMenuKeyInLockScreen">true</bool>
[Desire Android Development] Bisis:
Worked for me, thanks.

Is possible to let it also unlock the device?
[Desire Android Development] lambrospower:
if you mean having the trackpad to wake the phone ONLY and no other key like menu,power,back or search the try the zip attached, i just made it for me too...:cool:

also....that framework change is only for Menu ???? i don't find anywhere this setting ????? what file should i change in the framework-res.apk
[Desire Android Development] Vorbeth:
Yes, it's the only one I can find, although I can not get it to work.
[Desire Android Development] mjaore:
is it possible to do a only trackball (no Power button) wake up zip?
[Desire Android Development] Gtot:
Post #60....................
[Desire Android Development] mjaore:
thx, sry for not searching it myself, thought if it is here allrdy it would be in the first post...
[Desire Android Development] markuz85:
Tweet, thanks :D
[Desire Android Development] naxan:
Works on OpenDesire 2.1 / thought you might be interestes because there was only talk about HTC Roms...

Unlock by pressing Trackball twice like in DeFrost would be great

but it's also nice to have it like it is now :)
[Desire Android Development] Bisis:
How to add UNLOCK features after screen power on? I don't like to swipe finger on the screen... I'd prefer to press dpad_center again...
[Desire Android Development] bugmenever:
Do any of the zip files allow for wake and unlock using the trackpad (single click)?
[Desire Android Development] JuanitoDog:
¿This mod works in rom's based in froyo? for example Oficial Froyo Sense OpendDesire Team v1.0c
[Desire Android Development] lambrospower:
it should work on the froyo roms too
[Desire Android Development] 7pellc:
Bump...

And both zips are now available on the OP. Simplicity.

CP
[Desire Android Development] mdmar:
Thumbs up
[Desire Android Development] stainesy81:
What about making phone sleep using home, trackpad etc?
[Desire Android Development] lambrospower:
hey this is for everyone who wants to have the TRackPad + a key

Apply the TrackpadONLY zip first and then apply one of the hardkeys zips....these way you will have both of them enabled......
[Desire Android Development] stainesy81:
Ok, but what about making the phone sleep using trackpad or a key? Maybe long press??
[Desire Android Development] mr.r9:
Anyway to add unlocking to this mod? Meaning first click wakes the phone and the second unlocks it?
[Desire Android Development] hugocbp:
Thank you so very much!!!!

You just saved a silicon cover from being partially decapitated in the Power button region, hehehe.
[Desire Android Development] lambrospower:
oh i am sorry i didn't read that you meant s

SLEEP :o i dunno if we can change this as it's not into one of the keyboards...it might be into the framework cause it works anywhere you are, either apps or home or anything
[Desire Android Development] scoobyspin:
+1 any chance of adding the screen lock function too?
[Desire Android Development] ulrar:
The back to original seems to be broken, I've downloaded it two time and can't flash or open it. Am I the only one?

I hate the trackball wake included by default in my Rom =\
[Desire Android Development] lambrospower:
tell me what button you want and i'll make an update zip for you.....

i guess you want the power ?

edit: i uploaded the one that Wakes with POWER ONLY
[Desire Android Development] Poodlemastah:
Any chance of a wake AND unlock on trackpad?
[Desire Android Development] ulrar:
Thanks that'd be perfect, but when I try to flash it I have an error while copying file, can't mount usr.

I've tried to reflash the blackbar mod and it works, so I have an error just with the power button only zip =/
[Desire Android Development] lambrospower:
here you are i made it again....i might have uploaded a faulty one!!!
[Desire Android Development] ulrar:
It might come from me, but same error, copy_dir PACKAGE:usr [...]

Can it be flashed with clock mod recovery?

Thanks anyway =)
[Desire Android Development] desire.:
I cant flash these .zip files, it says that superuser granted permission then nothing happens, i press to install rom fron sd card, am i doing something wrong??
[Desire Android Development] lambrospower:
well i dunno guys....they are just fine on my desire...i just tested them!!! try renameing them to something with less characters and try again.....it did the trick for me once with a rom
[Desire Android Development] ulrar:
No..

how to flash it ?

I just do it the same way I flash DeFrost updates, correct ?
[Desire Android Development] lambrospower:
enter recovery and flash zip from sdcard...choose the zip and update......i don't recommend rom manager or anything
[Desire Android Development] ulrar:
So, that's what I do, don't work for me =(
[Desire Android Development] akn78:
+1

For making wake screen and then UNLOCK screen with button, no swiping. In my case i want menu for both wake and unlock...
[Desire Android Development] Yzord:
Wake up from trackball works perfect here on Froyo OpenDesire 2.0
[Desire Android Development] Kameo:
Damn, gotta test this that would be awesome :D
[Desire Android Development] hijackfr:
Hello,

is it possible to have wake and unlock with button MENU please?

My rom is R5 Modaco

Thanks for your help
[Desire Android Development] chr15gb:
Weird

I just tried Wake up using Menu Button on official 2.2 rom Desire 1.0c and lost my radio

Wouldn't connect to Orange at all, Wifi still worked

Reverted using the back to normal tool and connection back again.
[Desire Android Development] dayosaysyosh:
great mod (track pad only wake), but there is a glitch on my desire where if i click the power button while It's still on the lock screen, i can use the power button again to turn on the screen. Anyone else having this problem?
[Desire Android Development] Kameo:
Tested with Wake on Menu and it works fine.

Wonder if i can patch to wake either with Power or Menu?

Anyone got clue?
[Desire Android Development] EGriff:
Great mod, works perfect. (Power button and trackball button version)
[Desire Android Development] ulrar:
No way to disable the trackpad wake & unlock on DeFrost, can you explain how to do it manually ?

I suppose I have to edit a file?

Thanks
[Desire Android Development] hijackfr:
Salut KameoRE,

sous quelle rom es tu?

si c'est pas une froyo, c'est pas dur, je peux t'envoyer les commandes ou mieux le fichier.

Sous Froyo, tu auras juste le réveil du téléphone avec les boutons Power et menu, mais pas le unlock.
[Desire Android Development] ephumuris:
English only please.
[Desire Android Development] hensk:
very nice trick ,ma m8s

I use boot power & trakball
[Desire Android Development] Chronic404:
I always get errors saying the certificate signature cannot be recognised :confused:

I'm using the MoDaCo ROM, any help?
[Desire Android Development] sbdags:
It should just work - you can toggle certificate checking off in the recovery menu if needed but I never had to.
[Desire Android Development] peewster:
I'm always using this patches, but now for the first time it doesn't work.

Rom OpenDesire 3.0.1

patch: Trackball and home wake. I've tried both but they don't work on this rom.
[Desire Android Development] pramdit:
Same for me, but seach button works..thanks
[Desire Android Development] ryanrich:
Yeah really need to get this working on OD 3.0.1 else I'll need to go back to 2.3a, kinda a deal breaker for me...
[Desire Android Development] otijhuis:
Re:

The problem with OD 3.0.1 is that the file should now be called "crucialtec-oj.kl". Then it works, at least for me :)

[EDIT]

You can probably just edit the zip file and rename "curcial-oj.kl" to "crucialtec-oj.kl". And yes, in the case of OD 3.0.1 it is now "crucialtec-oj", not "curcialtec-oj". No typo ;)
[Desire Android Development] edenede:
Good Job otijhuis!

It worked on OpenDesire3.02 too! You saved my Desire!!
[Desire Android Development] bradputt:
sorry for my noob qtns

how do you change the filename?

i did it in winrar but when i flash it i get "can't open trackball-wake-HTC_desire.zip(bad)" in clockwork.
[Desire Android Development] edenede:
OpenDesire 3.02, you can get "Trackball wake" by just changing default settings.

Settings -> OpenDesire settings -> Input settings -> Trackball wake / Trackball unlock
[Desire Android Development] jastonas:
Will this work with newer froyo roms? Specifically Roufianos 2.6?
[Desire Android Development] St Veronus:
Can someone take these settings from the file so that it can be applied to a different rom? I'm running the stock 2.1, but would really like to add this feature if at all possible.

Thanks
[Desire Android Development] mr.r9:
I applied it on the original HTC update and it worked, so give it a try after doing a nandroid.
[Desire Android Development] lit2k:
Thanks so much
[Desire Android Development] eteching:
On FroYo i can no unlock the screen with MENU button unlike Eclair.

Who can provide a zip to enable to UNLOCK WITH MENU button?

100000 Thanks in advance....
[Desire Android Development] Vice83:
I have this problem as well, Menu button unlock no longer works, only Power and Trackpad. Using latest LeeDroid ROM.
[Desire Android Development] b4bass:
hello, until now i used a 2.1 rom because i was used to the wake/sleep by the trackball.

Now, im on 2.2 and i miss the long press trackball to make the desire sleep.

Is there any chance to have this mod working ?
[Desire Android Development] caldo:
Thank you! :)
[Desire Android Development] Bob@Desire:
Is there a zip file which can wake up my Desire with the Trackpad or the Power button?

Thanks
[Desire Android Development] morgan39:
See post #60 and others in this thread, it woks great.
[Desire Android Development] Bob@Desire:
I tested the zip form post #60 but I only could wake up my Desire with the Trackpad and not also with the Power button
[Desire Android Development] lambrospower:
you will find all kind of ways to wake up your phone in my thread for lambros custom rom....look in attachments for the one you want.....

http://xdaforums.com/showthread.php?t=745447
[Desire Android Development] casca:
Dude check the first post, you have everything needed there.
[Desire Android Development] Bob@Desire:
Thanks casca & lambrospower. I made it
[Desire Android Development] casca:
That is why we are here for!
[Desire Android Development] b4bass:
what about i asked?
[Desire Android Development] casca:
Idon't know if it's possible,since I'm bit a developer...don't have the knowledge to speak up...
[Desire Android Development] b3ndik:
Is it possible to both wake and unlock the phone using the trackpad? RichardTrip had this in his rom (DeFroST), and I'd love that function in my current rom. And no, I will not change rom (want sense).
[Desire Android Development] rcaballe:
+1 This is what I want also, had it with Eclair, searching the same with Froyo (Neophyte right now)

Trackpad or Power to wake up

and!

Trackpad (quick after wake up) or swipe down to unlock
[Desire Android Development] mdmar:
Installed wake via trackball only. Now Im stuck on Nexus bootscreen (where the coloured X is made...)

Any ideas on how 2 solve?
[Desire Android Development] mdmar:
Noone awake yet;) ?
[Desire Android Development] b3ndik:
Go into recovery, and flash your rom again. You should have taken a nandroid backup. The patch is not compabile with the newest kernel.
[Desire Android Development] nfsnfsnfs:
1.Should I have root access ?

2.Can I flash this in on stock 2.2 rom ?

3.Should I take a backup first ?

sorry for questions :o

Excellent , you guys are amazing .
[Desire Android Development] casca:
what do you mean? not compatible with what kernel version?I have 2.6.32.15 and it's working...are you refering to a newer kernel than this?
[Desire Android Development] bennylai83:
Sorry i am new to this, followings are my questions:

1) Do i need to root my phone to use this?

2) How do i flash it? Please post me a link for the steps? Cos all i saw on webs was steps to flash a rom.

3) I am using official OTA 2.2, what is the easiest way to flash those zip files.

Thanks alot!
[Desire Android Development] casca:
You need root
[Desire Android Development] Streetlight:
Hi!

Can I use the trackball and power to wake zip from the Lambros custom rom with AuraxTsense? If not, anyone can give me a working file (the one in post #60 and first post doesn't have the power button enabled)

Thanks!
[Desire Android Development] casca:
sorry mate, but the one in the first post link# 6 HAS power button enabled and trackball also
[Desire Android Development] Streetlight:
I'm sorry but it's not working for me... i tried it again and nothing, just the trackball...
[Desire Android Development] casca:
Try to install the original function on first post,and then install the one you want
[Desire Android Development] Streetlight:
It worked! In fact, the rom i'm using had already the power+trackball to wake option, so when i got the "back to original" zip it got back to the original of this ROM!

Thanks a lot!
[Desire Android Development] casca:
ok...nice but... now that's weird...when setting to original in post one, it should have enabled just power button power-on mode...

glad it worked though.cheers
[Desire Android Development] Streetlight:
Yeah...that's what i thought it would happen but i guess that this buttons functions are inside the rom itself, so having a rom with trackball+power enabled i guess this is the "original"... that's the only explanation i can think of.

Anyway, it's working great now so, thanks again for the help!
[Desire Android Development] leoking3:
Could any1 explain the procedure of doing this? I have no idea how to do it.

Thanks.
[Desire Android Development] casca:
just install it like a rom, through clockworkmod recovery
[Desire Android Development] leoking3:
I am very new to this thats why I am trying to understand.

So put the zip file on the card and then startup in recovery mode and so on?

Does the phone need to be rooted for this to work?
[Desire Android Development] shoemeistah:
great work! i've been looking for this for a while :)
[Desire Android Development] Streetlight:
Hi! Yes, it needs to be root 'cause you need clockworkmod or Amonra's recovery.

(if i'm wrong please correct me!)

Just put it in your card root and flash from recovery.
[Desire Android Development] vpraveenis:
My clockworkmod recovery (that installed with unrevoked 3.21) is not allowing meto flash any of the zip files.

Everytime I get the same stupid message

Finding update package....

Opening update package...

E:Can't open /sdcard/menu-to-wake.zip

(bad)

Installation aborted

I just dont know what's wrong. I'm running rooted stock 2.2 rom.. Anyother way to install the zip files other than clockworkmod?? maybe via abd?? please help....
[Desire Android Development] casca:
that's weird, have you checked signature verification?
[Desire Android Development] vpraveenis:
Yes. Signature verification and script errors are both disabled.

I'm not able to understand why it is giving such an error. I even generated the clockworkmod log file and checked it. The same error message is getting displayed nothing more conclusive in that.

The sd card works fine. Nandroid backup/resotre works fine. The zip files are properly downloaded and are not named x.zip.zip

So it completely beats me as to what is going wrong... can I flash the zip via abd?? or will rom manager make any difference??
[Desire Android Development] casca:
yes you can push the files through ADB, although i'm not an expert with the commands to use...

Eg for a boot animation zip file:.

adb shell mount /system

adb push bootanimation.zip /system/customize/resource/bootanimation.zip

adb reboot

Don't know if it helps you having an idea though...
[Desire Android Development] vpraveenis:
Thanks casca.. I'm not sure where this file has to be pushed via adb..

I will try with rom manager once.. if that too doesnt work, I dont know what i'll do :(

Will it have anything to do with the read-write-execute permission?? ls -l from adb shell on sdcard folder should list down the permission. Maybe i will also try the chmod 777 and see how it goes..
[Desire Android Development] casca:
try this

Extract the zip file with the mod that you want, inside you'll have the folder system\usr\keylayout where you will find the file curcial-oj.kl

copy it to your adb "tools" folder to be easier and try to run the following commands after booting in clockworkmod recovery

adb shell mount /system

adb push curcial-oj.kl /system/usr/keylayout/curcial-oj.kl

adb reboot

Let me know how it went.
[Desire Android Development] LuffyPSP:
can someone post a mirror for back to original functionality link? i cant download from RS.

Thanks!
[Desire Android Development] casca:
here ya go...
[Desire Android Development] LuffyPSP:
Thanks a lot. I need it just in case. i'm happily using the trackpad wake on SuperVillain now..:D
[Desire Android Development] vpraveenis:
Casca, I found the issue. It was my mistake. I found that after copying the files to the sd card and if i switch off the phone immediately (without letting the phone "Prepare SD card") then clockworkmod is not flashing the file properly.

If i give it a couple of minutes after removing the data cable, then flashing is fine. Trackpad wake is now working fine on the mobile. Thank you so much.

I did notice an issue. If Lock screen is disabled in settings, then the device wakes up with any key press.. Power, volume, search, menu etc... is it a known issue??
[Desire Android Development] casca:
nice to hear you worked it out,but that is weird...lol

Anyway, that is not an issue,it's meant to be like that i think...
[Desire Android Development] MrCyrus:
No sleep on Leedroid 2.2a

When using "only trackpad" to wake up on Leedroid 2.2a it seems my phone won't sleep, it just dims the display and stays that way. Menu etc also still lights up. Using power bottom will put it to sleep, but still annoying