So this day's i had a little problem with the power button not working very good, i got scared because some people told me the power button is beginning to die....
So i begin to search for a method to unlock the phone by camera button or volume up-down, i read here that some people use the sensor but i din't like it. I begin to make modf. to android.policy.jar and other tweaks but not even one worked, but i found a simple solution to make it work.
You need to use a file manager and edit 1 file from /system/usr/keylayout.
The file is surf_keypad.kl, open surf_keypad.kl with notepad and put this line WAKE_DROPPED to:
THIS IS FOR CAMERA BUTTON
key 59 FOCUS
key 212 CAMERA
key 59 FOCUS WAKE_DROPPED
key 212 CAMERA WAKE_DROPPED
THIS IS FOR VOLUME BUTTONS
If you want only VOLUME_UP to unlock phone put WAKE_DROPPED to VOLUME_UP if you want VOLUME_DOWN to work put WAKE_DROPPED only there.
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
And you need also a widget to put on the desktop to lock the phone after you modf the file you need to reboot sow it can take effect.
This is only for DSC1.0 android.policy.jar modf by me with this tutorial, the buttons volume up and down should work flawless with surf_keypad.kl modification,when using camera you need to push 2 times to wake from deep sleep.
I tested this only on DSC.1.0 this is the rom i'm running now.
p.s. sorry for my english.
Widget Locker is what _nop_ is using and it's working flawless with camera button, you need also to modf the surf_keypad without need to change android.policy.jar