Remapping power key because it is broken. - AT&T Samsung Galaxy S II SGH-I777

My device's power button is broken. I'm able to get it powered on and onto the homescreen. The problem is I cannot unlock my screen unless I plug it in. I want to remap my volume up+volume down keys to "power" or "unlock screen". My device is rooted.
How can I accomplish this? Thank you.
Also, does anyone know why my power button would randomly stop working? I didn't install any new software. And it doesn't seem physically broken.

brehon1104 said:
My device's power button is broken. I'm able to get it powered on and onto the homescreen. The problem is I cannot unlock my screen unless I plug it in. I want to remap my volume up+volume down keys to "power" or "unlock screen". My device is rooted.
How can I accomplish this? Thank you.
Also, does anyone know why my power button would randomly stop working? I didn't install any new software. And it doesn't seem physically broken.
Click to expand...
Click to collapse
Update:
The keymap file for Cyanogen is in /system/usr/keylayout/qwerty.kl. I'm using root explorer and text editor to view it. Apparently WAKE_DROPPED means wake up the screen and WAKE means do not. I changed volume down to WAKE_DROPPED and rebooted but it didn't do anything.

First, keep it to one thread. Second, there's an option under 'Settings -> Display' to wake the screen with the volume rocker. As for the Power button failing, I'd say warranty or if you're feeling handy, there's the DIY option. idk where you'd find parts though.

SquidLord said:
First, keep it to one thread. Second, there's an option under 'Settings -> Display' to wake the screen with the volume rocker. As for the Power button failing, I'd say warranty or if you're feeling handy, there's the DIY option. idk where you'd find parts though.
Click to expand...
Click to collapse
Thanks a lot. The problem was I'm not able to wake my screen. Thanks so much! About the DIY: nothing feels physically broken. I'd probably end up replacing a ton of parts to no avail.
edit: is it possible that any type of software could change this? I'm not an expert on this stuff. Could it possibly be caused by the Kernal or something?
note: I've recently updated to cyanogenmod jelly bean. 4.1.1. My power was broken before that, i was actually upgrading to see if it would remedy the problem.
edit: it seems that the screen doesn't wake when using the volume rocker after a certain period of inactivity. like 1 minute.

brehon1104 said:
Thanks a lot. The problem was I'm not able to wake my screen. Thanks so much! About the DIY: nothing feels physically broken. I'd probably end up replacing a ton of parts to no avail.
Click to expand...
Click to collapse
If you run Ktoonsez Siyah 4.3.3 kernel there is a swipe to wake option in extweaks - no need for power key to wake screen.

dandrumheller said:
If you run Ktoonsez Siyah 4.3.3 kernel there is a swipe to wake option in extweaks - no need for power key to wake screen.
Click to expand...
Click to collapse
Is that kernal compatible with cyanogenmod 4.1.1? How can I find out things like this?
Also, How can i circumvent my broken power button in CWM? I can't select any options.

brehon1104 said:
Is that kernal compatible with cyanogenmod 4.1.1? How can I find out things like this?
Also, How can i circumvent my broken power button in CWM? I can't select any options.
Click to expand...
Click to collapse
Yes, use extweaks app from the play store to enable swipe to wake.

gorgy76 said:
Yes, use extweaks app from the play store to enable swipe to wake.
Click to expand...
Click to collapse
That doesn't help in cwm
Sent from Team Pirate! Using Tapatalk 2

Nick281051 said:
That doesn't help in cwm
Sent from Team Pirate! Using Tapatalk 2
Click to expand...
Click to collapse
never messed with mobile Odin...could the op flash siyah zimage with it? then he'd have touch recovery as well.
Sent from my SGH-I777 using Tapatalk 2

dandrumheller said:
never messed with mobile Odin...could the op flash siyah zimage with it? then he'd have touch recovery as well.
Sent from my SGH-I777 using Tapatalk 2
Click to expand...
Click to collapse
Yep he could definitely do that.
Sent from Team Pirate! Using Tapatalk 2

Closing.. please use your original thread (no double posting).

Related

[Q] screen asleep during call

been having a problem with the 2.2 roms. I install them and the screen will go to sleep during a call, and the only way to wake it up is to either hang up the call or plug in the charging cord. The phone will wake normal when i flash back to a 2.1 rom. Does anyone have any ideas how to fix on froyo roms.
Enable trackball to wakeup under cyanogen settings or something like that.
press send + vol up (or vol down, believe it's vol up) to wake up phone. mods please move to q&a thread. thanks and hope this helps.
mjb413 said:
press send + vol up (or vol down, believe it's vol up) to wake up phone. mods please move to q&a thread. thanks and hope this helps.
Click to expand...
Click to collapse
You almost had it.
Press and hold vol+, then while holding that, press and release the send button. That will wake the screen without disturbing the call.
push this to system/usr/keylayout
http://www.multiupload.com/AFKG4K2IBB
sorry 5thagent. remembered seeing the instructions somewhere around. thanks for the correction! :-( i tried. I had forgotten about the other fix.
was just about to post on this today. thx for the infoz
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
I agree that should normally work,but at least for me when using speaker phone I can't just move the phone to wake it. using trackball wake/unlock works fine though
Sent from my FroShedYo.V6 using XDA App
tazzpatriot said:
push this to system/usr/keylayout
http://www.multiupload.com/AFKG4K2IBB
Click to expand...
Click to collapse
What is that and what does it do?
How hard is it to program the ROM so that the screen turns back on when you touch it?
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
this is how i test my roms callin 226 and it alwayz works
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
That works but if you have your phone on the table in front of you w/speakerphone enabled while some robot is giving you 5 minutes of number equations, the phone will timeout. When the trackball wake option is selected in CyanogenMod settings/input settings, it will wake the device after you've manually turned the phone off but it doesn't wake the screen after it's timed out. I have been trying to use tasker as a way around this problem but I haven't been able to successfully write a working profile
Blma617 said:
That works but if you have your phone on the table in front of you w/speakerphone enabled while some robot is giving you 5 minutes of number equations, the phone will timeout. When the trackball wake option is selected in CyanogenMod settings/input settings, it will wake the device after you've manually turned the phone off but it doesn't wake the screen after it's timed out. I have been trying to use tasker as a way around this problem but I haven't been able to successfully write a working profile
Click to expand...
Click to collapse
just use the vol up + send?
playpolo4life said:
just use the vol up + send?
Click to expand...
Click to collapse
I was never aware of this method.. Thanks dude
Sent from my FroShedYo V10-ERIS using XDA App
playpolo4life said:
just use the vol up + send?
Click to expand...
Click to collapse
I'm bumping this thread because I have the same problem but my volume rocker is broken/missing so it is very difficult for me to press vol up/down. I need to use a pen tip or needle, which I usually do not have readily available.
Is there any other option out there for me? Why can't I use the trackball or just the Send key????????????
If anyone can help, I would greatly appreciate it.
FYI, I'm running GSB 1.4 (CM-7 Gingerbread based ROM).
edit: Some users on the CM forums said that pressing the Menu or Home keys worked, but that doesn't work for me. They were on CM6, so maybe that doesn't work in CM7, I don't know.
CrayzeeCarl said:
I'm bumping this thread because I have the same problem but my volume rocker is broken/missing so it is very difficult for me to press vol up/down. I need to use a pen tip or needle, which I usually do not have readily available.
Is there any other option out there for me? Why can't I use the trackball or just the Send key????????????
If anyone can help, I would greatly appreciate it.
FYI, I'm running GSB 1.4 (CM-7 Gingerbread based ROM).
edit: Some users on the CM forums said that pressing the Menu or Home keys worked, but that doesn't work for me. They were on CM6, so maybe that doesn't work in CM7, I don't know.
Click to expand...
Click to collapse
I seem to recall that in CM settings, you can configure what buttons can wake the phone up. You should be able to set it to the trackball.

Cannot screenshot when anymore. Updated to ICS.

When I updated to ICS the other day, I started having problems. First of all, my phone is laggy as a mtf. When I try to text, the inputs are slower than I can type and programs take awhile to load. I also cannot screenshot anymore. I tried to home + power button and volume down + power button, but nothing works. I tried restoring my phone in hopes that it would remedy the problem, but it did not help. Any help would be greatly appreciated.
NguyenAdam said:
When I updated to ICS the other day, I started having problems. First of all, my phone is laggy as a mtf. When I try to text, the inputs are slower than I can type and programs take awhile to load. I also cannot screenshot anymore. I tried to home + power button and volume down + power button, but nothing works. I tried restoring my phone in hopes that it would remedy the problem, but it did not help. Any help would be greatly appreciated.
Click to expand...
Click to collapse
To fix your lagging phone, put a custom ROM on it.
Screenshot, IDK. Vol down and power has always worked. Your holding it wrong?
Try holding the volume down button and power for a second or so
Sent from my SGH-I777 using Tapatalk 2
Nothing works. :/ Shouldn't it not be laggy at all?
NguyenAdam said:
Nothing works. :/ Shouldn't it not be laggy at all?
Click to expand...
Click to collapse
Cant really do much with a stock phone.
factory reset in recovery.
No it shouldnt be laggy. but its at&t.
NguyenAdam said:
Nothing works. :/ Shouldn't it not be laggy at all?
Click to expand...
Click to collapse
Go to settings > developer options > transition animation scale> adjust.
The smaller the number the faster
1)Yes the screen shot capability still works. Its user error in your part. 2)what do u mean "it shouldn't be laggy at all" what are u expecting from a bloated carrier release?
Phalanx7621 said:
1)Yes the screen shot capability still works. Its user error in your part. 2)what do u mean "it shouldn't be laggy at all" what are u expecting from a bloated carrier release?
Click to expand...
Click to collapse
No, my screenshots do not work. I have tried all methods and it does not work.
Is there anyway that I can downgrade to GB?
NguyenAdam said:
No, my screenshots do not work. I have tried all methods and it does not work.
Is there anyway that I can downgrade to GB?
Click to expand...
Click to collapse
Honestly you're the only person who hasn't been able to do it so that leads us to believe it is user error
Sent from my SGH-I777 using Tapatalk 2
Shouldn't it be "power button + home button"?
votinh said:
Shouldn't it be "power button + home button"?
Click to expand...
Click to collapse
It was when I was on GB, but supposedly it has changed to Volume Down + Power Button. (Does not work for me.)
After update from GB to Ics via kies... factory reset your phone... everything would be fine...
Sent from my SGH-I777 using xda premium
If it's that much of an issue, there are apps in the play store.
Clay
Sent from my PINK GS2 using xda app
nopain9nogain said:
After update from GB to Ics via kies... factory reset your phone... everything would be fine...
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
So you want to potentially brick his phone? How nice of you!
Sent from my SGH-I777 using Tapatalk 2
votinh said:
Shouldn't it be "power button + home button"?
Click to expand...
Click to collapse
no. All ics ROMs use the current Google standard of vol down and power, afaik. Power and home was a Sammy convention on GB
Sent from my SGH-I777 using Tapatalk 2
Did you try pressing both the power and home buttons at the same time and holding them in for a good four or five seconds? It may take a bit longer to activate since you are having performance issues.
The key is to HOLD the vol down + power AT SAME time... Ultimatum is home + power only ICS ROM I have found that on.....
Sent from my Nexus 7
You have a lot of issues and even on a stock room just save your texts through SMS backup and restore get a copy of titanium backup sync your accounts backup your contacts to your sim, pull out your SD card and do a factory reset clean install of ics then load it back up test it before you re install all your apps and stuff to be sure its correct. Even something as simple as flashing and update can and will have issues that can usually be fixed just starting over also since your on stock save how you have your apps set up I hate when they arnt organized. Screen shot it will work unrooted I think
Sent from my SGH-I777 using xda premium
I have had the same problem many times. In my case, it was caused by the fact that I press power first and volume down next. That works most of the time, but sometimes it just leads to lowering the volume.
When I press both buttons exactly the same time, it works always. (For me at least)

[Q] Volume rocker to wake

Im looking for a way to add 'Volume rocker to wake' function to my HOX+ its rooted and running AR 6.2. I know it might need some coding which I have very little experiance with so if it involves that a "Fools" Guide to do it would be greatly appreciated.
mackay508 said:
Im looking for a way to add 'Volume rocker to wake' function to my HOX+ its rooted and running AR 6.2. I know it might need some coding which I have very little experiance with so if it involves that a "Fools" Guide to do it would be greatly appreciated.
Click to expand...
Click to collapse
Both Viper roms have this option inside tweaks, you can wake phone using VOL UP and/or turn it off using VOL DOWN..
ivicask said:
Both Viper roms have this option inside tweaks, you can wake phone using VOL UP and/or turn it off using VOL DOWN..
Click to expand...
Click to collapse
There is obviously a bug by using the ViperX+V1.0 ROM with the Viper Kernel...
After a few seconds, the ROM doesn't react on the volume rockers, they seem to be deactivated at some point..
Hurricanez said:
There is obviously a bug by using the ViperX+V1.0 ROM with the Viper Kernel...
After a few seconds, the ROM doesn't react on the volume rockers, they seem to be deactivated at some point..
Click to expand...
Click to collapse
Hm, gonna activate option and see if it happens, but so far i didint notice problem
ivicask said:
Hm, gonna activate option and see if it happens, but so far i didint notice problem
Click to expand...
Click to collapse
Okay, the problem has something to do with Titanium Backup Pro!
Make sure you dont freeze HTC Media Link and Personalization!
I did it for hiding the Buttons in the App-Menu.
After rebooting my HOX+ the whole Sense Workspace was gone - nothing showed up, even after a few reboots.
Then I reactivated all freezed Applications in Titanium Backup Pro.
Now the volume rockers work proper for wakeup!
To threadstarter:
The Venom team done awesome work!
Get the ViperX+ ROM and re love your phone
just amazing!
Thanks.

Volume wake on official 4.1.2

Hi, I'm on the official Samsung update and wanted to know if there is an app or Something that would allow the volume rockers to wake the phone instead of the power button. Searched the play store but all I could find was the "proximity sensor" wake apps but I find they drain too much battery.
Have you guys found any tweaks??
FOUND flashable zip!
found a thread with a flashable zip, do you know if it works with our phone? http://forum.xda-developers.com/showthread.php?t=1987669
If a mod isn't for your phone you stand a good chance of borking your phone.
If you don't mind me asking, what's so great about volume wake?
its just to prevent damaging the power button from over use, if im able to wake using volume rockers it evens the button usage
rangercaptain said:
If a mod isn't for your phone you stand a good chance of borking your phone.
If you don't mind me asking, what's so great about volume wake?
Click to expand...
Click to collapse
For those with the sticky power button issue that'll cause boot loops.
Have you found a solution yet? I tried to modify the key layout files and set all Volume Up/Down to wake, no luck.
Thanks
boyboy1222222222222222 said:
Hi, I'm on the official Samsung update and wanted to know if there is an app or Something that would allow the volume rockers to wake the phone instead of the power button. Searched the play store but all I could find was the "proximity sensor" wake apps but I find they drain too much battery.
Have you guys found any tweaks??
Click to expand...
Click to collapse
hey im using an app called "tap tap app", i wake using the proximity sensor and you turn the screen off by using a widget button. not exactly what i was looking for but its been doing a good job of reducing my power button usage.
Doesn't work for me, even after I select "invert sensor". Anyway, thanks
boyboy1222222222222222 said:
hey im using an app called "tap tap app", i wake using the proximity sensor and you turn the screen off by using a widget button. not exactly what i was looking for but its been doing a good job of reducing my power button usage.
Click to expand...
Click to collapse
rangercaptain said:
If a mod isn't for your phone you stand a good chance of borking your phone.
If you don't mind me asking, what's so great about volume wake?
Click to expand...
Click to collapse
expertune said:
Doesn't work for me, even after I select "invert sensor". Anyway, thanks
Click to expand...
Click to collapse
its working for me without the "inverted" selected. NOTE:you have to do the "unlocking training"

[Q] Problem with menu button

I am on resurrection rom 5.0.5 (kitkat 4.2.2)
Everything was working fine but suddenly the menu button has gone all crazy. Whenever I hit the menu button, it sends me to the screen displaying get google now. I tried reflashing rom and reflashing gapps. but no use. Can anyone help me sort out this problem?
ar.anmolrawat said:
I am on resurrection rom 5.0.5 (kitkat 4.2.2)
Everything was working fine but suddenly the menu button has gone all crazy. Whenever I hit the menu button, it sends me to the screen displaying get google now. I tried reflashing rom and reflashing gapps. but no use. Can anyone help me sort out this problem?
Click to expand...
Click to collapse
Try using CyanogenMod 11, SlimKat, OmniRom, Cyanfox, BeeanStalk, or any other KitKat based ROM just to make sure whether Resurrection Remix was causing the weird problem. If using a new ROM didn't solve your issue and you feel that the menu button is damaged, simply use a rom which supports a Navigation Bar to replace your hardware Navigation buttons. Good luck pal
are you sure ypu are not long pressing the button ? check you settings under buttons if you have by mistake set any custom actions for your buttons .. all the best and happy flashing
Forget about software tweaks that replace the physical buttons, These virtual buttons are only ever going to be any use as a backup for physical buttons...and then ONLY if you have a fully functional phone......
Get the button replaced......
If you end up in a bootloop, you'll need to access recovery or download to sort it out......a "virtual" button ain't gonna help at that point............
Sent from my Markox powered KitKatted S2
keithross39 said:
Forget about software tweaks that replace the physical buttons, These virtual buttons are only ever going to be any use as a backup for physical buttons...and then ONLY if you have a fully functional phone......
Get the button replaced......
If you end up in a bootloop, you'll need to access recovery or download to sort it out......a "virtual" button ain't gonna help at that point............
Sent from my Markox powered KitKatted S2
Click to expand...
Click to collapse
Are we talking about the touchscreen menu button or the physical home button?
robneymcplum said:
Are we talking about the touchscreen menu button or the physical home button?
Click to expand...
Click to collapse
Looks like this time I read it wrong.....
I think he's on about the capacitive touch button on the bottom left of the phone......NOT needed for recovery or download modes......
Sent from my Markox powered KitKatted S2
Hey. Thank you guys. I sorted out that problem. I did not recieve notification so sorry for late reply. I don't know how but the function was changed for short press of capacitive button. Its all good now.
Once again. Thank you

Categories

Resources