[Fix]Screen doesn't wake on incoming call - G2 General

*WARNING: Do not manually set your screen off frequency lower than 1Ghz. This will cause screen wake on call issues*
I get near instant screen wake on call with this and anyone is welcome to test it out.
Added the xml as an attachment that you can just extract and import directly into tasker!
Requirements are:
-Must be rooted
-Tasker app
I actually have a bit of a better more optimized profile now. Attachment XML incoming. What this actually does is allows you to set as low as you want screen off cpu frequency in the first part, and then when the phone rings it will boost the cpu to max set frequency, or anything you want to set it to manually above 1GHz will work.
First things first, download the attachment, then first import the 3 files ending in tsk.xml into tasker, they should show up in your tasks section, then import the one ending in prf.xml
Then you can set whatever frequencies you want for your screen off max freq in "display off cpu" task in tasker, this can be basically anything. Then you can open the "Wake_On_Ring" task and set that max freq to anything ABOVE 1000mhz. I have it default set at 1.9GHz and it works almost instantly for me on call. But it's up to you. After that, everything is good to go.
Here's what it looks like:
Profile: Display Off Wake On Ring (27)
State: Display State [ Is off ]
Enter: Display Off Ring Manager (52)
A1: Perform Task [ Name display Off Cpu Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop off ] If [ %PHONEWASRINGING eq OFF ]
A2: Perform Task [ Name:Wake On Ring Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop off ] If [ %PHONEWASRINGING eq ON ]

I've done something similar to this in the past, but curious.. Why did you decide you needed to turn auto brightness off, full, then auto back on? And did you test this in your pocket, so to speak, to make sure you weren't going to pocket-answer?

khaytsus said:
I've done something similar to this in the past, but curious.. Why did you decide you needed to turn auto brightness off, full, then auto back on? And did you test this in your pocket, so to speak, to make sure you weren't going to pocket-answer?
Click to expand...
Click to collapse
Just in testing, trying to basically brute force everything that can wake the device.
Still testing and tweaking as we type. I have a few more things to try to see if I can get a better result.

Ok I've updated and fixed the profile, now it's super simple and has no extra crazy options.
This should wake your screen no problems, every time.

Task is now completely reworked and updated.

demoncamber said:
Task is now completely reworked and updated.
Click to expand...
Click to collapse
I can´t import the profile. i can find it after clicking on import, but when i choose it, it says import failed. Any tipp?

Error: bad packed data format
/welp \°/

just reporting that D801 with latest KK doesn't have this issue.

Related

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

[Q] widget/button to prevent display from turning off?

While driving in the car, I'd like the display to always stay on without the need to push any buttons.
Is there some toggle button app that can be used to lock display on?
It does not look like driving mode prevents display from turning off and the biggest screen timeout that one can configure is 10 minutes.
igory_1999 said:
While driving in the car, I'd like the display to always stay on without the need to push any buttons.
Is there some toggle button app that can be used to lock display on?
It does not look like driving mode prevents display from turning off and the biggest screen timeout that one can configure is 10 minutes.
Click to expand...
Click to collapse
You could do this with an app like Llama, just create two actions - one sets screen timeout to max (I think it's like 4,000 something minutes on my phone), the other sets timeout to your normal setting (I use 30 seconds). You could then create Llama shortcuts on your home screen to access those two commands, or launch them from the program directly if home screen space is at a premium.
I do something similar but configure the two settings to automatically apply when I plug (max timeout) or unplug (normal timeout) my phone. If I put my phone in the mount in my car, I end up plugging it in so it does the trick for me automatically.
Let me know if you need more help and I can write up the actual events and settings I use in Llama if you need.
grussinko said:
You could do this with an app like Llama, just create two actions - one sets screen timeout to max (I think it's like 4,000 something minutes on my phone), the other sets timeout to your normal setting (I use 30 seconds). You could then create Llama shortcuts on your home screen to access those two commands, or launch them from the program directly if home screen space is at a premium.
I do something similar but configure the two settings to automatically apply when I plug (max timeout) or unplug (normal timeout) my phone. If I put my phone in the mount in my car, I end up plugging it in so it does the trick for me automatically.
Let me know if you need more help and I can write up the actual events and settings I use in Llama if you need.
Click to expand...
Click to collapse
Cool! I did not know that Llama can do so much. At first glance, I thought that it can only control sound.
On Llama website I do not see any description how to write your own Llama scripts. I guess, people learn by exporting/importing profiles generated using GUI?
igory_1999 said:
Cool! I did not know that Llama can do so much. At first glance, I thought that it can only control sound.
On Llama website I do not see any description how to write your own Llama scripts. I guess, people learn by exporting/importing profiles generated using GUI?
Click to expand...
Click to collapse
Any settings I use I've created through the GUI. I only use a portion of what it's capable of, but a few of the events I have set up:
Turn on wifi when it detects I'm at home, work, parents' house, sister's house, etc. Turn off wifi when I leave any of those areas.
The screen timeout settings I noted previously. Also have it turn up brightness when plugged in. I have additional conditions set so that it doesn't max the brightness automatically during certain times, basically so that if I plug it in after dark in the car or in bed it won't blind me.
Automatically set a quiet profile at night and a vibrate profile when I'm at work.
Have it turn on Wifi hotspot when I'm at a particular hotel I travel to for work where there's no free wifi.
To create the automatic brighness event, create a new event where the condition "charging or unplugged" is set to one of the "charging" options and the action "screen timeout" is set to "never", then create a second event where the condition is "on battery" and the action is "set timeout to xx seconds". You can add additional conditions on time, location, etc., the best thing to do is just sift through the various conditions. Most are self-explanatory but they have a little help icon next to each that gives more info as well.
grussinko said:
Any settings I use I've created through the GUI. I only use a portion of what it's capable of, but a few of the events I have set up:
Turn on wifi when it detects I'm at home, work, parents' house, sister's house, etc. Turn off wifi when I leave any of those areas.
The screen timeout settings I noted previously. Also have it turn up brightness when plugged in. I have additional conditions set so that it doesn't max the brightness automatically during certain times, basically so that if I plug it in after dark in the car or in bed it won't blind me.
Automatically set a quiet profile at night and a vibrate profile when I'm at work.
Have it turn on Wifi hotspot when I'm at a particular hotel I travel to for work where there's no free wifi.
To create the automatic brighness event, create a new event where the condition "charging or unplugged" is set to one of the "charging" options and the action "screen timeout" is set to "never", then create a second event where the condition is "on battery" and the action is "set timeout to xx seconds". You can add additional conditions on time, location, etc., the best thing to do is just sift through the various conditions. Most are self-explanatory but they have a little help icon next to each that gives more info as well.
Click to expand...
Click to collapse
Seems to be working. I guess, this is a good way to deal with my second problem as well: kill annoying poweramp when bluetooth connects to my car. I tried first to do it without delay but it did not work. Perhaps, introducing 10-15 second delay might help.

How to set the screen brightness lower on Alcatel One Touch Evolve

The backlight of the Alcatel One Touch Evolve won’t get any dimmer if you set the brightness below 40 or so (out of 255). I tried RootDim, and it didn’t work any better. Neither did
Code:
echo 10 > /sys/class/leds/lcd-backlight/brightness
Any values before 40 look as bright as 40 does. But this works, if you are rooted:
Code:
echo 20 > /sys/class/leds/lcd-backlight/brightness
echo 3 > /sys/class/leds/lcd-backlight/duty
"duty" apparently designates the pulse width modulation duty cycle. Setting the duty cycle to anything between 3 and 20 will make the screen dimmer than the minimum setting you can get with the normal brightness controls. Setting to 2 turns the screen entirely black, on my phone. The maximum value is 63.
Another way to set this is in the engineer mode that you can access by dialing *#*#3646633#*#*. Swipe to “Hardware Testing” and select “Display.” You can set a PWM duty cycle on that screen. I don’t know whether your phone needs to be rooted for this method to work.
No matter how you set it, it is a temporary change and will be reset next time the screen brightness changes, or if you turn your phone screen off and back on.
Does anyone know of an app that does this? There are plenty of auto brightness apps, and some brightness apps that require root, but I don’t know of any that set both the brightness and the duty cycle. I have some shell commands set up in Tasker, but it’s not very convenient. I could try creating a widget using Tasker, but I may just try writing my own app.
The roms are under a different model name search google for roms in the alcatel one touch pop line and many will work

[Q] NoLED instead of screen off

Hi, as title says, i would like to replace screen off mode on my N9005 with app NoLED. App has option to always show clock when screen is off and its jumping on the screen, so (i guess) it won't burn my pixels. Turned off LockScreen (keygard), so after pressing power it turns off screen and few seconds after that it shows jumping clock (if enyone knows how to remove that few second delay it would be great, tried to launch every single NoLED app activity with Tasker and Secure Settings plugin and no luck). App also shows app icons when there is notifications. Long tap on icons opens their app, also, triple-tapping screen "unlocks device" (closes app). App can be also closed with single physical button click, so i plan to change that with Xposed Additions to double or triple tap (for security reasons).
Battery saving part:
Using FauxClock app set performance profile for NoLED with:
-min and max cpu freq: 300MHz
-cpu governor: powersave
-gpu max freq: 200MHz
-gpu governor: msm-adreno-tz (haven't changed, don't know which is the best, other options are: performace, simple_ondemand)
-Eco mod enabled
Is there more things to tweak for battery save?
I keep wifi and gps always on, and turn on bluetooth, data and nfc just when i need them. Plan to change wifi scan interval with tasker, also, use Intelli3G to turn 3G on just when data is enabled. Used System Monitor and noticed that, when NoLED screen is active, processor, most of the time, runs on 1 core (300MHz as set) and on 60% and up, is that ok?. Note 3 has AMOLED screen, so, i hope it won't drain my battery. Screen Brightness is set in app on 20%.
Most important question is: will these settings damage my phone in any way if i use them for a longer time?
Also would like to hear your suggestion for battery saving.
Thanks in advance.

Press bixby for MAX BRIGHTNESS/OUTDOOR MODE

If you haven't realised, the S10's amazing screen quickly dims a lot when the device heats up, even by performing simple tasks so i came up with a simple fix to keep it locked to MAX unless changed using brightness slider or Adaptive (Auto) Brightness
Searching the /sys/ partition i found the brightness setting.
So, the idea is to press Bixby to activate MAX brightness/Outdoor Mode
Download and install your rightfully owned "Button Remapper" from flar2 in the playstore. # YOU NEED TO BE ROOTED TO USE THIS #
Go ahead and setup, and then click on bixby single press, and click advanced; then root command. And enter the following:
Code:
echo '48599' > /sys/class/backlight/panel/brightness
Wallah!
Your brightness will max out when you press bixby. Just make sure you turn off adaptive brightness beforehand as it will override what you did! And you can use the brightness slider to change the brightness easily again.
(Do bear in mind, your phone will heat up more than usual but thats it, just be slighly cautious and if your phone ever happened to heat up excesively, id suggest the battery not going over 50 degrees celcius as it can damage the lifespan) Me personally, had no issues. Just fantastic to squeeze out a bit of extra brightness when you need it.
Hope this helps !!
Worked like a charm XD
David8960 said:
If you haven't realised, the S10's amazing screen quickly dims a lot when the device heats up, even by performing simple tasks so i came up with a simple fix to keep it locked to MAX unless changed using brightness slider or Adaptive (Auto) Brightness
Searching the /sys/ partition i found the brightness setting.
So, the idea is to press Bixby to activate MAX brightness/Outdoor Mode
Download and install your rightfully owned "Button Remapper" from flar2 in the playstore. # YOU NEED TO BE ROOTED TO USE THIS #
Go ahead and setup, and then click on bixby single press, and click advanced; then root command. And enter the following:
Code:
echo '48599' > /sys/class/backlight/panel/brightness
Wallah!
Your brightness will max out when you press bixby. Just make sure you turn off adaptive brightness beforehand as it will override what you did! And you can use the brightness slider to change the brightness easily again.
(Do bear in mind, your phone will heat up more than usual but thats it, just be slighly cautious and if your phone ever happened to heat up excesively, id suggest the battery not going over 50 degrees celcius as it can damage the lifespan) Me personally, had no issues. Just fantastic to squeeze out a bit of extra brightness when you need it.
Hope this helps !!
Click to expand...
Click to collapse
hey, i know this is a quite old, but s10+ manual max brightness is 300, when it enters high brightness mode it goes up to 700. My question is with root and some commands can i make 700 available through the brightness slider? So i can use 400,500,600 too instead of jumping from 300 to 700?

Categories

Resources