[Q]How to modify Home Button function in Sleep mode - Xperia Arc Q&A, Help & Troubleshooting

Is there a way to modify the function of the HOME BUTTON so it doesn't wake the phone?
My Arc S keeps on unlocking inside my pocket and takes a lot of snapshots and drains the battery.
And another thing, what variable to use to open RECENT APPS via a hardware key, for example the camera shutter key.
Thanks in advance.

To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.

Someguyfromhell said:
To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.
Click to expand...
Click to collapse
Would really much appreciate it, I've been tormented by this accidental unlock in pocket and drains my battery because of the camera.
Thanks in advance.
Oh, and about the other thing, is it possible? What if I substitute the RECENT APPS for the MENU BUTTON, would the 3dot option appear on some apps?

Someguyfromhell said:
Will post instructions later.
Click to expand...
Click to collapse
Take a file explorer, that can access root folders (ES File Explorer for example), make sure to go into settings and allow access and write to system folders.
Then go to /system/usr/keylayout, open the file pm8058_keypad.kl with ES File Explorer's default Note Editor (long press, Open As, Text), find this line
Code:
key 102 HOME WAKE_DROPPED
and change it to
Code:
key 102 HOME
So just remove the WAKE_DROPPED part.
Wrote it from my head, might have mistakes. Hopefully not.
EDIT: About the recent apps, this is coded somewhere in framework, I can't help you with that. However, the on-screen buttons do not show Menu button, it will only appear on the right side, if there is an app, which makes use of the Menu button and no other possibilities are available (depends on how the app is built).

Thanks a lot for the help sir.
It did the trick and the HOME BUTTON doesn't wake the phone from sleep.
Really much appreciated help.
Thanks again.

I have another question sir, How can I assign the WAKE function in some other button, let's say the VOLUME DOWN?
I tried replacing the WAKE with WAKE_DROPPED but it didn't work, I tried adding it without removing the WAKE and failed.
So is there a way for this?
Thanks again in advance sir.

This particular problem is the reason I use a lock pattern, not because of the security of my phone, but because of the many photos my pocket takes. However, it would be nice if we could wake the phone using the volume rockers, just not to abuse the power button. I also tried to place WAKE_DROPPED on such buttons with no success, help pretty please
Actually I was looking for a mod to use the proximity sensor to know when it is in the pocket, and not allowing the menu button to wake the handset, but this is way better, thanks pal :highfive:
-----------------------------------
Edit:
I found out that the volume rockers actually work well waking the screen, but, you have to select in security>Screen Lock>None
In such case the volume rockers will work to wake the phone (no need to add anything to the VOLUME DOWN line, as it already says WAKE)
Now the question is how to change it to do it while having slide, pattern or password as screen lock

Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.

ajaydsantos said:
Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.
Click to expand...
Click to collapse
It is already on some custom ROMs.
CyanogenMod/FXP based and MIUI ROMs, if I am not mistaken.

But I'm using Zelly Cream 2.5 and it doesn't have that. Hope that it can be ported to this rom.
How do i do it if it's possible? I don't have the know how on such programming/language, will someone help me.

Hi, I have my xperia arc s also with the same problem with you... i actually downloaded root explorer and i can navigate the system data/files but i cannot modify the files mentioned the HOME WAKE_DROPPED... because my unit is not a rooted one...
Please help me to disable the home button by not rooting my phone... Can you make an APK file to disable this function? please please help

Related

[Request] buttons lock

if your ever playing any games and you accidently hit home or any other button then you know what im talking about. since the buttons are touch sensitive you may get some accidental clicks. i wish there was a way you could lock the bottom row of buttons, not sure if its possible though. maybe by combining two of the physical buttons (such as volume up and down) we could lock the bottom row until we need to use those keys again and then we could unlock in a similar fashion. is there anyway possible someone could develop this?
+1 for this. I like the idea of it being toggled with volume buttons, or maybe long pressing the power button and adding it to that menu. It would have to be included in a rom though, you cant give that power to just any app. or you'll never be able to close it without rebooting.
every time i watch a video a hit the search button by mistake. i really wish someone would do this. also it would be better if you hold volume up and power buttons.
Ya I actually just had it happen again with gvba. Note: it really sucks if you accidently hit the back button. Lock please!
Sent from my PC36100 using XDA App

[Q]uestion - Change wake phone button?

I promise - I watched the video and searched the hell out of this before posting...
can you change the wake phone function from the power button to, say, the volume keys and/or the home soft button?
thanks in advance. please don't slaughter me if this is posted elsewhere!
hobakill said:
I promise - I watched the video and searched the hell out of this before posting...
can you change the wake phone function from the power button to, say, the volume keys and/or the home soft button?
thanks in advance. please don't slaughter me if this is posted elsewhere!
Click to expand...
Click to collapse
Idk where it is at in the samsung devices but usually you can change the key layout by editing user-key layout you can also remap the search button to any app.
Killbynature said:
Idk where it is at in the samsung devices but usually you can change the key layout by editing user-key layout you can also remap the search button to any app.
Click to expand...
Click to collapse
i can see how that would be useful but i couldn't find it and moreover, i think when the phone goes into sleep-mode, those soft keys are disabled. i guess i am looking for a way to either wake the phone with the volume keys - or - somehow enable those soft buttons so i can hit the home one and wake up my phone.
hobakill said:
i can see how that would be useful but i couldn't find it and moreover, i think when the phone goes into sleep-mode, those soft keys are disabled. i guess i am looking for a way to either wake the phone with the volume keys - or - somehow enable those soft buttons so i can hit the home one and wake up my phone.
Click to expand...
Click to collapse
You would have to give the keys a set wake option. I can do it for htc devices but i don't know much about samsung devices. You would want a volume rocker wake I'm guessing or menu and back wake right. You can also use an app called widget locker it enables you to wake the device from volume rocker etc.
thanks again for the thoughts.
i think i'll patiently wait a few weeks for people smarter than me to start writing apps specific to this phone.
have a great day!
I think this will come in handy since some of us don't want to wear out the power button but be able to use both. The only problem I might see using the volume button is when you are listening to something with your headphones. Would pressing the volume button be changing the volume or waking the phone? hahaha..i'm sure there will be options.
The latest version of Juggernaut has that as an option, if you're into flashing custom roms.
Sent from my SGH-T989 using xda premium
skadude66 said:
The latest version of Juggernaut has that as an option, if you're into flashing custom roms.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
+1
That is correct, Juggernaut 2.6 has this feature and flashing is pretty simple.
i use this option on Juggernaut too. its great cuz i cant always reach the power button even tho i have huge hands.
which ROM except Juggernaut has this option, I mean waking phone up by sound button?
Darkside's Dewizzed does. and it's a GREAT rom.
I actually hate the 'feature'. I listen to music lots with my phone, and having to double tap the volume rocker to adjust volume sucks, and then it turns on the screen. Since half the time it's in my pocket and i'm pushing buttons through that... long story short i've pocket texted a couple times.
/rant.
Yes, and you can do this without rooting and without installing a custom rom by using the application widget locker, which has an option to wake the phone using the volume keys. Otherwise several roms support this such as the Darkside Dewizzed rom.
Epic bump, but Josh from mobile tech videos gave my phone a solution like this when my phone had an internal shortage. He set the volume+ button as the wake button and it did involve the key layout as someone in this thread had said earlier. Ill be back with a link to an xda thread that had the same idea but for a different device.
I bump this because even though he changed the button layout, I completely forgot about it and flashed a different rom :S now I seek a solution.
samsung s 2 wake up without power button
hobakill said:
thanks again for the thoughts.
i think i'll patiently wait a few weeks for people smarter than me to start writing apps specific to this phone.
have a great day!
Click to expand...
Click to collapse
you can download an app like dragon and enable wake up phrase and set lock screen to none the wake up phrase you choose will wake up device so you can access apps with your voice
galaxyst said:
which ROM except Juggernaut has this option, I mean waking phone up by sound button?
Click to expand...
Click to collapse
ParanoidAndroid also has this function. I already had my power button fail once and had to replace it I now have the option of using the volume buttons or power button to wake the phone.

[HowTo] Disable home button screen wake

*** I AM NOT TAKING ANY CREDIT FOR THIS, I JUST HAPPENED TO GOOGLE IT AND FOUND IT USEFUL AND WANT TO SHARE***
I found it on another forum posted by a guy name ERIC.
**Update (8/19)** THIS MOD SHOULD WORK FOR ALL ROMS! I did it both on AOKP and stock. Gonna look into what else can be edited and post results
If you're having trouble with your phone waking due to the home button, this is the mod for you.
I work in a restaurant and i keep finding that my phone gets quite warm in my pocket because
the screen comes on (it also likes taking screen shots, and sometimes even opens the camera).
Hope this is helpful for you guys.
HERE WE GO!
ONLY MODIFY THE FILE SPECIFIED!
OR PLAY AROUND AT YOUR OWN RISK AS NOTHING OTHER THAN MENTIONED FILE IS TESTED....
open root explorer
navigate to : system/usr/keylayout
now press the mount r/w button near the top of screen to enable read and write permissions
scroll down to: sec_keys.kl
press and hold until menu pops up, select: Open in Text Editor
locate line: key 172 HOME WAKE
tap behind the word WAKE and delete it so you see: key 172 HOME
press menu and select: Save and Exit
now press the button at the top of the screen to disable read and write permissions: Mount R/O
(once pressed should now read : Mount R/W again.
Exit root explorer
Reboot your phone
WALA, no more warm pocket and random screenshots
How about to add screen off in addition to screen wake while in the lockscreen? Thank you.
Sent from my SGH-T999 using Tapatalk 2
Thx! Its worked I've never liked that option...
Sent from my SGH-T999 using xda premium
thanx given, always bugged me.
Thx man. Appreciate the share.
Sent from my SGH-T999 using Tapatalk 2
Thanks for this. By the way does anyone know how to volume button wake?
Edit.
Search the file and found 115 114 for volume wake in there but it.does.not work
Sent from my SGH-T999 using xda app-developers app
The mod worked great, but I miss using the home button to unlock. My Otterbox Defender case prevents the pocket push so I un did it lol. Thx for the find!
Sent from my SGH-T999 using Tapatalk 2
I don't found it,,
I am using Jelly Bean rom right now and I missed the home button just turns on screen. I think in JB whenever I Push home button it directly goes to home. I mean if you gave a break when reading something when You push home button the app you working on is not active anymore but it goes to home instead. Do you guys have a fix for that?
thiagomme said:
How about to add screen off in addition to screen wake while in the lockscreen? Thank you.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
I'd like to have that too. I had it on my previous phone and liked it.
Edit: Interesting, this is the contents of my whole file, and yet only the home and power buttons do wake up the phone.
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 172 HOME WAKE
key 116 POWER WAKE
Hi, on my galaxy note 2, I don't have the seckeys.kl file. What's up with that?
Its a galaxy note 2, this mod is for the s3
This works great! Thank you for finding this mod.
I'm using on-screen navbar buttons. The home button is the ugly thing Samsung has to put it there.
S-Beamed from my GS3 via xda premium
as_usual150 said:
I am using Jelly Bean rom right now and I missed the home button just turns on screen. I think in JB whenever I Push home button it directly goes to home. I mean if you gave a break when reading something when You push home button the app you working on is not active anymore but it goes to home instead. Do you guys have a fix for that?
Click to expand...
Click to collapse
I am also looking for a fix to this problem!
stu5797 said:
I am also looking for a fix to this problem!
Click to expand...
Click to collapse
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
Interesting. ..can you give more detail or where to change?
arctic84 said:
*** I AM NOT TAKING ANY CREDIT FOR THIS, I JUST HAPPENED TO GOOGLE IT AND FOUND IT USEFUL AND WANT TO SHARE***
I found it on another forum posted by a guy name ERIC.
**Update (8/19)** THIS MOD SHOULD WORK FOR ALL ROMS! I did it both on AOKP and stock. Gonna look into what else can be edited and post results
If you're having trouble with your phone waking due to the home button, this is the mod for you.
I work in a restaurant and i keep finding that my phone gets quite warm in my pocket because
the screen comes on (it also likes taking screen shots, and sometimes even opens the camera).
Hope this is helpful for you guys.
HERE WE GO!
ONLY MODIFY THE FILE SPECIFIED!
OR PLAY AROUND AT YOUR OWN RISK AS NOTHING OTHER THAN MENTIONED FILE IS TESTED....
open root explorer
navigate to : system/usr/keylayout
now press the mount r/w button near the top of screen to enable read and write permissions
scroll down to: sec_keys.kl
press and hold until menu pops up, select: Open in Text Editor
locate line: key 172 HOME WAKE
tap behind the word WAKE and delete it so you see: key 172 HOME
press menu and select: Save and Exit
now press the button at the top of the screen to disable read and write permissions: Mount R/O
(once pressed should now read : Mount R/W again.
Exit root explorer
Reboot your phone
WALA, no more warm pocket and random screenshots
Click to expand...
Click to collapse
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
jconway1968 said:
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
Click to expand...
Click to collapse
same problem, it fails to turn on the phone.
Once I do this mod it works but now everytime I push the home button, the phone vibrates and makes the touch screen sounds. Anyone know a solution so this one home button does not vibrate or make a sound when pressed besides turning off vibrations and sounds for the whole phone?
klau1 said:
same problem, it fails to turn on the phone.
Click to expand...
Click to collapse
jconway1968 said:
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
Click to expand...
Click to collapse
Restart the phone.
Sent from my GT-I9300 using xda premium

[Q] Hold Home button to use Power/Volume functions?

Hello,
I'm using the International GT-N7100 Note II. It's rooted.
I find myself frequently touching the volume rocker or the Power button while using the phone, either when type-tapping or playing games, which gets annoying.
Have there been any mods or workarounds to, say, hold the Home button to access the functions of the volume and power buttons? At least, I can make sure I don't accidentally press those buttons when I do not intend to, and I also can make sure that I'm actually accessing those said functions when I want to, by pressing the Home button.
I prefer a mod or to edit the system files, if possible, rather than install an app for it, like the Volume Locker app.
Thank you for any information.
hey, if im not mistake,you could set 'hold menu button' activites by using 'simplistic control' donation version'
Thank you. But is there a method to directly edit a settings file just to add this behaviour? (i.e. hold the menu button to access the power button and volume rocker, and leave these untouched while in camera mode?) Thanks.
amgreenhawk said:
Thank you. But is there a method to directly edit a settings file just to add this behaviour? (i.e. hold the menu button to access the power button and volume rocker, and leave these untouched while in camera mode?) Thanks.
Click to expand...
Click to collapse
i dont think so,or maybe there s but i dunno about it,lol..sorry.

Replaced Screen - Menu Button Issues

I have replaced the screen on my Optimus G (E975k, Telstra) and the menu button works whilst the back is off, but as soon as I put the back on, the menu button doesn't work... super annoying!
I'm not sure if my clumsy attempts to replace the screen have damaged the synaptics ribbon and the cover going on puts pressure in the right spot to stop the ribbon cable making the connection for that button or what, but I'm looking for help getting around this.
Is there a way to make longpress on back arrow to open the menu, if so then 90% of my problems are solved, I can force the onscreen nav buttons to show up and that is great but it seems like a waste of space if I can work around it with a back button long press... I tried a few key remapping apps but they do not seem to be able to do what I want to do... if there is a custom rom that would support this then I would just flash that I guess.
Anyway, help from anyone would be appreciated
Thanks
EDIT: Okay so I edited /system/usr/keylayout/keypad_8064.kl
changed
Key 115 VOLUME UP
to
Key 115 MENU VIRTUAL
This allows me to use the volume up button as the menu button, so I'm out of trouble, but I would still like to map back button long press to the duty rather than lose my volume up button.
Hey man, if ur on stock i think u can use xposed modules for long press behaviors and custom button actions.. Usr gravity box etc.. If u like custom rom, many offer custom button actions
Sent from my Optimus G using Tapatalk

Categories

Resources