[Q] - Nook Touch General

Hello,
I have just made an account here so sorry if I'm putting this in the wrong subject or something.
Let me just get something straight...I'm 13...so please explain if asking me to do something like 'install a customized kernel' :laugh:
So, with the help of NookManager, which is awesome, I have managed to root my stock UK nook simple touch (n2e), running software version 1.2.1
It is great. I have managed to install many apps, such as Kindle, Dropbox, Gmail, Opera Classic, Titanium Backup, WikiMobile etc.
I attempted to remap the bottom page turn keys in order for the right hand key to be a back button and the left hand key to take me to my android home.
After using ES File Explorer (granting it Superuser permissions) and copying /system/usr/keylayout/TWL4030_Keypad.kl to my SD Card.
Next I edited it, roughly following an online tutorial, using Jota text editor (a free text editor I found on the android market).
Next I saved it, and used Root Explorer to mount /system/usr/keylayout as r/w and copy the file to it.
I rebooted my device, using ReLaunch, the default launcher supplied with NookManager. I discovered that the 'back' button worked, but the 'home' button instead worked as a menu button.
This was slightly annoying, but I managed to using the Nook Touch Mod Manager (or whatever its called), which I discovered later, to send me to my android home launcher (LauncherPro).
I then went to the stock Library app and discovered, much to my annoyance, that the top two page turn buttons would not work to turn the pages.
Obviously, I can still use the touch screen to turn pages.
So I thought, fine, I'll re-remap the keys back to their original positions and use the top soft-keys in the menu bar for back and menu buttons.
I tried this many times, using a variety of different tools (inc. ES file explorer, Root Explorer, DB text editor, Jota text editor, NookTouchModManager etc)
Every time, after I rebooted, the keys were mapped back to my original position (?!) and I could not use the page turn buttons.
I tried renaming the TW4030_Keypad.kl file to TW4030_Keypad.kl.backup to see if the system would reload this and make a new file with the default buttons (allowing me to use the page turn buttons) but this did not work. For some reason, no file was created, however, the keys were still working (to do back and menu).
Next I tried factory resetting the device (by Powering it off and, as it turned on, holding the two bottom page turn buttons, I had found out how to do this online), but, even with the Stock ROM, the page turn buttons would not work.
I tried doing the 'swap page turn buttons' thingy in settings, but that did not work either.
I re-rooted the device, and it still did not work.
As I said earlier, it is OK because I can use the touch screen to change the page, but I like the page turn buttons (one of the things that made me choose nook over kindle paperwhite) so any help would be greatly appreciated.
Thank You in Advance
Sorry for the long post
ps. I deleted the following stock apps using TitaniumBackup, DeviceManagerService, Music and Phone. I restored music and phone later.

Hardware button configuration
The four hard buttons are configured by /system/usr/keylayout/TWL4030_Keypad.kl
The "n" button and the power button are configured by /system/usr/keylayout/gpio-keys.kl
I don't use the stuff that you are using.
Some of that rewrites the keylayouts behind your back (I think).
Here's my TWL4030_Keypad.kl:
Code:
# Layout file for Nook Touch hardware buttons
key 412 LEFT_NEXTPAGE # Upper left
key 407 LEFT_PREVPAGE # Upper right
key 139 BACK # Lower left
key 158 MENU # Lower right
The LEFT_NEXTPAGE LEFT_PREVPAGE is done to make the usage compatible with the real PageUp/PageDown on Android 2.2
Set your reader page buttons as shown in http://forum.xda-developers.com/showthread.php?p=24632564#post24632564

Renate NST said:
The four hard buttons are configured by /system/usr/keylayout/TWL4030_Keypad.kl
The "n" button and the power button are configured by /system/usr/keylayout/gpio-keys.kl
I don't use the stuff that you are using.
Some of that rewrites the keylayouts behind your back (I think).
Here's my TWL4030_Keypad.kl:
Code:
# Layout file for Nook Touch hardware buttons
key 412 LEFT_NEXTPAGE # Upper left
key 407 LEFT_PREVPAGE # Upper right
key 139 BACK # Lower left
key 158 MENU # Lower right
The LEFT_NEXTPAGE LEFT_PREVPAGE is done to make the usage compatible with the real PageUp/PageDown on Android 2.2
Set your reader page buttons as shown in http://forum.xda-developers.com/showthread.php?p=24632564#post24632564
Click to expand...
Click to collapse
Thanks so much for replying. Being a n00b, I am slightly confused about some things.
'I don't use the stuff you are using'
I assuming you are referring to the factory reset by booting down and holding the bottom two page turn keys. If so, this was the only way I could factory reset because the factory reset in settings got stuck on Deregistering your Nook (I assume because NookManagerService 2.1.apk had been deleted) and the 8 continuous reboots just made my device crash after I tried the first one (I had to do a hard reset with the trick of holding down the power and nook home buttons together for 40 seconds)
But I might be wrong. Are you talking about deleting DeviceManagerService 2.1.apk, or about my current key layout.
'Some of that rewrites the keylayouts behind your back (I think)'
Do you have any idea where that might be because I have been scouring my nook in root explorer and a search for 'key' or '.kl' only brings up the files in /system/usr/keylayout and some backed up .kl files on my sd card.
I am really confused because I know it must be communicating with another file (when I rename TWL4030_keypad.kl and omap_twl4030_keypad.kl and reboot it still sticks to the same keys and does not appear to generate a new file)
Also, however I modify the twl4030_Keypad.kl file (Root Explorer, ES File Explorer, Settings/Reader/Page Buttons, Nook Touch Mod Manager) the page buttons do not change, however the home button shortcuts (I set my home button to open my android home launcher (LauncherPro) on long press) work fine.
I tried editing the last pard of TWL4030_Keypad.kl to exactly what yours said, but same result probably due to what I have described in the above paragraph.
I just want to know, is there a way to completely reset all keypad files, or at least do something like that.
I cannot find anything about this on the internet other than cracked buttons, screen freezes etc.
Thank you very much for the help though.
Again, sorry for the long post.
Thanks again
ps Other than this (minor) issue, the nook is still working perfectly, apart from the occasional Barnes and Noble Nook Error Message (don't know why - I assume it has something to do with the deletion of the NookManagerService APK. The only reason I deleted it was that it was the only simple way to stop OTA updates, and I really don't want to see Barnes and Noble release an automatic update that bricks my rooted Nook, nor do I want to disable wifi whenever the update comes out, as some have suggested. When I factory reset, I get DeviceManagerService (and nook shop) back. Please let me know if the disabling of DeviceManagerService is necessary). It is just an annoyance.

I meant NookManager. I don't know if that goes around patching things or rewriting files.
Copy what I put in the box above and write it to the file.
Do things work?
Does that file get overwritten?

Renate NST said:
I meant NookManager. I don't know if that goes around patching things or rewriting files.
Copy what I put in the box above and write it to the file.
Do things work?
Does that file get overwritten?
Click to expand...
Click to collapse
I have done that (I did it just over your last thread) and the file does get overwritten. However, when I reboot, although the correct file is still there, the page buttons work as -------- --------
Menu Back
The file is still rewritten with the what you told me to put (minus the hashtags and the things that followed them, which I assumed were comments). This is why I am confused.
Thanks for helping. I'm sure there is a solution.
Also, I had no idea how to root a nook through any other method (USB Debugging is disabled, so how would you do it directly through ADB? I don't know)
One other thing - The page turn buttons worked just fine before I started editing - so im not sure nookmanager is necessarily to blame

Install UsbMode.apk (in the signature).
Among other things it will tell you what scan code and key code get generated for the hard keys.
(It does use the Android 2.2 names for PAGE_DOWN & PAGE_UP.)

Renate NST said:
Install UsbMode.apk (in the signature).
Among other things it will tell you what scan code and key code get generated for the hard keys.
(It does use the Android 2.2 names for PAGE_DOWN & PAGE_UP.)
Click to expand...
Click to collapse
Also, if you are using NookManager, make sure you have the hardware page keys mapped to "default" in Nook Touch Mod Manager when you are messing with the key layout file or you will get confused really fast. Conversely, if you are messing with NTMM mapping make sure you are using the stock key layout file to avoid confusion. NTMM has a hook in the Android key press code that captures the hardware keys to remap them to other keys or other functions. The key code NTMM sees is whatever the key layout file sends it. So if you key layout file remaps something NTMM will remap the remapped key rather than the actual key it says its remapping.

Thanks for all the help. I found out (using UsbMode.apk) that my top page turn buttons had scan codes but no key code, my bottom ones had both. I set all the page turn button shortcuts to default in Nook Touch Mod Manager.
I navigated through querty.kl, TWL4030_keypad.kl and omap_twl4030_keypad.kl and found out that the bottom keys had been called up earlier in the .kl file as menu and back. Using Root Explorer, I mounted the file system writable, deleted these earlier lines, then rebooted. It didn't work. After much more trying and rebooting, nothing worked, however, I had managed to unmap the bottom keys from menu and back, and now they are just shown in USBMODE as UNKNOWN.
I think I have a plausible solution. If one of you could send me your qwerty.kl, TWL4030_keypad.kl and omap_twl4030_keypad.kl files, then I could backup my originals and try copying them into /system/usr/keylayout. If logic talks, that should mean that, if your keys were working just fine for you, my keys should work in exactly.
Please let me know about this and send those files if you can.
Thanks in advance.

You already have my TWL4030_Keypad.kl, see above.
If that's not working, something is screwing around behind your back.

Renate NST said:
You already have my TWL4030_Keypad.kl, see above.
If that's not working, something is screwing around behind your back.
Click to expand...
Click to collapse
I tried using your twl4030_keypad.kl text earlier (as soon as I had seen your thread) but it was to no avail. I was actually referring to the physical files, not just the text from them. Also, I think that it is not just the twl4030_keypad.kl but also the other two files I mentioned above, because of what I did earlier.
Earlier, I looked at my querty.kl file and found that the keys 139 and 158 had been called up earlier for back and menu. I deleted these lines, and thought that my problem was solved. Unfortunately, what ended up happening was that I just lost my two back and menu-mapped page turn buttons. Now none of them do anything at all. Under your UsbMode.apk they are UNKNOWN.
I think something is screwing around behind my back, but I don't know what, how or where.
I have searched for 'key' and '.kl' before and only files I knew existed (in /system/usr/keylayout and in /sdcard) were found in the search results. Maybe it is a hidden file or something.
It is definitely not in /data because, after yet another factory reset (this time after renaming all my .kl files to .kl.test, the pages still did not work, stock or rooted.
Is there a simple way for a n00b like me to restore my nook completely, resetting /data, /system, etc.
If so, I would love to know.
Otherwise, please let me know if you have any ideas.
Again, sorry for the long post.
Thank you for all the help you've given me. I would have got nowhere near this far on my own.
If you think it would help, I could send you my /system/usr/keylayout zipped or something like that, I don't know about forum rules etc.

qwerty.kl is the default file only for Qwerty keyboards, that is USB keyboards
gpio-keys.kl is only for the power button and the "n" (home) button.
TWL4030_Keypad.kl is only for the four side hardware buttons.
If your four side hardware buttons are acting up the only thing in keylayout that can affect it is TWL4030_Keypad.kl
Do you have the file name capitalized correctly?
You are editing it with a Unix style text editor (LF, not CR/LF)?
I forget if it tolerates CR.
After you write it and reboot does it stay the way you wrote it last?

I'm giving you a thanks because, although the file had the right name and capitalization, and did not change on reboot. When I was carefully checking the name, I saw the permissions underneath. I edited them in root explorer to exactly what the permissions of the qwerty.kl and omap...kl
I rebooted and.....SOLVED!
So thank you very much for helping me and keeping me going on this.
I have 1 other thing I just wanted to ask. It is not major but is just slightly annoying me.
I have my four keys - this is what I want to happen:
Top left - Page Back and Volume Down (for modified Kindle app)
Top right - Page Forward and Volume Up (for modified Kindle app)
Bottom left - Menu
Bottom right - Back
I have tried to make this happen, but failed so reverted to a backup. This is what I have:
Top left - Page Back
Top right - Page Forward
Bottom left - Menu
Bottom right - UNKNOWN.
My main sub-annoyance (in this small annoyance) is the lack of the back button's working. It would be nice to have the top left and top right usable for pretty much any app that supports either nook page turn buttons or volume buttons for page turning.
Thanks again.
ps Don't worry about this one too much, it's not a big deal.
pps I'm going on a school trip, after which I am going on a youth camp trip, so from Sunday to Monday I won't be on here.
I'll be straight back when I can.

PowerNOOK said:
I have my four keys - this is what I want to happen:
Top left - Page Back and Volume Down (for modified Kindle app)
Top right - Page Forward and Volume Up (for modified Kindle app)
Bottom left - Menu
Bottom right - Back
Click to expand...
Click to collapse
I wanted my hardware buttons to page forward/back in the B&N stock reader and other readers I installed. So I contributed a mod to NTMM to support mapping a button to screen taps since most readers support page turns by tapping on the left or right side of the screen. I use the Tap Left/Right with the B&N reader, Aldiko and Overdrive Media Console and it works great. I just installed the stock (unmodified) Kindle app to test and it works with it as well.
So try this. Put your TWL4030_Keypad.kl file back to stock. Use NTMM to map your keys like this:
Top Left - Tap Left
Top Right - Tap right
Bottom Left - Menu
Bottom Right - Back

straygecko said:
So try this. Put your TWL4030_Keypad.kl file back to stock. Use NTMM to map your keys like this:
Top Left - Tap Left
Top Right - Tap right
Bottom Left - Menu
Bottom Right - Back
Click to expand...
Click to collapse
Thank you for this. I have tried it but could only get it to work with all the page turn buttons turning pages, not with back and menu. When I set the bottom buttons to back and menu, they do not work and neither do the top page turn buttons work as standard page turn buttons.
I am not too bothered about this, but the thing that is really annoying me is this: One of the bottom page turn buttons will not work. This is a variable, as, upon remapping, I can make the one that is not working at one time work fine another time, however, then, the other one will not work.
eg. The right bottom page turn button is not flicking the page forward. Using root explorer, I remap the right button as 'back'. Then the right button works, but the left one stops working.
Thank you for the help though, as I mainly use the top page turn buttons (they are right by my thumbs) and its really neat to have the same comfortable page turn buttons for both nook stock reader and kindle app

I think you have problems with your keylayout files. Attached are the stock files from the /system/usr/keylayout directory. Backup then delete everything in that folder and unzip this into it and then try mapping the keys with NTMM.

Sorry, but where are the attachments. Sorry if im being stupid.

PowerNOOK said:
Sorry, but where are the attachments. Sorry if im being stupid.
Click to expand...
Click to collapse
Sorry, I'm the one being stupid. Here's the attachment.

Thanks. ill try this when i get back to camp at the moment im using my friends wifi hotspot

I used root explorer to backup /system/usr/keylayout as /system/user/keylayout backup and then unzipped and copied and pasted your folder in. I found it to not work. I tried a lot of different things like editing lines, permissions, etc.
Eventually I gave up so I renamed my /system/usr/keylayout backup folder back to /system/usr/keylayout, hoping that a message would come up on the screen asking me if I wished to overwrite the files. No such message came up. Instead, I could see two folders in /system/usr, both entitled keylayout. I found the backup one and deleted it, then root explorer decided to delete both. Now, I have no keylayout folder, and none of the keys work. I tried re-decompressing your zip file and putting it in again, then factory resetting, but my nook stops me from registering after the wifi connection stage, with the following error message:
Error
Sorry we're having trouble setting up your NOOK.
Please shut down the device and try again.
For help, visit www.nook.com/support or call Customer Support on 1-800-THE-BOOK
(1-800-843-2665)
I have tried with many different wifi networks, but still the same result. I have tried rebooting several times by holding down the home and power buttons simultaneously for 40 seconds, and have re-factory reset but still no result.
Is there a backup image or something out there so I don't have to either treck to the shop from which I bought my nook or fork out £29
Please, any help would be hugely appreciated

I have just managed to use nook manager to completely restore my nook and then re-root it. everything is working great. i am now using nook touch mods manager to configure the page turn buttons and have the ideal setup I talked about earlier. I am just installing all the bits of pieces but everything is working. thank you to everyone for helping me so much. i am now going to only change button actions with nook touch mod manager and not do it manually.
Thank you so much jeff_kz for making NookManager

Related

not possible to assign hardware buttons?... And more...

1. Looking at buttons in Settings, the list is simply empty, no buttons to assign. Am I doing something wrong?
2. Also, I can't find an option to make the X button actually close an app, instead of minimizing it. Again, am I doing something wrong?
3. I noticed that on first startup Windows doesn't ask you to align the screen. Yet the option is there. But how do you accurately align the screen with fingers? I find the screen very unresponsive in the top left and right corner. Also, while typing I have to aim somewhat above the key I mean to hit. Is this a question of getting used to, or has it to do with bad alignment?
4. Where's the autorotation? Is there a way to tell the device which apps to autorotate and which not? For now, hardly anything rotates of its own accord. And since I can't assign rotation to a button it might as well go without a G-sensor.
bartveld said:
1. Looking at buttons in Settings, the list is simply empty, no buttons to assign. Am I doing something wrong?
2. Also, I can't find an option to make the X button actually close an app, instead of minimizing it. Again, am I doing something wrong?
3. I noticed that on first startup Windows doesn't ask you to align the screen. Yet the option is there. But how do you accurately align the screen with fingers? I find the screen very unresponsive in the top left and right corner. Also, while typing I have to aim somewhat above the key I mean to hit. Is this a question of getting used to, or has it to do with bad alignment?
4. Where's the autorotation? Is there a way to tell the device which apps to autorotate and which not? For now, hardly anything rotates of its own accord. And since I can't assign rotation to a button it might as well go without a G-sensor.
Click to expand...
Click to collapse
With point 3, you'll get some debate about this with various people. I think there should be an alignment as everyone presses the screen at different angles and its not going to know that unless you align it.
HTC Hero had same problem, screen edges were unresponsive, until you did a calibrate of the keyboard and then it was perfect.
It is an option missing...!
ad 1: if you make shortcut of any program you want to run, rename it to long_send.lnk and copy to C:\windows, then long press left button and this program will be executed. (I downloaded from XDA rotate.exe to rotate screen)
ad 2: install Duttys HTC task manager, restart and X is back (also in settings yo can configure its function)
ad 4: there is a possibility to "unlock" rotation in registry, but as long as you can not see any buttons in buttons setting it's pointless... that's why I used point 1 solution
bartveld said:
3. I noticed that on first startup Windows doesn't ask you to align the screen. Yet the option is there. But how do you accurately align the screen with fingers? I find the screen very unresponsive in the top left and right corner. Also, while typing I have to aim somewhat above the key I mean to hit. Is this a question of getting used to, or has it to do with bad alignment?
Click to expand...
Click to collapse
It's still there (sorry in Dutch)
Start > Instellingen > Menu > Meer > Systeem > Scherm
In English it should be something like
Start > Settings > Menu (at the bottom of the screen) > More > System > Screen
Vlk_77 said:
ad 1: if you make shortcut of any program you want to run, rename it to long_send.lnk and copy to C:\windows, then long press left button and this program will be executed. (I downloaded from XDA rotate.exe to rotate screen)
Click to expand...
Click to collapse
Is this some cruel joke ? how did you do that on HD2 ?? Would be awesome if it worked....
EDIT: MY BAD.... Best trick ever !! thx !
Thanks for the input, everybody.
if you make shortcut of any program you want to run, rename it to long_send.lnk
Click to expand...
Click to collapse
Still, that gives me just one long press button to assign. There are at least three buttons that could be used for different apps. I just don't understand what HTC were thinking. Why have 5 buttons on a device and disabling the assign option?
It's still there (sorry in Dutch)
Start > Instellingen > Menu > Meer > Systeem > Scherm
Click to expand...
Click to collapse
I know it's still there, but I wonder how you can properly align a screen with finger presses as opposed to the pinpoint accuracy of a stylus.
Before this I had the Omnia 2 with the same lack of autorotation options (actually, I'd hoped that returning to HTC would have solved that, but no...). Some clever developer had whipped up a very nice program called RotationDetection, with which you could decide which apps should autorotate. Something like that should be made for the HD2!
Vlk_77 said:
ad 1: if you make shortcut of any program you want to run, rename it to long_send.lnk and copy to C:\windows, then long press left button and this program will be executed. (I downloaded from XDA rotate.exe to rotate screen)
Click to expand...
Click to collapse
I tried this, and for some reason I can't get it to work. Here's what I did:
Downloaded rotate.exe to my storage card.
Created a shortcut to rotate.exe, also on the storage card, and renamed it long_send.lnk
Copied this shortcut and pasted it in the Windows directory on the phone.
Now, if I select long_send.lnk in the Windows directory, the screen does indeed rotate. But I can't get the screen to rotate by holding the send key down.
I have already soft-reset, and this does not solve the problem.
Any ideas?
robertlewisca said:
I tried this, and for some reason I can't get it to work. Here's what I did:
Downloaded rotate.exe to my storage card.
Created a shortcut to rotate.exe, also on the storage card, and renamed it long_send.lnk
Copied this shortcut and pasted it in the Windows directory on the phone.
Now, if I select long_send.lnk in the Windows directory, the screen does indeed rotate. But I can't get the screen to rotate by holding the send key down.
I have already soft-reset, and this does not solve the problem.
Any ideas?
Click to expand...
Click to collapse
Did you use THIS Rotate Screen with the shortcut link?
http://forum.xda-developers.com/showthread.php?t=347705
You will need to install Rotate Screen.cab (or Rotate Screen CW.cab) 1st
The Rotate Screen CW.cab is for counterclockwise rotation.
For me it's working great. When I hold the "call" button for some time the screen rotates.
did anyone install AEbuttons on the HD2
it works wonderfully on X1, HD1, diamond 2. it can assign 4 programs or functions to each button and that includes the volume buttons
htc-hd2 said:
Did you use THIS Rotate Screen with the shortcut link?
http://forum.xda-developers.com/showthread.php?t=347705
You will need to install Rotate Screen.cab (or Rotate Screen CW.cab) 1st
The Rotate Screen CW.cab is for counterclockwise rotation.
For me it's working great. When I hold the "call" button for some time the screen rotates.
Click to expand...
Click to collapse
Okay, so I used that rotate screen cab, installed it, found the shortcut it created in windows/start menu/programs and copied it. Then, I pasted a shortcut to it in the windows directory, and renamed that shortcut long_send.lnk. Then restarted.
Still doesn't work. When i run the shortcut directly in the windows directory, the screen rotates. When I run the 'Rotate' shortcut from the Start menu, the screen rotates. When I long press the send button, the screen does not rotate. Am I missing a step?
Not sure what you call the "send" button.
It's the most left button on the bottom that you need to press for about 3 to 4 seconds.
One more thing..
The "long_send.lnk" should be in the Windows directory.
htc-hd2 said:
Not sure what you call the "send" button.
It's the most left button on the bottom that you need to press for about 3 to 4 seconds.
Click to expand...
Click to collapse
Yes, the button on the bottom left - the one that if you press and release takes you to the phone screen. At any rate, I can't get it to work the way that has been described. Any suggestions?
I just did this and works realy good.
Thanks for the great tip.
htc-hd2 said:
One more thing..
The "long_send.lnk" should be in the Windows directory.
Click to expand...
Click to collapse
Yes, as i mentioned, I put the 'long_send.lnk' shortcut in the Windows directory. Have tried and retried this about a dozen times now. Still no joy.
Not sure about rotate.exe, but FWIW, Gyrator 2 works fine and is customizable based on apps.
robertlewisca said:
Yes, as i mentioned, I put the 'long_send.lnk' shortcut in the Windows directory. Have tried and retried this about a dozen times now. Still no joy.
Click to expand...
Click to collapse
Okay, I FINALLY figured it out, and I'll post what happened just in case anyone else runs into the same issue.
I followed the instructions as posted and changed the name of the shortcut to Long_Send.lnk and put it in the Windows directory. However, apparently when you use the Rename function, it just allows you to rename the file and not the extension. It doesn't indicate this anywhere, so I thought I was renaming both the file name and the extension. So, when I renamed to Long_Send.lnk, what I must have in reality been doing was renaming it to Long_Send.lnk.lnk - and therefore it didn't work.
Once it dawned on me that this might be the case, I renamed the shortcut again, this time without adding the extension at the end (Long_Send), and voila - it worked.
Never had to rename a file in WinMo before, so I was unaware that the Rename function only renames the file name, and not the file extension.
FYI, you can remap most (if not all) hardware buttons with the .lnk hack. Here's more information on how to do it.
Unlike programs like AEButton Plus, it will only allow you to assign short and long keypresses (no double- and triple-presses), but won't consume any system resources, won't be draining your battery, won't conflict with any other software that uses keyboard hooks.
Use it with caution though.
I missed it - does aebutton work? How about the utility like this one: http://forum.xda-developers.com/showthread.php?t=256525
I could have sworn I saw one specifically for HTC phones to remap the volume. It was something like vol up = dpad up, hold up for dpad left...etc.
I never use the volume controls on my current phone (Advantage 7501), and I'm expecting to be able to use vol up/down as dpad up/down for scrolling list and most importantly next page in reading a book!
polstein said:
I could have sworn I saw one specifically for HTC phones to remap the volume. It was something like vol up = dpad up, hold up for dpad left...etc.
Click to expand...
Click to collapse
This is the one you mean: http://forum.xda-developers.com/showthread.php?t=552947. Haven't tried it yet.

Button Saviour problems!

I registered on here for this specific question, and any help would be greatly appreciated.
I recently rooted my Nook Simple Touch (1.1) with TouchNooter 1.1. Everything was working perfectly, except the home button. Every time I would press it, it would ask to open with 'Home' (later I found out this is the standard Nook home screen) or something else I could not remember that would send me to the Android home screen.
So a few hours after I rooted I selected Always open with 'Home' (the Nook home, not the Android home). Attempting to reverse this I re-rooted my Nook with no luck. Then I tried restoring it, but Button Saviour is still on the side! How is that possible?
I remember it saying I could reverse the problem by going to the Android settings app. But I can't do this because I can't reach the Android home!
So my question is: how can I clear the setting? I'm using Mac OS X. Thanks in advance
I followed this guide to reset my Nook: [N2E] Recovery and Source for Nook Touch (see Kohr-Ah's post) and re-rooted and everything was back to the way it was
Thanks anyways XDA
corbin052198 said:
I followed this guide to reset my Nook: [N2E] Recovery and Source for Nook Touch (see Kohr-Ah's post) and re-rooted and everything was back to the way it was
Thanks anyways XDA
Click to expand...
Click to collapse
If you come across this issue again, the simplest method is to put a second launcher in /data/app folder of TouchNooter, use the card again, this will force the choice to come up again.
GabrialDestruir said:
If you come across this issue again, the simplest method is to put a second launcher in /data/app folder of TouchNooter, use the card again, this will force the choice to come up again.
Click to expand...
Click to collapse
Alright, thanks
I'm aware that this is slightly offtopic but found that Button Saviour is useless (for me) and only consumes precious CPU. Just map "n" button to "go to desktop" in AWD settings and the only thing You loose is the back arrow but that one can be accesed from the upper bar (that with clock and battery) so 99,9% of the time Button Saviour is useless.
I've notices a slight improvement of Nook overall speed by uninstaling it.
You can uninstall it by apps like "root uninstaller" along with others systems apps (like gmail, music) (this topic pops up in google cause it has ambigious title so Ive just added this for others)
After I rooted, I can't go to the android home. Always goes to nook home. When I click the button savior it just say "Button Savior has ben denied superuser permission". Tried to connect using adb to uninstall Button savior but it doesn't work. Tried to root again using touchnooter 2.1.31 but no luck. Please help.
Soea said:
I'm aware that this is slightly offtopic but found that Button Saviour is useless (for me) and only consumes precious CPU. Just map "n" button to "go to desktop" in AWD settings and the only thing You loose is the back arrow but that one can be accesed from the upper bar (that with clock and battery) so 99,9% of the time Button Saviour is useless.
Click to expand...
Click to collapse
I thought I can live without button savior but in several apps I am using the upper bar is not available.
ssc742 said:
After I rooted, I can't go to the android home. Always goes to nook home. When I click the button savior it just say "Button Savior has ben denied superuser permission". Tried to connect using adb to uninstall Button savior but it doesn't work. Tried to root again using touchnooter 2.1.31 but no luck. Please help.
Click to expand...
Click to collapse
did You try long pressing the home button in button saviour? it should open a window with curently opened apps, i dont think this will help much but try it
cceerrtt said:
I thought I can live without button savior but in several apps I am using the upper bar is not available.
Click to expand...
Click to collapse
it just hit me theres another way
1.open Nook Touch Tools
2.select "B&N buttons"
3.select "'n' button goes to home directly"
4. (optionally) select "'reading now' button action" and choose "orientation" (so You can change orientation with one click by clicking that book icon in upper left corner)
5.select "Long press 'n' button action, change it to "Open recent app dialog"
6.select "show extra action buttons in recent dialog"
7.now you can access "back arrow" by long pressing the "n" button (physical button), i know its not the best (cause you have to press it like 3 sec) but it works xD
that's also my setup but I stay with the button savior (as a backup option) because sometimes it is more comfortable than longpressing "n" button, which doesn't work 100% and takes time.
Was able to fixed the issue. I restored to original and re-root again.
Thanks
I didn't find much utility in Button Savior. Except for the home button it mostly said "This feature requires 2.2".
With the "n" button hacked, the lower left hardkey as back and the lower right hardkey as menu I don't need anything more.
I would miss the original functionality (previous and next page) on the right side. I have just lower left button remmaped to Back. It would be great if NookTouchTools (cant remember the exact name) could allow to define also long press actions for hardware buttons (I would use those for menu access).
Once I got to Android home screen, I re-mapped my buttons. I'm right handed, so I usually don't use the left buttons. The top left button is Menu, the bottom left button is back, and long press home button is Android home. After that I killed Button Savior
Exactly the same for me.

[Q] (Change power button) - modifying leo-keypad.kl doesn't help

Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..
im sure you've noticed that ANY button will unlock the phone when running Hyperdroid. (not to insult) i too, ran into the problem you are describing and found that mashing the physical buttons (any for any reason) just seemed hard on my precious Leo.
i downloaded "screen off and lock" from the market. it IS an ON-screen alternative (and a useful one at that) to trying to remap the physical keys. i simply replaced my launchers contact icon with the 'screen off' one (that way it will show on any home screen) and i simply go to the other end of the spectrum (using the green CALL button) to bring it off standby.
hope this helps. cheers
oh, almost forgot ... "screen off and lock" REQUIRES root!!!
MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .
Thanx!
shanman-2 said:
Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..
Click to expand...
Click to collapse
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.
MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
I simply put lock screen widget on my screen,it s free from market and works great,now i use end key only to boot the phone
Thanks.
elesbb said:
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .
Click to expand...
Click to collapse
I just wanted to say thanks for this post. I was struggling with some button remapping issues and this was the cause. I only edited the keypad.kl and not the qwerty.kl as well.
So thanks again man.
MimKoRn said:
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.
Click to expand...
Click to collapse
could you elaborate a bit on that? i dont know where the kwerty.kl resides (yes, i m well versed with editing things in system files with root explorer)
did you find the key number and change with another key number? if so, to set an empty key (that doesnt work on pressing) what do i replace it with?
would be appreciated
why doesnt any one use button remapper it works perfect for me i have my call button set to
shut off screen and as shutdown or restart phone i dont use my end call key for anything now

Need Help Recovering from Keyboard Remap Error

I wanted to post this as a reply to the thread that described what I tried to do which is posted in the S5 Android Development forum but since I am a newbie it wouldn't let me post there. The thread described how to remap the Capacitive Recents / Menu key so that it becomes a Menu/Recents key (i.e swap the short/long press functions). After making the prescribed edits to generic.kl and gpio-keys.kl, I couldn't figure out how to perform the last step to edit android.policy.jar. After scratching my head for a while I read the rest of the thread and found that you can only do this on a deodexed ROM.
I then went back in and edited the generic.kl and gpio-keys.kl files to the way they originally were. However, after rebooting I found that now neither the Recents/Menu capacitive key nor the Back key are working. When pressed, they light up but nothing else happens. To make matters worse, the Power key does work either. So when the unit turns itself off I now have to pull the battery, then I can press the Power key to boot the phone back up. However, once the phone has booted pressing the power key again does nothing - neither a short nor a long press.
I have looked over the edits to those two files carefully but don't see what I've screwed up. I even copied them to my PC and used Notepad++ to see if anything would be obvious. I have now done everything I can think of with no effect including a complete factory reset.
Can someone upload their working copies of these two files so I can compare to mine and see what I've done? If you have any other theories, I'd appreciate hearing them as well. Thanks in advance!
I was trying to disable the Home key from waking the device up, and I screwed my Generic.kl up as well. I changed it back (but not my gpio-keys.kl) and got the keys working again. The file is attached. Rename and drop the ".c" off of the end (had to do that to make it a valid file to upload).
And, no, I have not had success disabling the home key while the phone is sleeping.

Completely lost function of both soft keys and power button????

Hello there! As the title indicates, I've ran into a bit of trouble a few minutes ago. While setting up my new replacement S5, I managed to lose both of my soft keys and my power button. While restoring the replacement, everything went smooth (Titanium Backup complete restore, files, settings, Xposed modules, etc.). However, before sliding in my SIM card, I realized there was one more VERY important issue to tackle before my new phone would match my current one...I needed to replace my left soft key from the default recent tabs, to the menu button. No sweat, I did it with my current phone, so this should be cake. Or so I thought. I tracked down the same how-to from before (written verbatim below), edited the file, rebooted, and BOOM, just like that, my soft keys and power button were completely useless. I confirmed I didn't make a typing error, in addition to sending the exact same file from my current phone to the new one, and replacing it with the file that I KNOW works...still a no-go. I even switched the wording back to its original wording. Nothing. Also, although the buttons don't work, the power button DOES work to power the phone back on, but becomes useless again once it boots up. Lastly, the home button still functions perfectly.
If anybody has any ideas, suggestions, similar experiences, they would be greatly appreciated. Both phones are obviously rooted and run 4.4.4. Model Number SM-G900V. I believe the baseband version and build numbers vary between the two though. If those numbers are important, let me know and I'll post them. If there's something else you need, just ask away.
Thank you in advance! Method used below:
To Replace the Recents button with Menu
-Navigate to system/user/keylayout/Generic.kl
-Edit Key 254 from App_Switch to Menu
-Navigate to system/user/keylayout/gpio-keys.kl
-Edit Key 254 from App_Switch to Menu
*solved* feel free to take the thread down. Thank you.
Mattrleaf said:
Hello there! As the title indicates, I've ran into a bit of trouble a few minutes ago. While setting up my new replacement S5, I managed to lose both of my soft keys and my power button. While restoring the replacement, everything went smooth (Titanium Backup complete restore, files, settings, Xposed modules, etc.). However, before sliding in my SIM card, I realized there was one more VERY important issue to tackle before my new phone would match my current one...I needed to replace my left soft key from the default recent tabs, to the menu button. No sweat, I did it with my current phone, so this should be cake. Or so I thought. I tracked down the same how-to from before (written verbatim below), edited the file, rebooted, and BOOM, just like that, my soft keys and power button were completely useless. I confirmed I didn't make a typing error, in addition to sending the exact same file from my current phone to the new one, and replacing it with the file that I KNOW works...still a no-go. I even switched the wording back to its original wording. Nothing. Also, although the buttons don't work, the power button DOES work to power the phone back on, but becomes useless again once it boots up. Lastly, the home button still functions perfectly.
If anybody has any ideas, suggestions, similar experiences, they would be greatly appreciated. Both phones are obviously rooted and run 4.4.4. Model Number SM-G900V. I believe the baseband version and build numbers vary between the two though. If those numbers are important, let me know and I'll post them. If there's something else you need, just ask away.
Thank you in advance! Method used below:
To Replace the Recents button with Menu
-Navigate to system/user/keylayout/Generic.kl
-Edit Key 254 from App_Switch to Menu
-Navigate to system/user/keylayout/gpio-keys.kl
-Edit Key 254 from App_Switch to Menu
Click to expand...
Click to collapse
If rooted, you can use this application
https://play.google.com/store/apps/details?id=com.phoenixstudios.aiogestures&hl=fr
It allows gestures but also to map menu, back and home buttons.
Best regards
Franky

Categories

Resources