Solution: Enable Breathlight Notifications for Third Party Apps - Elephone Vowney

Hi,
i was really annoyed by not having a Status LED on this phone and digged into this. First i tried Setting the Battery level to something below 15 to make the Breathlight come on but as soon as a system Battery update was triggered the Light went off ... Next: Created a App to send a fake SMS to my phone (triggering the SMS_RECEIVED intend) - failed to get it running, needs to be a prviliged system app (priv-app), gave up on this ... looked into the sys interface ... and tadaaa:
Code:
cat /sys/class/breathlightdrv/breathlight/rgb
gave me "this rgb has four parameter R_level G_level B_level mode" ... so lets try this ...
Switching the light full on (steady)
Code:
echo "255 255 255 0" > /sys/class/breathlightdrv/breathlight/rgb
Switching the light full on (pulse)
Code:
echo "255 255 255 1" > /sys/class/breathlightdrv/breathlight/rgb
Switching the light full off (= dark steady)
Code:
echo "0 0 0 0" > /sys/class/breathlightdrv/breathlight/rgb
now with this info and Tasker you can add your Breath Notification to e.g. K9 Mail Events, i have to look into tasker to catch e.g.Whatsapp, Threema etc incoming Messages events to notify with a nice pulsing Breathlight

Here is my working tasker definition, rename to backup.prj.xml enjoy!
don't forget to run the task as root!

dfs_ said:
Hi,
i was really annoyed by not having a Status LED on this phone and digged into this. First i tried Setting the Battery level to something below 15 to make the Breathlight come on but as soon as a system Battery update was triggered the Light went off ... Next: Created a App to send a fake SMS to my phone (triggering the SMS_RECEIVED intend) - failed to get it running, needs to be a prviliged system app (priv-app), gave up on this ... looked into the sys interface ... and tadaaa:
Code:
cat /sys/class/breathlightdrv/breathlight/rgb
gave me "this rgb has four parameter R_level G_level B_level mode" ... so lets try this ...
Switching the light full on (steady)
Code:
echo "255 255 255 0" > /sys/class/breathlightdrv/breathlight/rgb
Switching the light full on (pulse)
Code:
echo "255 255 255 1" > /sys/class/breathlightdrv/breathlight/rgb
Switching the light full off (= dark steady)
Code:
echo "0 0 0 0" > /sys/class/breathlightdrv/breathlight/rgb
now with this info and Tasker you can add your Breath Notification to e.g. K9 Mail Events, i have to look into tasker to catch e.g.Whatsapp, Threema etc incoming Messages events to notify with a nice pulsing Breathlight
Click to expand...
Click to collapse
Can you help me how I can change the notification led on my vowney lite

arpagr said:
Can you help me how I can change the notification led on my vowney lite
Click to expand...
Click to collapse
What do you want to have exactly? Install tasker and use my posted config should be all there is to it

Help
I tried these profile in my lite vowney and does not work it teaches profiles no
active What?, Can you help? Thanks

The profiles don't have to show as active, they are only active when messages are new, does the blink on/blink off actions work when started manually?

dfs_ said:
The profiles don't have to show as active, they are only active when messages are new, does the blink on/blink off actions work when started manually?
Click to expand...
Click to collapse
I did not try it manually

lebrillo said:
I did not try it manually
Click to expand...
Click to collapse
go to tasker / Tasks / Blink On/ press the play button in the lower left corner.
does it blink?

dfs_ said:
go to tasker / Tasks / Blink On/ press the play button in the lower left corner.
does it blink?
Click to expand...
Click to collapse
no, /rgb root: false timeout:-1
now work, is root. Than´s for you work

Thank you so much!
I have zopo zp920, and it works flawlessly.
Do you think that steady light will drain way more battery than pulse one? I am thinking that I will use both (steady and pulse) notifications on different occasions..

Dunlop77 said:
Thank you so much!
I have zopo zp920, and it works flawlessly.
Do you think that steady light will drain way more battery than pulse one? I am thinking that I will use both (steady and pulse) notifications on different occasions..
Click to expand...
Click to collapse
great to hear it works the same on your device; regarding battery life - i have no idea i guess you will have to test if the drain is even noticable

dfs_ said:
Here is my working tasker definition, rename to backup.xml enjoy!
don't forget to run the task as root!
Click to expand...
Click to collapse
If I try to import your tasker definition as tasker profile I get a error message: Error: the imported file contains more than one profile. Any advice to import your profile correctly.

quick google showed this - rename file to backup.prj.xml

Related

Controlling all the EVO's LEDs (in Tasker)

So, I found this thread http://forum.xda-developers.com/showthread.php?t=752377&highlight=wimax+led that discusses how to control the EVO's Wimax LED, and I've found another thread that explained how to use Tasker to trigger the Capacitive buttons (http://forum.xda-developers.com/showpost.php?p=8554277&postcount=12).
Using this information, I was able to set:
Missed text: Blinking turquoise
Missed Call: Solid Red
Missed Calendar Event: Solid Yellow
Which got me to thinking what else can I control this way? Here is the list of values I found for controlling all the EVO's LEDs (thanks to the posters of the above threads for the starting info):
First here are all the values that I was able to confirm.
Wimax LED
Current "brightness" modes it supports:
0 = OFF
1 = Two quick turquoise flashes
2 = One quick turquoise flash
3 = One slow turquoise flash
4 = One slow turquoise flash then one slow red flash
5 = One slow yellow flash
129 = Solid red on
130 = Solid turquoise on
131 = Solid yellow on
Location: /sys/class/leds/wimax/brightness
Amber LED
Current "brightness" modes it supports:
0 = OFF
1 = ON
Location: /sys/class/leds/amber/brightness
Current "Blink" modes it supports:
0 = Solid
1 = Fast Blink
Location: /sys/class/leds/amber/blink
Green LED
Current "brightness" modes it supports:
0 = OFF
1 = ON
Location: /sys/class/leds/green/brightness
Current "Blink" modes it supports:
0 = Solid
1 = Fast Blink
Location: /sys/class/leds/green/blink
(note you can have amber on with blinking green and vice-versa).
Flashlight
Current "brightness" modes it supports:
0 = OFF
1 = Top LED
2 = Bottom LED
3 = Both LEDs
125 = Low Power
126 = Mid Power 1
127 = Mid Power 2 (same as 3)
128 = High Power
129 = High Power Single Flash
Location: /sys/class/leds/flashlight/brightness
Screen
Current "brightness" modes it supports:
0 - 255 brightness levels
Location: /sys/class/leds/lcd-backlight/brightness
Capacitive Buttons
0 = OFF
1 = ON
Location: /sys/class/leds/button-backlight/brightness
If you have "Tasker" installed and have root access, install "Locale Execute Plugin" from the Market.
In Tasker, create your event, and select "Plugin" as the Task, then choose the "Execute" plugin.
Enter the following command in the textbox (substituting the value and device you want to trigger)
@! echo 255 > sys/devices/platform/leds-gpio/leds/button-backlight/brightness
Important: You must "Test" the task once or twice and wait for the Superuser permissions to trigger, otherwise the task will not execute. You will need to do this for each task you create using this plugin.
One thing to note, using the commands above trigger a single event. If the system triggers an event that uses the LED you are using (e.g. charging the device) it will override your setting. However, you can also override the system trigger (trigger after charger is plugged in).
Setting this up correctly in Tasker, will allow you to do cool things like automatically turning off all LEDs when you start a Video, set your own alerts or trigger the flash if someone picks up your phone (to scare them), etc.
Feel free to add your own suggestions, or add anything I missed.
wow nice post!
Great job at defining the controls.
I found this post useful to me in turning on and off the button leds with one tap. - lol ( self promotion - since they are related )
http://forum.xda-developers.com/showthread.php?t=816128
Very nice and informative work, but for $16+ (Tasker $6.26, Locale $9.99 (required for the plug-in, according to info in the Market)) I guess I'll stand over this one.
arcadia2uk said:
Very nice and informative work, but for $16+ (Tasker $6.26, Locale $9.99 (required for the plug-in)) I guess I'll stand over this one.
Click to expand...
Click to collapse
You do not need to buy Locale to run these commands. You only need the Locale Execute Plugin, which is free in the Market. Most, but not all, Locale plugins are compatible with Tasker.
Also, you can download a beta copy of Tasker to try out for free. Go to this address and download the Market version:
http://tasker.dinglisch.net/beta
I believe you can use it for 7 days before it asks for the order validation.
Oh and great post.
Sent from my PC36100 using XDA
and if you buy Tasker from the developer's site directly, you save a little more.
Tasker is incredible. Pent (the developer) built a similar app for the old Palm OS that I couldn't live without.
If you take the time to really learn how to use it, it becomes indispensable. Unfortunately, I have not really had that time yet, so I've just been dabbling.
Combing it with the "execute" plugin, gives you some amazing power.
arcadia2uk said:
Very nice and informative work, but for $16+ (Tasker $6.26, Locale $9.99 (required for the plug-in)) I guess I'll stand over this one.
Click to expand...
Click to collapse
the locale plug-in is free and tasker can use it.. thus you dont need locale.. tasker is amazing..
when i test the blinking ones, they dont seem to stop blinking... seriously, there is not an exit task for received text message and the wimax led wont stop blinking
you have to send another trigger set to 0.
What I did at first was had the screen on trigger reset the LED, but I noticed a slight delay on my device.
Instead I set the new trigger to a "New Window" Now, anything I tap on the device will disable the LED. It's been working great.
FYI - for the Flash trigger I mentioned, I set the screen brightness to a change from 0-4 and if I place my phone face down on my desk - then if anyone picks it up it will trigger the flash. Now all I need is a camera sound file .
is this right? because i can't get the amber light to stay on and the green light to flash..
{
"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 get an FC if I try two commands in the same window. Just create two Execute Tasks.
Also, keep in mind that the system uses the left LED
flashing green - notification alert
flashing red - overheat
So, you may lose control of these if something else comes up.
sw99 said:
I get an FC if I try two commands in the same window. Just create to Execute Tasks.
Also, keep in mind that the system uses the left LED
flashing green - notification alert
flashing red - overheat
So, you may lose control of these if something else comes up.
Click to expand...
Click to collapse
I also get a fc..
i tried to set the event "missed call" to make the wimax led stay red, but the left led would just flash green, not sure what i did wrong
Here are my steps..
create new profile and select "missed call" as event
set priority to highest and long press and select any caller
add task, select plugin, select execute and write this in the text box
hit test til i see allow super user, hit allow, hit test till the led comes on (red), hit ok
create another profile to reset the led to off.. select event, system (or ui; dont remember), new window
add task, select plugin, select execute, and write this in the text box
hit test til i hit allow for superuser, then hit test till the led goes off, press ok, then hit done
these are the two profiles..
now I call myself from another phone, let it ring and only the left led flashes green, once i have missed the call..
sw99 said:
Important: You must "Test" the task once or twice and wait for the Superuser permissions to trigger, otherwise the task will not execute. You will need to do this for each task you create using this plugin.
One thing to note, using the commands above trigger a single event. If the system triggers an event that uses the LED you are using (e.g. charging the device) it will override your setting. However, you can also override the system trigger (trigger after charger is plugged in).
Setting this up correctly in Tasker, will allow you to do cool things like automatically turning off all LEDs when you start a Video, set your own alerts or trigger the flash if someone picks up your phone (to scare them), etc.
Feel free to add your own suggestions, or add anything I missed.
Click to expand...
Click to collapse
Anyway you may be able to post your profile settings so one can see how you setup Tasker to work as you did? I'm having some trouble on figuring out what events to trigger the button to flash and what to trigger to turn off the flashing. Thanks man Great work btw though!
Igzekyativ said:
I also get a fc..
i tried to set the event "missed call" to make the wimax led stay red, but the left led would just flash green, not sure what i did wrong
now I call myself from another phone, let it ring and only the left led flashes green, once i have missed the call..
Click to expand...
Click to collapse
I believe you have to set it to State- Missed Call, not Event- Missed Call. It's confusing, but Tasker treats Events and States differently. Events are single points in time, whereas States are ongoing (so you can have exit tasks). Here's my Profile, just import it and it should work.
Wow this is awesome! Great post, now my day will consist of messing with the phone!!!
Mine works fine as an event, but I couldn't get it to work as a state - the notification bar showed the state, but nothing triggered.
In any case, here are my profiles for messages, calls and calendar events.
Also, I left the "Caller" field empty and left priority at Normal.
antiphon said:
I believe you have to set it to State- Missed Call, not Event- Missed Call. It's confusing, but Tasker treats Events and States differently. Events are single points in time, whereas States are ongoing (so you can have exit tasks). Here's my Profile, just import it and it should work.
Click to expand...
Click to collapse
Where on the SD do you put the .xml to import it... I hit import a profile and I get a box that says "File Select" with a cancel button, but nowhere/way to select a file..
/tasker/profiles
sw99 said:
/tasker/profiles
Click to expand...
Click to collapse
thank you.
I'm having a hell of a time getting the capacitive leds to flash with a new sms... would one of you tasker pro's create a profile to flash the capactive leds when I have a new text?
That would be very cool of you.
Thanks.
they don't flash. you can only turn them on and off. I would not suggest trying to flash them using a loop in tasker - using software to flash the lights rather than hardware will be a much larger battery drain
Also, I don't know about you, but I cannot tell if they are lit unless I am in a fairly dark area.

Favorite Tasker Profiles

What are some of your guys's favorite Tasker profiles for your GS3?
aaronfuhrer said:
What are some of your guys's favorite Tasker profiles for your GS3?
Click to expand...
Click to collapse
One of my more useful ones is a set of Bluetooth controls. It has 3 core profiles and any number of time profiles that will turn Bluetooth on at a specified time and disable it after so many minutes with a few different conditions to handle active connections and such. This keep Bluetooth off for most of the day and only turns it on when I normally need it the most.
Profile Name: Bluetooth Noon
(I have three of these. One for the morning drive to work, one for lunch time and one for the drive home after work)
Contexts:
Time - 11:45
Days - Mon, Tue, Wed, Thu or Fri
Tasks:
Enter Task
1.) Bluetooth - Set On
2.) Variable Set - Name %BTSchedActive To yes
3.) Wait - MS 0 Seconds 0 Minutes 30 Hours 1
4.) Variable Set - Name %BTSchedActive to no
5.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Connected
Contexts:
Bluetooth Connected - *, *
Tasks:
Enter Task
1.) Variable Set - Name %BTConnActive To yes
Exit Task
1.) Variable Set - Name %BTConnActive To no
2.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Countdown
Contexts:
Variable Value - %BTConnActive Matches no
Variable Value - %BTSchedActive Matches no
Tasks:
Enter Task
1.) Profile Status - Name Auto Off Unpaired Bluetooth Set On
Profile Name: Auto Off Unpaired Bluetooth
Contexts:
NOT Bluetooth Connected - *, *
Variable Value - %BLUE Matches on
Tasks:
Enter Task
1.) Variable Set - Name %TIMCOUNTER To %TIME + 900
2.) Wait - MS 0 Seconds 0 Minutes 1 Hours 0 Until %TIMES > %TIMCOUNTER
3.) Bluetooth - Set Off If %PACTIVE ~ *Auto Off Unpaired Bluetooth*
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
s197 said:
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
Click to expand...
Click to collapse
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
If you don't want sync disabled, then change the profile Active attribute in 'Disable Notify Light @night' to a Time range. Hope this helps.
Profile Name: Disable Notify Light @night
Contexts:
Notification - *, *
Profile Active - Disable Sync At Night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Notify Light
Contexts:
Display State - Off
Profile Active - Disable Disable Notify Light @night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Will try this out tonight, really appreciate your help and quick response!
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
aaronfuhrer said:
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
Click to expand...
Click to collapse
I'd be curious to know what your Advanced Wi-Fi Settings were, specifically the 'Keep Wi-Fi on during sleep'. If it is set to 'Never' or 'Only when plugged in' it will turn off the Wi-Fi at some point while the phone screen is off, thus causing the tasker profile to stop running until the phone is woken up again which would happen second to you turning on the phone and being presented with the unwanted lock screen.
I would suggest setting that option to 'Always' and see if it yields better results.
ViperRacer said:
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
Click to expand...
Click to collapse
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
I also ran this last night.
In order for the profile to kick in it needs to be during the time specified and plugged in.
Once I plugged in my phone my sync turned off.
My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on.
At the specified time in the morning, while still plugged in my sync turned back on and I received my email messages.
So for me this worked well, but I will need to check to see why the red light stayed on. I would have expected the profile to kill this light too.
Thanks for these profiles they worked pretty good for me.
Austin808 said:
...My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on...
Click to expand...
Click to collapse
I had turned my charging light off within the first day of getting the phone so I've never actually tested that part. I would take a guess that there is no notification occurring, thus the profile isn't triggered killing the LED for charging. The Green LED is killed because we do get a notification in the bar for a full charge. One solution is to maybe add another couple of tasks in the Disable Sync At Night profile that waits for 10 seconds and then issue the command there to kill off that light. But thats only a guess. I'll play around with it and see if that would fix it.
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
ViperRacer said:
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
Click to expand...
Click to collapse
Doh! I was testing it without it being plugged in. I bet that was the problem, thanks I'll adjust to remove that feature and see if it works.
Edit: Works!
ViperRacer said:
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
Click to expand...
Click to collapse
Thanks, this information helped me to find a solution that works for me.
I added the Wait 10 seconds to the task Notify Light Off.
Added Notify Light Off task to the Disable Sync At Night profile
Changed profile Disable Notify Light, change the Profile Active to Disable Sync At Night (if I did not do this if I turn on the screen then back off again the light would stay on)
I think this is working perfectly for me now. Thanks again.
I have these (no order) I can think of:
1. power plug: turn keyguard off, keep screen on
2. wifi off at 10:30 pm in case I forget to turn it off (battery savings)
3. sync off 10:30-6am so I do not get emails and such while I sleep
4. on sunday's from 9-10:15 it mutes the phone while I am in church
5. from 11:45pm until 5:30am it goes into airplane mode (battery savings)
6. when Navi app is run, GPS is turned on, screen brightness is turned up, keyguard is turned off, screen stays on
7. BT turns off at 9pm (battery savings)
8. whenever BT initially syncs, a tone is played to tell me the phone is connected and ready
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
There is a little known bug/feature of the S3. I found and saved this tip a while back. Needs to be done every time you reboot though.
WiFi Powersave
Using the phone dialer, dial *#0011# then press the menu key, then from the popup menu, select WiFi. You will see a button to turn off the power save mode. It will stay off until the phone is restarted, and this should allow control by Tasker to be more consistent. Press the back button repeatedly to get out of these screens.
Thanks for tips I was wondering why I couldn't get the lock screen profiles to work either. What if they were tied to cell towers near home?
Sent from my SCH-I535 using Tapatalk 2
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
My lock screen has randomly appeard on me as well.
Profiles:
Wi-fi on when in range of certain towers
lock screen off when connected to router
I seem to get the random unexpected lock screens after a rebooting, and thought I had it narrowed down to cycling tasker on and off a few times. I just started using tasker a couple days ago, will keep tinkering with it, let me know if this helps you at all.
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
modmandan said:
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
Click to expand...
Click to collapse
Try using the Invert option with Both AC/USB. It should fire when power is not provided by either of those sources.

[Q] Setting up WhatsApp so I only get one sound notification per conversation?

Hello,
I was wondering if anyone knew if it's possible to make WhatsApp give me a sound notification only for the first message I recieve in a conversation, so that the rest are muted and I hear a sound only once. Because usually I recieve messages in bursts of five or so messages, and hearing the phone ring five times in 10 seconds is extremely annoying. I'd like to make it so that any time I get a message in a conversation, I'd hear the tone just once (for each conversation) and then nothing until I open up and read the messages. Thanks in advance.
+1 to this.
2 years and nobody ever found a solution. Are we the only ones annoyed by the constant beeping?
I also find it hard to believe why WhatsApp hasn't developed a feature like this in their app... Many people I talked to are also very annoyed by the smartphone vibrating and playing a notification sound 5 times in 20 seconds!
As a matter of fact, it surprises me that this post has so few replies.
WhatsApp could implement something as simple as: "Notify me only once in 5 minutes". I'm pretty sure it is very easy to implement.. Why don't they do this?
So yeah. Im late, but i think i did.
You guys know tasker app? Amazing thing.
So here we go.
First you need tasker app.
1. You'll create two variables in VAR tab, one if for counting the other one is to store the notification volume you're set in at all random moments that you can receive a text, you don't wanna restore your volume to a preset, if you put your phone on silece mode it needs to stay on silence mode after. So, i named mines "CountNot" and "ActualNotVol"
2. Creating a task, name it whatever you like.
Look for some engine symbol or options inside the task you need to configure the Collision Handling to "Abort New Task". So the code only run once until needed again.
The code goes:
>If: %CountNot EQ 0
>Variable Set: %CountNot to 1
>Variable Set: %ActualNotVol to (click on arrow and choose) %VOLN
>Wait: 3 seconds (For my notification sound complete, may vary)
>Notification Volume: Level 0 (Muting notification sounds)
>Wait: 1 Minute (The amount of time the notification will be muted, guessing the ****head will be done sending multiple text, may vary)
>Notification Volume: (click on arrow) %ActualNotVolume (Will restore the volume that it was before)
>Variable Set: %CountNot to 0 (So the task can be repeated next time)
Finish.
Go to profile, and create > Event> UI > Notification > Owner Application > WhatsApp
And select the task you just created.
Test it if possible.
I would appreciate a reply as feedback, hope it works for you too.
bebecofp said:
So yeah. Im late, but i think i did.
You guys know tasker app? Amazing thing.
So here we go.
First you need tasker app.
1. You'll create two variables in VAR tab, one if for counting the other one is to store the notification volume you're set in at all random moments that you can receive a text, you don't wanna restore your volume to a preset, if you put your phone on silece mode it needs to stay on silence mode after. So, i named mines "CountNot" and "ActualNotVol"
2. Creating a task, name it whatever you like.
Look for some engine symbol or options inside the task you need to configure the Collision Handling to "Abort New Task". So the code only run once until needed again.
The code goes:
>If: %CountNot EQ 0
>Variable Set: %CountNot to 1
>Variable Set: %ActualNotVol to (click on arrow and choose) %VOLN
>Wait: 3 seconds (For my notification sound complete, may vary)
>Notification Volume: Level 0 (Muting notification sounds)
>Wait: 1 Minute (The amount of time the notification will be muted, guessing the ****head will be done sending multiple text, may vary)
>Notification Volume: (click on arrow) %ActualNotVolume (Will restore the volume that it was before)
>Variable Set: %CountNot to 0 (So the task can be repeated next time)
Finish.
Go to profile, and create > Event> UI > Notification > Owner Application > WhatsApp
And select the task you just created.
Test it if possible.
I would appreciate a reply as feedback, hope it works for you too.
Click to expand...
Click to collapse
I think noobs like me need a video tutorial

[LED][DEV] Moto E LED Custom Controls

Playing With Notification LED
​Original source (for MotoG) <<< make sure you read the blog article before commenting ....
dedicated Blog article for MotoE
It's always cool to know at a glance that your device is charging without the need of lighting the screen, here is how:
Requirements :
Moto E (tested on XT1022)
Rooted
SU rights granted
adb if you want to monitor all this from a computer
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, BURNT LEDs,
* thermonuclear war, or you getting fired because the alarm app failed.
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
in /sys/class/leds/charging/trigger we have these triggers available :
Code:
[none] bkl-trigger usb-online mmc0 mmc1 battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid bms-online
easy to change them using :
Code:
echo battery-charging >/sys/class/leds/charging/trigger
needs to set any value !=0 for brightness (LED is either ON or OFF on MotoE):
Code:
echo 1 >/sys/class/leds/charging/trigger
Moto E (is quite different than Moto G MotoG has two LEDs too, they are simply impossible to see):
If you pay attention, you can se that Moto E has Two little white LEDs soldered under the LED hole, the first one (left) is ruled by /sys/class/leds/charging and the second one (less bright, ont the right) is ruled by the /sys/class/leds/white.
/sys/class/leds/white/trigger, and /sys/class/leds/white/brightness configure the right LED and these settings are overridden has soon as a notification comes.
/sys/class/leds/charging/trigger and /sys/class/charging/brightness configure the left LED (the brighter one) and these settings are not overridden by notifications AND both can work toghether:
You can see the left one kept ON while charging (using battery-charging trigger) and the right one Blinking with an incoming notification.
It is time for the community to help, and we will find out a way to correctly dim the LEDs if possible.
For now, the best way is to set left LED (/sys/class/leds/charging/) for charging using dedicated trigger and keeping the right one to none and get both working together this way.
______________________________​
Set at boot:
WARNING : if you fail this, you may screw up your device ... (keep a backup somewhere)
Create a blank file and name it like 99charging_LED-blink
paste the following in that file :
Code:
#!/system/bin/sh
# enabling charging LED blinking while charging
echo "battery-charging-blink-full-solid" >/sys/class/leds/charging/trigger
echo "1" >/sys/class/leds/charging/brightness
mount /etc/init.d as RW
Paste 99charging_LED-blink there
set permissions as -RWXR-XR-X
Open terminal emulator, and type :
Code:
su
sh /etc/init.d/99charging_LED-blink
Plug it to charger, it should start blinking ... if not, make sure everything is correctly set
Reboot
Enjoy!
______________________________​
For whose who asked, here is the proof of the 2 LEDs and their White-color :
http://forum.xda-developers.com/showpost.php?p=57039807&postcount=7
Feel free to test further and report your discoveries!
The above has been tested on stock rooted ROM, and reported to work on CM11-m12, both on XT1022.
Here is the LED related Thread for MotoG
XDA:DevDB Information
[LED][DEV] Moto E LED Custom Controls, Tool/Utility for the Moto E
Contributors
matmutant
Version Information
Status: Testing
Created 2014-11-24
Last Updated 2014-12-15
reserved
reserved
@matmutant Epic discovery sir.. :good:
tried this in trickster mod led control... but since the left one is so bright it overrides the indication of the right..i.e the change in the blinking intensity is not visible until observed closely...
AshuGite said:
tried this in trickster mod led control... but since the left one is so bright it overrides the indication of the right..i.e the change in the blinking intensity is not visible until observed closely...
Click to expand...
Click to collapse
In fact, you should use the following :
Code:
echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
This way the brighter will blink during charge, so the notification LED will be visible too (that's not the same blink pattern so it gives an irregular blink feeling)
Of course, i have no idea why there are 2 LEDs, and if lighting the brighter one will burn it or not : i'm going to add a disclaimer to OP since this mod has potential consequences on Hardware.
Thank you for your report, may i ask you your device and ROM?
matmutant said:
In fact, you should use the following :
Code:
echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
This way the brighter will blink during charge, so the notification LED will be visible too (that's not the same blink pattern so it gives an irregular blink feeling)
Of course, i have no idea why there are 2 LEDs, and if lighting the brighter one will burn it or not : i'm going to add a disclaimer to OP since this mod has potential consequences on Hardware.
Thank you for your report, may i ask you your device and ROM?
Click to expand...
Click to collapse
same results on cm11 m12 and stock 4.4.4 in XT1022
For whose who asked :
I was able to show that our MotoE has 2 LEDs (until now it was only a high suspicion) and that they are really White and not mis-configured RGB.
Here is the in-depth proof.
If only we could change their color.
Sent from my GT-I9070
Is this working?
Because i have planned to make app for this.
svprm said:
Is this working?
Because i have planned to make app for this.
Click to expand...
Click to collapse
Sure it works
Two steps are needed to set up each LEDs :
The Brighter One:
Code:
echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
Code:
echo 1 >/sys/class/leds/charging/brightness
The 'notification' One (better keep it to trigger=none, so it will keep its role of notification LED), but if you wanna play with it:
Code:
echo battery-charging-blink-full-solid >/sys/class/leds/white/trigger
Code:
echo 1 >/sys/class/leds/white/brightness
Contrary to MotoG, i couldn't dim this LED by setting 0~255 for brightness
There might be a way to trigger flash LED when getting notification, but this is not for Moto E either
if you make an app for this we could share this thread as co-contributors and in-depth study these new possibilities
If we can change colour, it will be too good
Sent from my XT1022 using xda premium
nisu4717 said:
If we can change colour, it will be too good
Sent from my XT1022 using xda premium
Click to expand...
Click to collapse
didn't you read this? : http://forum.xda-developers.com/showpost.php?p=57039807&postcount=7
btw here is the latest discovery :
Using "bkl-trigger" as */charging/trigger allows you to get the LED on as long as the screen ("bkl" stands for backlight)
Code:
echo bkl-trigger >/sys/class/leds/charging/trigger
Just because having this feature working at boot is soooo cool xD
Set at boot:
WARNING : if you fail this, you may screw up your device ... (keep a backup somewhere)
Create a blank file and name it like 99charging_LED-blink
paste the following in that file :
Code:
#!/system/bin/sh
# enabling charging LED blinking while charging
echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
echo 1 >/sys/class/leds/charging/brightness
mount /etc/init.d as RW
Paste 99charging_LED-blink there
set permissions as -RWXR-XR-X
Open terminal emulator, and type :
Code:
su
sh /etc/init.d/99charging_LED-blink
Plug it to charger, it should start blinking ... if not, make sure everything is correctly set
Reboot
Enjoy!
matmutant said:
Set at boot:
WARNING : if you fail this, you may screw up your device ... (keep a backup somewhere)
Create a blank file and name it like 99charging_LED-blink
paste the following in that file :
Code:
#!/system/bin/sh
# enabling charging LED blinking while charging
echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
echo 1 >/sys/class/leds/charging/brightness
mount /etc/init.d as RW
Paste 99charging_LED-blink there
set permissions as -RWXR-XR-X
Open terminal emulator, and type :
Code:
su
sh /etc/init.d/99charging_LED-blink
Plug it to charger, it should start blinking ... if not, make sure everything is correctly set
Reboot
Enjoy!
Click to expand...
Click to collapse
i already created a script for myself but unable to figure out how to control blinking pulse...
AshuGite said:
i already created a script for myself but unable to figure out how to control blinking pulse...
Click to expand...
Click to collapse
The blinking pulse is Hardcoded, that means end-user cannot modify it, though some work in the light Hal should both give hability to dim the LED and control its pulse frequency (no idea if it will really be userspace configurable or not then)
@dhacker29 had done something related for MotoX a while ago :
http://review.cyanogenmod.org/#/c/57550/
However, that's not part of my skill range :cyclops:
matmutant said:
The blinking pulse is Hardcoded, that means end-user cannot modify it, though some work in the light Hal should both give hability to dim the LED and control its pulse frequency (no idea if it will really be userspace configurable or not then)
@dhacker29 had done something related for MotoX a while ago :
http://review.cyanogenmod.org/#/c/57550/
However, that's not part of my skill range :cyclops:
Click to expand...
Click to collapse
in cm11 we have the option to control the pulse frequency..
AshuGite said:
in cm11 we have the option to control the pulse frequency..
Click to expand...
Click to collapse
Exactly, buy only for the notification LED (the one we can dim, under the rule of /sys/class/leds/white), not for the charging LED (/sys/class/leds/charging)
Any video tutorial?
bsaikartheek said:
Any video tutorial?
Click to expand...
Click to collapse
As i told you on G+, feel free to make one and i'll share it here
Can someone tell me how to do it please m not able to do it
Sent from my XT1022 using XDA Free mobile app

[TASKER] Share your best and favorite Tasker profiles for OnePlus 2!

Hi fellow XDA members, I just came across this awesome app called Tasker. I am still trying to figure it out and learning about it but i know it got huge potential to automate our devices. Many of you must be experts in using it. So I created this thread for all to share their best and favourite Tasker profiles for OnePlus 2. Looking forward to see some wonderful ideas to automate our beloved OnePlus 2.
tasker is not device or rom specific at all, hence i don't think that people ( experienced users ) who us tasker in a sophisticated manner would read and post much in this thread, there are dedicated tasker thread. just stumbled in to see what tasker profiles (tasks) would be especially for the OP2 and as suspected, there are none yet.
I've been looking for a way to use the fingerprint sensor, to secure certain apps, such that only I can access them with my fingerprint. I haven't succeeded yet, so if anyone has an Idea I would appreciate it.
Jakob1379 said:
I've been looking for a way to use the fingerprint sensor, to secure certain apps, such that only I can access them with my fingerprint. I haven't succeeded yet, so if anyone has an Idea I would appreciate it.
Click to expand...
Click to collapse
That's a great idea. Experts, please shed some light on this if it's possible or not.
I don't own a OPO, but I imagine the profiles I run would work on any android. I've only got a few at the moment, some I ditched because I no longer had a use for them since getting on PAC ROM.
Current profiles are:
ClearCache. Autolaunches the Fast Cache Cleaner app everyday at 6:00PM. The app has no UI, so it doesn't interfere with what I'm doing at the time and just quietly clears cache in the background.
LowerMediaVolume: When headphones are plugged in, media volume gets reset to 2. Got sick of scaring the pants off myself when I'd go to listen to music and had forgotten my media volume was maxed out...
TurnGPSOnWhenWazeIsLaunched: I use Waze as my navigator, so I have it set to automatically turn GPS on (through the Secure Settings plugin) when the app is launched. Also included an exit task so once I leave navigation, GPS will shut off as well.
BirthControlTxt and CleaningReminder: They're similar profiles for my bad memory. Everyday at 11:45PM, my phone sends me an SMS reminding me to take my pill (I also have an alarm for this set at 11, this alert is a fallback just in case my alarm goofs). CleaningReminder is set to go off every Monday, but I only clean the factory every other Tuesday. So I set the cool down period to every 13 days, and hopefully that will 'disable' the alert every other Monday. I just made that one so I haven't gotten to test that. In the past, I also had an AutoReboot profile to reboot the phone everyday at 7AM, but I haven't gotten ballsy enough to try it since switching to a somewhat unstable ROM
http://forum.xda-developers.com/galaxy-grand-duos/themes-apps/app-tasker-to-customize-phone-t2876179
Check this out.. I have most of them now also..
Data off when screen off and the data connects when turning on the screen
zombunny said:
TurnGPSOnWhenWazeIsLaunched: I use Waze as my navigator, so I have it set to automatically turn GPS on (through the Secure Settings plugin) when the app is launched. Also included an exit task so once I leave navigation, GPS will shut off as well.
Click to expand...
Click to collapse
Can you share this profile
I can't get to turnoff the gps
Sent from my ONE A2005 using Tapatalk
fburgos said:
Can you share this profile
I can't get to turnoff the gps
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
Certainly.
Profile: Application/Waze
Task: Plugin/Secure Settings/System + Actions/GPS/Set ON
Exit task (to create exit tasker: once you have built the above Task, go into your profiles, expand your Waze profile, and long press on your task, then select to add an exit task): Plugin/Secure Settings/System + Actions/GPS/Set OFF.
Results may vary from device to device. This profile worked great when I had a Jellybean stock ROM, now I'm running PAC on 5.1 and while it does work, it occasionally will put my GPS on 'device only' instead of high accuracy, so for reliablity I just toggle GPS myself in my notification bar until I think or hear of a way to do this more reliably in Tasker.
I did it that way but wasn't working...
Cleaned flashed oxygen now works
Thanks
Sent from my ONE A2005 using Tapatalk
Need some help...
Trying to use Tasker to create an action to the 4636 Hidden Menu, so then can export it to an app for quick access.
Was originally trying to do it the phone but didn't work...
Right now I'm trying:
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Still nothing though
Thanks
khaos64 said:
Need some help...
Trying to use Tasker to create an action to the 4636 Hidden Menu, so then can export it to an app for quick access.
Was originally trying to do it the phone but didn't work...
Right now I'm trying:
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Still nothing though
Thanks
Click to expand...
Click to collapse
Figured it out...
Needed one additional setting
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Target: Service
Tried to set tasker to turn on gps when i launch waze but gps cannot be turned on although I have set it properly through secure settings. Anybody can help?
Sent from Oneplus²
Tasker for dark mode?
I'm wondering if Tasker can be used to turn on dark mode on the Oneplus 2 at a specific time of the day. What task option do I use?
spicediablo said:
Tried to set tasker to turn on gps when i launch waze but gps cannot be turned on although I have set it properly through secure settings. Anybody can help?
Sent from Oneplus²
Click to expand...
Click to collapse
I did the same with Google Maps..
PROFILE:
App > GMaps (os Waze)
ENTRY TASK (GPSMax):
Plugin > Secure Settings >System+ Actions > Location Mode > High Accuracy
[Flash "High Accuracy GPS enabled"]
EXIT TASK (GPSMin):
Plugin > Secure Settings > System+ Actions > Location Mode > Battery Saving
I always have battery seving location ON, so I just need to turn on High Accuracy while I'm using GMaps.
You have to install Secure Settings plugin and enable its XPosed Module
aroblu94 said:
I did the same with Google Maps..
PROFILE:
App > GMaps (os Waze)
ENTRY TASK (GPSMax):
Plugin > Secure Settings >System+ Actions > Location Mode > High Accuracy
[Flash "High Accuracy GPS enabled"]
EXIT TASK (GPSMin):
Plugin > Secure Settings > System+ Actions > Location Mode > Battery Saving
I always have battery seving location ON, so I just need to turn on High Accuracy while I'm using GMaps.
You have to install Secure Settings plugin and enable its XPosed Module
Click to expand...
Click to collapse
I think I got the settings right but it's not working.
Below is the description in text
Profile: Waze/gps (6)
Application: Waze, Sygic or Maps
Enter: GPS (7)
A1: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Display AutoRotate [ Setn ]
Exit: Autorotate Off (13)
A1: Display AutoRotate [ Setff ]
Sent from Oneplus²
spicediablo said:
I think I got the settings right but it's not working.
Below is the description in text
Profile: Waze/gps (6)
Application: Waze, Sygic or Maps
Enter: GPS (7)
A1: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Display AutoRotate [ Setn ]
Exit: Autorotate Off (13)
A1: Display AutoRotate [ Setff ]
Sent from Oneplus²
Click to expand...
Click to collapse
Did you try putting a 1 second Wait at the beginning? Maybe the phone just needs some time..
And use a Flash in order to see if the profile is fired
How do I do that? Can you please give the exact options to set?
aroblu94 said:
Did you try putting a 1 second Wait at the beginning? Maybe the phone just needs some time..
And use a Flash in order to see if the profile is fired
Click to expand...
Click to collapse
Sent from Oneplus²
spicediablo said:
How do I do that? Can you please give the exact options to set?
Sent from Oneplus²
Click to expand...
Click to collapse
Before your A1 do:
Alert > Flash > "GPS fired" (and check the long option)
Activity > Wait > 1s
I can't find activity...
Anyway, the profile is activated but my gps doesn't change to high accuracy....
aroblu94 said:
Before your A1 do:
Alert > Flash > "GPS fired" (and check the long option)
Activity > Wait > 1s
Click to expand...
Click to collapse
Sent from Oneplus²

Categories

Resources