[Q] How to control screen on/off with Tasker? - Android Q&A, Help & Troubleshooting

I want to control screen on/off with Tasker, but http://tasker.dinglisch.net/faq-how.html#e say that it's inaccessible with Android 2.3+.
The thread: http://forum.xda-developers.com/showthread.php?t=1185127, shows that we can turn on the LED with Execute plug-in by execute:
Code:
@! echo X > sys/devices/platform/leds-pm8058/leds/green/brightness
0 = OFF
1 = ON
and I success on my Defy.
Is there similarly way to turn screen on?

Related

SMS vibration notification

When you receive an SMS message it seems to vibrate a long time when the phone is in "Normal" mode. Just wondering, is there any way to setup the vibration pattern like the one in "Vibrate" mode (it vibrates 3 short times)?
Is there another registry setting that will allow me to modify the duration of the vibration for an SMS notification?
Thanks in advance!
Vibro
.
Get an app called Vibro. It let you change the vibration pattern for incoming calls, SMS and EMail. Vibro is available in Omarket.
p107r0 said:
Vibro
.
Click to expand...
Click to collapse
justinmcnairy said:
Get an app called Vibro. It let you change the vibration pattern for incoming calls, SMS and EMail. Vibro is available in Omarket.
Click to expand...
Click to collapse
Thanx guys!
But is there no other way, a registry setting or something like that. I've had installed the Vibro app a few months ago, but it messed up my profiles, so I deleted it.
Well, you then will need to search for the proper SMS vibration registry, and edit it with respect to the below scripts.
Looping Ringtones Delay
Ring tone has a standard 3 seconds delay before repeating. You can set the delay from 0 second to how many second that you want.
Code:
HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0
Change 'Script' from 'av0pw3r' to 'av0pr' and you'll get 0 sec delay.
OR change it to
av0pw1r = wait for 1 sec
av0pw2r = wait for 2 sec
and so on...
Plus..heres the code
a - stands for display
r - repeat/replay the script again
c - sets the volume C50, c150, c100
f - means flash .. f1 flash for 1 second and f0 stands for flash continuously
p -means play ringtone
v- vibrate then incorporate with number to state how many seconds it will vibrate example. v3 vibrate for 3seconds or v - for continous
w - stands for wait or pause then specify how many seconds like w3(wait for 3 seconds)
heres the example
Flash - af1w60f0
Ring - apw3r
Ring Once - ap
Increasing Ring - c50apw3c150r
Vibrate Then Ring - v3w3apw3r
Vibrate - av3w3r
Short Vibrate - av1w3r
Vibrate Long Then Ring - v3w3v3w3apw3r
Vibrate And Ring - av0pw3r
Increasing Ring And Vibrate - c50apv3w3c150r
Fast Vibrate And Flash - af1v1w1f0r
Vibrate and Ring Continously without pausing - av0pr
Click to expand...
Click to collapse
Fishawy said:
Well, you then will need to search for the proper SMS vibration registry, and edit it with respect to the below scripts.
Click to expand...
Click to collapse
Thanks Fishawy for replay.
But isn't this registry entry only for the calling ringtone, not the sms notification, or am I wrong?
dragmark said:
Thanks Fishawy for replay.
But isn't this registry entry only for the calling ringtone, not the sms notification, or am I wrong?
Click to expand...
Click to collapse
Yes, that's only an example to let you know how does the script look like. As I said, you need to find the required SMS registry (Dunno it, sorry).
i dont think the scripting option will be available for the notifications, , they are handled differently to 'sounds', with different reg key entries.
compare the contents of
HKEY_CURRENT_USER\ControlPanel\Sounds
(where the ringtone keys are, and all the sounds have a script key)
and
HKEY_CURRENT_USER\ControlPanel\Notifications
where the sms tones (and other notification soudns) are defined, , , no script key.
Default is the name as it appears in the dropdown in sound & notification list
Duration key is disabled (its the 'flash light for x minutes' key
Wave is the sound
Options, , here is where you can set the sound on off, vibrate on off, and show on screen on off.
no sound no screen no vibrate = 0
just sound = 1
just vib = 2
sound and vib = 3
just flash light = 4
sound and flash = 5
flash and vib = 6
sound flash and vib = 7
just on screen = 8
sound and screen = 9
screen and vib = 10
sound screen and vib = 11
Tried that with the scripting for notifications (found something on other thread BUT no work)
Ok, I'm not an expert, that's for sure but i see it like this:
- When the device is in vibrate mode the sms notification vibrates 3 (short) times
- When the device is in normal mode the SMS notification vibrates 1 long time and and sonuds the dflt ringtone "Alert-FaderHigh"
So I think there must be a reg setting where the device changes these two vibrate options...

[Q] Prevent screen from turning on when unplugging power cable

The thing I find most irritating about my phone is that the screen turns on every time I unplug it from a power source. Instead of being able to unplug it and slip it in my pocket I have to unplug it, wait a second for the screen to turn on, then press the power button to turn it back off before I can slip it in my pocket. It's a small thing, but it drives me nuts.
I found this thread from about a year ago on this exact topic. It seems like the file frameworks/base/core/res/res/values/config.xml needs to be modified to set the config_unplugTurnsOnScreen value to false:
Code:
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">false</bool>
Since this is compiled into resource.asrc it can't simply be edited. Is there any way I can get this fix on my phone? Is it baked into any of the ROMs that are currently available?
EDIT: This is an option in settings as of CyanogenMod 10.2. It's found in Settings > Display & lights > Wake on plug.

[Q] sound help

hey hi developers,
can anyone tell me the stock values for all levels for sound in engineering mode. not the edited values like below
DEVELOPERS OPTIONS WORKAROUND
How To Increase Loud Speaker Volume-
- Go to Settings > Device > Engineer Mode > Hardware Testing > Audio > LoudSpeaker Mode > Type = Ring/Media
- level 0 set Value to 135 tap Set, Max Vol. = 160 tap Set
- level 1 set Value to 155 tap Set, Max Vol. = 160 tap Set
- level 2 set Value to 175 tap Set, Max Vol. = 160 tap Set
- level 3 set Value to 195 tap Set, Max Vol. = 160 tap Set
- level 4 set Value to 215 tap Set, Max Vol. = 160 tap Set
- level 5 set Value to 235 tap Set, Max Vol. = 160 tap Set
- level 6 set Value to 255 tap Set, Max Vol. = 160 tap Set.
i need stock values.
thanks
112,136,160,184,208,232,255 in the same order from level 0 to level 6.. Oh and max vol. Is set at 152.. Hit thanks if i helped..

Ringer Volume Lock

Has anyone seen an LG3 ROM with ringer volume lock similar to CarbonROM? Hard buttons for ring volume is irritating once you used to locked/media only. Tried all apps for Volume Lock and all so far only reset after period of time etc. Could this be as simple as config not sysapp change?
Nice! Found in Liquid Smooth 4.4.4. Not sure if in LS LP but fingers crossed. Goto settings > sound > liquidsmooth sound > media control = enabled.

"settings put system volume_music_speaker (X_value)" only applies after reboot

"settings put system volume_music_speaker (X_value)" only applies after reboot
If I run for example "settings put system volume_music_speaker 5" thought adb with SU and the current speaker volume is 0 this value wont update. Only after I do a reboot of the device this value changes to 5. Why is this command not updating the different volume levels (speaker and headset for example) in real time? Is there any way I can change this? Or is there perhaps a different command that I could use instead.
Suggestions are welcome.
"Why would you want to know this?" I want to make it so that if I leave from home that the speaker volume goes to 0 and the volume of my earphones goes to a level for music listing regardless of something is plugged in via the headphone jack. This would naturally be done with Tasker.
Specs:
- Andriod 7.1.2, LOS based ROM

Categories

Resources