Broadlink RM plugin - Tasker Tips & Tricks

Hi,
Any one familiar with the Broadlink rm plugin?
I have RM mini 3 and I want to change the TV to specific volume value. How do I do it?

richrach said:
Hi,
Any one familiar with the Broadlink rm plugin?
I have RM mini 3 and I want to change the TV to specific volume value. How do I do it?
Click to expand...
Click to collapse
Won't work. There is noch Code for a specific value.

You could be a bit creative though... I'm just working through my setup so don't have all the answers, but you could trigger a macro to press the volume up button twice for instance and have Alexa use IFFT or Tasker or something to respond to that utterance? E.g. "Alexa, trigger turning my volume up 2" could trigger a macro to press volume up twice.
Or, what about a macro for each volume level (if you have the time) that presses volume down x number of times and then volume up once it is at 0?
Possibly square pegs, round holes, but there may be something you're willing to work with!

Hi guys, do you think is possible to create a widget for the rm plugin that displays the broadlink A1 sensor information on home screen?
Thanks.

There is no easy way, but you can do it if you use Tasker, you can have Tasker to remember the volume value, let's say if it is currently 10, then when you trigger to set volume to 15, RM plugin will send the vol up code and repeat 5 times. The math will be done from within Tasker.

Related

PTT remap question on AT&T tilt

I use the PTT remap and it works like a champ great little proggy.
Short press - toady screen long press HTC Action screen.
Though nice I'd like to have either "Backlight" or even "Full brightness backlight" on button 6. any chance to do this? I'm not afraid hacking the reg.
Yes, go into the Windows folder and find the app called Backlight.exe. make a shortcut to it and move that shortcut into the Windows > Start Menu > Programs folder. Then go to the buttons option and change the PTT button to fire up the Backlight shortcut. I don't use the regular Buttons option to do this with mine, I use AE Button Plus, but it should work the same way.
I almost went that far already BUT is there an option to set the default and/or adjust backlight setting to full brightness?
Here's a great utility I found yesterday after searching for "backlight" on here http://forum.xda-developers.com/showthread.php?t=413137&highlight=backlight
The shortcut I use is \Program files\bl\bl02.exe 0 4 9 Press PTT once it is off, press again and it is about medium, press again and it's on full. You can change it to \Program files\bl\bl02.exe 1 9 and it would go from dim or bright each time you press it. I'm not sure how many arguments you can pass, but people have been able to use 5 with no troubles.

[Q] Default action for wired headset button?

Is there a way to change the default action for when you press the button on the wired headset? I'd love to for instance start a new voice note with Catch or Evernote when pressing the button (if not in a call that is).
I've begun to get into Tasker but it seems a wee bit complicated. If anybody knows a simpler way, please post... Thanks!
Check out "headset button controller" in the market.
Instead of installing an app for this function, could we modify the value in a specific system file ?
Like this one : [MOD]disable Power or Home button screen wake

[RFC] Remapping volume buttons

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

Help with 2 modules

Could someone help me with the below 2 modules please?
Module 1 -
1 - Hardware key (volume or power button ) used to launch a particular app
2 - Once app is launched - Lock the app with an overlay with a particular dimension (for example - overlay blocks the app completely except 20 % at the bottom)
3 - Volume button press simulates screen press at a particular co-ordinate
Module 2 -
part 1 - Shortcut to make direct Whatsapp call to a particular contact
part 2 - Receiver mobile answers the Whatsapp call and places on speakerphone automatically
This will help me stay connected with my aged parents.
Kindly help !!
Mod 1
Profile: Event/Vol long button up/down, then launch the app
Task: Scene; draw your box how you want. You may need/want to lock portrait mode.
Task: Use Auto input to simulate your screen press. You can use the option to view touches from within the phone Settings/Dev Mode
Sent from my Note8

Question How to Remap Hardware Keys to something more useful (all Android Phones)! (Pause/Play / Flashlight / Apps & much more!!)

Hi Guys,
Since I came from a S10, where I had an extra Bixby Button, wich I remapped then to pause/play - wich was also really useful:
to take or end calls fast or quickly stop the audiobook or music, when someone talks to me etc.
Or to quickly activate the flashlight.
So after looking for a while, I found a good way:
Just install this app:
Button Mapper: Remap your keys – Apps bei Google Play
Remap Hardware-Tasten starten jede App, Verknüpfung oder Aktion
play.google.com
And configure your buttons as you wish.
There is also an root Function, wich allows you to use it while its on screen off, wich is really nice.
Just check the screenshots here or in Playstore, there are many other things you can do.
For me personally I choose:
VOL UP HOLD = fast forward
VOL UP 2x = flashlight
VOL DOWN HOLD = rewind
VOL DOWN 2x = PAUSE/PLAY or take/end a call fast
I might change it to next song or before song, but for now, this is good for me, as Iam listining more audiobooks.
Ok have a nice one.
Best regards
|||||
You can achieve all of that and more using Tasker.
As the other commenter stated, Tasker is a much better app for this as it is popular and well maintained so bugs are few and far between.
As for needing to remap buttons, I find the buttons do exactly what I want them to do already and thats with bixby button remapped to be a camera button. Can do this in bixby without any extra apps.
shaharofir said:
You can achieve all of that and more using Tasker.
Click to expand...
Click to collapse
@richhaynes
Yes i use Tasker but i think Tasker can't detect those buttons by its own, so i use (AutoInput) plug in to trigger those buttons.
If I'm wrong please tell me how.
Thanks.

Categories

Resources