[Q] How to prevent Arc from being ON in its case ? - Xperia Arc General

Hello,
I noticed a few times that the phone was ON while in its case
Too bad for the battery
Is it possible to use proximity sensor to prevent that ?
Cheers

you can disable the home key from waking the phone up.. you need root and root explorer..
Sent from The Arc!

Cool,
I am root, and I have Root Explorer, but how do I achieve that ?
Cheers

ok..you need to use root explorer.
find the pm8058-keypad.kl file in /system/usr/keylayout folder
open the file in edit mode and delete the wake_dropped comment on the home key line.
save, reboot, done.
Sent from The Arc!

Guys I'd like to ask also aside from waking thru power button, is it possible to wake the phone thru volume button also?
Sent from my Arc thru XDA App

Rycon33 said:
Guys I'd like to ask also aside from waking thru power button, is it possible to wake the phone thru volume button also?
Sent from my Arc thru XDA App
Click to expand...
Click to collapse
nope, the phone wakes up with home and power buttons only.

Rycon33 said:
Guys I'd like to ask also aside from waking thru power button, is it possible to wake the phone thru volume button also?
Sent from my Arc thru XDA App
Click to expand...
Click to collapse
you could use the method I described above to add WAKE_DROPPED to the volume keys if you want it to?

Thanks for the suggestion but placing wake dropped on volume keys didn't work for me, I guess I'll just stick with power button then.
Sent from my Arc thru XDA App

Related

any key to wake?

Guys,
Just taken delivery of my first Android handset - nice to be back on here, spent years on here when I ran WM! Anyway, I've been looking for and haven't found an app that'll let me wake the phone by pressing any button, rather than just the power button. Seen stuff for WM, but not Android.
Can anyone help?
Ric
landwomble said:
Guys,
Just taken delivery of my first Android handset - nice to be back on here, spent years on here when I ran WM! Anyway, I've been looking for and haven't found an app that'll let me wake the phone by pressing any button, rather than just the power button. Seen stuff for WM, but not Android.
Can anyone help?
Ric
Click to expand...
Click to collapse
to be honest having used the htc hero I was always getting frustrated cause everytime I took out the phone from my pocket I found it had unlocked cause the minute you pressed any of the home search , menu buttons the phone would unlock and it could then even make unwanted phone calls but as for the desire it only wakes when u press the power button which I think is great just my own opinion.
Try this one on the market :
http://apps.doubletwist.com/No-Lock/-2216879159323801559
When you'll hit any key, no more "slide to unlock", phoen wake up direct to home screen
Having used the HD2 I too miss this feature. Not necessarily pressing a key to unlock the device, but simply to bring up the 'drag down to unlock' screen.
luminouche said:
Try this one on the market :
http://apps.doubletwist.com/No-Lock/-2216879159323801559
When you'll hit any key, no more "slide to unlock", phoen wake up direct to home screen
Click to expand...
Click to collapse
Here is this one also - http://apps.doubletwist.com/Screen-ON-widget/6251491150679267019
These 2 apps replace the need to "slide-to-unlock", but wouldn't you still have to press down the "power" button to actually turn on the screen?
I too have found this a little annoying. I think this may be a feature that can be changed once rooting of the phone starts.
Sort of like re-mapping the hardware buttons to where all you have to do is hit the trackpad or MENU button to activate the screen.
Application like this?
http://apps.doubletwist.com/HeroKey-(root)/1990841848356448722
No this would be interesting to possibly get for the Desire. Allows you to remap the hardware buttons. Too bad it is -
1 - For the Hero
2 - Requires root
After pressing the power key, mine unlocks by pressing just the menu button as well, FWIW.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
For now i've installed MyLock. It removes the lockscreen completely. Now i just press power once.
th3 said:
After pressing the power key, mine unlocks by pressing just the menu button as well, FWIW.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
lol. Never knew that. That's handy.
nice!
adjei7 said:
lol. Never knew that. That's handy.
Click to expand...
Click to collapse
that's a bonus, thanks.
what would be even nicer would be if the screen woke up (to lockscreen is fine) on a press of any hardware button. guess it'll need root.
just figured out how i am using 2 programs one is nolock and seccond is Widget Locker. nolock wakes up the phone with any key and by default unlocks the phone BUT if you have Widget Locker installed it prevents from unlocking so that way you have your phone with any-button wake and still locked,tested with my LG 2x ,first app is lightweight and dont consume much battery.. i dont know if i made my self clear im italian email me if you want the link or any question
[email protected]

[Q] Double tap on home button to wake up the dell

Hi all,
is there a way to wake up the screen by double tapping the home button instead of pushing the on/off button?
many thanks
I dont think it is possible. That is like to tell a person to wake up in his dream.
CyberGhos said:
I dont think it is possible. That is like to tell a person to wake up in his dream.
Click to expand...
Click to collapse
Hahaha I like the reply... when in sleep soft keys, just like screen is off... driver mod would be necessary...
Sent from my Dell Streak using XDA App
Apologies for unrelated post, proves I am no multitasker...
mrmarco said:
Hi all,
is there a way to wake up the screen by double tapping the home button instead of pushing the on/off button?
many thanks
Click to expand...
Click to collapse
Disable power pin on USB cable and it would stop charging...
Sent from my Nexus One using Tapatalk
Use widgetlocker and you can switch on with any button.
wyx said:
Use widgetlocker and you can switch on with any button.
Click to expand...
Click to collapse
thanks a lot for your suggestion. I installed widgetlocker, but in no way I can wake up the display.
I can wak up the display by pressing the volume button or the on/off and the camera button, but in no way with the home button.
Do you can?

Disabled n button from waking up device?

Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
ramiss said:
Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
Click to expand...
Click to collapse
I don't know that you can stop one of the 4 inputs from waking up the hardware, but...
You can define the 'n' button to do something that doesn't offend you and set your screen to sleep after a very brief moment (15 seconds).
Why do you want to change the hardward button behavior?
byronczimmer said:
Why do you want to change the hardward button behavior?
Click to expand...
Click to collapse
Hi, thanks for answering. The reason for this request is because the screen keeps waking up as it moves around in my bag. Just lightly pushing on the case/cover I use will activate the button and leave the screen on until the timeout. I am surprised this isn't an issue for more people (or perhaps people aren't noticing their nook turning on.)
Lowering the timeout is not going to work since I do a lot of reading and having to tap the screen every 15 seconds would be a pain. Unless anyone has figured out how to get screebl to work??
You can completely disable the "N" button by editing the keyboard layout file. Using Root Explorer (paid app - but WELL worth it!) or equivalent, navigate to SYSTEM>USR>KEYLAYOUT then click the button at the top to "Mount R/W", now long-press the file "qwerty.kl" and choose "Open in Text Editor". Then find the following line:
Code:
key 102 HOME WAKE
and simply add a # to the beginning of that line so that it looks like this:
Code:
#key 102 HOME WAKE
Now press your MENU button and choose "Save & Exit". You'll need to reboot the Nook for the change to take effect.
Now your N button should be completely disabled. Just make sure you have the soft keys set up with a home button so you'll have a way to use that functionality when needed.
If you want to maintain the functionality of the "N" button but just prevent it from waking the Nook, simply remove the word WAKE from that line and don't insert the # character. I haven't tried this implementation, but it should work fine.
If you did what jason suggest, make sure you not hide the status bar.
You can change the "unhide" button to something else in Tablet Tweaks or you can use the long-press Power menu option which is also in Tablet Tweaks.
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
Simply removed WAKE from the home button as suggested.
Works beautifully. Doesn't wake the device, yet does all the other stuff it's supposed to.
Score one victory for increased battery life for shared knowledge.
I have a soft case and it gets turned on in my pocket.
I went ahead and also removed WAKE from the volume up and down buttons.
Now the only way to wake the screen is the power button. The way my case is, that's the one button that won't get pressed in daily travel.
(don't know if reboot is necessary, but i'd assume so, and did after each change before testing)
Thanks!
TCAndroid said:
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
[ ... ]
I went ahead and also removed WAKE from the volume up and down buttons.
Click to expand...
Click to collapse
I also took WAKE off the volume keys, because I tend to reach into my bag and adjust the volume while walking or waiting for the train. My buttons don't tend to get pressed, since my bag is for a netbook and my uncased NC doesn't rattle around. However, after adjusting the volume, the screen was live and the bag and its contents sometimes made random touches all over the screen...
The volume buttons now work exactly the way I want! Thanks for the very clueful answer to this question!
Of course, now I have another thing to do every time I update my ROM. I should learn how to make update scripts!
I am curious why HOME has WAKE and not WAKE_DROPPED, when it appears to behave like WAKE_DROPPED.
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
911jason said:
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
Click to expand...
Click to collapse
Exactly so. HOME acts like WAKE_DROPPED, doesn't it? But it's marked WAKE.
Actually, yes, you're right... just realized that. Not sure why it's behaving that way.

[Q] Bind backbutton

Hi! Is it possible to bind the back button to end calls?
maybe in CyanogenMod ROMs, but I'm not sure...
lationLars said:
Hi! Is it possible to bind the back button to end calls?
Click to expand...
Click to collapse
Back button broken? Get Button Savior from the market.
I believe you can edit each buttons function, but the back button is pretty much essential, so you would be better using search instead.
Just edit the file at
/system/usr/keylayout/bravo-keypad.kl
I havent tried it but i imagine you just look for the word search and replace with endcall.
Sent from my HTC Desire using XDA App
Just so you know, the blade doesn't have a search hardware button
Sent from my ZTE BLADE using XDA App
NTpspE said:
Just so you know, the blade doesn't have a search hardware button
Sent from my ZTE BLADE using XDA App
Click to expand...
Click to collapse
Why the hell am i posting in the blade forum? I thought this was desire...i'm confused.
Anyway, no search button, bind it to the trackball button or camera button...o wait...never mind.
Sent from my HTC Desire using XDA App
If u r on cm7 then u can make use of power button to end calls.
Go to settings/accessibility and check the option there.
And as said above I believe u can edit the keyboard layout at /system/use/keylayout/
Sent from my Blade using XDA App
NTpspE said:
Just so you know, the blade doesn't have a search hardware button
Sent from my ZTE BLADE using XDA App
Click to expand...
Click to collapse
I find it not so bad thing to not have one button more. As you can still call Search function just simply holding Menu button down.
It works that way in every app and homescreen as you would have fourth button for Search function.
Press Home to get home, Long Press to have list of last used apps (for multitask)
Press Menu to get menu, Long Press to make a Search for app or homescreen
Press Back to get back, Long Press to kill front application (great on CM7)
Only thing what I wish I could do, is to bind menu button in home screen (now ADW Ex) to open Applist and not the menu of ADW.

[GUIDE] Remap hardware buttons

/edit: this guide is now obsolete because Xposed Additions now has button remapping with some advanced options, which also seem to enable volume wake on my HTC One
If you hate locking and unlocking your HTC One with the Power button, you can change that quite easily int for example Volume Down.
ButtonRemapper would be the easiest method, but it doesn't work with the HTC One. It doesn't load the correct file.
The solution: simply edit the correct file
Code:
keypad_8960.kl
found in
Code:
/system/urs/keylayout/
by hand (I used Fx File Explorer with the paid Root plugin) and reboot your phone. My edited file is attached on this post.
Original:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
My current file that switches the Volume Down and Power button:
Code:
key 116 VOLUME_DOWN WAKE
key 114 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
I don't know if the same file is used on different ROMs. I tested this on the P.A.C. Man ROM.
Now waking my One is a breeze! :laugh:
P.S. You may need the following workaround to fix the 'volume wake not working' bug present in some (or all?) JB ROMs, which strangely also affects this tweak (symptom: volume down won't wake phone sometimes).
1. Install Xposed Framework (which you should anyway, it's awesome)
2. Install MoDaCo Toolkit
3. Wait for the annoying ad (Paul, tsk, tsk) and enable the option 'HTC One > Enable Volume Wake'
4. Enable MoDaCo Toolkit in Xposed
5. Reboot
6. Profit ^_^
Is there a way to remap volume keys to change song when double clicked or something?
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
I'm not sure, but when there is, I think it's not done with this or another .kl file but with a 'ROM tweak', like AOKP settings.
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
baste07 said:
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
BTW I tried this on TrickDroid 4.2.2 and it works.
Syn Ack said:
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
Click to expand...
Click to collapse
Actually, the adjustment only swaps the buttons, so the physical Power button acts as Volume Down
I'm still having issues with the adjustment though, has anyone tried it and got it working correctly all the time? I also edited Generic.kl and qwerty.kl, but that didn't help. Pacman ROM 2.9.
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Sent from my HTC One using xda app-developers app
Volume wake bug workaround added to OP.
Problem...
jelbo said:
Volume wake bug workaround added to OP.
Click to expand...
Click to collapse
I have multiple problems guys:
Rooted...double checked if it's rooted (htc one) - then installed Xposed...mods...guess what? it worked for a few hours then all of the sudden...Framework disabled...pushed Install again...and then one of 2 things happen:
1 - phone reboots
2 - Installed and notification for SU....but when restarting my phone the framework it's NOT installed....wtf?!?
Solutions errybody
jelbo said:
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
Click to expand...
Click to collapse
PERMANENT FIX: This problem is caused when the phone enters Deep Sleep mode, the processor stops listening to the .kl files and is pre-programmed to listen on the power button. --On mine, I was completely unable to turn the phone on, I figured out thought that I could turn it on is by holding the power button and the configured volume button at the same time, like a screenshot, hope this helps somebody.-- To permanently fix this download "Wake My Android Pro (free)" from the Play Store, this app is specifically designed to keep your phone in the "Sleep" mode and preventing it from entering the "Deep Sleep" mode. **This does not drain your battery.** Just make sure to set "Low Wake" in the settings, and set the time to 9 seconds and auto-start. Hope this helps some people, those who do not want to fiddle around with Xposed.
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
This you can do via Tasker. Just create a profile: Event, Variable Set: Volume - Media. This will pick up the volume presses, from there you can restore the volume to what it was (via stored variable) and detect double-presses or gestures between the vol-up and vol-down buttons. I recommend running Javascript to detect that, to be more streamlined. Once detected, use the Media Control action to skip/restart/pause songs in OEM, or if you use Spotify or Pandora, you will have to use a shell "input keyevent 87" Use Root: Yes--87 to skip, swap it with 88 for previous, 85 to play/pause.
rollsrd said:
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Click to expand...
Click to collapse
This can be achieved with Tasker as well. Use a profile "Application," select Camera, and combine with an Event (by long-pressing profile and "Add...") Variable Set: Volume - Ringer. For the action, select Input>Button>Camera. You must be rooted.
If we combine this button swapping idea with Tasker, we can do a lot of cool things guys. An easy way to pick up an easy button gesture with Tasker is with the power button (which always works from sleep, the volume buttons can only be detected when music is playing). I use Tasker to do a certain action when the power button is double-clicked (Display On>Display Off within, say, 1 or 2 seconds).
Hope all was a help, I am new to XDA (*NOT* a noob!) and actually, this is my first post, so a thumbs up or a "thank you" or whatever you guys call it would be great. Thanks! :good:

Categories

Resources