after the 2.2 upgrade I noticed my phone turning itself on constantly whenever I put it in it's case. I then realized a few days ago that the Home key now activated the phone, which is horrible for exactly the the reason I described.
I read that one can change the cdma_shadow-keaypad.kl file and remove the WAKE entry for the Home key.
After getting root access to the phone I did just that but even though it worked for others it didn't work for me.
I dug deeper and found out that the default key mapping file is qwerty.kl also in the /system/usr/keaylayout folder, so I made a backup and changed that file as well. Now my hardware keys do not work anymore (except for the main power key) and even after restoring the backup qwerty.kl file it's not working. I noticed that the file had cryptic keys in front of the first characters when doing a cat with AGB Shell and the other .kl files didn't so I saved the file in ansi as opposed to utf-8 (even though I read that the .kl files are supposedly be stored in utf-8 format...still no dice.
I am at the end of my rope and would really appreciate if someone would know how to fix this. I write software for a living but in the MS world, Linux is not my forte (apparently)... does the file need to be remapped or remounted? Any ideas?