Related
Is there anyway, with an existing app - or a tweak on an xml file etc that I can change the up and down volume buttons when the phone is in landscape?
On the stock rom - when you are in landcape - pressing "left" to increase volume is so utterly counter intuitive it drives me insane!
teapea said:
Is there anyway, with an existing app - or a tweak on an xml file etc that I can change the up and down volume buttons when the phone is in landscape?
On the stock rom - when you are in landcape - pressing "left" to increase volume is so utterly counter intuitive it drives me insane!
Click to expand...
Click to collapse
i have no time to search the buttons assignments, in fact it should be easy to do, if you get me how to asign buttons, i could do a script for you..
There is a button re-mapper. See if it helps you.
http://forum.xda-developers.com/showthread.php?t=850464
Yeah it's easy enough to change the key mappings in the /system/usr/keylayout/*.kl files - the problem is that it doesn't affect the phone until a reboot.
It's also an issue of hooking into "something" so that when the phone rotates it swaps the commands over. I believe CM does this (as well as for any D-pad swapping on rotation) by hijacking the input queue in the file KeyInputQueue.java
However as I'm on a stock ROM and can't really edit this, I'm guessing it's not really possible.
So... I've just permanently swapped the buttons over for the time being. I never use volume controls unless I'm watching vids and at that point I'll always be in landscape - so I'll take the annoyance on the portrait mode instead!
teapea said:
Yeah it's easy enough to change the key mappings in the /system/usr/keylayout/*.kl files - the problem is that it doesn't affect the phone until a reboot.
It's also an issue of hooking into "something" so that when the phone rotates it swaps the commands over. I believe CM does this (as well as for any D-pad swapping on rotation) by hijacking the input queue in the file KeyInputQueue.java
However as I'm on a stock ROM and can't really edit this, I'm guessing it's not really possible.
So... I've just permanently swapped the buttons over for the time being. I never use volume controls unless I'm watching vids and at that point I'll always be in landscape - so I'll take the annoyance on the portrait mode instead!
Click to expand...
Click to collapse
I just needed to know that *.kl thing wait im gonna make a script
EDIT: It's not gonna be so easy
D4rKn3sSyS said:
I just needed to know that *.kl thing wait im gonna make a script
EDIT: It's not gonna be so easy
Click to expand...
Click to collapse
Yeah - got to the same point at me now
Woo and indeed Hoo!
Managed to work out what's going on, and after a bit of smali editing - it's all working.
Essentially, the DPAD rotation stuff is already in there, but since the device doesn't have the DPAD it's a bit useless. However it's possible to fool the device into thinking it's got a DPAD and using the existing rotate routine, and instead of remapping DPAD directions remap the VOLUME_UP and VOLUME_DOWN keys.
Seems to work perfectly!
I will tidy up the code (lots of debug hooks in at the moment!) and write a HowTo - but since it's hacking the internals of services.jar - my version would blat over the top of any custom theme.
any news about this?
Heya,
does anyone know if there is an alternate onscreen keyboard that can override the current one that comes with webos? I find myself really really really missing the arrow keys considering they're nonexistant in the damn thing.
mputtr said:
Heya,
does anyone know if there is an alternate onscreen keyboard that can override the current one that comes with webos? I find myself really really really missing the arrow keys considering they're nonexistant in the damn thing.
Click to expand...
Click to collapse
SECONDED! I've been searching as well and haven't found anything. The optical sensor on my phone spoiled me, I keep wishing there was one on here. I also seem to hit enter a lot by accident rather than backspace.
No Arrow keys + Fat fingers = PITA to select text in the right spot to fix a typo.
It would be nice to have a swiftkey or swype clone for it.
If only there was more dev support for webos. or atleast partial support, it would be amazing. I just want those 4 arrow keys. will make it awesome
This is my first real bit of development work. I just wanted to post a mod I put together, and how to install it. It's simple enough that someone else may have done it before me.
PROBLEM
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
WHAT YOU NEED
TF201 (TF101 version coming soon!)
Keyboard Dock
Root (Does *not* require unlocking)
File replacement tool: Terminal Emulator, a Root File Manager of your choice, or ADB
STEP 1
(Root your TF201 if you haven't already.) Download my modded asusdec.kl below. You'll need to extract it. For the purposes of commands I use below, put the extracted asusdec.kl in:
/sdcard/download
STEP 2
navigate to: /system/usr/keylayout
STEP 3
Back up your asusdec.kl. I've provided a backup of mine, from .21, which should work in the event of a problem.
STEP 4
Replace your asusdec.kl with my modded one. You can do that any way you like, but I prefer doing it in a Terminal session. You may need to remount /system as RW. Terminal Commands are:
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /system
Code:
mv -f /sdcard/download/asusdec.kl /system/usr/keylayout/asusdec.kl
STEP 5
Reboot! After that, you're all done.
RESULTS
If the mod has been performed correctly, your Search key will now perform ALT_LEFT instead, which allows you to use ALT commands where they would apply (Alt-Tab being the biggest one). To make up for this, your ALT_RIGHT key has been remapped to SEARCH. You've lost no functionality
FILES MODDED
/system/usr/keylayout/asusdec.kl
DOWNLOAD
ORIGINAL
MODDED
Awesome! Thanks!
Added to the ROM/Kernel and Tweak Directory.
Nice work
pbrauer said:
Added to the ROM/Kernel and Tweak Directory.
Nice work
Click to expand...
Click to collapse
Thanks! I'm looking forward to doing more in the future. I have all the files I need to do the same mod for TF101, but I don't have a rooted TF101 to test it on. I don't like posting unverified files, but if i can find a tester, I can wrap up that version ASAP.
I also intend to do a couple of mods for specific bluetooth keyboards.
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Great, I was waiting for this since ages ...
Just one issu is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
Yes you can! You have to do it manually though, there is no software that can do that
The way to do it, is to put your nail under the key on either top or bottom and just flip it out. After you've done that, you can just put it back by pressing it down untill you hear a nice 'click'.
I have done so myself and I must say I'm quite comfortable with the result
Btw, nice work Pandages!
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Click to expand...
Click to collapse
Possibly! It looks like someone else already answered this one, above me.
polo2503 said:
Great, I was waiting for this since ages ...
Just one issue is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Click to expand...
Click to collapse
If you'd like to work with me, I could make a version that would do specifically what you need. I'm happy to help.
RubenRybnik said:
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Click to expand...
Click to collapse
Actually yes. It would be super easy to make the Lock key do something else, but most of the types of keystrokes you're looking for are baked into the framework. Most of them can launch your default app for a given function, rather than the stock app, but some are stock-app-specific. I like the idea of Ctrl+` to get a terminal, but I think that's outside of the scope of what I can do with .kl hacks.
razgriz8426 said:
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Click to expand...
Click to collapse
I haven't used that ROM, as my TF201 remains locked. However, if you can provide me the *.kl files from the relevant directory, I can probably whip something up for you.
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
RubenRybnik said:
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
Click to expand...
Click to collapse
The special buttons are defined in /system/app/Keyboard.apk
There was a mod created which changed the browser button to use your default rather than be hard-coded to the stock Brower app
Original thread is here: http://forum.xda-developers.com/showthread.php?t=1497624
Sent from my Transformer Prime TF201 using Tapatalk 2
Pandages said:
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
Click to expand...
Click to collapse
Yes but I also like ESC more than the Back Button. Mind cooking up another one with ESC modded in? I dont know if esc is hard coded to cause back in android.
Im always hitting back on accident when using splashtop, It registers the left alt now tho!
Is there any way to type unicode with alt codes? I'm really sick of not being able to triforce while on my tab.
Sent from my tf9001 with XDA XD.
Before jumping to downgrade and root my .21, is it possible to push such files through ADB (without root)? That would be awesome =)
Does this still work on .28 update?
Or does it need to be updated?
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
clockwork58 said:
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
Click to expand...
Click to collapse
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
---------- Post added at 10:38 AM ---------- Previous post was at 10:37 AM ----------
Pandages said:
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
Click to expand...
Click to collapse
any ideas on how to make the sleep button a true delete button, not just an extra backspace button?
nhshah7 said:
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
thanks. when i took out the alt key i took the white part with it. And only took off the cap part from the search key. once i seperated it and put the white part back on, the top of the key went on smoothly. Now to actually DO the mod.
Click to expand...
Click to collapse
I take no responsibility for you breaking or causing issues on your tablet. Do this at your own risk!
Disable your Galaxy Note 8.0 Capacitive Keys
What you will need:
Root
Root explorer or similar program
and Be Careful
First:
Open your root explorer or similar app
navigate to system>usr>keylayout
Second:
Make backup of sec_touchscreen.kl
Third
This step has been, found to be not needed. Skip to step 4!
Fourth:
Open sec_touchscreen.kl
find line:
key 158 BACK WAKE_DROPPED
and place a # in front of it like:
# key 158 BACK WAKE_DROPPED
then find line:
key 139 BACK WAKE_DROPPED
and place a # in front of it like:
# key 139 BACK WAKE_DROPPED
Save your changes and close the file
reboot your tablet, and you are finished.
Your capacitive buttons will not respond to your fingers, but retain functionality with the s-pen.
ENJOY!
step 3 was not needed for this guide to work!
Hey ual4720, thanks for the great guide,this is the sort of stuff we need to get some development started for our tablet.
That's more of a how-to, a mod means flashing something
will there be custom roms coming?
Thai Damen said:
will there be custom roms coming?
Click to expand...
Click to collapse
I woud say yes, considering it's the same specs powering the Galaxy Note 10.1 (at least, i'm betting on this )
I'm actually sort of surprised someone hasn't tried flashing one of the Galaxy Note 10.1 roms on the Note 8 (I'm not recommending this, i'm not a developer. Just surprised no one (big kahuna's) tried this).
I can't wait until someone figures out how to make this a quick option on the drop down menu so we can toggle the keys on and off based on what we're doing
Sent from my SAMSUNG-SGH-I317 using xda premium
Just to be clear - this is only suppose to disable the capacitive function of the hardware buttons, not enable the virtual on-screen buttons or anything (the latter was what I was hoping for)? Don't mean to diminish the value of the first mod to appear on this forum - I just don't quite understand the use case for this. Thanks!
peng1can said:
Just to be clear - this is only suppose to disable the capacitive function of the hardware buttons, not enable the virtual on-screen buttons or anything (the latter was what I was hoping for)? Don't mean to diminish the value of the first mod to appear on this forum - I just don't quite understand the use case for this. Thanks!
Click to expand...
Click to collapse
I use my tablet in landscape a lot! I found it was hard to hold the tablet with both hands because I kept hitting the Capacitive keys. this is my way of solving that! I thought I would Share it.
Sent from my GT-N5110 using Tapatalk HD
I hope it didn't sound like I was criticizing the patch. I was genuinely interested in how people were using this - we all have our own ways of doing things. For example, the hardware buttons have turned out to be more convenient than I expected for me because I use the tablet in bed a lot, and I find it's easier to touch the buttons if I hold the tablet upside down, so the buttons are at the top. With virtual buttons, they'd just move themselves back to the bottom!
Thanks, working good with LMT launcher.
colhavoc said:
I woud say yes, considering it's the same specs powering the Galaxy Note 10.1 (at least, i'm betting on this )
I'm actually sort of surprised someone hasn't tried flashing one of the Galaxy Note 10.1 roms on the Note 8 (I'm not recommending this, i'm not a developer. Just surprised no one (big kahuna's) tried this).
Click to expand...
Click to collapse
Similar specs, but different. If you tried flashing a ROM you'd softbrick your device. There are a number of devs working on ports and I'm sure we will be seeing customs appearing soon in the future.
Sent from my GT-N5110 using XDA Premium HD app
Thanks a lot for sharing detail information about the Galaxy Note. This will be helpful for me to developing stuff.
Hello all,
after disabling capacitive keys, install GMD gesture control to get the same through customized swipes.
Now SNote will work without being annoyed by keys at the end of the page
Hi all,
I kinda like the HW buttons and I wished they were real buttons rather than capacitive.
Is there a way to disable them ONLY in certain apps? I would like them to be disabled when I use S notes only.
Also,
the mod mentions "Your capacitive buttons will not respond to your fingers, but retain functionality with the s-pen."
So I can actually still use the buttons using the Spen?
Thanks!
For those who tried this, I wonder what app do you use to simulate the "back" and "menu" button WITHOUT using the Stylus?
I'd love to disable the capacitive keys, but there are times when I need to bring up the menu or go back WITHOUT taking out the Stylus and drawing the gesture.
lanwarrior said:
For those who tried this, I wonder what app do you use to simulate the "back" and "menu" button WITHOUT using the Stylus?
I'd love to disable the capacitive keys, but there are times when I need to bring up the menu or go back WITHOUT taking out the Stylus and drawing the gesture.
Click to expand...
Click to collapse
i use apps gesture control. can get it from playstore. the free version is sufficient for daily use unless you want to make custom gesture. go for pro.
andrianarison said:
Hello all,
after disabling capacitive keys, install GMD gesture control to get the same through customized swipes.
Now SNote will work without being annoyed by keys at the end of the page
Click to expand...
Click to collapse
Good day. Could you explain "get the same through customized swipes?"
Do you mean it's possible to toggle the editing or renaming of the "sec_touchscreen.kl" file?
Even if you do this, will you need to restart every time?
theraker007 said:
I can't wait until someone figures out how to make this a quick option on the drop down menu so we can toggle the keys on and off based on what we're doing
Sent from my SAMSUNG-SGH-I317 using xda premium
Click to expand...
Click to collapse
I 2nd this.:good:
I'm using the unofficial CM 10.2 for the note and have deactivated both buttons, but they are still glowing. Is there a way to deactivate this too?
kingofcomedy said:
I'm using the unofficial CM 10.2 for the note and have deactivated both buttons, but they are still glowing. Is there a way to deactivate this too?
Click to expand...
Click to collapse
Try in the Setting, where you can disable it.
@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger. The mod involves some changes to the framework.jar file in /system/framework/. To make it work, you just need to replace the current framework.jar file with the one you DL from the following link and reboot. The first reboot takes a long time. It will go to the "Android is starting" screen and take a while to complete. Be patient. It is a good idea to keep a backup of the original framework.jar file.
I have only tested this on the WETA ROM for TMO. However, it should work on any TMO ROM where the framework.jar has not already been modified. I confirmed with @NotATreoFan that his ROM has an unmodifed framework.jar file. So, this should work on his ROM, at least on TMO.
I do not know if the mod will work on v20 ROMs for other carriers other than TMO. You could probably do a CRC compare of the stock TMO framework.jar and the one in your ROM to be sure. If the files are the same, the mod should work.
If it works on your non-TMO ROM, let me know.
https://drive.google.com/file/d/0Bz2LTeGg4ZTHeGpFY1BMZEVRNGM/view?usp=drivesdk
mcdavid said:
@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger.
Click to expand...
Click to collapse
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
2muchspl said:
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
Click to expand...
Click to collapse
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
mcdavid said:
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
Click to expand...
Click to collapse
Definitely gone give this a spin
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
jeep447 said:
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
Click to expand...
Click to collapse
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
jeep447 said:
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
Click to expand...
Click to collapse
Yes. I have used the arrows on swiftkey before. I like the volume keys better because you can use your left hand to quickly move back and forth, while you can swype type with your right, without having to peck around with a finger on the arrow keys. Install the mod and see what I mean.
Vuciz said:
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
Click to expand...
Click to collapse
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
mcdavid said:
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
Click to expand...
Click to collapse
I've used that mod before. I agree it's useful. However I prefer on screen controls.
My new app Cursor Control lets you use the volume keys to easily move the cursor in text fields and works without Root.