Hi,
Quick question here. I have edited the keylayout files and have succeeded in preventing the screen waking when I press the volume buttons. I tried to do the same for the camera button (defined in some layout files as key 46, as key 212 in others) with no success. I have deleted the wake and wake dropped from every camera assignment I could find, and unlike when I did that for the volume keys, the device still wakes on camera button press. This means it wakes pretty much everytime I put it back in its case, unless I'm extremely careful. I'm thinking maybe the camera wakes the screen due to something other than keylayout assignments? I checked in the camera settings and did not find anything there. Can someone point me to a solution for this?
Thanks!
popssracer said:
Hi,
Quick question here. I have edited the keylayout files and have succeeded in preventing the screen waking when I press the volume buttons. I tried to do the same for the camera button (defined in some layout files as key 46, as key 212 in others) with no success. I have deleted the wake and wake dropped from every camera assignment I could find, and unlike when I did that for the volume keys, the device still wakes on camera button press. This means it wakes pretty much everytime I put it back in its case, unless I'm extremely careful. I'm thinking maybe the camera wakes the screen due to something other than keylayout assignments? I checked in the camera settings and did not find anything there. Can someone point me to a solution for this?
Thanks!
Click to expand...
Click to collapse
What rom are you running? I am using cm 9 beta in the camera button does not wake the phone.
Sent from my SPH-D700 using xda premium
Related
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.
Been doing a bit of searching and it seems that peopple want the Opposite of what I'm looking for. I have the Epic 4g, and do NOT want the volume or camera buttons to wake the phone. Is there a work around for this?
Edit: Never mind, found the problem. It was my "NoLock" app from the market that was allowing the camera and volume keys to wake the phone.
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
So I started Searching around on how to do it. I found an application that claimed to be able to do it called "buttonremapper". Unfortunately this program only sees the Menu and back button. 2 buttons I do not wish to remap.
I did find a program called Keynrtracker on XDA that allows me to see the ID's of every button pressed including the Hardware buttons.
I researched a little more and found where the Key mapping files are located:
"system/usr/keylayout"
In here, there are many files that have to do with the keyboard. I found the one to modify is the:
"STMPE_keypad.kl"
this file has all the keys and I simply wanted to change the Search button from the keypad to bring up the Camera so I did this:
key 217 CAMERA WAKE_DROPPED
where previously 217 was:
key 217 SEARCH WAKE_DROPPED
"Wake dropped" is to tell the button to wake up if asleep or not.
Make sure you backup before have root and save. Reboot to load changes.
Well it now works I have a Hardware Camera button. One thing I noticed is I have to Hard press the button and hold not just click. Anyone know why? Added benefit is once the camera app is open, it also takes pictures by pressing on that same button.
JB
nice ^__^
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Nardholio said:
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Click to expand...
Click to collapse
Short press on its own does nothing. Pressing it with any other key does a normal search.
dudejb said:
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
JB
Click to expand...
Click to collapse
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
clockwork58 said:
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
Click to expand...
Click to collapse
Agreed 1 touch I also like the ability of knowing I can change any key on the keyboard like that useless "www.com"button.
Sent from my SAMSUNG-SGH-I927R using xda app-developers app
Are there any mods to disable the phone from waking-up when the home button is pressed?
I keep accidentally waking up my phone when I reach into my pocket, or when I'm cleaning the front screen.
I run AOSP ROM's, currently LiquidSmooth.
I know you can set the hardware keys to perform certain functions when the phone is awake, but not sure that you can disable a button for when the phone is asleep.
CZ Eddie said:
Are there any mods to disable the phone from waking-up when the home button is pressed?
I keep accidentally waking up my phone when I reach into my pocket, or when I'm cleaning the front screen.
I run AOSP ROM's, currently LiquidSmooth.
I know you can set the hardware keys to perform certain functions when the phone is awake, but not sure that you can disable a button for when the phone is asleep.
Click to expand...
Click to collapse
I just did this on stock rom, but it should still work on AOSP,
I'm assuming you're rooted, so go into your file manager app and navigate to /system/usr/keylayout and open sec_keys.kl as text.
On the line where it says
"key172 HOME WAKE"
Just delete the word wake and reboot, your home key should now function as it should minus the wake
Remember to backup for the worst case scenario
Jordayum said:
I just did this on stock rom, but it should still work on AOSP,
I'm assuming you're rooted, so go into your file manager app and navigate to /system/usr/keylayout and open sec_keys.kl as text.
On the line where it says
"key172 HOME WAKE"
Just delete the word wake and reboot, your home key should now function as it should minus the wake
Remember to backup for the worst case scenario
Click to expand...
Click to collapse
Thank you very much, Jordayum. That worked perfectly. I applied it to the volume up/down keys also. :good:
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