[Q] Remapped Vol Buttons (Back/Home) Script Question - Nook Color General

I've got a script launched through a gscript bookmark on my home screen that remaps the volume keys as Back/Home -- and a script that switches it back to the normal volume control. Basic structure is identical to the Ad-Hoc WiFi fix.
Unlike the Ad-Hoc wifi fix that is immediately useable, the remapped hardware buttons require a reboot to go into effect.
Is there any way for this to take place WITHOUT requiring a reboot?

no even if you just use root explorer to change the key layout (easiest way)
you still have to reboot.

Related

Would you recommend remapping the volume buttons?

Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
If you're using nookie Froyo, you can try the MENU/BACK soft buttons in the status bar mod, instead of remapping the vol+/- buttons. I've been using it since it came out, and can confim it works for nookie Froyo 6.7. Here's the link to the original thread: http://forum.xda-developers.com/showthread.php?t=932631
It does have it's issues, mainly with the stock browser, and causing it to FC. Other than that I have not noticed any other problems.
If you are interested in useing the mod, but don't know how to install it, let me know. I'll pm you or post instructions.
I absolutely recommend remapping the volume buttons. Softkeys is nice, but kind of a pain sometimes. For instance, when I would view pictures in the XDA APP, I would have to restart the app instead of backing out, for some reason softkeys wouldnt let me back out of the picture viewer. It's just much easier to have the menu and back buttons always available than rely on software. I installed volume volume control if I need to adjust volume for some reason.
Is there an app that puts volume in the status bar that anyone knows of?
buffnutz1 said:
Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
Click to expand...
Click to collapse
Yup... I've got a Pandigital Novel(white v2) w/custom fw and it'd be essentially useless w/o re-mapping the vol keys to menu and back along with soft-keys in the notification bar...
NC has one up on the WPDN though, it has the n home key plus the 2 vol keys and volume can be controlled through setting or a quick-settings app anyways or by adding soft-keys... still no substitue for physical keys or capacitive screen keys though, unfortunately... (spoilt by gtab with the full complement...)
-------------
buffnutz1 said:
I'm sure you guys know where I'm screwing up. After I adb pull, I only get this
/system/usr/keylayout/twl4030-keypad.kl -> ./twl4030-keypad.kl
/system/usr/keylayout/qwerty.kl -> ./qwerty.kl
/system/usr/keylayout/AVRCP.kl -> ./AVRCP.kl
but it says to edit " 'TWL4030_Keypad.kl' and 'omap_twl4030keypad.kl' "with your text editor of choice; I used vi, always a safe choice.
I don't have the omap. what should I do?
Click to expand...
Click to collapse
Just modify the qwerty.kl in the place of omap. That's what I did and things are working fine.
--ex
Love my remapped buttons and i saved the originals so i can go back anytime i wish.
buffnutz1 said:
Is there an app that puts volume in the status bar that anyone knows of?
Click to expand...
Click to collapse
I am on the stock 1.1 rooted and have mapped my volume buttons - I have tried the other ones, and I MUCH prefer having hard buttons.
I downloaded a volume app "Volume Master Free". It has about 5 different volume controls, but I only use the system volume and the media volume controls.
I use Zeam as home screen; and I put a shortcut to Volume Master on the bottom right of my Zeam shortcut bar. It works very well. I do need to go to the home screen to change volume; but I can tap on the notification bar and toggle mute, so that works for me.
Yes, it makes a huge difference on the stock rom and froyo -- though honeycomb's soft buttons eliminate the need to do so.
Can't recommend remapping the keys enough. On froyo it makes a huge difference in functionality on. The device, life is a pain without it.
how do you remap the vol buttons? i would love to do it
TweetyBear said:
how do you remap the vol buttons? i would love to do it
Click to expand...
Click to collapse
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
I remapped.
I also recommend remapping your volume buttons. It's handy having tactile buttons for the back and menu functions.
What really sold me on remapping was that I didn't like to have a Softkeys button floating on the home screen. Without a floating button, I would have to double tap the hardware "N" button to bring up the Softkeys interface, then hit "menu" or "back." If I have to double tap a hardware button to use "menu" or "back," I might as well just remap those functions to the volume buttons and use a single tap.
evilxenu said:
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
Click to expand...
Click to collapse
thanks. will attempt over the weekend
can remapping the volume buttons be done when running cm7 nightlies off SD ?
I didn't find a definitive answer
I ran with the CM7 softkeys, Button Savior, remapped volume keys and I just finally settled on zMooth.

[RFC] Remapping volume buttons

The volume buttons can be remapped to other buttons by editing the file /system/usr/keylayout/sec_key.kl. The problem is changing this file requires a reboot to take affect.
I wrote a daemon to allow on the fly remapping. It works by using uinput subsystem to create a virtual keyboard, listening to the real keyboard /dev/input/event1, and sending the mapped keys to the virutal keyboard whenever a key is pressed.
In order to use it, you need to edit the file /system/usr/keylayout/sec_key.kl, removing (or commenting out with #) the first two lines, and reboot. After this step, the volume buttons are ignored. Now run the daemon (as root). The default configuration is to send SPACE/SHIFT+SPACE for VOL-/+ to firefox and the default browser, down/up arrow to tapatalk, and VOL-/+ to everything else.
The daemon opens a named pipe on /app-cache/.uinput-virtual-keyboard-fifo and can be configured using this pipe.
For example, the command
echo profile com.sec.android.app.ve 231 44
Will map the keys in the video editor to CALL (open phone) and Z.
The daemon is at http://my.svgalib.org/android/pgdn
Source at http://my.svgalib.org/android/pgdn.c
Comments are welcome.
You, dear sir, are a genious.
Really appreciate your effort. Works like a charm.
Sent from my GT-N7000 using XDA App
Can you provide for a key remap for the stock camera application? Volume up capture picture, volume down focus mode?
Thank you!
Sent from my GT-N7000 using xda premium
The file with the meaning of the keys is /system/usr/keylayout/Vendor_04E8_Product_7021.kl according to it FOCUS is 211 and CAMERA is 212. Unfortunately, FOCUS appears to do nothing, so if you run the command
Code:
echo profile com.sec.android.app.camera 211 212 > /app-cache/.uinput-virtual-keyboard-fifo
The VOL+ button will take a picture, but the VOL- button does nothing.
(There is currently no configuration file, so this command needs to run everytime the daemon is started).
MatanZ said:
The volume buttons can be remapped to other buttons by editing the file /system/usr/keylayout/sec_key.kl. The problem is changing this file requires a reboot to take affect.
I wrote a daemon to allow on the fly remapping. It works by using uinput subsystem to create a virtual keyboard, listening to the real keyboard /dev/input/event1, and sending the mapped keys to the virutal keyboard whenever a key is pressed.
In order to use it, you need to edit the file /system/usr/keylayout/sec_key.kl, removing (or commenting out with #) the first two lines, and reboot. After this step, the volume buttons are ignored. Now run the daemon (as root). The default configuration is to send SPACE/SHIFT+SPACE for VOL-/+ to firefox and the default browser, down/up arrow to tapatalk, and VOL-/+ to everything else.
The daemon opens a named pipe on /app-cache/.uinput-virtual-keyboard-fifo and can be configured using this pipe.
For example, the command
echo profile com.sec.android.app.ve 231 44
Will map the keys in the video editor to CALL (open phone) and Z.
The daemon is at http://my.svgalib.org/android/pgdn
Source at http://my.svgalib.org/android/pgdn.c
Comments are welcome.
Click to expand...
Click to collapse
Thanks for the information !..great work. Can you provide how to remap the power button for taking pictures with the camera (sorely missed especially for this device due to its size; touchscreen very awkward esp. for 1-handed shots and have been asking a lot for this even tried to do this myself based on SGS2 hacked camera but got nowhere)
Thanks !
You can try with this (untested) daemon which allows for mapping all four hardware buttons:
http://my.svgalib.org/android/pgdn4
You need to disable the buttons by also removing the 102 and 116 lines from the file /system/usr/keylayout/sec_key.kl and rebooting. By default home and power map to home and power on all applications except for camera, where power, vol+ and vol- map to camera button (take a picture).
I've tried to map the volume buttons 4cm down on the left side.
Wont work. Then i tried for another 2 hours to map them to the right side of my note. (under the on/off button).
Didn't work too...
What am i doing wrong? Do i need a screwdriver to execute the script and the buttons?
What i have done as a temporary measure is edit the
/system/usr/keylayout/sec_key.kl
so that i can use volume down button to start camera as well as take pics
Could someone explain in more detail how to run a daemon? Thanks.
[Edit] Solved. I used Script manager to run it as "is executable" as root and at boot up. But I have to copy it to the internal memory to run it, otherwise, "permission denied".
Thanks. really like it but few issues noted
1. For the camera mod as suggested in post 6 - The home button does not work after the daemon is run. Long press works however.
2. The daemon needs to be in internal memory for it to work with script manager. If in sd card it shows permission denied.
Also since its in internal memory, it gets deleted every time at boot and hence have to copy it there every time after boot.
Is there any other app to run the daemon from sdcard ?
Thanks
drgopoos said:
Thanks. really like it but few issues noted
1. For the camera mod as suggested in post 6 - The home button does not work after the daemon is run. Long press works however.
2. The daemon needs to be in internal memory for it to work with script manager. If in sd card it shows permission denied.
Also since its in internal memory, it gets deleted every time at boot and hence have to copy it there every time after boot.
Is there any other app to run the daemon from sdcard ?
Thanks
Click to expand...
Click to collapse
I put the file under /system, and it won't be deleted every time it bootup.
wonghyf said:
I put the file under /system, and it won't be deleted every time it bootup.
Click to expand...
Click to collapse
how about the home button not working ?
has that happened ?
drgopoos said:
how about the home button not working ?
has that happened ?
Click to expand...
Click to collapse
It's working for me.
wonghyf said:
It's working for me.
Click to expand...
Click to collapse
After running the script my home button does not work . Long press works.
Will try to redo everything once more i guess.
wonghyf said:
I put the file under /system, and it won't be deleted every time it bootup.
Click to expand...
Click to collapse
I think the best partition is /data. This partition is ext4, so supports executable, symlinks, etc. And is mounted rw, so it does not need to be remounted for every change.
If you want to make the daemon suid root, it has to be on /system, since /data is by default mounted with option nosuid.
MatanZ said:
You can try with this (untested) daemon which allows for mapping all four hardware buttons:
http://my.svgalib.org/android/pgdn4
You need to disable the buttons by also removing the 102 and 116 lines from the file /system/usr/keylayout/sec_key.kl and rebooting. By default home and power map to home and power on all applications except for camera, where power, vol+ and vol- map to camera button (take a picture).
Click to expand...
Click to collapse
Thanks ! works like a charm ! (finally camera with power button to take picture on note..so many camera mods but no one doing this mod which was so easily available on sgs, sgs2), Thanks !
Can someone post a modded camera apk to take pics with volume or power button?
This mod is awesome!
Thanks!!!!!
Sent from my GT-N7000 using xda premium
Surprised to that this was popping up in battery stat to use some battery....
@Taptalk-GalaxyNote
should be possible to input the passw with the volume control?
my email forces me to lock with strong password. Should be possible to start and script with a remapped button, producing to input the password stored on it and unlock screen?
Thanks a lot.

[Q] open power options without pressing power button

Hey guys, i have a captivate and im running ICS AOKP with nova launcher prime. My power button is near broken. It always sticks and requires multiple presses before a response. Is there a way to open power options (you know, it brings up the shutdown, airplane mode and reboot options) without pressing the actual power button with nova launcher or a google play app?
Eh...
I dont know of anything. That darn power button is a problem for SOO soo many people. However, something that may help you is going into setting, go to display, and hit volume rocker wake. This will allow you to wake up the device by pressing the volume buttons. Also, if you need to go into reboot options, try rom manager. You can access recovery from there. This is the easiest method I have heard about this issue.
Thanks for your advice. To be more specific, i wanted to be able to shutdown when i wanted. I had forgotten about the rom manager thing.
Also, something cool: If you use Nova launcher, you can change a setting to make the phone wake with the vol up/down. Also, if you buy the donate version and pair it with the app "screen off and lock", you can sleep and lock your device by tapping anywhere on the home screen twice. Its really nifty. Doing that makes you not even need to press the power button anymore....except when you want to shutdown, restart, or take a screenshot.
psm510 said:
Hey guys, i have a captivate and im running ICS AOKP with nova launcher prime. My power button is near broken. It always sticks and requires multiple presses before a response. Is there a way to open power options (you know, it brings up the shutdown, airplane mode and reboot options) without pressing the actual power button with nova launcher or a google play app?
Click to expand...
Click to collapse
There are several roms floating around in the development section that have extended toggles. Usually this feature has reboot, recovery, and power off as options. I can't say which (if any) of the ICS roms have the extended power menu.
I can also say that MIUI's standard toggles have reboot and power on it.
Could you use QuickBoot for rebooting options?
Use my latest ROM
It has Search button remapped as Power. Both short and long press work!
I don't even use Power button anymore - Volume buttons to wake up!
Additional bonus - Search now works as Camera shutter!
ROM is in my sig.

[ICS+] Enable Soft Keys on Devices with Hardware Keys

To enable soft keys, or onscreen buttons, on any rooted ROM based on Android 4.0 ICS or later, simply add the following to the build.prop file: "qemu.hw.mainkeys" and set the value to zero ("0"). The line will look like this in the text file: "qemu.hw.mainkeys=0". Next, reboot your device and upon start up, a row of onscreen buttons will be at the bottom of your screen. Keep in mind that this will not disable the hardware buttons or disable the backlight, please search for another tutorial for that. Also, the buttons will obviously take up screen space so some things may look a little different or be covered up. If you would like to disable the soft keys, change the value of the line to one ("1") in the build.prop file. Be sure that the hardware buttons are enabled, and then reboot.

Disabling physical home button

Hi I was just wondering if it were possible to disable the physical home button. Any toddler apps my niece plays with are short played because she just clicks home all the time. I know there are kids apps that act as a home replacement button I was looking for something more elegant, namely pie mode or expanded desktop.
I did try editing the kl files in system/usr/keylayout
I changed HOME to BACK just to test but it didn't work.
I'm using the latest schizoid rom 4.2.2
Expanded desktop is pie in that ROM not sure if it disables the physical home button though
4catalyst2cI said:
Expanded desktop is pie in that ROM not sure if it disables the physical home button though
Click to expand...
Click to collapse
Pie doesn't disable physical home button. Pie is far less distracting for her, without the soft keys though.
Solution
I found the solution. Ill just keep this here if someone else in Googleland needs to disable the home button.
Download Jota+ and Root Explorer (maybe there is a free alternative?) from Google Play.
Open Root Explorer, navigate to /system/user/keylayout, then hold down gpio-keys.kl and select copy. Navigate to the sdcard and paste the file (use the "copy here" button on the top). Make another copy for backup if you don't like livin' on the edge. Now hold down gpio-keys.kl, select open with, General tab, Open as Text. Select Jota+. Find the line that says key 232 HOME WAKE. Remove the word HOME or replace it with another key if you really want to. Hit Save, the back button, copy gpio-key.kl. If it gives an error, try again because it's requesting root privileges. Reboot.
Use pie to hide the soft keys. In the pie settings there is a option to disable pie from appearing. I can't figure out how to enable "Expanded Desktop" in this build.
gosmo86 said:
Hi I was just wondering if it were possible to disable the physical home button. Any toddler apps my niece plays with are short played because she just clicks home all the time. I know there are kids apps that act as a home replacement button I was looking for something more elegant, namely pie mode or expanded desktop.
I did try editing the kl files in system/usr/keylayout
I changed HOME to BACK just to test but it didn't work.
I'm using the latest schizoid rom 4.2.2
Click to expand...
Click to collapse
Some of the launchers you can set the Home button to do nothing, like Nova. Not sure if that would give you the desired result your looking for.

Categories

Resources