Disabled n button from waking up device? - Nook Color Q&A, Help & Troubleshooting

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.

Related

Screen off aplication

Is there an application to shut down the screen? I mean a program (cab) or an exe file that just turns off the screen instead of using the Power key?
It could be cool to re-map one of the soft keys (using Advanced config) and create a soft key that shuts down the screen instead of having to go touch the unconfortable Power key.
Thank you.
you may want to take a look at POCKETSHIELD
umm...so i have some what of a similar request.
is it possible to use the windows default lock without enabling the password. that is when the screen turns off it auto locks (similar to S2U, however using the windows 6.5 lock screen)?
dont think the default windows lock autolocks..
hgrimberg said:
Is there an application to shut down the screen? I mean a program (cab) or an exe file that just turns off the screen instead of using the Power key?
It could be cool to re-map one of the soft keys (using Advanced config) and create a soft key that shuts down the screen instead of having to go touch the unconfortable Power key.
Thank you.
Click to expand...
Click to collapse
You can map out a motion to shut of screen with .....this APP (G-Trigger)
If you want to lock it using the WM feature, use the Advanced Config program and set it up so that it auto locks the screen after a few seconds of not using it.
Pocketshield is not what I was looking for. I am looking for a small application that only turns off the screen. (instead of using and stressing the power key)
Is there an .exe file in Windows that makes the screen turn off?
hgrimberg said:
If you want to lock it using the WM feature, use the Advanced Config program and set it up so that it auto locks the screen after a few seconds of not using it.
Pocketshield is not what I was looking for. I am looking for a small application that only turns off the screen. (instead of using and stressing the power key)
Is there an .exe file in Windows that makes the screen turn off?
Click to expand...
Click to collapse
I don't think windows contains one of those.
It's not hard to write, so I can whip up a little exe for you.
Do you want it to have the same effect as the power button, or to just turn the screen off but leave everything running as though the screen were on?
Something that may be off use:
http://vijay555.com/?Releases:VJDeviceLock
l3v5y said:
I don't think windows contains one of those.
It's not hard to write, so I can whip up a little exe for you.
Do you want it to have the same effect as the power button, or to just turn the screen off but leave everything running as though the screen were on?
Click to expand...
Click to collapse
Thank you! It could be nice to have a small exe file that just makes the screen goes off and keep everything else running.
My idea is to then re-map one of the soft keys and be able to turn off the screen by simply clicking on it instead of pressing the power key. It's simpler, faster (your fingers are near the screen, you dont have to move your hand and touch that weird power key on top), and you dont stress a key that could some day not work anymore because of heavy usage.
I tried with a program called Screen Toggle but it takes some seconds to turn the screen off. I think an exe file can be faster.
Thank you a lot!
hgrimberg said:
Thank you! It could be nice to have a small exe file that just makes the screen goes off and keep everything else running.
My idea is to then re-map one of the soft keys and be able to turn off the screen by simply clicking on it instead of pressing the power key. It's simpler, faster (your fingers are near the screen, you dont have to move your hand and touch that weird power key on top), and you dont stress a key that could some day not work anymore because of heavy usage.
I tried with a program called Screen Toggle but it takes some seconds to turn the screen off. I think an exe file can be faster.
Thank you a lot!
Click to expand...
Click to collapse
Three little exes for you.
Names should be fairly self explanatory.
QuickReset performs a soft reset.
QuickScreenOff turns off the screen, nothing else
QuickPowerOff should emulate the power button
Thank you so much l3v5y! You are a genious!
Do you know if the Power off saves more battery than the screen off?
I am trying your programs now on my phone.
hgrimberg said:
Thank you so much l3v5y! You are a genious!
Do you know if the Power off saves more battery than the screen off?
I am trying your programs now on my phone.
Click to expand...
Click to collapse
Power off will save more battery as it'll stop things running.
Screen off will leave everything running, so if you press a button the device will react, but the screen will be off.
l3v5y said:
Three little exes for you.
Names should be fairly self explanatory.
QuickReset performs a soft reset.
QuickScreenOff turns off the screen, nothing else
QuickPowerOff should emulate the power button
Click to expand...
Click to collapse
Screen off is working great and it is super fast!
Thank you again!
hgrimberg said:
Screen off is working great and it is super fast!
Thank you again!
Click to expand...
Click to collapse
It's fast because the code is:
Code:
// QuickScreenOff.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <pm.h>
int _tmain(int argc, _TCHAR* argv[])
{
SetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE);
return 0;
}
If it were slow, I'd be very worried!
Glad it's working for you
pls. delete. posted on wrong thread.
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.
VJEschaton and mortscript can do the screen off/on thing and registry for the lock.
l3v5y said:
Power off will save more battery as it'll stop things running.
Screen off will leave everything running, so if you press a button the device will react, but the screen will be off.
Click to expand...
Click to collapse
It's a bit more grey than that, just add a small 'run on wake' prog to the notification queue such as a mortscript vibrate script or something that writes to a log file, you'll hear/see a lot happening when the power is off. Anything in the notification queue will wake it up but leave screen off and buttons locked. The backlight is the biggest drain on power.
bbobeckyj said:
VJEschaton and mortscript can do the screen off/on thing and registry for the lock.
It's a bit more grey than that, just add a small 'run on wake' prog to the notification queue such as a mortscript vibrate script or something that writes to a log file, you'll hear/see a lot happening when the power is off. Anything in the notification queue will wake it up but leave screen off and buttons locked. The backlight is the biggest drain on power.
Click to expand...
Click to collapse
Most processes are stopped when the power button is hit.
Some service, some processes and the notification system and RIL etc are left running, but most applications are stopped.
Powering off will save more power (some devices do underclock when the power is off...), just it won't be that much more than saved by just turning the screen off.
Selective key lock
payner96 said:
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.
Click to expand...
Click to collapse
This is an awesome application! And it is fast as well. Thank you.
I wonder if there is some tweak or program that does a selective key lock... Under "settings" there is just the option of locking all keys but I wonder if it could be possible to lock all keys except the round center enter key for example. (this way you can turn on the phone by just clicking this more accessible key on the Diamond)
payner96 said:
I find lockandoff to work well as it locks and turns off your screen. Just map soft key to the program and your set.
Click to expand...
Click to collapse
Great little app!! It's been tested and works with WM 6.5.....

Suggestions for possible Apps for the Developers out there

Hey guys, so I have been using my tp2 for a couple months now and I have noticed some things that could have some kind of App development. I have no idea where to begin with Developing apps and all of that tech stuff, so I'll put my ideas out there. If these things do exist please inform me, thanks
1. Customization of the Mute Key on the back - Personally I have never once touched this button because I dont use the speakerphone that often. My dad on the other hand uses his speakerphone many times throughout the day, but he has still no need for the mute button. Which leads to my ideas of being able to customize it for a push and/or push and hold functionality.
2. A keyboard that is just a D-pad. I tried the "G-pad" app which is supposed to enable to g-sensor to be used for scrolling, but I haven't been able to figure out how to use it properly. I also tried the ZoomAdds scrolling with the Zoom Bar, this is alright, however it doesn't always work for some reason.
3. Im not sure if this one is an app, or just a functionality of the Energy Rom, but i downloaded some apps from the Marketplace and the majority of them dont sort out into the folders in the Energy rom (such as Games, Tools, etc.) Is there an app for this or you can control it from the the settings in the energy rom or something? I didnt install the energy rom on my phone, which is why I know like nothing about it.
I use Keyboard controller for your #1 problem there. I hold my mute button to toggle Wifi on and off.
http://forum.xda-developers.com/showthread.php?t=554240
rorytmeadows said:
I use Keyboard controller for your #1 problem there. I hold my mute button to toggle Wifi on and off.
http://forum.xda-developers.com/showthread.php?t=554240
Click to expand...
Click to collapse
You can also use rory's suggestion for problem #2 if you want...just map a directional arrow to a long-press of each of the 4 front hardware buttons, in whichever arrangement feels best for you (up/left/right/down, left/up/down/right, whatever)
sirphunkee said:
You can also use rory's suggestion for problem #2 if you want...just map a directional arrow to a long-press of each of the 4 front hardware buttons, in whichever arrangement feels best for you (up/left/right/down, left/up/down/right, whatever)
Click to expand...
Click to collapse
Definitely. I also have mapped my 4 front buttons to various things...
double press back arrow = CleanRAM
triple press back arrow = Resco File Explorer
long press back arrow = YoMoMedia
triple press home = rotate screen
long press home = iGO8
Im just curious, what is the timeout on the double and triple presses? Like what if i was in a list and i had down set to a single press of the home key, and i pressed it a couple times, and I activated the double press function?
khoyifish said:
Im just curious, what is the timeout on the double and triple presses? Like what if i was in a list and i had down set to a single press of the home key, and i pressed it a couple times, and I activated the double press function?
Click to expand...
Click to collapse
It's pretty reasonable. I was scared of the same thing, but it has never done something I didn't want it to do.
Thanks a lot
Doesnt the Zoombar program allow you to use the slider as a dpad now?
Aaron McCarthy said:
Doesnt the Zoombar program allow you to use the slider as a dpad now?
Click to expand...
Click to collapse
quite possibly...it's been a while since I've used it and I can't remember for sure

Set long press Home key to suspend phone

Hi
Anyone know how to set long press home key to suspend phone?
thanks
I would love to see this too.
In fact, I'm using ADW Launcher and it can bind the home key to do a few different things but unfortunately not suspending the phone. I'm trying to contact the app author now to see if he will add in that feature.
Samsung made a great phone but the casing and button placement is so stupidly designed I don't know what to say. I feel like I'm holding a bar of soap and I can't reach the power button 90% of the time.
What is wrong with pushing the power button?
I would be very happy with a suspend widget or app. Searched the market but only found a reboot/power off widget.
App would be best. I could place that on the bottom menu.
kcharng said:
What is wrong with pushing the power button?
Click to expand...
Click to collapse
The power button work fine. But the home key is more convenience.

[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:

Rooted S8 on Nougat, want to disable home softpress waking phone

My problem is the software home button on the bottom of the screen. Any touch near the bottom of the screen when it's off will wake it.
I'm trying to disable that function so I can press anywhere on the screen and not wake it up.
I think the setting is in either Generic.kl or gpio-keys.kl in the keylayout folder, but I don't know exactly.
I've tried disabling anything relating to Home in those files, but to no avail.
Any help would be greatly appreciated
crazysoccerman said:
My problem is the software home button on the bottom of the screen. Any touch near the bottom of the screen when it's off will wake it.
I'm trying to disable that function so I can press anywhere on the screen and not wake it up.
I think the setting is in either Generic.kl or gpio-keys.kl in the keylayout folder, but I don't know exactly.
I've tried disabling anything relating to Home in those files, but to no avail.
Any help would be greatly appreciated
Click to expand...
Click to collapse
I am going to assume they are in there I will look around tonight and see if I can find anything related as well...Even with mine turned down Its awfully sensitive..
TheMadScientist said:
I am going to assume they are in there I will look around tonight and see if I can find anything related as well...Even with mine turned down Its awfully sensitive..
Click to expand...
Click to collapse
I figured out how to disable it from turning on the screen.
In Generic.kl put # in front key 172. Save and then reboot for it to take effect.
The phone still vibrates when you press the bottom of the screen, however the screen doesn't turn on.
crazysoccerman said:
I figured out how to disable it from turning on the screen.
In Generic.kl put # in front of key 143 and key 172. Save and then reboot for it to take effect.
I'm sure which one it is exactly, but disabling both of those worked. The phone still vibrates when you press the bottom of the screen, however the screen doesn't turn on.
Click to expand...
Click to collapse
Does the home button still work?
TheMadScientist said:
Does the home button still work?
Click to expand...
Click to collapse
I use lmt pie control so I don't know. I would wager it's disabling the wakeup input rather than the home input that actually works.
Edit: It's key 172, not 143.

Categories

Resources