FORUMS
Post Reply Subscribe to Thread Email Thread

Disable Hard Reboot

18th June 2014, 07:37 PM |#1  
GreatApo's Avatar
OP Senior Member
Thanks Meter: 131
 
Donate to Me
More
Hello everyone,

I have a X8 with a broken power button, which causes reboots when i click the home button because on the Hard reboot feature.
Can we modify the kernel to change the camera button to power button? Or disable the reboot feature (power+home buttons)?

Point me to the right direction if anyone knows anything (i was not lucky searching kernel sources)

Thank you in advance
 
 
19th June 2014, 02:02 PM |#2  
pilu1978's Avatar
Senior Member
Thanks Meter: 1,678
 
More
If you want to disable the keyboard reset, just revert this commit: https://github.com/nobodyAtall/nAa-k...49775e8609ebfc

or:

just replace the power button with camera button for the keyboard reset in the arch/arm/mach-msm/board-delta.c file

Code:
static struct keyreset_platform_data shakira_reset_keys_pdata = {
	.keys_up = shakira_reset_keys_up,
	.keys_down = {
		KEY_POWER,
		KEY_HOME,
		0
	},
};
Just change the KEY_POWER to KEY_CAMERA (or KEY_BACK, KEY_MENU, KEY_VOLUMEUP, KEY_VOLUMEDOWN)
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes