Led Control - HTC Startrek

When i recive an sms (or a call) i want to my green led flash every second (when i'm in bad for example) what can i do this?
Modify the registry:
HKCU\ControlPanel\Sounds\SMS\Script apf1w5000f0
if the voice isn't here, add the string Script
then set the value :
apf1w5000f0;
where f1 indicates the led flash every scond. w5000 (5000=seconds)wait time to return a standard 4 second flash..
For the ringotne use the same way, in RingTone0 section... HKCU\ControlPanel\Sounds\RingTone0 \Script

Consider to use some application for it. It cannot be simply done via registry etc.
You may look here.

Related

[FIXED] VAlert 1.21 - Customize vibration pattern

VAlert
Customize vibration on phone ring
This small program allows customizing vibration incoming call alerts.
Windows based phones vibrate either before the ring or constantly during the ring.
Having a short ringtone can possibly solve this problem, but with long mp3 ringtone the phone will constantly vibrate during the ring.
This program will enable Windows Mobile phones to produce short vibrations when the phone rings.
Vibration patterns can be easily changed by the user.
Possibly to match vibration patterns to the ringtone, so the phone will vibrate in a rhythm.
Very low (~4K) memory usage
This software is a freeware.
How to use
1. Install the CAB
2. Enjoy the program with default settings
3. The program is hidden by default. To display program window (if needed), run the program again
7. In Phone->Options make sure ring type is Vibrate and Ring
4. Edit script.txt to change vibration pattern. Every line in the file is a pair of vibration length and note pause
5. From the program window run Menu->Test to test the created pattern
6. Perform Menu->Hide to hide program window
What's new:
- More devices support, including non-HTC
- The installer executes the program upon installation (no soft reset required)
- No vibration on waiting call
- Support for incoming call ring mute (stop vibration)
- Silent start
- Even lower memory footprint - ~4K on standby (was 11K before)
sounds cool
gunna try now
you should make it so you tap the screen to show when u want it to vibrate instead of editing the .txt file
Edit: Great app but confusing to change the pattern
Edit2: lol doesnt seem to work on my vogue when i go to phone->options and press play its just a long vibrate
Ohh man i was about to post a thread on something like this. Thank you so much for making this!
Sounds nice. Will try it out. Thanks for sharing.
bedaweed said:
Edit2: lol doesnt seem to work on my vogue when i go to phone->options and press play its just a long vibrate
Click to expand...
Click to collapse
Play from phone options is not implemented. Open the program and click Menu->Test or just try an incoming call.
oh okay im gunna try now
hmm.it may be useful.thx.
bedaweed said:
you should make it so you tap the screen to show when u want it to vibrate instead of editing the .txt file
Edit: Great app but confusing to change the pattern
Click to expand...
Click to collapse
+ 100 i would guess
Downloading now,.
Thanks for sharing sir!
to save people the bother of working it out themselves, and to get everyone started...
here's my version of the Nokia classic message vibration
i can't hum it, so you'll need to try it, i guess!
Edit : Oh, by the way... is it possible to do something like this for recieving SMS / MMS / Email, or is that a different process altogether?
Dr J said:
Edit : Oh, by the way... is it possible to do something like this for recieving SMS / MMS / Email, or is that a different process altogether?
Click to expand...
Click to collapse
Yeah, that's what I wanted to ask too! Would be awesome, would be a very useful app, thanks. And yup, maybe an easier way to edit vibrates would be nice. However, it's cool now, for a version 1.
Future versions
Post your suggestions. I am making a list of changes for the next version.
Suggestions :
- a settings UI on the device (instead of having to pull the txt file off to PC and edit and then put back in on device)
- ability to change between multiple vibrate scripts (via drop-down menu or list?)
- if possible (?) ability to use vibrate scripts for SMS / MMS / Email / Other alerts
- vibe scripts that match pattern with the actual ring / message tone would be VERY cool
excellent little program, thanks a lot for the effort
if the other message alerts can be changed from within this (or even just another separate small app) it's just what i'm looking for!
and please can other people post their script efforts, it'd be good to have several pre-sets to start out with.
there might be a slight bug in this
a few calls have come through recently, the vibrate kicks in itself and the ringtone does not play for about 10 seconds or so.
also the programmed pattern seems distorted.
it might just be my device, as i'm noticing that S2U2's full screen call ID has been struggling to kick in when a call comes in these days since i started using Manilla2D as well.
it might be that the device is struggling to find the ID picture and the ringtone and the vibrate pattern at the same time, all the while trying to run M2D.
i'd check if it works correctly without all these extras running, but M2D and S2U2 are pretty much essentials for me these days.
anyone else care to help?
Dr J said:
there might be a slight bug in this
a few calls have come through recently, the vibrate kicks in itself and the ringtone does not play for about 10 seconds or so.
also the programmed pattern seems distorted.
it might just be my device, as i'm noticing that S2U2's full screen call ID has been struggling to kick in when a call comes in these days since i started using Manilla2D as well.
it might be that the device is struggling to find the ID picture and the ringtone and the vibrate pattern at the same time, all the while trying to run M2D.
i'd check if it works correctly without all these extras running, but M2D and S2U2 are pretty much essentials for me these days.
anyone else care to help?
Click to expand...
Click to collapse
Do you have this problem with all calls or just some?
What do you mean by distorted pattern?
Does this problem happens when VAlert is disabled?
Thanks works great on my prophet with 6.1
ochakov said:
Do you have this problem with all calls or just some?
What do you mean by distorted pattern?
Does this problem happens when VAlert is disabled?
Click to expand...
Click to collapse
i have that problem with calls but its only like 2 seconds not 10
Sounds nice. Will try it out. Thanks for sharing.
bedaweed said:
i have that problem with calls but its only like 2 seconds not 10
Click to expand...
Click to collapse
That's not a delay. By default (there is a registry setting to change it) the ring is delayed by 2 seconds. VAlert does not have that delay, so it will always start vibrating 2 seconds before the ring.
Nice tool... works goodm i like it!!!

UPDATE01/09/01pM-SmartLock-2.0F-ENU-wm5.0/6.x Shareware

01-09-01 pm NEW release ENU 2.0F RELEASE
Strongly recommended update and read below
All Langugaes could Update(EXCLUDING 0804)
But Only 0409/0404/0419 hidden the windows of incoming call notify.
ChangeLog:
1.Fixed little bug of 2.0e
2.using KBD HOOK instead of enablekeybbd,it disable kbd from low level.
NOTE:YOU CAN'T INSTALL IT WITH APP WHICH USED HOOK.
SUCH AS AE Button Plus.THERE IS ONLY ONE HOOK IN WINCE 5.
I THINK 2.0F EATEN MORE POWER THAN 2.0E
01-03-01 pm NEW release ENU 2.0E RELEASE
ChangeLog:
1.Fixed a dead lock bug with blocklist thread.it will produce strange problems
2.Add a new function. disconnect DATA connection (GPRS/EDGE/3G).
;;Code by UNICODE
;;one exe(process name) one line and at the end of the file make a enter.
;;e.g.
;;
;;
;; ;in front of a line means disable it
;; "/r/n" means a ENTER .Please do not input it
;; # means when all processes marked with # exit,disconnect the DATA connection.(GPRS/EDGE/3G)
;; NOTE:If DATA connection are created by other process (NOT marked by # or even not in the list below),
;; while no process marked with # running when all processes marked with # exit,nothing happen
;;
;; XXX.EXE/r/n Right format Enable it
;; XXX X.EXE/r/n Right format Ignore the spaces in front of a line.
;; XXX.EXE /r/n Wrong format Do not ignore the space int the end of a line
;; XXX.EXE ;YYY.EXE/r/n Wrong format ;Should be in front of a line.
;; ;XXX.EXE/r/n Right format Disable it
;; XXXX.EXE Wrong format There must be a ENTER in the end of last line.
;; #XXX.EXE/r/n Right format Enable it
;; # XXX.EXE/r/n Wrong format Do not ignore the space between # and XXX.EXE
;; #XXX.EXE/r/n Right format Ignore the spaces in front of a line.
;; #XXX.EXE /r/n Wrong format Do not ignore the space int the end of a line
;; ;#XXX.EXE/r/n Right format Disable it
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;NOTE:Case Sensitive
Explorer.exe
#UCWEB.exe
pword.exe
solitare.exe
#KingDom.exe
Click to expand...
Click to collapse
edit it and reboot then setting work.
you can find it in Windows
Please edit it with PC make sure it code by UNICODE
01-01-01am NEW release ENU 2.0D RELEASE
Strongly recommended update and read below
ChangeLog:
Fiexd a serious bug of 2.0C
lock fails
serious bugs
stop 10 hours
Im sorry Please uninstall 2.0C and waiting for new
09-12-31am NEW release ENU
Strongly recommended update and read below
This app depends on OEM driver.Maybe some oem drivers is different .The Microsoft just give a suggest .so if it works abnormally. I m sorry.
2.0C is same as 2.0B just add a reg value named Enable .
So it will not hang on OS without new styple lock, If 2.0B work will you donot need 2.0c
Many device do not implement boot message So abolish lock on boot.
there is no enough information to distinguish 6.1 and 6.5 ,So if your rom is 6.5 ,check new WM 6.5 lock .The default is uncheck it.
09-12-31am NEW release ENU
2.0B
Changelog:
1.Add option disable hardkeyboard when call connected
2.Add option blink LED when CALL connected or GPRS/EDGE/3G connected
3.Fixed some bugs of 2.0A
4.More robust.
5.Do not sign with MS SDK cert.cab
sign version will release tomorrow.it is same as today but sign.
I hope many people test it without sign.And report below.
(JUST FOR TESTING)
how to fixed device donot dim
HKLM\\SYSTEM\\CurrentControlSet\\Control\\Power\\State\\BacklightOff
bkl1:
4 or 2
09-12-28pm NEW release ENU
Strongly recommended update and read below.
All Langugaes could Update(EXCLUDING 0804)
But Only 0409/0404/0419 hidden the windows of incoming call notify.
[/COLOR]
For some bugs of uninstall app ,Please uninstall 1.9X then reboot then install
2.0A
ChangeLog:
1. Optimize some code .
COLOR="Red"]2. Add BlockProcessList.txt . one or more apps run which is in the list .when device dim ,it doesn't lock .edit it and reboot then setting work.
you can find it in Windows
Please edit it with PC make sure it code by UNICODE
[/COLOR]
3. fixed some bugs of 1.9 series.
09-12-24am NEW release ENU
Strongly recommended update and read below
Only 0409 can update other language please do not update.
Other language OS will find notify window in a while.
christmas version
Uninstall old
option:reboot
Install new
Change log:
1. Add lock sound。
How to replace sound yourself.
uncheck Enable sound and OK.
rename sound file to unlock.wav or lock.wav
copy them to window over write old one.check enable sound and ok.
just support wav format. it better no longer than 3 seconds.
2. fixed a faults. check incall lock , when a call coming ,a call coming notify windows will show by OS.It doesn't show again now.it 's related to language of OS .
( language of OS: 0409.0404) has fixed.
For fix a bug when a call incoming ,show a notify window .show .
I need it 's name with different language.
for example
0804
电话 - 拨入
0409
Phone - Incoming
I need :
other languages. and language code: e.g 0804
09-12-20am NEW 1.9A release ENU
Strongly recommended update and read below
Maybe no body online on 12/25 so....release early.
Change:
1.add setup.dll to cab. it works after install without reboot.also uninstall it stop work without reboot.Delete all file and reg very clear.
But if you install any old one you'd better make a hard-rest .
2. separate lock trigger and stand-by. there are no relationship between them.
3.add delay time .it start from screen lock app run. but it work just you check lock and then stand-by
4.add energy optimization. Check it the stand-by means that suspend without call connecting and USER_IDLE with call connecting.
. But every app stop run.So be careful with checking it.e.g:if alarm ring ,it wake up device, but when it suspend ,alarm stop and silence.Uncheck it ,Stand-by means SYS_IDLE without call connecting, USER_IDLE with call connecting.
5.Separate ms sign 。So if it do not works please install cert.cab and reboot..
6. Fix all exist bugy.
09-12-17am NEW 1.8G release WWE
fixed:better exactly 5 seconds than 1.8F
debug: when ac on, screen still turn off one time.
some time screen off but no lock
when call disconnected, it doesnt lock within 5 seconds.
this is last one of 1.8
So you can make rom with it now.
next version . add a new option suspend time so you can set
not just 5 seconds.
09-12-16am NEW 1.8F release WWE
add a new option when on AC it still works.OR uncheck it .when on AC it unlock(in call or call lock still work)
debug: when ON AC,it do not dim if you check dim trigger lock
wake up while it lock,it do not suspend with 5 seconds for some device.
For some device ,,it do not dim if you check dim trigger lock .If you find this bug, please do a hard reset then install new cab.
fixed: when a call come or out a call ,old lock do not lock ,but HW key still lock.
09-12-15PM
If you find the bug below that is to say the device do not send a resume and on notify when device wake up.
that is so sad.
you can try new pm.dll drivers from oem.
or waiting for a new version.
bug:when device wake up with device lock,but the screen donot turn off with 5 seconds.
how into sleep state. just make you device off for a long time and do not run any app which prevent device from sleep.
C++, NATIVE,SMALL SIZE,SMALL MEMORY,INTERRUPT ,NO PROCESS,GOOD ROBUST。。
09-12-12AM NEW 1.8e release WWE
Christmas gifts
CONTINUE DOWNLOAD
Maybe the last one version of 2009
1.The new interface is easy to understand
2.There are no Dim and Light when backlight trigger lock
3.fixed some bugs of 1.8C when press power device into unattended mode but
smartlock will make it to SYS_IDLE MODE. this will not happen again
4.Most of the code rewrite,save more power.No sleep No poll ,All are Notification and wait...fewer and fewer bug
5.Be reg callback is very slow,So when you press power button trigger the lock app,this need a little time,so if you on and off quickly you will see the app locking,don't wary about it.
PS I need Multilingual。 German Spanish Portuguese Japanese French
Is any body help me ?
If you find unlocking WM LOCK APP twice issue .(not 3d part software.)
Export [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State] of register and POST
09-12-10am NEW 1.8D release WWE
Fiexd some bug of 1.8C especially old style lock app issue.
09-12-08pm NEW 1.8C release WWE
fixed some bugs of 1.8b
if new lock is unchecked .Device doesn't lock with old lock app when out call or income call .
new:
1.when you receive a call while lock screen running.
Device will into USER_IDLE MODE NOT SYS_IDLE MODE within 5 seconds when call is connected
2 when you send a call while lock screen running.
Device will into into USER_IDLE_MODE NOT SYS_IDLE MODE even if call is not connected.
3.All the hardware key are locked . when coming a call or out a call. You can't receive or reject a call via any hardware key.If screen is off automatically within 5 seconds. (USER_IDLE) You can press any hardware key to turn screen on(INCLUDE reject or receive button.Do not warry about rejecting a call or receiving a call).You can't press power button.Because device is ON just into USER_IDLE MODE.
PSOWER MODE
ON :EVERY THING RUN WELL.
SUSPEND:EVERY THING STOP RUN BUT GSM/CDMA MODE.
USER_IDLE:SCREEN OFF AND YOU CAN TURN SCREEN ON VIA PRESS BUTTON BUT POWER BUTTON.
SYS_IDLE/SCREEN OFF MODE:SCREEN OFF AND YOU CAN ONLY TURN SCREEN ON VIA POWER BUTTON
If check out call connected lock ,when send a call beforce it connected , lock screen run be other reason when call connected.
Device still into USER_IDLE .key still lock
09-12-07pm NEW 1.8B release WWE
fix a bug of 1.8
suspend lock is same like suspend after lock.
when locking with 5 seconds .device ide.
09-12-07 NEW 1.8 release WWE
better save power and power button.
new change.
the suspend after lock if you check it.
if you start lock screen the device will into ide mode after 5 senconds(led light off,and you can't tape screen but press power button.but the program will go on.you can listen to music or make a call.If no program prevent it into suspend mode within 30seconds.The device will into suspend mode and just waiting a call,every program stop run)
)even you alway tape screen.
But if you unlock screen within 5 senconds , the device donot into ide mode.
any body understand me?
09-12-05 Next year(2010.01.01) it will be a new version.
Some new function.
The suspend time and suspend status.some program can set or reset .such as music player. video player. msn .
but the smart lock doesn't know which program set or reset .So new version have a program list.
you can chose it work or not work when some program run.
The new version can
I m sorry for stopping development and for my pool english
It will be continue.....
Hey here's a good summary, pictures, and features list for little program.
Thank ace10134 for providing.
http://thewingster.com/autolockscreen.aspx
PS: This app depends on OEM driver.Maybe some oem drivers is different .The Microsoft just give a suggest .so if it Doenst work I m sorry.
YOU CAN FIND LINKS IN MENU-SYSTEM
CHS-SMARLOCK
email to me.
thinks for donate:
sleuth255
support my work
This works excellent! I'll have to use this in conjunction with CSDEVCTRL to get in call locking though.
Edit: The in-call locking feature has been added! Thanks!
I'm gonna give it a shot. I really needed this.
Thanks.
upupup~downdowndown
could be great ! but even better in english, cause now, I've only squares ^^
can you describes the 3 lines, and the 2 soft buttons ?
Thanks
lpaso said:
could be great ! but even better in english, cause now, I've only squares ^^
can you describes the 3 lines, and the 2 soft buttons ?
Thanks
Click to expand...
Click to collapse
english.is any body give me a discription.? so I could complie a english version
3 when back light off .it locks
left buttons :yes
right :help->about
OK :yes
biosxjj said:
english.is any body give me a discription.? so I could complie a english version
3 when back light off .it locks
left buttons :yes
right :help->about
OK :yes
Click to expand...
Click to collapse
I have :
First line (checkbox) : WM6.5 ... ?
Second line (checkbox) : ?
Third line (checkbox) : ?
Can you tell us what is written on these 3 lines ?
Thank you
1 WM 6.5 use new lockscreen . gray when in wm6.1 or older
2 lockscreen when startup
3 lockscreen when suspend or back light off
Great !
Works really fine. Great soft
Change it to WWE
Hopefully the TS wont be mad at me
I have change it to display in English
Menu are as mentioned in the thread
cheers
Not working on Touch HD. It locks the screen using the old screen lock
gbjack said:
Not working on Touch HD. It locks the screen using the old screen lock
Click to expand...
Click to collapse
which version of your windows mobile .
you must check the first checkbox . if you want to use new screen lock with wm 6.5
upupup..
Hey, I might be a dummy but ... how do I access options?
HKLM Software\\Microsoft\\Shell\\LockScreen.
key dword value suspend =1 .lock when suspend
AutoRun =1 lock when startup
if you don't setup frequently you can
convert cab to oem
copy dll to windows
import the reg and reboot ..
it will work also.
Would be great if U could add into Your software ... to turn off screen after 5 sec when locked because now screen is on for too long. And battery is drain in this moment until it goes off. ... F.ex. to see the "time" for a sec and than screen goes off Then it would be the best apllication i`ve ever seen ! Simply and usefull !
The time you can set in setup- system-back light or setup-system-power
but there is no time to set up WHEN LOCKED ... I dont want to turn off screen after 10 sec (because it is minimal in there) because f,ex. when i`m using Opera and read any thread i don`t want to turn off screen in so short time. I just want to off it WHEN LOCKED
you means lock device but screen is on?
I mean ... step by step: Turn off device by POWER button. And when i want to check the TIME i turn device on and device goes lock (and that is great) but screen is ON for a long time ... i don`t want to use POWER button to turn it off again. I want to go back to off automaticyally in 5 sec WHEN LOCKED. We are talking all the time in situation WHEN LOCKED

Tasker profiles

I know this thread is repeated everywhere, but I thought I'd start it up for our GNote forums
What are your Tasker profiles? I just found out how to use Tasker yesterday and I find myself loving it.
Mine are as follows:
1) Incoming Calls - Decrease volume to second lowest setting (I have loud friends)
2) Turn wifi on at home automatically
3) Open PowerAmp when headphones are plugged in
4) Send a "Happy Birthday!" text to various people on their birthdays.
5) Alert me when battery is full to 100%. Really useful if you don't want to overcharge your battery.
What about you guys?
Mute at work locations
Pandora + Bluetooth in car
Wifi at home
100% Battery alert
Auto-off unpaired Bluetooth
Regulated auto-sync based on battery
Long-press search changed to notification drawer open
Screen timeout change for various apps
Data off and screen timeout change for ad-supported games
I posted a couple just recently in this thread...
http://forum.xda-developers.com/showpost.php?p=23151996&postcount=25
Here's a C&P for the lazy....
______________________________________________
Car Profile
Enter Task
1) Disable PIN Security so I don't need to unlock my phone while in the car (one less distraction)
2) Set Media Volume to 15
3) Turn Wifi off
4) Change Display timeout to 30 minutes (nice for google maps and viewing the album art of the streaming music)
5) Turn on GPS IF power is connected to phone
6) Start recording video with DailyRoads Voyager ( A car DVR program in case of an accident so you then have Objective evidence)
7) Play the THX sound after a couple seconds to make sure the Bluetooth audio streaming is working right
Car EXIT task
1) Stop Recording Video for DailyRoads Voyager (DRV)
2) Wait 5 seconds
3) Kill App - DRV
4) Perform Task - PIN ON
5) Secure Settings - Disable GPS
6) Display Timeout - 2 min
7) WiFi - Turn ON
8) Bluetooth - Off
9) Display Brightness - Set to 150 out of 255
Other fun stuff
Home VAR %STATUS_HOME
Set VAR for when I am near my home micro-cell as the signal radius is small and specific to my house. I use this since the phone part is always on and I don't need to use GPS to determine location which uses more juice. That VAR is then used to turn on wifi when I arrive at home, disable PIN again, Flash "Welcome home", set WiFi sleep to Never. The Exit task for when I leave home turns PIN ON and sets the WiFi sleep policy to Never While Plugged"
Power VAR %STATUS_POWER
I have 2 seperate profiles for when I am connected to AC or USB power. The AC one sets the power VAR to 2 while the USB one sets it to 1. Both are used for other tasks and profiles, like the car one above requires AC connection so my GPS doesn't drain my battery even while connected. I have it flash "AC connected" or "USB connected" to let me know if the phone is receiving the correct amount of juice. When both of them exit they set the Power VAR to 0 and flash "Power Disconnected"
Sleepy Time
Profile conditions
1) Time - From 00:01 to 06:30
2) State - Home VAR = 1 (so this doesn't happen when I am out and about somewhere at night)
Enter Task - In case I'm tinkering with the phone in bed and don't want to keep the wifey up with a blazing screen and vibrations when clicking buttons. Also prevents annoying sounds at night by disabling data sync and muting all but the Alarm audio.
1) AutoSync -OFF
2) Flash "Good night"
3) Display brightness at 0
4) Screen Filter set to 25%
5) Perform Task - Alarm Audio only
Alarm Audio only task above
1) Alarm Volume - 4
2) Flash "Alarm Audio Only"
3) Haptic Feedback - Off
4) Notification Volume - 0
5) Ringer volume - 0
6) System volume - 0
7) Media volume - 0
Exit Task
1) AutoSync - On
2) Display Brightness - 255
3) Screen Filter - 100%
Quick Stats - This has two parts. One is the Notification that tells me a bunch of info I like to know like Battery level, Screen timeout, screen brightness and CPU govenor. The second part is launching a menu whe nI click on the the notification that has the commonly used Screen brightness & timeouts I use. I need to add some audio options in there too. I re-discovered that menu was there the entire time and didn't see the + button add more items to the menu. Iwas over complicating it by trying to use Scenes as a pop-up menu. Still need to learn more about Scenes.
Part 1 - Quick Stats Notification
State - Orientation Face Up (I use this state so if I want to refresh the stats all I do put the phone face up. There is automatically a time stamp so I can know when the stats were last updated)
Task - Notify Quick Stats
1) Notify - with Battery level, Screen timeout, screen brightness and CPU govenor variables as the text.
Part 2 - Notification Bar Tool
Event - Notification Click
Task - Quick Stats Menu
1) Menu with options for display brightness at 0, 100 or 255. Display timeout options for 30 secs, 2 min, 10 min and 30 min
Remote PIN Disable - This is for in case I forget my pin this will disable the PIN likew used in the Car and Home profiles. It is triggered by receiving a text from certain people with a specific phrase.
Event - Text with specific phrase under Content
Task - PIN OFF
Where Are You - Here's a 3 part setup. If I can't find my phone I again send a text with a specific phrase that then cranks up all volume settings to MAX and repeat "The Most Annoying Sound in the world" by Jim Carrey from Dumb & Dumber. The text sets a VAR called %SHUTUP to 1. When %SHUTUP = 1 it triggers Part 2. Once I find the phone to set the VAR back to 0 I shake the phone.
Part 1 - Where Are You Status
Event - Received Text with specific phrase
Task - Variable Set - %SHUTUP = 1
Part 2 - Where Are You Status
State - Variable Value = 1
Task - Where Are You Audio
1) Perform Task - Crank It Up (sets all volumes to MAX)
2) Flash - "I'm over here!"
3) Music Play - Annoy.wav
4) Wait - 15 sec
5) Goto - Top of Loop IF %SHUTUP = 1
Part 3 -Shutup Shake
Event - Shake
Task
1) Variable Set - %SHUTUP = 0
2) Flash "SHUT UP!!!"
A couple more but they are straight from the Tasker Wiki
I'm definitely going to have to do those. Right now, all I understand is the basics of Tasker (no where near Variables) but I'll follow your instructions.
Thanks especially for "Where are you"
A few I use....
1). Pocket Lock - Detects when phone is upside down in my pocket and activates WidgetLocker.
2). Read Caller Aloud - Incoming caller name said aloud so I can decide whether I want to answer without looking at my phone.
3). Night Mode - From 00:00 to 06:00 Puts phone into silent mode, plus checks whether Wifi, Data, GPS, or Blutooth are on, and turns them off if they are.
4). Battery Low - When battery gets to 15%, and it's not connected to a charger, Says "Battery low, connect charger" and turns off Wifi, BT, Data, GPS.
5). Music Player - When headset is plugged in, loads music app.
6). Home - Gets general location from cell tower, activates Wifi, disables Data & GPS. Exit Task disables Wifi, and enables Data.
7). Work - Gets general location from cell tower, disables Wifi, Data, GPS, BT, and Auto Replies to sms that im working and will reply when i can.
I'm pretty new to tasker, but have been pretty bored lately and have been working on an addition to my Work profile.
This profile will, use variables to save up to 5 peoples numbers and how many times each has txted me, and txt each of them back, using their names from my contact list in the body of each txt.
So lets say BOB txts me once, his number will be added as a variable, and it will begin counting the txts from him. On the first txt he is send a txt saying, something like. "Sorry BOB, im at work, will reply when i can".
Then DAVE txts, he will be assigned to Sender2, and have a txt sent to him like above, with the second Counter and Number (%CNTR2 and %SNDR2).
BOB, realizing it's an auto-reply, decides to be funny and spam txt me, thinking he will get a reply every time. However, tasker counts his incoming txts, (%CNTR1) and when it reaches a value of 10, send just one more txt saying something like (Thats 10 txts you've sent, seems Im still unavailable).
Profile: Auto Reply
Variables:
%SNDR1 <---- BOBs cell number
%SNDR2 <---- DAVEs cell number
%SNDR3
%SNDR4
%SNDR5
%CNTR1 <---- BOBs txt counter
%CNTR2
%CNTR3
%CNTR4
%CNTR5
%TXTVAR <---- Counter determining whether a txt received is from someone new or a number already saved.
Enter Task:
Code:
1). GoTo label Sender1 if %SMSRF ~ %SNDR1
2). GoTo label Sender2 if %SMSRF ~ %SNDR2
3). " " etc.
4).......
5).....
6). If (%SNDR1 ~ 0) then SetVariable %SNDR1 to %SMSRF
7). If (%SNDR2 ~ 0) and (%TXTVAR = 1) then SetVariable %SNDR2 to %SMSRF
8). If (%SNDR3 ~ 0) and (%TXTVAR = 2) then SetVariable %SNDR3 to %SMSRF
9)........etc.
10).
11). If (%SMSRF ~ %SNDR1) <-------- Label Sender1
Variable Add (%CNTR1 + 1)
If (%CNTR1 = 1)
Send SMS (Tells this person eg. BOB I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR1 = 10)
Send SMS to %SNDR1 (Thats 10 txts you've sent me)
Endif x2
12). If (%SMSRF ~ %SNDR2) <-------- Label Sender2
Variable Add (%CNTR2 + 1)
If (%CNTR2 = 1)
Send SMS (Tells this person eg. DAVE I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR2 = 10)
Send SMS to %SNDR2 (Thats 10 txts you've sent me)
Endif x2
13). If (%SMSRF ~ %SNDR3) <-------- Label Sender3
Variable Add (%CNTR3 + 1)
If (%CNTR3 = 1)
Send SMS (Tells this person eg. EMILY I'm at work)
Variable Add (%TXTVAR + 1)
Else If (%CNTR3 = 10)
Send SMS to %SNDR3 (Thats 10 txts you've sent me)
Endif x2
14). ......Etc.
15). ......
I'm still working on it, deciding whether to have the variables reset as they are all filled, 1 at a time, or to make them reset every hour or so. Also whether to make another profile purely for resetting those variables, or add them to this task. Bearing in mind that on my phone it gets rather annoying to manage/edit the task since its currently at 78 lines long.
As I said I was bored.
If anyone is interested in this I can post a backup xml of this somewhere.
TriggerSpasm said:
BOB, realizing it's an auto-reply, decides to be funny and spam txt me, thinking he will get a reply every time. However, tasker counts his incoming txts, (%CNTR1) and when it reaches a value of 10, send just one more txt saying something like (Thats 10 txts you've sent, seems Im still unavailable).
[...]
As I said I was bored.
Click to expand...
Click to collapse
Bored indeed. Anywho, look into arrays in Tasker, that'll make this tracking stuff much easier. Track all of that stuff in one array vs a bunch of different ones. Might clean up the code a little, make it easier to erm.. relieve more boredom?
khaytsus said:
Bored indeed. Anywho, look into arrays in Tasker, that'll make this tracking stuff much easier. Track all of that stuff in one array vs a bunch of different ones. Might clean up the code a little, make it easier to erm.. relieve more boredom?
Click to expand...
Click to collapse
Thanks, I certainly will.
Using Tasker http://www.pocketables.com/forum//showthread.php?t=9680
Scripted Backups using Tasker and TWRP http://www.pocketables.com/forum//showthread.php?t=11435
Beginner’s guide to Tasker http://www.pocketables.com/tag/beginners-guide-to-tasker
Tasks to:
(1) Take photos and email them when a specific text message is received
(2) Lock and password protect the phone when a specific text message is received
(2) Use different keyboards depending on the open app or screen orientation

some problems on cm9 i9100g

i got some problems with cm9.1 stable on i9100g and i hope you can help me...
#1 after turning touchkey backlights off in advanced settings(process called com.cyanogemod.settings), it stays off but after rebooting its on again. i searched but never found a solution. does anyone know how to permanently turn them off or how i should write in an init.t script to turn them off automatically on boot?
the .disable_touchkey in /data does nothing. if i create it manually or edit it with 0/1 nothing changes after saving.
#2 i got horsepower kernel for unvervolting and the app romtoolbox pro and when i set the voltage for 150mhz down to 750 i sense no difference(i think it should lag more..?) and after reboot it shows the old voltage table again...
#3 in contacts id like to have NO contact pictures as i'll never use them nor small nor big. same goes for phone.apk and in/out going calls. i want NO dummy picture. i just want it to be pure black in the background with the calling number and/or name without using apps.
#4 i changed some settings in system folders(which im aware of what they do) and changed permissions. after reboot.. guess? the permissions are set to the old settings...
#5 how can i turn off the proximity sensor(turning screen black when something comes 8cm or less to the phone while calling)??? i found one tip in the internet. someone wrote if i changed the letters randomly of every "proximity" which is written in a sensors file in the root, it turns off. i did that and it was off!!!! but so was the camera function... so after replacing it with the original file it worked again...
sometimes i miss things from gb... the liteweight contacts and phone apk where i could hide my girls numbers in groups.. the sliding function for calling or text sending... the always working blacklist...
cm9/ics is better but some funstions are worse than gb
puuuush

-

---
parrotgeek1 said:
don't have this device, but could someone try decompilng framework-res.apk and go to res/values/config.xml and add these
Code:
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>
<!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">false</bool>
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>
Of course you can change config_defaultNotificationColor to any html color in lowercase, but start with white for testing.
Then download lights.shamu.so from aosp (one that supports notifications afaict)
https://android.googlesource.com/device/moto/shamu/+archive/master/liblight.tar.gz extract the tgz
and put the .so in /system/lib/hw (replace the old one)
then recompile framework-res DON'T SIGN IT! or use a kitchen and reflash
reboot go into notification settings and turn the lights on
it COULD also enable the green battery charging led natively, idk
Click to expand...
Click to collapse
Didn't work... I see the option for "Pulse Notification Light" and it's enabled but it doesn't light up when I try to text myself and receive the message with the screen off.
1. There is no config.xml.
2. I modified the bools in bools.xml and the color in colors.xml (no modification needed for colors).
parrotgeek1 said:
don't have this device, but could someone try decompilng framework-res.apk and go to res/values/config.xml and add these
Code:
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>
<!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">false</bool>
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>
Of course you can change config_defaultNotificationColor to any html color in lowercase, but start with white for testing.
Then download lights.shamu.so from aosp (one that supports notifications afaict)
https://android.googlesource.com/device/moto/shamu/+archive/master/liblight.tar.gz extract the tgz
and put the .so in /system/lib/hw (replace the old one)
then recompile framework-res DON'T SIGN IT! or use a kitchen and reflash
reboot go into notification settings and turn the lights on
it COULD also enable the green battery charging led natively, idk
Click to expand...
Click to collapse
Hey so I tried by baking it into my AOSP build. ( config_multiColorBatteryLed is not in the XSD so i did not include that) Nothing so far. Good thought! Im going to keep looking, at least I was able to add allow All Rotation to my build .
There is no ledtrig heartbeat trigger included and stock kernel does not support loading modules
.
parrotgeek1 said:
Please elaborate.... what's a heartbeat trigger
Click to expand...
Click to collapse
Well to put simply, it's the method that causes the LED's to flash like a heartbeat. (From what I can remember).
ie. OFF - - - ON OFF ON OFF - - - ON OFF ON OFF (so on and so forth).
The way Linux led works in nutshell as i understand it from my quick research is either setting brightness level manually (slow and unreoiable, better to be done at low level) or setting max brightness and setting appropriate trigger kernel module, e.g. set trigger to none to disable or mmc0 to blink to indicate card write activity and so on, ledtrig_heartbeat used to pulse the led and it is not an option in our triggers in nexus 6 (not in kernel) and without modules support we can not load it.
So just enabling led string would not be enough to get pulse notifications. Waiting for custom kernels.
Take a look http://fabiobaltieri.com/2011/09/21/linux-led-subsystem/
So, its working for me. What I did was just used light flow. I enabled root mode, then I enabled run every command as root, then I enabled direct mode. Then I had to choose the correct led for it to use in the other menu and when I ran the test it came on.
Xileforce said:
So, its working for me. What I did was just used light flow. I enabled root mode, then I enabled run every command as root, then I enabled direct mode. Then I had to choose the correct led for it to use in the other menu and when I ran the test it came on.
Click to expand...
Click to collapse
I believe the goal here is to have led notifications natively, without an app running in the background constantly.
Roger that, sorry wasn't sure, figured I would share just to be safe
The source is available, why not just compile a kernel with module support?
Random mutterings...
Note: I don't have a personal build environment set up at the moment, so it's really difficult for me to check these things properly.
# should already be set
CONFIG_LEDS_QPNP=y
CONFIG_LEDS_TRIGGERS=y
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
Using these, it's already possible to, for example, activate a charging LED. (echo battery-charging-or-full > /sys/class/leds/charging/trigger) Where is the kernel support for those charging related triggers? Not finding it in drivers/leds/trigger, but it might be specific to a charging chip? No build environment means no grepping code for the strings...
# not set, but why not? does QPNP not support it?
#CONFIG_LEDS_TRIGGER_TIMER is not set
A "timer" trigger is one of the methods to create a blinking LED. (not heartbeat) the ONESHOT might also be useful. FYI, the heartbeat trigger is documented in the kernel as:
This allows LEDs to be controlled by a CPU load average. The flash frequency is a hyperbolic function of the 1-minute load average.
Click to expand...
Click to collapse
How are the triggers configured for hammerhead or perhaps for a motoX device, and how is that different from shamu? As well as kernel support, there needs to be liblights.so support for the kernel parameters, JNI support, and JAVA support. Some or all of these might already exist. Not sure yet.
The "three" LED's (red/green/blue) in shamu are configured as GPIO devices (see apq8084-shamu.dtsi.) In leds-qpnp.c, blink_store(), an ID of 8 (GPIO) will result in an error. Does that matter? If they are GPIO devices, why not configure them with leds-gpio instead of leds-qpnp?
In contrast, the "charging" LED in shamu (defined in apq8084-moto-common.dtsi, I think) appears to set up differently (MPP?) and should support blink types (that does work, actually.)
...
Why is the "charging" LED handled so differently from the 3 color LED? If I'm going to mess with the LED's, I'm going to get them blinking the way they should, dammit.
What is the disconnect between the kernel (which, at the very least, supports a charging LED properly) and the rest of android? It's been several years (i9300 -- galaxy S3?) since I've messed with the LED code in android...
Odd: there's no source for liblights.so in the shamu code device tree (just a compiled lib), but there IS source for liblights for other platforms (if there's any lib at all.) Not sure I've ever seen the LED stuff being considered a proprietary blob (especially when it's kernel driven and the kernel source is all intact.)
You know your losing your mind when you start excessively replying to yourself in forum threads. It's worse when you have to re-learn something you were very familiar with just a few years ago.
android notification system uses LightsService for various LED related stuff. (This includes the screen lighting.) LightsService relies on some jni code (com_android_server_lights_LightsService.cpp) to interface to the liblights library. The JNI module is tiny, and really doesn't need to be mucked with. However, it's a really nice place to put logging code. The JNI only has three methods: init_native(), finalize_native(), and setLight_native().
The init is called for each type of LED "device". they are backlight, keyboard, buttons, battery, notifications, attention, bluetooth and wifi. Add logging code here to see which ones are returning a valid pointer, and which ones aren't. (I'm guessing that only backlight is being returned. I hope I'm wrong, but if I'm not, then lights.shamu.so will have to be re-written from scratch to support the other device types.)
The only other interesting place will be in setLightnative(). This takes a crapload of parameters, which are all packed down to a light device pointer and a "state" structure. These are passed to the native (lights.shamu.so) code for processing. Adding logging here might be useful. It also might not be (depending on if the damn light initializes or not.)
Why does this all seem so damn familiar to me? (because I've done it before and managed to forget most of it.) (hopefully, by typing all this, I'll be able to find it again in the future via google searches.)
I was getting bored, so figured I'd reply to myself. Again.
It appears that lights.shamu.so is the base of the problem. (There might be other issues, of course, but one of the ways to dig these things out is to start at the lowest level and work your way up...)
Kernel: has support
sysfs supports (if somewhat limited)
The next layer is liblights.so (or, in this case, lights.shamu.so.) The ONLY "light" that this lib seems to support is "backlight." The following all give errors: "keyboard", "buttons", "battery", "notifications", "attention", "bluetooth" and "wifi"
I am curious what the "battery" light type is. Is that designed to be the charging LED, or have some other purpose within android? Will need to check that out...
Anyway, I'll whip up a "lights.shamu.so" replacement and see what happens with that..
hrmm.. I've never seen this before:
Code:
E/HAL ( 957): load: module=/system/lib/hw/lights.shamu.so
E/HAL ( 957): dlopen failed: empty/missing DT_HASH in "lights.shamu.so" (built with --hash-style=gnu?)
Of course, the obvious thing would be to edit device/moto/shamu/liblight/Android.mk and add "LOCAL_LDFLAGS := --hash-style=both", but that's giving me a compiler error:
Code:
arm-linux-androideabi-g++: error: unrecognized command line option '--hash-style=both'
Now, why is an LD flag being passed to the c++ compiler and not to the linker? For that matter, why is it using g++ instead of gcc? hmm... This should be easier than this.
I figured I should thank you for doing all these
garyd9 said:
hrmm.. I've never seen this before:
Code:
E/HAL ( 957): load: module=/system/lib/hw/lights.shamu.so
E/HAL ( 957): dlopen failed: empty/missing DT_HASH in "lights.shamu.so" (built with --hash-style=gnu?)
Of course, the obvious thing would be to edit device/moto/shamu/liblight/Android.mk and add "LOCAL_LDFLAGS := --hash-style=both", but that's giving me a compiler error:
Code:
arm-linux-androideabi-g++: error: unrecognized command line option '--hash-style=both'
Now, why is an LD flag being passed to the c++ compiler and not to the linker? For that matter, why is it using g++ instead of gcc? hmm... This should be easier than this.
Click to expand...
Click to collapse
I believe in you Gary! Seriously though thanks for taking the time to work on this.
I appreciate the support, but I hope everyone remembers that I have a full time job that takes priority. That generally means that most of my android "fun" work gets deferred during the working week.
The task will get done, but please be patient...
Take care
Gary
We definitely appreciate everything you and the other devs do! I'm very much enjoying the AOSP Email! I did not want to use Gmail for my work email. I know it might have some benefits but I just needed the basic email app so that was very much appreciated!

Categories

Resources