Related
While playing music in windows media player, i assigned a button to "Toggle Screen" function which effectively turns off the screen but keeps buttons alive so i can skip/seek/pause/etc... but the problems is that after about 1 minute, hardware buttons get disabled as well (but music keeps playing), which is quite frustrating when you expect buttons to work but they dont anymore.
i'm assuming its because in my power settings i set it to "Turn off device if not used for 1 minute".... But the confusing part is that i've used to have same settings on my PPC-6800/Titan/Mogul and the hardware buttons stayed on forever after i turned off the screen using WMP's "Toggle Screen" function.
is there an excpetion list somewhere that would turn my device off in 1 minute if not used UNLESS there is "WMP/wmplayer.exe" process running? or maybe there is an different solution that would produce the desired result?
PS: i'm running Sprint's stock rom.
Thanks!
You could use AEButton Plus to assign the Screen Toogle to any button you want (for example to long press the action key). That would work in any application, also in WMP.
tried it and AEButton Plus does the job. assigned the function to the d-pad's down button (center button is used for enter, ok/minimize, close, and task-manager through one click, double click, tripple click, long click respectively)... xcept now there is this half a second lag everytime i want to scroll down with the d-pad. quite annoying...
btw after some experimenting i found that wmp's "toggle screen" function turns off the screen and keeps desired buttons working, indefinetely, only if i disable the whole "Turn off device if not used for x minutes" option (Turn off the backlight option doesnt have any effect on wmp's function). so it seems that this function is causing the problem.
since on ppc6800 wmp's function worked perfect without any hiccups even with that power setting turned on, i suspect that there just has to be some way to replicate same behavior on touch pro. is there some place in registry that controls the power settings and its preferences?
PS: i need to "toggle screen" only when in wmp, cuz in other cases i just use power button to effectively turn off and lock the device using s2u2.
I use WMP's built in function of toggle screen. Set it to hold left. It works like a charm.
Kraize92 said:
I use WMP's built in function of toggle screen. Set it to hold left. It works like a charm.
Click to expand...
Click to collapse
what are the settings in your "Start > Settings > System > Power > Advanced" screen? and also, what ROM are you running? because setting 'toggle screen' to hold left and having 'turn off device after x..' set still produce the bug i mentioned in the first post, hardware buttons disabled 40 seconds after initiating 'toggle screen' with wmp...
Hi guys,
My digitizer has died, and till the new one comes I was thinking of how I could use my T7272, I can write the SMS fine, but I can't send them out, cause the button is on the screen itself... is there a rom I could use freely w/o using the touchscreen?
P.S.
Is the digitizer hard to replace?
You could check out AE Button; it has some options like button presses that will activate soft buttons. I suspect you could send sms's using it. You could also try using mortscripts with AE button that will do stuff you need. There are some pretty simple scripts that will simulate screen taps, and you could assign them to a button push. I'd rather have a working touchscreen, though.
Here are some of the commands:
# 91: startmenu (on some devices it might be home button)
# 92: back key (not the backspace key but back key for closing applications which is available on some devices such as diamnd or blackstone)
# 93: menu key
#112: left softkey
#113: right softkey
#114: accept call (green button)
#115: hang up (red button)
#117: volume up
#118: volume down
#126: data disconnect
#127: toggle speaker
#133: devicelock
#223: power off
I use one to lock the device. Basically, you just put this:
Code:
sendspecial(133)
in a .txt file, and change the extension to .mscr. I call it Lock.mscr, and I have it assigned to a few different actions (like when a call comes in, a script locks the phone). So, sendspecial(112) and sendspecial(113) might help you out. There's also one for hitting 'Ok' in popups, which would probably work for you. I can't find it, though (google 'sendspecial' and you'll find it, it's all on msdn).
Anyway, if you install mortscript (maybe you already have it) as well as AE Button, you could assign button pushes to carry out those actions. Just stick the scripts somewhere easy, like the start menu, and it will be easy to set up.
If you want to get more complicated, there are also mortscript commands that simulate button pushes on the screen. You could set one up that would do just about anything. Also, SK Schema does similar stuff. You can write fairly simple sequences of button pushes that will do just about anything. This is one that I use that runs SK Tools Pim backup (I have it scheduled to run every night in the middle of the night).
#r(\windows\sktstart.exe) #p(STH:20)
#tap(146;602) #sleep(15000)
#tap(110;533) #sleep(500)
#tap(339;455) #sleep(500)
#tap(126;604) #sleep(500)
#tap(114;84) #sleep(500)
#tap(146;99) #sleep(5000)
#tap(310;254) #sleep(90000)
#tap(433;602) #sleep(10000)
#pwr() #sleep(10000)
Click to expand...
Click to collapse
Basically, the backup tool gets launched in line 1, then there are a bunch of screen taps (w/ delays, to make sure everything is ready) in the menus to get the right options selected, followed by turning the device off.
I`m not sure... But i saw somewhere app that emulate a mouse (cursor) and you will be able to control this mouse with your D-pad... But I can be wrong...
I can't install that mortscript w/o the touchscreen though..damn it..: )..
Get MyMobiler, and use it to run your device off of a pc. You should be able to get that working.
WARNING! THIS PROFILE IS IN BETA. DO NOT INSTALL UNTIL YOU HAVE READ BELOW!
Beta
When creating this profile I experienced bootloops and splash-screen freezes. If you are not comfortable with how to restore your device from these states, then please wait until it has been thoroughly tested before applying the profiles and tasks.
Testers
If there are any of you left after reading the above I was unable to totally identify what caused the crashes. I hope that through my own testing I have removed the probable causes, but I cannot promise. Read on if you’re still game and post below to let me know you’re in!
New to Tasker? Download your free trial from here
Theory
Have full media control using your device’s hardware buttons when the screen is off. Normal functionality restored when the screen is on.
Current Shortfalls/Work-in-progress
Fast reboot required to allow for system changes (15 second reboot).
- To my knowledge, system changes require this to take effect. Please tell me if you know different? As a consequence, the profiles take about 25 seconds from start to finish to activate and deactivate.
Hardware keys control media at all times, not just when the screen is off.
- A revert profile currently takes care of this, so it’s still more than usable.
Unable to configure hardware keys to only perform actions on long-hold
- I’m working on this, but I think it may be down to Gingerbread/kernel restrictions?
Unable to get trackpad click to perform an action
- Again, Gingerbread/kernel/ROM restrictions?
Ability to skip music folder commands unknown
- I’m working on this
Pop up menu tasks are ugly
- I’ll sort out a suitable background image and work out how to change the icons.
Preparation
This may look like another mammoth, ball-ache of a tutorial, but it’s pretty simple really – make yourself a coffee and by the time you’ve finished it, you’ll be done.
You must have full root read/write access.
1) Ensure you are running the latest version of busybox free from the Market. Even if your current ROM comes with it preinstalled, the Market version allows for this and will update it according. This is essential, as a probable cause of the bootloops I experienced. Reboot after updating it.
2) Install the Locale Execute Plugin free from the Market
3) Download Button Saviour Root free from the Market. We will be messing with the hardware keys, so if you lose control of them, this application will save you by displaying them on the screen. Have a play with this application and make sure you are fully versed with using it just in case.
4) Nandroid backup after you’ve done the above so you don’t have to reinstall everything again should things go wrong {We will be mounting the system for full write access}.
Installing and Customisation
Basically, we will be creating a file with the media controls in and asking Tasker to overwrite the existing file when we want to use it – simple.
Using a file explorer, create a folder within the sdcard/Tasker folder called ‘mediacon’. Within this folder, create another called ‘orig’. Navigate to
Code:
system/usr/keylayout/
Take a copy of the file bravo-keypad.kl (bravo will be replaced with your device name (unless you have a bravo!)). Paste it in the ‘mediacon’ folder you created. Paste another copy in the ‘orig’ folder. Open the file in the mediacon folder with a text editor on your phone (or alternatively copy/push it to your pc and view it there).
From the .zip file below, view the bravo-keypad.kl file on your pc using an application such as Notepad ++ (download free from here) or a simple text editor (although the layout may be a little confusing).
You’ll need to compare the two and see what the differences are. The most important additions to the bravo-keypad.kl to enable the media actions on the hardware keys are:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK
key 217 SEARCH
To:
Code:
key 139 MEDIA_PLAY_PAUSE WAKE
key 158 MEDIA_PREVIOUS WAKE
key 217 MEDIA_NEXT WAKE
The hardware key numbers and the remaining content of the file will no doubt be different from device to device, I assume it will also be different betweens ROMs and user settings too. You will need to preserve the remainder of the file.
Please can I ask you to post the contents of this file in ‘code’ tags if you can’t see that someone has done this for your device already. Could you also detail your ROM and Kernel. It will help others to quickly edit the file with the correct settings without scratching their heads too much – community spirit and all of that.
As you can see all we are doing is changing the three hardware buttons (menu, back and search) to perform media controls instead. You’ll need to edit the file in the ‘mediacon’ folder (either on your device or drag/push to your pc and then back again) to reflect this. Make sure you do not change the file in the ‘orig’ folder! Remember, your device may have different key numbers for the hardware buttons, this won’t matter, just edit the ones listed as menu, back and search and not the ones that have a # before them.
So, now you have your edited file done and your original file stored safely. We’re nearly there!
Install the profiles and tasks and make sure they are unchecked until you have edited them for your needs. The Tasker Media Control V1.zip folder contains the following two profiles:
MediaBoot
MediaControl
It contains the following 8 tasks:
ResetMedVar
MediaMenu
MediaContBoot
MediaContOff
MediaContOn
FastReboot
FastBootConfirm
ContState
The triggers for the tasks are:
Device Boot
Headset Plugged
If you currently have any other profiles that load music apps or perform other tasks when the headset is connected, please disable these.
Firstly, open the task MediaContOn. Click on action 4 (execute action) and select edit. You’ll see two mentions of the bravo-keypal.kl. Replace ‘bravo’ with your device name, or alternatively with whatever the original file was named in system/usr/keylayout/ (I assume it is your device name?). You’ll need to press the back button once you’re done.
Secondly, do exactly the same in the task MediaContOff.
Finally, open the task MediaContBoot and alter action number 2 to the music application you use (if you don’t use the stock android player).
That’s it! You’re done!
Terminal Command Information
There will be a number of terminal commands running, to copy and overwrite files which will mount the /system as read/write. This of course always has its risks, so ensure you have that nandroid backup just in case….
In the task FastReboot, there is the terminal command
Code:
Killall system_server
This command is not without its risks too, but it is the only way to avoid a full reboot in order to apply the system changes.
Running the task for the first time.
In the profiles and tasks, two variables are created:
%EARP – This is set to 2 when the headset is connected and 1 when it is disconnected. By removing the headset (%EARP =1), you will trigger the exit task which will begin to revert the media button changes.
%MEDIACONT – It was necessary to create this variable to avoid Tasker reacting to the headset plugged trigger after the reboot and wanting to start copying the files all over again. If %MEDIACONT = 2, Tasker will therefore know you are already controlling the hardware buttons and it will prevent the headset profile running again. The variable is changed to a value of 1, once the button controls are returned to normal. Simple hey…
When testing, sometimes these variables were showing the wrong value, due to the options to ‘cancel’ at various stages of the tasks. Before you connect your headset and run the profiles for the very first time only, you will need to open the task ResetMedVar and click on ‘test’. This will set both values to 1. At any point, if your variables go out of sync, you can repeat this exercise so the headset connected/disconnected will trigger the profile/exit task accordingly.
So, open ResetMedVar and click test to set the variables to 1. Tick the MediaBoot and MediaControl profiles to activate them and apply to exit Tasker. Insert your headset!
You’ll be prompted with the first pop-up asking if you want to active the media controls. Click to activate (it will disappear in ten seconds and cancel otherwise). Shortly after, a confirmation pop-up will confirm the files have been copied correctly. Shortly after that, another pop up will confirm you wish to proceed with the fast reboot. Click to activate and you’re device will reload the system. It should take around 15-20 seconds.
When the device boots back up, the Button Saviour application will be loaded, to ensure you have button control if things go wrong. Pressing the little arrow on the right hand side of the screen will enable a back button that you can press to back out of the screen. You media player should then load. Choose a happy tune (from a folder/album/artist that has more than one song) (not forgetting you can’t use the back button other than on the screen!) and turn the screen off.
Hopefully, search will skip forward a track, back will skip back a track and menu will play/pause the playback. WHOOP!
When you’ve finished testing, switch the screen back on, unlock it if necessary and then remove the headset. Tasker will then perform the above steps again, replace the files back to the original ones before confirming the fast reboot.
15-20 seconds later, hopefully all of your hardware buttons will then perform as normal!
Job done.
Extras
I couldn’t get the trackpad/optical joystick to perform an action on my device. There is an entry at the very end of MediaContOn and MediaContOff after the STOP. These entries copy and reversely delete a curcial-oj.kl file to /system/usr/keylayout/ that is supposed to enable the trackpad to work. Drag these to position 5 if you’d like to test them on your device to see if they work. Let me know!
Credits
localh0st for the curcial-oj.kl file here
Decad3nce for his key remapping guide here
The mass of other threads I read through on XDA to gain the knowledge to do this and the devs of the free apps mentioned above - I'm sure they'd appreciate a donate.
Oh and of course the dev of Tasker! What an application.... (I'm not on commission I promise!)
FAQ
Q) I have many other Tasker questions, can I post them here??
A) To avoid clutter, probably best to use this official Google group
Q) Where can I learn more about Tasker?
A) The manual and Profiles and step-throughs on the Tasker wiki and you’ll be up to speed in no time.
Change Log
Confirming pop up tasks may be removed in V2.
Bugs
Let me know...
Future Changes/Requests
Find another way to apply system changes without the need of fast reboot.
Hardware keys to only control media when the screen is off.
Configure hardware keys to only perform actions on long-hold to avoid 'pocket-presses'.
Get trackpad/optical joystick click to perform an action
Enable the ability to skip music folders and/or directories.
Pop up menu tasks need sprucing up.
Installation Instructions
In menu options/profile data 'Import One Task':
ResetMedVar
MediaMenu
MediaContBoot
MediaContOff
MediaContOn
FastReboot
FastBootConfirm
ContState
In menu options/profile data 'Import One Profile':
MediaBoot
MediaControl
The thanks meter lets me know I'm appreciated!
Heh, looks like Brandall is taking Tasker to new heights.
Nice work mate, but I just have to add something though...
Using this can help, BUT, it can also "cripple" those Tasker scripts you've posted about battery saving.
Using Tasker for zipping files and extracting them loads my CPU to the max, also, anything that uses notifications and file reads/writes does that too, eventually, using more battery...
Using this I can see a situation where some user might just lock/unlock their screen very often and rapidly, this might cause a major stress on the CPU, ultimately, nulling and voiding your battery saving scripts and potentially causing harm to CPU/battery/device.
And in any case, turning the screen on to switch tracks is really not that much of a hassle, for me anyway.
This is how I see it, just my 2cents.
But keep up the good work buddy, you seem to have been able to utilize Tasker to a MUCH greater extent than what I was able to, will definitely follow your posts.
Gramlengo said:
Heh, looks like Brandall is taking Tasker to new heights.
Nice work mate, but I just have to add something though...
Using this can help, BUT, it can also "cripple" those Tasker scripts you've posted about battery saving.
Using Tasker for zipping files and extracting them loads my CPU to the max, also, anything that uses notifications and file reads/writes does that too, eventually, using more battery...
Using this I can see a situation where some user might just lock/unlock their screen very often and rapidly, this might cause a major stress on the CPU, ultimately, nulling and voiding your battery saving scripts and potentially causing harm to CPU/battery/device.
And in any case, turning the screen on to switch tracks is really not that much of a hassle, for me anyway.
This is how I see it, just my 2cents.
But keep up the good work buddy, you seem to have been able to utilize Tasker to a MUCH greater extent than what I was able to, will definitely follow your posts.
Click to expand...
Click to collapse
Hi Gramlengo, I guess I can count you out as a Beta Tester!?
The logcat/zipping entries should be deleted from the other profiles if you aren't analysing them anymore to see what your phone is up to. As you said, you will use much less resource that way (they will be removed in next release)!
I do a lot of running, so being able to skip track through my pocket (without waking the phone) is essential = my motivation for working this out. For me, being in screen off state therefore won't clash with the other profiles... although saving battery power wasn't a consideration in this profile - there is plenty to spare these days The notifications are for testing and user interaction - I don't use them in my profile, it just overwrites the file and reboots...
I'm running out of ideas for the next profile, I'm open to suggestions! Good to hear you're following my posts, I'll look forward to your feedback - now sign up for this beta, you know you want to....!
Heh, I'd love to be beta testing your ideas!
Gramlengo said:
Heh, I'd love to be beta testing your ideas!
Click to expand...
Click to collapse
Looks like you might be alone there!!
Alright, finally got a time to test this one:
First, I plugged in my headset and got the two pop-up questions which I clicked activate on. Then, nothing happened. After about 10-15 seconds I got a superuser request for the locale execution plugin which i clicked allow and remember my choice on. Still nothing happened. After another 10-15 seconds I got another superuser request from busybox and quickly after a superuser request from locale execution plugin, both which I clicked allow and remember my choice on.
Then the phone finally fast-rebooted. When it was back up and fully loaded, the music application started. I started a tune, switched off my phone screen, and clicked the back button, nothing happened. I clicked the search button, nothing happened. I turned the screen back on, and hey, the back button still functioned as a back button, and the search button still worked as a search button.
What did I do wrong?
My device is a desire HD running leedroid Hd (latest version and kernel).
Does this have something to do with the Desire HD having capacitive buttons?
Will try again, but this time by remapping the physical volume buttons and the physical power button.
I have also attatched the original keymapping file, and my modified one.
Edit: That didn't work. Opened root explorer to see if the values were right, and they were. I also noticed another keymapping file called "spade-keypad-v0.kl" (without the "). Will try to edit the values in this file to see if that will work.
Edit2: Editing the back,menu and search button in spade-keypad-v0.kl didn't work. Will try to remap the volume and power keys.
Edit3: Ok, two more combinations to test: Editing the capacitive buttons in both files, and afterwards editing the physical keys.
Edit4: No luck, I have attatched the other spade-keypad-v0.kl for you to look at. Hope you can fix this!
torsrex said:
I have also attatched the original keymapping file, and my modified one.
Edit: That didn't work. Opened root explorer to see if the values were right, and they were. I also noticed another keymapping file called "spade-keypad-v0.kl" (without the "). Will try to edit the values in this file to see if that will work.
Edit2: Editing the back,menu and search button in spade-keypad-v0.kl didn't work. Will try to remap the volume and power keys.
Edit3: Ok, two more combinations to test: Editing the capacitive buttons in both files, and afterwards editing the physical keys.
Edit4: No luck, I have attatched the other spade-keypad-v0.kl for you to look at. Hope you can fix this!
Click to expand...
Click to collapse
Appreciate your testing torsrex. Nothing's ever simple is it... Did you fast reboot every time you applied changes to the files?
In the file spade-keypad-v0.kl, did you set them like this:
Code:
key 102 HOME WAKE_DROPPED
key 139 MEDIA_PLAY_PAUSE WAKE
key 158 MEDIA_PREVIOUS WAKE
key 217 MEDIA_NEXT WAKE
Check they had applied with a file explorer first and then fast rebooted?
Let me know!
I checked that the files were changed every time with root explorer. I also tried a normal reboot if the fast reboot didn't work (Did this all the times I had changed a file), and I tried copying the files manually with root explorer.
I tried to change the values of the spade-keypad-v0.kl to what you typed, but that didn't work either. Maybe I should also mention that after I changed the back-key, menu-key and the search-key to media controlls, the home button also won't work.
Does this have something to do with having capacitive buttons and not physical buttons (I think the button turns them self off when I put on the screen lock)?
torsrex said:
I checked that the files were changed every time with root explorer. I also tried a normal reboot if the fast reboot didn't work (Did this all the times I had changed a file), and I tried copying the files manually with root explorer.
I tried to change the values of the spade-keypad-v0.kl to what you typed, but that didn't work either. Maybe I should also mention that after I changed the back-key, menu-key and the search-key to media controlls, the home button also won't work.
Does this have something to do with having capacitive buttons and not physical buttons (I think the button turns them self off when I put on the screen lock)?
Click to expand...
Click to collapse
Ok, sounds like you've been pretty thorough. I knew the set-up would be different device to device, but didn't think it would be difficult to establish how.
I guess all we can do is use an app to discover the changes that need to be applied on your device. Check out ButtonRemapper and after it applies the updates, take copies of the files it has adjusted (assuming the app works for you!). Let me know!
Tried the buttonRemapper application from the market, and It worked! The buttons (menu, back and search) got remapped, but I noticed that the screen needed to be turned on before I could press them (no need to enter any pin code or dragging down the slider, just pressing the unlock button). I have atattched all of the kl-files.
torsrex said:
Tried the buttonRemapper application from the market, and It worked! The buttons (menu, back and search) got remapped, but I noticed that the screen needed to be turned on before I could press them (no need to enter any pin code or dragging down the slider, just pressing the unlock button). I have atattched all of the kl-files.
Click to expand...
Click to collapse
Ok, I'm confused now... I can't see any difference between what you did to what the app has done...? Can you?
When the changes are applied in the app, it must take a copy of the original files it's about to change and store them somewhere. Is there a ButtonMapper folder on the SD card? Perhaps have a look in there when the controls are changed for media? See if there is just one file, or if there's an additional one we haven't considered..?
Then we'll solve the screen off use!
Hm, can't find the backup folder, it isn't on the sd card and it's not in the keylayout folder.
torsrex said:
Hm, can't find the backup folder, it isn't on the sd card and it's not in the keylayout folder.
Click to expand...
Click to collapse
Damn it! I'm going to have a search around and see what I can come up with... I'll be back...
Is your device fine after the fast reboots? That's why I put this as a beta as I didn't know how stable it would be compared to a full reboot...
Using the buttonremapper application, I didn't face any issues. Using the tasker-profiles (editing the files manually) caused the home button, back button, menu button and search button to not function any more and I had to restore a nandroid backup. Maybe you should get the correct setup files for each phone before you take it out of beta
By the way, I sent a message to the developer asking him where the buttonremapper application saves it's backup-files, hopefully I will get a quick answer!
torsrex said:
Using the buttonremapper application, I didn't face any issues. Using the tasker-profiles (editing the files manually) caused the home button, back button, menu button and search button to not function any more and I had to restore a nandroid backup. Maybe you should get the correct setup files for each phone before you take it out of beta
By the way, I sent a message to the developer asking him where the buttonremapper application saves it's backup-files, hopefully I will get a quick answer!
Click to expand...
Click to collapse
Good work! And thanks for testing... I need a lot more volunteers like you for each different device, but I don't see them flocking!
Just got a reply from the developer: "in its data directory in the subdirectory files: /data/data/com.beansoft.buttonremapper/files."
So here you go.
torsrex said:
Just got a reply from the developer: "in its data directory in the subdirectory files: /data/data/com.beansoft.buttonremapper/files."
So here you go.
Click to expand...
Click to collapse
Good work again Sir! I'll take a look at the files and see what else is needed for devices with capacitive buttons (which I'm hoping is the only difference...).
Someone just released a trackpad wake for all AOSP ROMs (without messing with the kernel?) over in the Desire forum, so I'm currently looking at that too...
Always something to do... speaking of which, I need you over here next
So I was bored tonight and thought I'd try and revive this project.
What I've got is still a work in progress, but it basically involves using Buttonremapper to reassign volume_up and volume_down to fast_forward and rewind, then use Tasker's 'state: media button pressed' to forbid any other apps from responding to those two buttons and have them act out Tasker tasks only.
One button is set to play/pause media (if screen is off) and raise volume (if screen is on) and the other set to skip forward media (if screen is off) and lower volume (if screen is on). The end result is almost full media control from hardware buttons without having to look at the phone or take it out of your pocket: use the volume up and down buttons to skip and pause tracks, or press power to turn the screen on and change their function to volume up or down temporarily before reverting back to skip and pause as the screen times out. You don't need to be looking at the screen while this is happening.
The problems at the moment are:
1) While two buttons have effectively been made into four, there are five necessary functions - volume up, volume down, play/pause, next track, previous track. I figured previous track was the least important but it would be nice to have it as well.
2) Normally the volume buttons in Android are context-sensitive, changing media or system or whatever volume depending on where you are. With this they're always assigned to media volume, so you'd need an app like Audiomanager or something to change the volume of other things.
3) Other problems that I haven't realised yet.
One other thing, Tasker's 'state: media button pressed' lets you set both long presses and short presses, but they don't seem to play nice together. I think both the long press and short press tasks activate and conflict when the button is held down, but I haven't had a look at this yet.
Hello, I remember that in the old day (with Gingerbread 2.3.X), when you want to launch the keyboard, you can hold the menu key anytime. However, unfortunately, I don't know why I can no longer use the same method to call up the keyboard with newer Jellybean 4.1.X devices. Therefore, I would like to know that if there is a way that I could do the same thing. If not, is there a trick or a mod I can use to fix it? Thanks.
I am using Note 2 (international N7100) with Omega ROM.
To be able to open it anywhere, you go into the settings for the keyboard and check the box for 'permanent notification'. It will then keep an entry in the notifications which you can tap to bring up the keyboard at any point. Or may be you can try Hacker's Keyboard (search in Google Play). Checking its Guide, there's in fact a section suggesting such a feature: You can configure the gesture used for this in the keyboard's "Gesture and key actions" settings menu. If the swipe action is too hard to trigger, try binding the "close keyboard" action to the "Volume down" hardware key. This won't interfere with normal use of the volume button while the keyboard is closed. Though this applies to "close": If there are gestures you can configure, it might as well be able to have one for "open". The FAQ may reveal some more clues.
The bixby button is an absolute waste of a physical key on samsungs part, and ever since I got my S8 a little over a month ago I've been trying to find a way to completely remap the key without any of this bypass nonsense that flashes bixby for a moment before proceeding with your action, or returning to your home screen etc. I'm currently using a rooted S8 on renovate ice r155, with the latest AIO gestures & Tasker.
I highly recommend using MiXplorer as a root explorer, you will need one for this. Basic knowledge on using tasker will help too.
Thanks to redplate, j91co & kuaka as I've pieced together their help in order to make this work on my phone.
Links to threads here:
https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061/page10
https://forum.xda-developers.com/s7-active/how-to/how-to-tasker-to-assign-flashlight-t3396760
So I have made a little tutorial on how to re-assign the key; this must be done manually and does not require an app for anything other than more extensive actions.
Therefore there are two parts to this: manually re-assign the key, and linking the key to all in one gestures.
Re-assign the key:
(1) Open a root explorer, and navigate to root: /system/usr/keylayout
(2) Copy generic.kl and rename the copy to generic.kl.bak
(3) Open generic.kl and edit as text; either rename to .txt and revert back or use MiXplorer to edit directly
(4) Find '703'; it should look like # input_fw Intelligent Key for Dream key 703 WAKE (or 'WINK' depending on device version, its ok)
(5) Simply rename the entry in capitals, for example WINK to VOLUME_DOWN
(6) Save the file, reboot.
(7) If any issues, restore the backup.
Link to AIO Gestures & Tasker
For this example I'm going to show you how to use AIO gestures with Tasker to toggle the flashlight with the bixby key.
(1) Manually re assign the key as shown in the first part: use something not commonly used. I used the function DVR. Save & reboot after changing this.
(2) Download tasker & AIO gestures. Grant root permissions and accessibility permissions in settings.
(3) Open AIO gestures and go to the hard keys section; 3 dots in top corner > custom keys
(4) Press bixby, it should display what you assigned it to. In my case it showed DVR. Press add.
(5) It will now be shown in the list of hard keys. Press it once to open the menu. You can choose anything you like, im going to assign it to a tasker shortcut:
(6) Swipe to the 'shortcut' section and scroll down to task shortcut
(7) Add a new task, and filter for 'torch'. Set ' toggle'. Press back, and again.
You should now have your bixby key bound to flashlight. I've tested this and it works from the AOD too. Enjoy, and please give credit to the great oaks who figured this all out cus im a flop and couldn't have done it without them
Of course if you know how to use tasker and stuff you can do whatever you want with this, take full advantage of that button! F#ck samsung for forcing the stain bixby is into our devices.
by is on us.
I haven't tested myself, but apparently this method also works with all of the bixby apps removed.
If somebody would like to incorporate this into an app, that'd be mad and you'd be a legend for doing so.
Here is a list of some actions I have accumulated from some threads you can assign to the key:
VOLUME_DOWN
VOLUME_UP
HOME
POWER - Power menu
MUSIC - starts your favorite music player
CAMERA - Open camera
APP_SWITCH - App switcher
VOICE_ASSIST - Google Assistant
SYSRQ - Take screenshot
CALENDAR - Open default calendar
CONTACTS - default contacts
MESSAGE - Default messenger
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I guess you have never heard of the BxActions app, on xda and the play store... Remapping of Bixby button, without root even. Works great
I've used all those apps and each of them have a quirk where it flashes open for a short time, or sends you back to the home screen. In my opinion it's not an elegant solution and just isn't fluid enough, this way bixby doesn't show up at all and it works from everywhere.
Can I open a specific app on my phone with this?
Sent from my SM-G955F using Tapatalk
beugologist said:
I've used all those apps and each of them have a quirk where it flashes open for a short time, or sends you back to the home screen. In my opinion it's not an elegant solution and just isn't fluid enough, this way bixby doesn't show up at all and it works from everywhere.
Click to expand...
Click to collapse
No Bixby flashing up anymore Also, it always worked from everywhere. Maybe that is a pro thing, but I like to donate to helpful devs, so I have pro..
toole said:
Can I open a specific app on my phone with this?
Click to expand...
Click to collapse
BxActions can...
Interesting, always used a free version and had some sort of quirk. Maybe it's improved since I last used it like the other week, but it never blocked bixby properly.
Whilst it's a nice app, you're also heaps limited to what you can assign the key too so bringing tasker to the table gives you pretty much endless possibilities.
Maybe the Devs will see this thread and incorporate this into their app for free....
Yeah, a recent BxActions update made it so Bixby doesn't come up anymore. There is an extra one-time step to take with the PC (don't need adb or anything special), but it's super easy, doesn't install anything extra, steps you through it, and takes all of about 30 seconds. It has just about every option I can think of for reassigning the button, including ability to customize actions for a long press or a double press of the button. It's come a long way even in the last few weeks in my opinion.
Although, it's nice to have options, that's what I love about Android. I just thought I'd present another option in case it wasn't known, so thanks for your post!!
Cheers for that, I had no clue they had fixed up all the blocking stuff, I'd love to check it out but I've completely removed bixby in favor for rebinding it lol. Still, that's mad that the dev has sorted it all out without the need for even adb or root; I might check it out as some point as the only thing limiting me currently I'm not sure how to configure it for double and long presses, could be my lack of knowledge with tasker, I'm still learning all this stuff.
Does BxActions have tasker support?
Anyway cheers for letting me know, it's a communal effort to get rid of Bixby
DUDE....I HAD TO MAKE AN ACCOUNT TO THANK YOU! This mod make all the Bixby disabler app obsolete! You should put this in theme and mods, it really deserve more notice!
beugologist said:
Does BxActions have tasker support?
Click to expand...
Click to collapse
This I don't know, never used tasker...
Anyway cheers for letting me know, it's a communal effort to get rid of Bixby
Click to expand...
Click to collapse
My thoughts exactly!
I recommend Button Mapper (from XDA developer flar2) from the play store. It can remap every key, and you can assign actions for press, double press and long press, too. It also has a long list of actions you can assign to the buttons. More, it doesn't need Tasker to be installed.
It has rooted and rootless mode; in rooted mode you can launch the actions even without unlocking the phone. It is very smooth and light, it doesn't flash the screen when Bixby button is pressed.
kbarni said:
I recommend Button Mapper (from XDA developer flar2) from the play store. It can remap every key, and you can assign actions for press, double press and long press, too. It also has a long list of actions you can assign to the buttons. More, it doesn't need Tasker to be installed.
It has rooted and rootless mode; in rooted mode you can launch the actions even without unlocking the phone. It is very smooth and light, it doesn't flash the screen when Bixby button is pressed.
Click to expand...
Click to collapse
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
otis_bartleh said:
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
Click to expand...
Click to collapse
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
Free I don't care about, developers deserve our money, it's not easy... Remapping other buttons is cool, sounds like another good one!
---------- Post added at 09:06 AM ---------- Previous post was at 09:04 AM ----------
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
I hit post previously and it disappeared, so if this ends up double posting, sorry about that...
I don't care about free, developers deserve our money, coding isn't quick and easy... But re-mapping other buttons, that is cool, sounds like another good one!
toole said:
Can I open a specific app on my phone with this?
Click to expand...
Click to collapse
Yeah, you can assign it to whatever you want with tasker.
otis_bartleh said:
BxActions does all that and more apparently, as BxActions will let you launch the actions with the phone locked, even without root... Also doesn't need tasker, is smooth, light, and doesn't flash Bixby, and does single, double, and long presses, and is also from an XDA dev...
Wait, just realized you said "remap every key", as in remapping of volume keys as well? If so, that's kind of cool, even though I don't need that for anything...
Click to expand...
Click to collapse
Yeah you are literally editing the keymap file, so you can change any of the hardware buttons like this.
flar2 said:
Button Mapper does all the Bixby stuff for free, has more actions to choose from, also allows you to remap other buttons, and if you have root, is faster, more reliable and will give you even more options.
Click to expand...
Click to collapse
Thanks! I'll check it out.
I've checked out using button mapper as an alternative, and discovered only the volume keys work with the display off / device locked. Whilst it is more usefull than aio guestures, it completely defeats the purpose of having an easy to access flashlight key, considering I'd have to unlock my phone. Found that bixby actions doesn't work at all now due to remapping the key (plus im too much of a stinge to pay for long / double press, everyone with an S8 should have had this from the factory but I see nothing wrong with charging for hard work).
Found a new thread describing a method using 'Xposed edge' (pro ver here https://play.google.com/store/apps/details?id=com.jozein.xedgepro&hl=en, free one too) that supposedly does all these things plus double press, through using xposed, however im a bit skeptical using this as a solution due to the current state of xposed atm.
If anyone else knows a great tool that can remap CUSTOM keys, from anywhere (aod, lockscreen, home, in app), that supports long, double and single presses I would be forever grateful.
Whilst BxActions seems like the best solution to remove bixby (from the perspective of all users) at this point in time, I've just glanced through it to find a lack of tasker support (guess you could build your own tasker app and launch it but that's trek and a dirty solution), but cheers to jawomo for his effort with this and everyone else who's contributed.
I checked out button mapper, but still prefer BxActions since it works with the lock screen without root... Nice there are so many options...
I agree that it shouldn't be needed and we shouldn't have Bixby forced upon us when we pay as much for a phone as we did (or are)...
Thanks for this. Anyone know of a way to get it to work with the screen off? It works with the always-on display, but not if that's disabled and the screen is off.
Also, I'll warn everyone else not to do what I did on my first attempt. I used Total Commander to copy generic.kl to a non-root folder, made my changes there with TC Edit (part of Total Commander, but it can't get root access to edit system files directly), deleted the original generic.kl, then moved the edited version back to /system/usr/keylayout. I don't know why this didn't work, but after a reboot I was unable to use any keys at all - not the Bixby button, not the power button, even the on-screen keyboard refused to appear. I could unlock the phone with the fingerprint scanner and open apps, but I couldn't restore my generic.kl.bak since I couldn't delete the .bak part with no keyboard. Thankfully I had a very fresh system backup I could restore, though I'm sure I could have also renamed the .bak file with ADB. I tried again, this time editing generic.kl directly with ES File Explorer (instead of using Total Commander to edit a copy) and it worked as it's supposed to.