yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] smirkis:
wow that was easy. i didnt try it at first but sat down for a few and i have tap to wake via trackpad. yippers, thanks buddy!
[G2 and Desire Z Android Development] brownboyrx:
this should be added to cyanogenmod github for future uses when g2 get rooted!
[G2 and Desire Z Android Development] rune222:
It's already in cm 6, you need not worry
[G2 and Desire Z Android Development] Stryder5:
Hmm, that didn't help me, but I'm not on the OTA like you are. Wonder if this works better/more consistently on the OTA...
[G2 and Desire Z Android Development] brownboyrx:
Very nice I haven't checked in awhile since I've had my g2, my mt3g is mainly used for testing and playing now :)
[G2 and Desire Z Android Development] Davidion:
Seems to be working pretty well. Tremendous job!
[G2 and Desire Z Android Development] fryrice8850:
you guys know if the desire z (not g2 from tmo) with htc sense allows trackpad wake? cuz i know the mt4g allows you to do this...its sooo convient
[G2 and Desire Z Android Development] blk_jack:
It does !
[G2 and Desire Z Android Development] fryrice8850:
i can't wait till we get root then we can port over the desire z rom over to my g2
[G2 and Desire Z Android Development] havikx:
Please add support for Long-press trackpad sleep functionality. mod would be SUPERB then.
[G2 and Desire Z Android Development] Stryder5:
I'm now updated on the OTA and trackpad wake seems to work like a charm. Guess it's more compatible with the OTA (at least for me).
[G2 and Desire Z Android Development] eViL D::
Good to know, I'll update the OP.
[G2 and Desire Z Android Development] henryr934:
thanks evil
[G2 and Desire Z Android Development] henryr934:
cool got it
[G2 and Desire Z Android Development] ScottGood:
i have yet to try this, but I have noticed that "no lock" found on the Market, its free, allows this with and without root ;)
[G2 and Desire Z Android Development] tv2177:
so after I manually OTA I did this again it still works but there's a minor problem.

When I am connected to USB, the notification icon changes from the usual USB icon to the triangle proclamation icon.

Any one experiencing the same issue?
[G2 and Desire Z Android Development] aeidian:
Is there someway to add this to the visionary.sh file or something to make it do this on boot, sine it seems to disappear after reboot?
[G2 and Desire Z Android Development] eViL D::
Sure, but this isn't an app and it doesn't show in the app drawer either. It just works and doesn't cause wonkiness...:rolleyes:

Yeah, you probably could. I believe minotauri has done this. You could probably just copy the script out of gscript and paste it into whatever you use.
[G2 and Desire Z Android Development] aeidian:
I'll edit my visionary.sh file and add the script and push it tomorrow. Will report back tomorrow, unless someone confirms this before I do.
[G2 and Desire Z Android Development] Superfrag:
I use WidgetLocker ; before the OTA update it would only wake via Trackpad few seconds after being locked, but after the OTA update, and using the root bypass of 5 second rule, trackpad wake works fine..
[G2 and Desire Z Android Development] sinistersai4d4d:
NO lock is actually pretty good.. I just keep handcent locked so my sms cant' be accessed.

I'm gonna hold off on this mod until it's a little more stable/functional and allows long press to lock or triple press to lock. Awesome work, if I hadn't read the comment about NoLock I would def be using this mod. WOrks way better than WidgetLocker.
[G2 and Desire Z Android Development] Neejay:
Anyone tested since perm-root was found? :)
[G2 and Desire Z Android Development] minotauri:
yes, it works. just run it once and you shouldnt have to run it again. :)
[G2 and Desire Z Android Development] Neejay:
Just checking because I had it done, then perm-rooted, now it's back disabled...I don't want to do anything to screw something up.
[G2 and Desire Z Android Development] ihateusernames:
Yes you can add this to your visionary.sh file.

I am currently running the trackpad wake, LCD density and overclock to 1.2Ghz on boot with visionary. Makes it seamless. When my phone finishes booting, I am at LCD density of 190, overclocked to 1.2 and have trackpad wake without having to do anything. I am very satisfied.
[G2 and Desire Z Android Development] smirkis:
tap to wake no longer works for me after perma root. bummer, i really liked it and am already starting to miss it :(
[G2 and Desire Z Android Development] eViL D::
Works fine for me.

Did you run the script again?
[G2 and Desire Z Android Development] Neejay:
Sweet, just wanted confirmation before running.
[G2 and Desire Z Android Development] sinistersai4d4d:
link? Are u gonna perm root?
[G2 and Desire Z Android Development] Neejay:
Ran it again, and it's not working for me either. :(

EDIT: Does it matter if you're pre-OTA or post-OTA? I'm post-OTA.
[G2 and Desire Z Android Development] smirkis:
ran it like ten times thru gscript after full perm root. i am fully rooted but the script does nothing but a soft reboot but tap to wake doesnt work =(
[G2 and Desire Z Android Development] Carloswithac:
Do you have the ko file that was included in the zip?
[G2 and Desire Z Android Development] jointone:
I was having the problem where it would run reboot and not work then I installed busybox and all is fine.
[G2 and Desire Z Android Development] smirkis:
dang, thanks for that. installed busybox from market and reran script and all is well. yay for tap to wake lol
[G2 and Desire Z Android Development] carlsbad0331:
The busybox install made it work for me also... Might want to add that to the OP.

Thanks for all your hard work!
[G2 and Desire Z Android Development] tankmorph:
It only works SOMETIMES for me though. If the phone sits for more than a few minutes, it doesn't wake anymore using the trackpad.
[G2 and Desire Z Android Development] Jrbourque:
with perm root we only have to do this one time right?
[G2 and Desire Z Android Development] MetalMessiah78:
Also worked for me after installing Stericson's Busybox from the Market.

Also, after permanent root, you only have to do it once. :)
[G2 and Desire Z Android Development] Neejay:
Sweet, this did it. Thanks!

Are you perm-rooted?
[G2 and Desire Z Android Development] 338lm:
100% consistent prior to perm root. Very inconsistent since perm root. I have the OTA, i've run the script, but sometimes i have to press the trackpad up to 20-30 times before it wakes.

I've tried various SetCPU settings and updated busybox with no change

Sent from my T-Mobile G2 using WiFi Calling
[G2 and Desire Z Android Development] eViL D::
Well, it was working fine even after perm root, but since flashing cm-baconbits, it's borked.

*ok, figured it out. I changed the permissions from 04775 to 0775 in the perma-root version. I've only test about 5 minutes, but it seems to wake every time.

**actually, I lied. It's still not working correctly with cm baconbits...
[G2 and Desire Z Android Development] Neejay:
Nice. It didn't even soft-reboot.
[G2 and Desire Z Android Development] EfemaN:
I tried the updated BusyBox, the newest .zip in the OP has 04775 has the permissions; still getting the softboot. And now the backlight on my physical keyboard won't work... ideas?
[G2 and Desire Z Android Development] eViL D::
This doesn't affect the keyboard lights. Did you flash cm baconbits?
[G2 and Desire Z Android Development] EfemaN:
I didn't think it would mess with it, but it seems like that's what caused it. Although now... it's back. No idea what's happening. I haven't done anything with Baconbits; I've only done the sole trackpad mod.

I still can't get the Gscript method to stick; it keeps doing a soft reboot.

EDIT: I have no idea, but the trackpad wake works now... so... yeah.
[G2 and Desire Z Android Development] Neejay:
Nevermind version .3 - doesn't work even after flashing again
[G2 and Desire Z Android Development] rUsTyRuSs:
I don't know if this helps, but I was using easy wake with widget locker which is the same thing. Can wake the phone with any hardware buttons. Ever since I installed baconbits it has been unresponsive. Works for initial wake, but unresponsive for subsequesnt wakes. Uninstalled widgetlocker tried this and got the same exact problem. Looks like the trackpad is a vegetarian...
[G2 and Desire Z Android Development] thugjedi:
not working for me i get to the load a file part and i click add script then load file but nothing shows is "select a file ( .sh from sdcard )" a can i have some help please
[G2 and Desire Z Android Development] rUsTyRuSs:
Put the script in the gscript folder with any file manager. It will show up then.
[G2 and Desire Z Android Development] thugjedi:
thanks worked like a charm
[G2 and Desire Z Android Development] skiptomylou11:
Mine is in the gscript folder but still won't see it.

Oh well, it seems it isn't working anyway. Hopefully it can be compatible with Bacon Bits soon.
[G2 and Desire Z Android Development] rUsTyRuSs:
Apparently cyanogen is using some modules from the mt4g which may be causing the trackpad to be finnickey.
[G2 and Desire Z Android Development] Superfrag:
Ok, just an update, it works for some time, but after a quite a period the trackpad wake doesn't work. But using WidgetLocker it does work for a short period of time. lol.

Since I've installed BaconBits I guess I'll wait for a proper Trackpad Wake Mod which doesn't run into issues looking at above posts.
[G2 and Desire Z Android Development] rUsTyRuSs:
I flashed the other overclock kernel from http://xdaforums.com/showthread.php?t=834219 and it works great. The only difference I can see is the modules that baconbits had (setcpu profiles), with bits it has Conservative, powersave, etc, but this kernel only has userspace performance and ondemand. The overclocking steps and limits are exactly the same.

Almost forgot, you also lose the speaker light notifications from bacon bits.

Edit: Disregard, looks like I spoke too soon. Worked for a bit, but coming out of sleep after a while it became unresponsive. oh well.
[G2 and Desire Z Android Development] sinistersai4d4d:
I'm not even messing with this until everything works consistently... but I am looking forward to that day.

In the meantime "noLock" from the market works 100 percent of the time.
[G2 and Desire Z Android Development] Neejay:
Looks like if you force lock it, trackpad doesn't work. If the screen goes to sleep itself, trackpad seems to work.

Edit: nevermind, not working.
[G2 and Desire Z Android Development] eViL D::
The stock kernel seems to work fine. I'm gonna compile some kernels today and see if I can figure out what's causing the problem.

**btw, if the phone is plugged in, it unlocks fine.
[G2 and Desire Z Android Development] minotauri:
mine works fine. I have ota, perm root, and bacon bits.
[G2 and Desire Z Android Development] KiNG OMaR:
Mine decides to work randomly when ever it feels like...
[G2 and Desire Z Android Development] s30zgt:
I was just like you guys having issues with it. But after OTA, Perm root and busybox install it seems to work perfectly. Now i am not sure if it was one or a combination of all these things i did that made it work but all i know is that it is working great now.
[G2 and Desire Z Android Development] MetalMessiah78:
Mine was working great also prior to Bacon Bit, but after Bacon Bits, it only works when plugged in.
[G2 and Desire Z Android Development] jayb222:
It works randomly for me. This is permaroot with bacon bits.
[G2 and Desire Z Android Development] rUsTyRuSs:
Do you have a flashable stock kernel .zip laying around by chance?
[G2 and Desire Z Android Development] KiNG OMaR:
Is there a way to undo this?
[G2 and Desire Z Android Development] eViL D::
updated version available for perma-root or custom kernels.
[G2 and Desire Z Android Development] skiptomylou11:
I did it step by step but the phone didn't restart, but the trackpad wake worked. I rebooted and now it doesn't work anymore. I'm using BaconBits.
[G2 and Desire Z Android Development] hgmarcia:
2nd the comment on how do we get rid of this script?
[G2 and Desire Z Android Development] xile6:
Replace the file with stock?

Im downloading the stock rom now an ill extracted it an post up how2

Edit I don't see that file in the stock update rom that was posted on this board. So with that I believe that all that needs to be done is delete the file. Ill try later when I have time n post back.

Remeber nandbackup b4 doing annything
[G2 and Desire Z Android Development] aeidian:
This updated version didn't work for me. I'm using Bacon Bits.

When downloading the new zip, the zip file contains 3 files

curcial-oj.kl

GScriptLite.apk

vision-tp-wake.sh

placing those 3 files onto the root of my sdcard, and then going into gscript lite, there's no .sh files there other than what scripts I previously had. There's the old vision-tp-wake.sh file, but I deleted that. I had to move the new vision-tp-wake.sh from the root of the sdcard to the gscript folder. I did all of this via USB connection to the computer, but I suppose you could have done it on the phone with any file manager. I made a new script, loaded the new vision-tp-wake.sh file that I had moved from the sdcard to the gscript location. When I run the script it tells me that gscript has SU access, but it doesn't do anything after that. The first version of this hot restarted, but this one doesn't do anything. I tried manually rebooting, it came back on into Clockworks Recovery, which I just choose reboot. Once back in, I sleep the screen with the power button, if I press the trackpad within a couple seconds after doing this, it comes back on. If I wait, say a minute or so, and push the trackpad, nothing. Is there a command line missing from this new vision-tp-wake.sh that would make it hot restart like the last one?
[G2 and Desire Z Android Development] aeidian:
It would seem that the dev forgot to comment out the line

echo eViL D's trackpad wake MOD

at the beginning of the script. Erasing that line rebooted my phone when I ran the script after I made that change, I guess you could use a # before it so it doesn't run that line.

Also these two lines are different, in the original script:

cp /sdcard/curcial-oj.kl /system/usr/keylayout/curcial-oj.kl

In the new script:

cp /sdcard/gscript/curcial-oj.kl /system/usr/keylayout/curcial-oj.kl

I take that to mean that it's trying to access the curcial-oj.kl file from those directories. Since the new zip contents would be placed on the root, the script would be unable to find that file unless it's moved to the gscript folder, I think.

edit: I still can't get it to work after these changes. Anyone have ideas?
[G2 and Desire Z Android Development] shiznt:
working fine for me...

Extracted the contents, moved them to a folder call "gscript" on the root of my SD Card, removed the first line from the script as you stated, ran it and its working!
[G2 and Desire Z Android Development] ratchetrizzo:
this mod is inconsistant.

If I lock the screen manually, the trackpad will wake it, if it locks by itself 60% of the time the trackpad won't wake up.

I'm using baconbits. I'm going to remove the curcial-oj.kl file.
[G2 and Desire Z Android Development] ihateusernames:
Yeah, I get the same thing. It is probably something I'm missing but oh well. It is more frustrating now because I hit trackpad and then have to go to the power button anyway. I will just wait for CM. I'm sure it will be in there eventually.
[G2 and Desire Z Android Development] ratchetrizzo:
I agree, I am sure CM will have it in there.

Still though, I really miss not being able to wake/sleep with the trackpad button like I could on the slide (the stock/rooted OTA update added that on the slide).

I shall patiently wait
[G2 and Desire Z Android Development] sinistersai4d4d:
ANy progress on this for people who don't really need CM?
[G2 and Desire Z Android Development] ZixacunX:
seriously edit your first post so people like me install this just to find out that the mod is inconsistent and irreversible.... This is seriously pissing me off now I can even get rid of the mod
[G2 and Desire Z Android Development] misteropinion:
You mean for people who don't yet realize that they need CM? :-)

CM brings things you didn't even know you needed.
[G2 and Desire Z Android Development] xdviper:
Very true.

Anyone figured out how to make this work with the stock rom with the baconbits kernel? I really want this mod.
[G2 and Desire Z Android Development] xomikronx:
I have baconbits also and this doesn't work for me either.....

It only works if you press it right after you power it off......after ten seconds it doesn't work anymore.
[G2 and Desire Z Android Development] KiNG OMaR:
Delete the crucial.ko file from your system... I don't remember the path exactly but it's in the script. Use something like root explorer, find and delete the file and then reboot your phone :)
[G2 and Desire Z Android Development] ch4sethe5un:
I did this exactly and it worked. You put the two files into a folder on the root called 'gscript'.

Load the script and edit out the first line and save.

Delete this(first line):

echo eViL D's trackpad wake MOD
[G2 and Desire Z Android Development] ZixacunX:
Deleting that file dont help
[G2 and Desire Z Android Development] sinistersai4d4d:
I have used CM on my other phones... I don't need it anymore. I'm pretty content with Froyo...

CM addressed so many glaring holes in Android that google has done a good job of patching.
[G2 and Desire Z Android Development] Inbisco:
So whats the consensus on this? Not compatible with bacon bits but ok with stock? If its not reversible is it gonna mess up future ROMs I may install?
[G2 and Desire Z Android Development] cyanogen:
Here's the simple kernel fix for this issue:

The debacle leading up to fixing it was rough, and it's pretty hilarious that the fix was this simple.

https://github.com/CyanogenMod/htc-kernel-vision/commit/56a85a8805252b08b22f8c199b21aa3444a73428
[G2 and Desire Z Android Development] kalipedia:
+1 on the request for how to implement the fix (please and thank you!).

I've been lurking here waiting for this to get resolved - I'm dying for trackpad wake, but not as much as I'm dying to keep my phone running smoothly - which it currently is thanks to rage root + bacon + setcpu profiles.
[G2 and Desire Z Android Development] sinistersai4d4d:
Yeah, I have BaconBits flashed but no CM.. can I flash this kernel on top of Bacon Bits?
[G2 and Desire Z Android Development] eViL D::
That's so awesome, that's why you're BA, brotha!

Guys, I'm sure the fix is going into the nightlies and eventually the RC's. If you wanna run get baconbits on the stock rom, I will pull the config and post the kernel with the fix.
[G2 and Desire Z Android Development] sinistersai4d4d:
Thanks! Looking forward to it..

I have bacon bits now AND I ran vision tp wake through gscript by accident.. long story.

Can I undo the tpwake? It works intermittently... I want the perm fix that's in the works.
[G2 and Desire Z Android Development] xdviper:
I can't seem to figure out if you have updated the original post. It says last edited on Nov 11, but then I see where it says that it should be cabable with bacon bits and then in red writing, that it isn't going to work....

Thanks dude, I am pateniently waiting for this to work on bacon bits.

Thanks
[G2 and Desire Z Android Development] eViL D::
OP is now updated with an updated cm-baconbits kernel with trackpad wake fix. I've also added one more speed step at 900mhz.
[G2 and Desire Z Android Development] mcjerica:
Great stuff, thanks! Just bought my G2 and this is a huge convenience fix.

I, too, had this working fine until baconbits. Looking forward to the update!

EDIT - spoke too soon...man you guys are fast. Confirmed fix. Thanks a lot for making us stock users happy.
[G2 and Desire Z Android Development] sinistersai4d4d:
So perm users that want bacon bits should flash the new zip? No gscript right?
[G2 and Desire Z Android Development] sinistersai4d4d:
Works awesome! Flashed with Rom manager..

Perm Rooted Froyo...

Overclocking kernel

LED notifications

Trackpade Wake

What more could you ask for!

Well since you asked lol....

Maybe some more trackpad functionality.. (double click, long press etc)
[G2 and Desire Z Android Development] eViL D::
You still need to run the script once.

Sent from my HTC Vision
[G2 and Desire Z Android Development] loomism2:
OK, I already have BaconBits .3 on my phone, but I REALLY want this TrackPad Wake feature. Which of those three files do I need, and do I just need to run gscript, just flash with Rom Manager, or both?
[G2 and Desire Z Android Development] androidtoy09:
So I extracted the “perma-root-tpwake-via-gscript-v.3.zip” package into the SD root dir.

Then I ran Gscript and allow SU permission but Gscript couldn’t see any .sh file on the SD. I’m stumped :confused:

Please update the OP instruction for people that already with BB 0.3 I’m little confused.

Thanks for the work
[G2 and Desire Z Android Development] Inbisco:
You have to move the vision-tp-wake.sh file to the gscript folder that is created after installing gscript. Then you'll be able to load it into gscript.

.... but for me once I try running the script it does nothing, just blank blue screen on gscript. Tried moving the curcial-oj.kl file around to gscript folder and just in /sdcard but nothing seems to work.
[G2 and Desire Z Android Development] Vandam500:
Yeah same here. I flashed the updated baconbits kernel. Installed gscript, placed the curcial-oj.kl file in /sdcard and ran gscript, added the script from /sdcard/gscript, hit run and nothing happens. Am I missing something here?
[G2 and Desire Z Android Development] androidtoy09:
Ok, same here. A nice blank blue screen :D
[G2 and Desire Z Android Development] sinistersai4d4d:
I just flashed the bacon bits kernel and it worked.
[G2 and Desire Z Android Development] Vandam500:
So you already ran the script before?
[G2 and Desire Z Android Development] sinistersai4d4d:
That could be why... I ran the script before this version of bacon bits was available..

All I know is it works... and I suggest checking out LED Me KNOW (app in market) for changing the notification glow around the trackpad... lets you change the speed of the pulse.
[G2 and Desire Z Android Development] eViL D::
Ok, I have updated the OP once again. For those with issues, please read it carefully. There's not a whole lot to do, but it's in the details.
[G2 and Desire Z Android Development] Inbisco:
Ok so i figured it out! I had to edit the script in gscript and delete the first line. I forgot everything it said but it did not include any commands, was just the title of the script. This is with both files (curcial and vision-tp-wake) in the gscript folder of course.

Ran the script again and got the hot reboot, everything works now.

Thanks eViL!
[G2 and Desire Z Android Development] eViL D::
Ah, you're right. I guess if I would have done this in ubuntu, I could have seen that. Zip is now "fixed" again...
[G2 and Desire Z Android Development] skiptomylou11:
So if I flashed the new kernel, do I need to run the new script? Because so far it doesn't work.
[G2 and Desire Z Android Development] sinistersai4d4d:
Yeah I guess so..... I ran the old script days ago... and it worked half assed (with bacon bits).. then I flashed the new kernel and it works all the time..

Guess you gotta run it at least once.
[G2 and Desire Z Android Development] androidtoy09:
I am probably the worst lucked one in here. I followed the OP instruction very carefully but still got a blank blue screen. I even deleted the blank line in the .sh file but no luck.

Here is what I did:

installed the updated BB 0.3 kernel (from the OP),

installed Gscript (from OP),

Extracted ‘vision-tp-wake.sh” and "curcial-oj.kl" into SD\Gscript folder

Loaded vision-tp-wake.sh (from OP)

Ran the Script from.

And bam and blank blue screen :(
[G2 and Desire Z Android Development] sinistersai4d4d:
Now reboot and see if it worked. Blank blue in gscript is good.

And make sure you ran the Gscript APK first.. using Astro file manager. It's in your gscript folder.
[G2 and Desire Z Android Development] skiptomylou11:
I loaded the tp-wake file and it says script added but nothing happens.