[MOD] Using Tasker to gain full control over the LEDs - Sprint Samsung Galaxy Note II

Way back in my EVO OG days, someone had discovered how to directly access the LEDs, and I had put together some Tasker scripts to put them to good use. I know that there are apps like LightFlow that allow you to do a bunch of stuff to the LEDs, but I found them very cumbersome to use, and there were all kinds of settings that don't work on the Note 2. There was no easy way to know what settings to choose and what were appropriate for the Note 2. Also, Light Flow only works when the display is off, and interferes with the Phones own notification system. This mod works whether the display is on or off (if you want) and is independent of the built in charging notifications.
Also, it's way more awesome to learn to do stuff yourself!
I've used Tasker for years, and although it takes some getting used to, it does a great job at executing tasks based on events.
--------------------------------------------------------------------------------------
Anyway, here's what you can do using Terminal Emulator (which can then be scripted in Tasker). YOU WILL NEED ROOT ACCESS.
Background
1. There are 3 LEDs used for notifications, leg_r (red), led_g (green) led_b (blue).
2. Each LED can be set to a specific brightness from 0 to 255 (where 0 is off and 255 is full brightness), by writing to the "brightness" file.
3. Each LED can be set to blink by writing a value of 0 (off) or 1 (on) to the "blink" file.
4. You can set the time the LED illuminates and the time it is dark when blinking by writing to the "delay_on" and "delay_off" files (values are in milliseconds).
5. These files are located in /sys/class/leds
It appears that "blink" must be executed again after changing the delay for it to have an effect, and turning the LED off requires you to revert the last change - if you set brightness and then blink, you must set blink to 0 to turn it off. If you turned it on with brightness last, then you must set brightness to 0 to turn off. (still investigating this part).​
All you need to do is enter the following commands:
echo 500 > /sys/ckass/leds/led_b/delay_on <- sets the ON time to 1/2 second
echo 500 > /sys/ckass/leds/led_b/delay_off <- sets the OFF time to 1/2 second
echo 128 > /sys/ckass/leds/led_b/brightness <- sets LED brightness (blue) to about 1/2 of max (note that this turns on the steady LED)
echo 1 > /sys/ckass/leds/led_b/blink <- Blinks the Blue LED at the above intervals​
Now in Tasker you can:
a. Create a profile for the "Missed Call" State (or event).
b. Add a Task and in that task add 4 "Scripts" of type "Shell" for each of the above.
c. Make sure you check "Use Root" for each script
I've done this to have my phone flash red for missed calls, blue for missed texts and green for missed calendar events (each as its own Tasker profile)
You need to create one (or two) additional profiles to disable the flashing. All it needs is the following 3 commands to turn all the LEDs off.
echo 0 > /sys/ckass/leds/led_b/blink
echo 0 > /sys/ckass/leds/led_r/blink
echo 0 > /sys/ckass/leds/led_g/blink​
I set one for the "Screen Unlock" event and one for the "Notification Bar". This way, the flashing stops in intuitive ways.
There's way more stuff you can do and trigger alerts on using Tasker.
You can also access the 2 Flashes and 2 Task Lights on the back of the phone (although I suspect it is really just two LEDs that run in 2 different modes). They are located at:
/sys/class/leds/leds-sec1
/sys/class/leds/leds-sec2
/sys/class/leds/torch-sec1
/sys/class/leds/torch-sec2
These only have a brightness setting to turn them on, and are limited to what ever value is stored in max_brightness.
I've attached a couple of Tasker pictures, but feel free to post any questions.

Related

[GUIDE] How to change all the setting for all Notifications

How to edit registry so the notification options you want available are available and selected. I posted this on another thread but thought it could also be of use here.
I hated that my brand new Sprint Touch Pro was beeping at me because of an appointment reminder and I needed to dismiss the reminder before it would quite beeping (the Repeat check box is grayed out, but selected for Reminders by default, so it couldn't be unselected). Not anymore
My phone uses MW6.1, so I have only tested these values on this.
First a list of the reminders in the Registry found in HKEY_CURRENT_USER\ControlPanel\Notifications
15F11F90… - Reminder
695F6B37… - RSS-Hub:New Item
85ee47b2… - QuickGPS
8ddf46e7… - Connection established
8ddf46e8… - Connection disconnected
A877D658… - Begin Sync
A877D658… - Beam:Autoretrieve
A877D659… - End Sysnc
A877D65A… - Messaging: New Email
A877D65B… - Messaging: New Text
A877D660… - Missed Call
A877D661… - Voice Mail
DDBD3B44… - Wireless Network Detect
There are two important keys:
AvailableOptions​Options​
The values in these keys will determine what options are available (AvailableOptions) and which options are selected (Options).
The values relate to the following (in the order on the Notifications tab):
1 = Play Sound​16 = Repeat​8 = Display message on screen​4 = Flash light for ...​2 = Vibrate​
Add the numbers of the notifications you desire. So if you wanted all of them selected you would put 31 in the Options key. If you only wanted a message and vibrate you would put 10.
Next step.
AvailableOptions determine which boxes are available and which are grayed out. (we will leave out Repeat until later). Options determines which are selected, and yes you can select something in Options that is not selected in AvailableOptions, it will appear as a grayed out check box that is selected.
So if AvailableOptions is set to 10 only the Display message on screen and Vibrate check boxes will be available, the rest will be grayed out. If the Options value is 14, the Play Sound will be grayed out, unselected; the Display message will be available and selected; the Flash light will be grayed out, but selected and 5 min (Duration key = 5); Vibrate will be available and selected.
So set the options you want to select and unselect using the Available Options key and use the Options key to specify which are selected. Changing the selection in the Notifications tab will change the value of the Options key, but will not change the AvailableOpions key.
The only values accepted for either are 1-15, 17, 19, 21, 23, 25, 27, 29, 31
Is is because you can't have Repeat (16) without Play sound (1), that's why there are numbers missing. I tested putting 16 in AvailableOptions and 31 in Options and all boxes were selected, but grayed out.
Now for the Repeat checkbox
Things get slightly more complicated when the Repeat box gets involved. The way the AvailableOptions values function do not change. Setting it to 15 will make each box, except the repeat box, available, with the Repeat box grayed out.
It seems that the Repeat box is governed by the Options value first and the AvailableOptions second. So setting AvailableOptions to 31 and Options to 15 would result in Repeat being unselected and grayed out.
The only way to un-gray the Repeat check box is to set AvailableOptions to 31 (it still matters) and set Options value to 1073741824 + (what you want selected).
So 1073741825 (1073741824 + 1) is only Play Sound,​while 1073741855 (1073741824 + 31) will select all of them.​
The only thing I can figure is that 1073741824 is 40000000 in HEX and that is needed to turn on access to the Repeat check box. The values added to that affect what happens to after that.
If you set AvailableOptions to 11 and Options to 107374185, all of the boxes will be checked, but Repeat and Flash light will be grayed out.
I have seen different values listed on the web, but the values I list here are what windows assigned when certain boxes were checked and unchecked. I did us one of the values I found on the web to determine 1073741824 was needed to open access to the Repeat check box.
Have fun setting your Notifications.
--Fred
It's nice to give back after gaining so much from the gifts of others.
Great guide fredjones32!!
Thanks a lot,
is this something that will allow u to stop like the text message ringer when u read it? instead of having to hit the End key?
This is great!
A big THANK YOU, mate!!
Awesome guide!!!! Maybe this should be in the Wiki as well...
Edit: Nevermind, I just added it to the Wiki under "WM6 Common Tweaks"
I have only the options key for each notification in the registry but not the available options key.
Aftashok said:
is this something that will allow u to stop like the text message ringer when u read it? instead of having to hit the End key?
Click to expand...
Click to collapse
Dont' know. Check to see if the repeat is checked for Messaging:New text message. If not, it should only play the sound once, so you could choose a shorter sound.
claus1953 said:
I have only the options key for each notification in the registry but not the available options key.
Click to expand...
Click to collapse
What do you see in the Notifications tab under Sound settings?
Since I haven't worked with Onyx Ultimate ROM, I can't say if that's the reason or not.
You could try adding the key or use the values for Options that are above 1073741824, since this sets things. If you change the value for Options and the boxes are grayed out, then I would try adding the AvailableOptions key and see what happens.
--Fred
hi
hav you figure out the duration under Messaging:New text message?
i tried playing around with the values, but dun get it...
some values causes the sms to go w/o the notification..
silencer22 said:
hi
hav you figure out the duration under Messaging:New text message?
Click to expand...
Click to collapse
The Duration key in the registry is the duration, in minutes, for the alert LED on the phone to blink. This value can be is set by a drop down menu that becomes ungrayed when "Flash light for" check box is checked. I believe the default for a new text message has the "Flash light for" check box unchecked and grayed out. The will render any change to the duration as meaningless because without the box checked, the duration key never comes into play.
To adjust that setting, you will need to set AvailableOptions with the appropriate number to activate the Flash light option. You will also need to set the Options will the right number to activate the Flash light for notification. You could try setting both to 15.
Now with the drop down menu accessible, changes can be made to the Duration and they will show in the registry. If you desire to set the registry manually, the only acceptable values for Duration are:
0 (No limit); 5 (5 minutes); 10 (10 minutes) see the pattern; 15; 20; 30; 45; or 60
Other values will not show up in the drop down menu on the Notifications tab. It might even create adverse behavior (just a guess), which might explain what you are experiencing.
Hope that helps.
--Fred
What if I want to turn them off?
thx
peibl said:
What if I want to turn them off?
Click to expand...
Click to collapse
set AvailableOptions to 31 (so nothing is grayed out) and set Options value to 1073741824 (so nothing is selected, including Repeat)
something about reminder's snooze times ?
There is something to change the reminder's snooze times ? (I think that 1, 5, 15 minutes .. and so on, are useless.
Thanks.
Any way of getting more control over the Raphael/Diamond's LED? It has 4 LED's around the dpad that can flash clockwise, counterclockwise, dim, etc. Presumably the light patterns can be controlled but there has to be more to it... The option to get a notification is enabled, but control over that notification appears to be preset (these are the 'rules' they follow: http://www.fuzemobility.com/?p=1390)
fredjones32 said:
How to edit registry so the notification options you want available are available and selected. I posted this on another thread but thought it could also be of use here.
I hated that my brand new Sprint Touch Pro was beeping at me because of an appointment reminder and I needed to dismiss the reminder before it would quite beeping (the Repeat check box is grayed out, but selected for Reminders by default, so it couldn't be unselected). Not anymore
My phone uses MW6.1, so I have only tested these values on this.
First a list of the reminders in the Registry found in HKEY_CURRENT_USER\ControlPanel\Notifications
15F11F90… - Reminder
695F6B37… - RSS-Hub:New Item
85ee47b2… - QuickGPS
8ddf46e7… - Connection established
8ddf46e8… - Connection disconnected
A877D658… - Begin Sync
A877D658… - Beam:Autoretrieve
A877D659… - End Sysnc
A877D65A… - Messaging: New Email
A877D65B… - Messaging: New Text
A877D660… - Missed Call
A877D661… - Voice Mail
DDBD3B44… - Wireless Network Detect
There are two important keys:
AvailableOptions​Options​
The values in these keys will determine what options are available (AvailableOptions) and which options are selected (Options).
The values relate to the following (in the order on the Notifications tab):
1 = Play Sound​16 = Repeat​8 = Display message on screen​4 = Flash light for ...​2 = Vibrate​
Add the numbers of the notifications you desire. So if you wanted all of them selected you would put 31 in the Options key. If you only wanted a message and vibrate you would put 10.
Next step.
AvailableOptions determine which boxes are available and which are grayed out. (we will leave out Repeat until later). Options determines which are selected, and yes you can select something in Options that is not selected in AvailableOptions, it will appear as a grayed out check box that is selected.
So if AvailableOptions is set to 10 only the Display message on screen and Vibrate check boxes will be available, the rest will be grayed out. If the Options value is 14, the Play Sound will be grayed out, unselected; the Display message will be available and selected; the Flash light will be grayed out, but selected and 5 min (Duration key = 5); Vibrate will be available and selected.
So set the options you want to select and unselect using the Available Options key and use the Options key to specify which are selected. Changing the selection in the Notifications tab will change the value of the Options key, but will not change the AvailableOpions key.
The only values accepted for either are 1-15, 17, 19, 21, 23, 25, 27, 29, 31
Is is because you can't have Repeat (16) without Play sound (1), that's why there are numbers missing. I tested putting 16 in AvailableOptions and 31 in Options and all boxes were selected, but grayed out.
Now for the Repeat checkbox
Things get slightly more complicated when the Repeat box gets involved. The way the AvailableOptions values function do not change. Setting it to 15 will make each box, except the repeat box, available, with the Repeat box grayed out.
It seems that the Repeat box is governed by the Options value first and the AvailableOptions second. So setting AvailableOptions to 31 and Options to 15 would result in Repeat being unselected and grayed out.
The only way to un-gray the Repeat check box is to set AvailableOptions to 31 (it still matters) and set Options value to 1073741824 + (what you want selected).
So 1073741825 (1073741824 + 1) is only Play Sound,​while 1073741855 (1073741824 + 31) will select all of them.​
The only thing I can figure is that 1073741824 is 40000000 in HEX and that is needed to turn on access to the Repeat check box. The values added to that affect what happens to after that.
If you set AvailableOptions to 11 and Options to 107374185, all of the boxes will be checked, but Repeat and Flash light will be grayed out.
I have seen different values listed on the web, but the values I list here are what windows assigned when certain boxes were checked and unchecked. I did us one of the values I found on the web to determine 1073741824 was needed to open access to the Repeat check box.
Have fun setting your Notifications.
--Fred
It's nice to give back after gaining so much from the gifts of others.
Click to expand...
Click to collapse
Thought I had this figured out. It seems that every morning after the reminders do their job, the box for display message on screen unchecks itself. so it is good for one use at a time... any thoughts. ??
Thanks so much for posting this!
I've created a couple of registry files for those who are comfortable with importing these to the registry - I can't do CABs yet, sorry.
The first file sets all of the AvailableOptions values to 31 without changing anything else. This makes most options available in the Notifications dialog but, as explained above, it doesn't enable the repeat checkboxes.
The second file does the same thing but also sets all Options values to 1073741824. This has the effect of disabling all of your notifications but it does enable the repeat checkbox. Simply go into the Notifications dialog and check the desired boxes (the names of your sound files will still be remembered) and now the repeat checkbox will be available.
Edit: I've finally got round to learning how to make CAB files and I've attached the two versions described above. Please note, these settings work fine on my Diamond but I can't guarantee anything. I'm assuming the full keys names are the same for everyone.
First of all, thanks for posting this info, it has been very helpful to me in preventing missed texts. I use it to receive text pages for work (which I cannot miss). After viewing the text (doesn't matter if I view in TouchFlo3D viewer, WinMo messaging app, or both) it continues to notify me until some unknown criteria (it just stops by itself after like 5 mins or so).
I tried checking the "display message" check box since that brings up a standard WinMo text notification (which is not ideal, but I figured that would give me a "dismiss" option). It did give me the dismiss option, but that does not make it stop playing the notification sound/vibrate. Even after hitting "dismiss" on this box, it still repeats the sound.
Anyone know why or a workaround?
I had the same problem and the way I found to stop it is to press the red phone key, the one that ends the conversation.
I don't feel comfortable with this, but anyway its better than nothing.
THanks man, that works for me too. Not a perfect solution but it seems to work OK.
Also, I got some info on another forum as well, I'm posting it here:
Make reminders show only once
By default, reminders will keep bugging you for 2 minutes. You can change this to zero minutes by adjusting this value:
HKCU\ControlPanel\Notifications\Reminders\AutoSnoo ze\AutoSnoozeMins = 0 (DWORD decimanl)
Note that you can set this to any value you like. Alternative to setting this value to zero is to delete the 'AutoSnooze' key altogether
fredjones32 said:
How to edit registry so the notification options you want available are available and selected. I posted this on another thread but thought it could also be of use here.
I hated that my brand new Sprint Touch Pro was beeping at me because of an appointment reminder and I needed to dismiss the reminder before it would quite beeping (the Repeat check box is grayed out, but selected for Reminders by default, so it couldn't be unselected). Not anymore
My phone uses MW6.1, so I have only tested these values on this.
First a list of the reminders in the Registry found in HKEY_CURRENT_USER\ControlPanel\Notifications
15F11F90… - Reminder
695F6B37… - RSS-Hub:New Item
85ee47b2… - QuickGPS
8ddf46e7… - Connection established
8ddf46e8… - Connection disconnected
A877D658… - Begin Sync
A877D658… - Beam:Autoretrieve
A877D659… - End Sysnc
A877D65A… - Messaging: New Email
A877D65B… - Messaging: New Text
A877D660… - Missed Call
A877D661… - Voice Mail
DDBD3B44… - Wireless Network Detect
There are two important keys:
AvailableOptions​Options​
The values in these keys will determine what options are available (AvailableOptions) and which options are selected (Options).
The values relate to the following (in the order on the Notifications tab):
1 = Play Sound​16 = Repeat​8 = Display message on screen​4 = Flash light for ...​2 = Vibrate​
Add the numbers of the notifications you desire. So if you wanted all of them selected you would put 31 in the Options key. If you only wanted a message and vibrate you would put 10.
Next step.
AvailableOptions determine which boxes are available and which are grayed out. (we will leave out Repeat until later). Options determines which are selected, and yes you can select something in Options that is not selected in AvailableOptions, it will appear as a grayed out check box that is selected.
So if AvailableOptions is set to 10 only the Display message on screen and Vibrate check boxes will be available, the rest will be grayed out. If the Options value is 14, the Play Sound will be grayed out, unselected; the Display message will be available and selected; the Flash light will be grayed out, but selected and 5 min (Duration key = 5); Vibrate will be available and selected.
So set the options you want to select and unselect using the Available Options key and use the Options key to specify which are selected. Changing the selection in the Notifications tab will change the value of the Options key, but will not change the AvailableOpions key.
The only values accepted for either are 1-15, 17, 19, 21, 23, 25, 27, 29, 31
Is is because you can't have Repeat (16) without Play sound (1), that's why there are numbers missing. I tested putting 16 in AvailableOptions and 31 in Options and all boxes were selected, but grayed out.
Now for the Repeat checkbox
Things get slightly more complicated when the Repeat box gets involved. The way the AvailableOptions values function do not change. Setting it to 15 will make each box, except the repeat box, available, with the Repeat box grayed out.
It seems that the Repeat box is governed by the Options value first and the AvailableOptions second. So setting AvailableOptions to 31 and Options to 15 would result in Repeat being unselected and grayed out.
The only way to un-gray the Repeat check box is to set AvailableOptions to 31 (it still matters) and set Options value to 1073741824 + (what you want selected).
So 1073741825 (1073741824 + 1) is only Play Sound,​while 1073741855 (1073741824 + 31) will select all of them.​
The only thing I can figure is that 1073741824 is 40000000 in HEX and that is needed to turn on access to the Repeat check box. The values added to that affect what happens to after that.
If you set AvailableOptions to 11 and Options to 107374185, all of the boxes will be checked, but Repeat and Flash light will be grayed out.
I have seen different values listed on the web, but the values I list here are what windows assigned when certain boxes were checked and unchecked. I did us one of the values I found on the web to determine 1073741824 was needed to open access to the Repeat check box.
Have fun setting your Notifications.
--Fred
It's nice to give back after gaining so much from the gifts of others.
Click to expand...
Click to collapse
Just what I was looking for. Great work, however on my Touch Pro I can only enter 8 numbers in the Options key, cannot enter the + numbers. If I set it to 17 I get the Play Sounds and the Repeat box checked but grayed out. Any suggestions??
Re. the long article
That long article is fantastic and clears up lots of things. It even works as documented. The only issue is during the reminder period. It repeats yes but you cant control the delay between reminders. This can be disruptive if you've left your phone on the office desk while you're stiring your freshly brewed
I've tried a few more reminder apps since and gone back to "Best Reminder" - not perfect I know.
http://best-reminder.en.softonic.com/windowsmobile

Console Apps for Silent, Vibrate & Normal Profiles. Profile Switch utility.

Could not find this kind of simple app on xda so I wrote 3 quick apps. No screens or user interaction just execute them to set sound profile to Silent, Vibrate or Normal. SHould work with WM6.1 and up with or without Touchflo. You do need CF3.5
3/12/2010: Added PFSwitch utitlity which has the follwing switches:
Run with no switch:
Read current phone setting and move to the next profile. This toggles between Normal, Vibrate & Silent.
Run with 1 switch:
onoroff = toggle between on and silent only
onorvibe = toggle between on and vibrate only
normal = go to normal mode
vibe = go to vibrate mode
silent = go to silent mode
Run with 3 switches:
normal x y = go to normal and set system volume to x and ring volume to y (note x & y can be 0,20,40,60,80,100)
Run with 5 switches:
normal x y run runparms = same as 3 switches but when exiting run program 'run' and send params 'runparams'
Some examples:
PFSwitch silent = set phone to silent profile
PFSwitch normal 60 100 = set phone to normal sound with system sound at 60% and ring volume at 100%
PFSwitch normal 100 100 "\windows\iexplore.exe" "www.xda-develpoers.com" = set sound to normal both system and ring at 100% and when done launch internet explorer to go to xda website
PFSwitch silent 0 0 "\Windows\ctlpnl.exe" "cplmain.cpl,11,0" = set phone to silent and when exiting run Control Panel and open to tab 11 ident 0 (Menu Items I think)
Note: to run a program you must have the complete path since win mo does not allow relative paths.
PFSwitch V2.0
Added 9 new switches which are optional.
Switch 6 = ACTimeout
Switch 7 = ACTimeoutUnchecked
Switch 8 = BatteryTimeout
Switch 9 = BatteryTimeoutUnchecked
Switch 10 = Brightness
Switch 11 = ACSuspendTimeout
Switch 12 = BattSuspendTimeout
Switch 13 = ACSuspendTimeoutSave
Switch 14 = BattSuspendTimeoutSave
Example:
PFSwitch "" "" "" "" "" "" "" 30 0 3 "" "" "" "" would set backlight timeout on and at 30 seconds and brightness to 3
thanks
Thanks for this ebernazz2.
Been looking for ages for something just like this.
niccccccceee...
These sort of apps are always usefull. I just wish there was an app like this to toggle between USB and ActiveSync...
You placed 3 copies of the same file in each cab Instead you should have just placed the exe in a folder inside %CE1% ("Program Files" folder according with OS language) and the shortcut in %CE11% ("Start Menu/Programs" files folder according with OS language)
Would you be willing to make a version that toggles normal->vibe->mute each time the app is launched and with command line support (so we can create shortcuts with the command to select which profile to set)?
Sure I will make a single app that goes from normal to vibrate to silent if no command line argument is passed and if an argument is passed then it will go to that one.
Eric
Here you go. I don't have my phone with me to test this so please let me know if it does not work.
PFSwitch will toggle between normal, vibe and silent if run without any command line input. If you prefer to have a command line input to get to a specific profile then simply run it with one of the following switches:
normal
vibe
silent
Eric
Thank you! Already tested in my device and both toggle and command functions are working
I don;t understand what you mean by an app from USB to activesync. I don;t ever connect my phone to my PC so is tat what you are asking for?
Eric
Recent phones (like the Samsung Omina) have the ability to either connect to a PC by means of ActiveSync (RNDIS) or real USB connection (Mass Storage mode for memory cards or internal storage).
The advantage of the Mass Storage mode is that it's much faster and can be used in a Win PC without ActiveSync or other OSes.
I currently have a link in my today screen to a dirty MortScript I wrote (but most likely it's written in a device specific way and only works in the Omnia):
Code:
usb = RegRead ( "HKLM", "Drivers\USB\FunctionDrivers", "DefaultClientDriver" )
If ( usb eq "RNDIS" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Down" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK
ElseIf ( usb eq "Mass_Storage_Class" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Up" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK
EndIf
See my PM ans see if that helps. If not let me know.
Eric
I get you now. Let me see if it is just a registry update or do I have to call a function in core.dll.
Eric
I think that just changing the registry won't work (or at least I wasn't able to do a MortScript to do so... though I'm really not a coder).
frmariam said:
I think that just changing the registry won't work (or at least I wasn't able to do a MortScript to do so... though I'm really not a coder).
Click to expand...
Click to collapse
You are correct. The problem comes from the necessary events that winmo needs. In essence the app you used is loading the appropriate drivers that are specific to the hardware manufacturer. That needs to happen through ActivateDeviceEX function which is why simple setting of the registry won't help (it actually will assign the a new number in the registry HKLM\Drivers\active). I see no easy way around that coupled with the problem that the driver is manufacturer dependent.
Eric
Sounds like a big hassle for such an apparently small function...
I really hate how so much stuff in WinMo is device specific though it just seems like a side effect to the fact that Microsoft leaves all these things up to the device manufacturers... Maybe this will change in WinMo7 (not that it'll be available for my device anyway...). I really wish that the mobile OSes were in many aspects more like the PC OSes (like the fact you can install the OS if your device has the specs to run it rather than your manufacturer choosing if you are "allowed" to update it).
ebernazz2 said:
Could not find this kind of simple app on xda so I wrote 3 quick apps. No screens or user interaction just execute them to set sound profile to Silent, Vibrate or Normal. SHould work with WM6.1 and up with or without Touchflo. You do need CF3.5
Click to expand...
Click to collapse
Hi, I am using action screen to build a phone profile switcher: night, gps, car, outdoor, home, internet, mute...The code controls succesfully the system volume but I do not seem to update with success the ringer volume. Would it be possible to add a functionality to your app to define mode (mute, silent, normal) and at the sametime setup the volume for both ringer and system? Or could you help me understand if it is something that can be controlled writing to the registry? it is device specific? the scripts I found so far do not work in my polaris
Not sure what you mean.... I have an app that rotates from silent to vibrate to ring or you can set a switch to go directly to a profile. If you want to control sound or profile I can give you code but it would be Visual Studio code. What is Action Screen? IF you are asking if the system and ringer volume require 2 methods to set the answer is yes. You have to set both if you want both to change. Do you want to see the difference between setting the system sound vs ringer sound?
Eric
OK, actionscreen is an old htc program used to launch new sms, new mms and so on. It is just a popup menu (fullscreen) that gets away if not used after a couple of seconds. It is simply an app that has shortcuts written to the registry and launches them.
In my case I have not been able to start using visual studio, so I usually work with mortscript to launch scripts. In combination with any popupmenu like actionscreen I launch mosrtscript files that change the profile: eg my car profile will set bt discoverable, wifi off, full brightness, etc. my night profile with mute the system sound but keep the ringer volume in case someone calls for something important. My internet profile will open wifi, disable bt, etc. Using mortscipt I am able to change the icon so when I choose a profile the wifi icon gets red if activated and the profile icon gets the image of the active profile.
So basically I want an exe or mortscript file that can do two things at the same time: switch or set the mode (mute, silent, vibrate) and define the volume for the ringer and for the system. I do not know if it is more clear what I am looking for ?¿!!'¡'¿?!
thanks
I get you now.
I could write a .net app that takes 3 parameters. Lets say I call it SetSound2.
You would then use SetSound2 x y z where x would be mute, vibe or normal - and y would be the system volume level (20,40,60,80,100 percent) - and z would be the ringer volume (same numbers as y).
Would that help you?
Eric
ebernazz2 said:
I get you now.
I could write a .net app that takes 3 parameters. Lets say I call it SetSound2.
You would then use SetSound2 x y z where x would be mute, vibe or normal - and y would be the system volume level (20,40,60,80,100 percent) - and z would be the ringer volume (same numbers as y).
Would that help you?
Eric
Click to expand...
Click to collapse
That's just how I imagined it !!! Would you do that ??
Thanks Eric
Sure. I will write that tonight after work and post it for you as long as you test it out and let me know if is doing what you desire.
Eric

[X-FORCE] [TUT] Enable Notification Light

Great news for everyone with an X-Force, and everyone with a DT2 once it gets root.
Unlike previous Moto phones, we are able to get the notification "charging" led to fire for a notification of our choosing. Unfortunately, it appears to work a bit sporadically, I'd say only about 80% of the time.
Steps:
1. Download Light Flow from the Play Store
2. Enable Accessibility options when prompted
3. Open the Menu > Device Settings and Root
4. Enable Root Mode, Run Every Command as Root (I didnt alter anything else, but feel free to experiment)
5. Go to the LED Control menu
6. Enable charging control under the "Additional LEDs" section
Notification Configuration:
1. Go to Notification Settings
2. Select an appropriate notification & swype over to the "Light" section
3. At the bottom change "charging LED" to solid and "charging brightness" to 255
You are done
I have only been able to get green working, let me know if anyone gets things working a bit more consistent or with other colors and I will update the OP
You may contact dev of Light Flow to improve compatibility with Force/T2.
Hi , great job
How do I get the green?

Charging LED

Acted on a hunch, and yessir, our Z Play has the famed hidden LED in the speaker.
Install and use the MOTO X LED app to activate, must be rooted to gain this glory.
Dont think i installed the same app but at least its working
I can't say just where I downloaded the app from, but I've used it on my x style and my Nexus 6. So I've had it for a while now.
any other way to activate it without root?
siralsmooth said:
I can't say just where I downloaded the app from, but I've used it on my x style and my Nexus 6. So I've had it for a while now.
Click to expand...
Click to collapse
Can we use it for notifications...i mean mail , text message or WhatsApp
In another thread they mentioned lightflow will allow for that, but that's a paid play store app
On the pixel this feature is hidden in settings notifications settings-gear pulse notification light. Maybe it's there for you
Definitely don't have that option
OK I see. I just picked up a z play for the wife. Free at vzw. The screens are different to the pixel. At least it has the ambient display. Always liked moto quality.
Well looks like I gotta root this phone. No breathing notifications and no LED, not a great system. I'll wait till nougat update then root it.
scottdanpor said:
Well looks like I gotta root this phone. No breathing notifications and no LED, not a great system. I'll wait till nougat update then root it.
Click to expand...
Click to collapse
The file in question that controls the charging LED is /sys/class/leds/charging/brightness and unfortunately its permissions are 0664 with write permissions given to system:system, so unless there is an interface from some system daemon you need root access to control the LED.
That file accepts 5 different numeric values in the range from 0 to 4, with 0 (LED is off), 1-3 (blinking modes from the fastest to the slowest), and 4 (LED is on). I am currently searching for the possible interface inside the stock firmware.
Hello, any progress?
gm.outside said:
The file in question that controls the charging LED is /sys/class/leds/charging/brightness and unfortunately its permissions are 0664 with write permissions given to system:system, so unless there is an interface from some system daemon you need root access to control the LED.
That file accepts 5 different numeric values in the range from 0 to 4, with 0 (LED is off), 1-3 (blinking modes from the fastest to the slowest), and 4 (LED is on). I am currently searching for the possible interface inside the stock firmware.
Click to expand...
Click to collapse
I tried it
By default it's set to "0"
If I change the value from 1 to 4 ...It's starts blinking even if charging or not charging ....
If I connect charger it keeps blinking
If you restart the device ....Value changes to default "0"
These settings with light flow legacy worked for me http://forum.xda-developers.com/moto-z-play/how-to/moto-z-led-t3514729/post71587497

Enable "blue filter" mode from command line

Hello, I'm searching how to enable ASUS splendid blue light filter from command line using intents or anything else for automation and educational purposes.
So far I found from splendid's manifest that it may react to "asus.splendid.quicksetting.intent.action.READER_MODE" and that it has a receiver "com.asus.splendid.AsusSplendidReceiver" but didn't find how to exploit it yet.
When enabling a color mode, splendid remove and re create these settings, but doing it manually yield no results
asus_splendid_reading_mode_main_switch
asus_splendid_screen_mode_option
asus_splendid_screen_mode_current_res_id
First two are set to 0 when disabled and 1 when blue light filter is enabled, last one use an absurd high number that is different for each modes, including disabled.
Best regards

Categories

Resources