Tasker to check if lights are on or not - MTCD Android Head Units Q&A

Is there a way using Tasker to check and see if the lights are on or off. I am running the Malaysk ROM but can't seem to find any information regarding this. Thanks

Or if I can atleast get the broadcast intent for whether lights are on or off I can work out the rest from there

Related

[Q]How to Keep Proximity Sensor on?

Mods, please move if this isn't the right section (I contemplated the development section but opted against it).
I'll try to be short while providing enough background to get the more knowledgeable people here the info they need to help me with this problem. Essentially, i have a 32gb P6210 that I'm going to flush mount in my dash to use for in car entertainment. With no access to the hardware buttons I did some research on what would realistically meet my needs (especially getting the screen back on without the power button).
I found Tap Tap App on the market and the widget allows me to turn the screen off and waving my hand in front of the proximity sensor four times turns the screen back on. The issue is that, randomly (has ranged from 10 minutes to 17 hours), the proximity sensor is turned off when the screen is off, making the app inconsistent, even with "never turn off sensor" checked within the app. I'm in talks with the developer and he mentioned that the proximity sensor turning off with the screen off is dependent on the underlying rules built into individual ROMs. I'm on the stock ROM.
I need to know if anyone has info on how to keep the proximity sensor on indefinitely with the screen off so Tap Tap App has the input needed to continuing working as designed. I dont care about battery drain at all, the tab will have constant power. I'm rooted with clockwork mod recovery so if anyone has a system file I can edit, a zip i can flash, a tasker profile you know will work, etc, please post it up. Thanks in advance!
Kinda lonely in here...anyways, as an observation update, the app i was using, Tap Tap App, worked far less reliably using the Power button widget vs having the button in the notification area.
Conversely, I found a very similar app called "Soft Power" and have been using it the past 3 days with no issues. It has no widget option and only has the option for turning off via notification area. I'm thinking that always running the notification area by default means a background service is running to keep it there. I have not yet been able to not wake it up by waving my hand over the prox sensor. So for anybody with similar needs to mine in terms of not wanting or being able to access the power button, this has been a good alternative thus far.
I tried it on my phone. It does not work at all.
LG Optimus 2X 2.3.4
It looks like a promising application.
Perhaps it works on ICS ?

Any way to disable soft key lights on One S?

I have moved to the HTC One S from the Galaxy S2. One of the most annoying things of the S2 was the soft key lights when using the phone in the dark. I solved this by using the "Screen Filter" app from the Market. I have also seen that Samsung has put the option to disable the light on those buttons in the Settings menu.
Now, on the HTC One S, the problem is back. Screen Filter does not kill the light on the buttons (it says that this won't work on all phones...) and I can not find a setting to do this.
Is there a way to kill the lights on those buttons?
Am I the only one that finds this annoying? I find the phone impossible to use while in bed or in a dark lit environment...
jadajada said:
Am I the only one that finds this annoying? I find the phone impossible to use while in bed or in a dark lit environment...
Click to expand...
Click to collapse
yes
I'll be getting the ONE S tomorrow, but on my SGSII you can go into settings > display > touch key light duration. I'm not sure if the one s has it but hopefully that helps.
I know about the S2, I have one myself. I am not sure if this is a "samsung feature" or a stock ICS feature. If it is an ICS feature, then it should be possible to dim or turn off those lights on the ONE S also in one way or another? The best solution would be to switch them off permanently.
I have no use for those lights since I know where the three buttons are.
And the fact that they light up, full blast, and stay lit, when I watch movies via Mirage (Air Video client) in bed is just annoying at best.
jadajada said:
I know about the S2, I have one myself. I am not sure if this is a "samsung feature" or a stock ICS feature. If it is an ICS feature, then it should be possible to dim or turn off those lights on the ONE S also in one way or another? The best solution would be to switch them off permanently.
I have no use for those lights since I know where the three buttons are.
And the fact that they light up, full blast, and stay lit, when I watch movies via Mirage (Air Video client) in bed is just annoying at best.
Click to expand...
Click to collapse
Did anyone ever find a solution to this problem. I use my phone as an alarm clock, and now leave the display turned off as those pesky little lights on the buttons blaze away all night
What alarm clock do you use that the lights stay on? That doesnt make any sense. I use my phone as an alarm. Screen shuts off as normal and when the alert comes in it turns on like normal.
Sent from my HTC one sex
elracing21 said:
What alarm clock do you use that the lights stay on? That doesnt make any sense. I use my phone as an alarm. Screen shuts off as normal and when the alert comes in it turns on like normal.
Sent from my HTC one sex
Click to expand...
Click to collapse
Sorry, I'm maybe not explained it clearly. I use Gentle Alarm that has a night time display of the time. My old phone the button back lights (4) used to turn off. With the HOS they stay on and there seems to be no option to turn them off. There is only 3 of them of now on the HOS but they are quite bright. If the light is bright enough they turn off during the day but at night they blaze away regardless. I currently just turn the screen off and Gentle Alarm still works of course but with no time display. Not a big issue as only useful if you happen to wake in the night and wonder what time it was. I only ask because I wonder if I've missed an option somewhere. Screen Filter has the option to turn them off but does not work with the HOS.
I understand now. I didn't know people leave their displays on for alarm clock use. As far as I know there is no way to completely disable the capacitive buttons. Sorry bud.
Sent from my HTC one sex
You can turn off the button lights in LeeDroid's ROM. It's in the tweaks settings.
You could also manually set the brightness of the display just bright enough that the phone disables the softkey lights.
Edit: nvm. It only works while using auto brightness.
Sent from my HTC VLE_U using XDA
i would also like to know if anyone finds a fix i was watching a movie on my phone last night to keep it quiet and them lights satyed on all the time i also looked for the settings like they had on the sgs2 but no dice
I wrote a tasker task that will disable the lights on the capacitative buttons. You can use it to automatically disable the lights when in whichever app your want or set it up to have a toggle. I use both.
The task does require root. And Tasker, obviously.
If anyone else is interested I can export it and post it.
jayelbird said:
I wrote a tasker task that will disable the lights on the capacitative buttons. You can use it to automatically disable the lights when in whichever app your want or set it up to have a toggle. I use both.
The task does require root. And Tasker, obviously.
If anyone else is interested I can export it and post it.
Click to expand...
Click to collapse
I'm in
Sent from my Ville using xda premium
Main Task
Example Toggle Task
To use: ensure that you have root. If you have not already granted Tasker root access before, you will have to when using this task. Import at least the main task (called button light) into Tasker. To use it, either create your own task to reference it, or import the toggle task.
Using the toggle task: Just run the task (for example, create a shortcut to the task on your homepage), and select if you want the task on, off or on system default.
Using your own task: In your task, use the Perform Task action. Var1 should be either On, Off, or System. (For example, create a profile for MX Player, Enter action is Perform Task with var1 Off, and Exit Task is Perform Task with var2 system. This task can be downloaded here for you to edit from.)
All files are also attached.
Click Thanks if it works for you.
You can go to sys/class/leds/button-backlight/ then open the "brightness" file in a text editor and change "255" to "0" then save.
In essence, that is what the Tasker task does, but if you just change the value of that file, then Sense will just restore it as soon as it detects that the light values have changed. I couldn't get it to stick without root. The Tasker task also changes the permissions for that file, thus preventing Sense from changing it until you unlock the file again.
Perfect
Thanks jayelbird, your brilliant. The Tasker do the job very nice.
OT: can you make a task wake up volume?
The most that Tasker can do right now is detect if there was a volume change and wake the phone, although I can et you a profile for that if you want it.
Button remapping might be a better avenue to take. Try changing the codes for the button remapping.
Try changing the codes for the button remapping
Thanks.How can i change the code for the button remapping?

Problem with tasker application

Hey guys,
I recently downloaded the tasker application. Currently I am trying to get the brightness to 100% when it is receiving power (plugged in), and 25% brightness when it is removed. I tried enabling the check box which says "Immediate Effect." However, I still have to turn the screen on and off for it to work. I also tried using automateit, same problem, I must turn off and on the display. I did make a crude workaround by having tasker turn off and on the display so the brightness would adjust, but I would rather have it adjust without turnong on/off the screen. Are there any apps that could be interfering with it? I am using an unrooted ICS Droid Razr.
If there are any other posts which could help with this problem please link? (I couldn't find any)
Thanks

Profile switcher?

I am new to the S3 and cannot find any easy way to switch sound profiles. Is there something built in to the S3 that I am missing? The main things I want to do are: At night, switch off vibrate, ringer, and LED notifications (keep alarm sound and vibrate active). Then in the morning have it switch back on vibrate, ring, and LED. Plus control screen brightness.
I have tried a couple of the profile switcher apps and none work well (ie, they don't over ride the phones settings).
I use tasker for stuff like this, which has a ton of options and conditions.
I have only briefly played with Tasker but see a ton of posts about it.
Are there preset profiles or can you download ones?
Sent from my SCH-I535 using Tapatalk 2
You can search for downloads for tasker, but I think tasker best used by yourself to fully customize to your needs. When I first got tasker I never used it because seemed overwhelming. When I tried it again I really tried to learn it, and now I love it. Interfaces with nfc tags and eva voice assistant which helps me a lot. I have some computer programming experience which I think helped a little in understanding some commands easier like If, else, endif, etc. But spending time to learn it really is what helped me figure it out.
never used tasker
but ive read llama is similiar and free.
check it out
my ROM allows me to create up to 6ish profiles that are very easily switchable. (paranoiandrod)
Yeah, Llama is a simpler version of Tasker. Although I'm not sure if it can do anything with LED Notifications, that's probably something only Tasker could do.
Why dont you just set your ringer and vibrate then when its night time turn sounds to mute? The led will still work
Sent from my SCH-I535 using xda app-developers app
An nfc tag near your bed tag would actually do this perfectly for you.

[Tasker] Profiles to toggle Flash Notification setting automatically

Description
In light of not having a dedicated notification LED I set up some Tasker profiles to toggle the Accessibility setting Flash Notifications. I don't want it flashing while I'm using my phone, or while in my car on my wireless charging mount. This consists of 2 profiles and four tasks.
First profile will disable Flash Notifications when your screen is on and enable it when your screen is off, unless the Car profile says it's in your car and on your charger.
Second profile will disable Flash Notifications when it's connected to your car's Bluetooth (be sure to set it to your cars Bluetooth address), AND it's on the charger, unless the Screen profile says the screen is on, in which case the Flash Notifications will remain disabled until you turn you screen off. In my car, I use a wireless charger, so taking it off the charger disconnects power, and putting it back on the mount reconnects power automatically. My idea was that I don't want the Flash distracting other drivers, cuz they have a hard enough time being competent as it is. If you don't use a wireless charger or don't have Bluetooth in your car, you might have to tweak the activation of this profile to your specific case.
I have never shared a Tasker Profile before, so if anyone's interested in this and it doesn't import or something let me know.
Downloads
I am providing both downloadable attachments, and links to download from Tasker's site. You must also have Tasker and Tasker's helper app "Tasker Settings" installed.
Screen Profile Download Link
Car Profile Download Link
Tasker
Tasker Settings Helper App
I don't recall having to use adb to grant Tasker special permissions, but I will be doing a fresh install of this on my wife's phone tomorrow and will update if you need to.
<Reserved>
Useful. Thanks.
lightmastertech said:
Description
In light of not having a dedicated notification LED I set up some Tasker profiles to toggle the Accessibility setting Flash Notifications. I don't want it flashing while I'm using my phone, or while in my car on my wireless charging mount. This consists of 2 profiles and four tasks.
First profile will disable Flash Notifications when your screen is on and enable it when your screen is off, unless the Car profile says it's in your car and on your charger.
Second profile will disable Flash Notifications when it's connected to your car's Bluetooth (be sure to set it to your cars Bluetooth address), AND it's on the charger, unless the Screen profile says the screen is on, in which case the Flash Notifications will remain disabled until you turn you screen off. In my car, I use a wireless charger, so taking it off the charger disconnects power, and putting it back on the mount reconnects power automatically. My idea was that I don't want the Flash distracting other drivers, cuz they have a hard enough time being competent as it is. If you don't use a wireless charger or don't have Bluetooth in your car, you might have to tweak the activation of this profile to your specific case.
I have never shared a Tasker Profile before, so if anyone's interested in this and it doesn't import or something let me know.
Downloads
I am providing both downloadable attachments, and links to download from Tasker's site. You must also have Tasker and Tasker's helper app "Tasker Settings" installed.
Screen Profile Download Link
Car Profile Download Link
Tasker
Tasker Settings Helper App
I don't recall having to use adb to grant Tasker special permissions, but I will be doing a fresh install of this on my wife's phone tomorrow and will update if you need to.
Click to expand...
Click to collapse
I'm a complete idiot when it comes to Tasker. I have compiled ROMs from source, made many Smali edits, built themes (all many years ago when I had time) but never spent the time to figure out Tasker.
I would like Tasker to disable Holey Light (see screenshot) when Do not disturb is turned on and re-enable it when Do not disturb is turned off. Would you know how to (or could you make a profile) do this?
bp328i said:
I'm a complete idiot when it comes to Tasker. I have compiled ROMs from source, made many Smali edits, built themes (all many years ago when I had time) but never spent the time to figure out Tasker.
I would like Tasker to disable Holey Light (see screenshot) when Do not disturb is turned on and re-enable it when Do not disturb is turned off. Would you know how to (or could you make a profile) do this?
Click to expand...
Click to collapse
I second this!!!!
Tasker looks like a super useful tool, but f*** why make it so complicated and not user friendly.
I recently tried MacroDroid and like it more, but its definitely limited compared to Tasker from what I've learned, but it did work while I used it.
To disable Holey Light while in DND would be very nice to have. Please advise.
elite-fusion said:
I second this!!!!
Tasker looks like a super useful tool, but f*** why make it so complicated and not user friendly.
I recently tried MacroDroid and like it more, but its definitely limited compared to Tasker from what I've learned, but it did work while I used it.
To disable Holey Light while in DND would be very nice to have. Please advise.
Click to expand...
Click to collapse
I'm not sure if Tasker can change the settings of another app without said app already being programmed to be controlled by Tasker. I'll have to see if this is possible.
Also, considering Holey Light is still in beta and being developed, you might try contacting Chainfire and seeing if he can add this setting to the app natively.
lightmastertech said:
Also, considering Holey Light is still in beta and being developed, you might try contacting Chainfire and seeing if he can add this setting to the app natively.
Click to expand...
Click to collapse
He's looking into adding Do not disturb but I already found a workaround for my problem. In Holey Light I just turn off for it to work when charging and screen is off. I charge my phone every night so it works out fine for me.
bp328i said:
He's looking into adding Do not disturb but I already found a workaround for my problem. In Holey Light I just turn off for it to work when charging and screen is off. I charge my phone every night so it works out fine for me.
Click to expand...
Click to collapse
Only way I can think of having Tasker control it as is, would be to enable disable notification permissions or Accessibility service, both of which require root to do and I have the unrootable US Snapdragon variant.
On another note, Sammy has already added a variation of ring notifications that I'm sure they will expand on. As if now, it works with system apps with screen on or off, and with user apps with screen on.
lightmastertech said:
Only way I can think of having Tasker control it as is, would be to enable disable notification permissions or Accessibility service, both of which require root to do and I have the unrootable US Snapdragon variant.
On another note, Sammy has already added a variation of ring notifications that I'm sure they will expand on. As if now, it works with system apps with screen on or off, and with user apps with screen on.
Click to expand...
Click to collapse
I appreciate it, I also have the unrootable US Snapdragon.
Samsung's current implementation of the notification light is just plain useless. It stays on for like 5 seconds.
Holey Light is working perfectly for me the way I have it set up.

Categories

Resources