[SCRIPT] Howto automate toggle '2g only' - Nexus 7 (2013) LTE Android Development

I really like having LTE on my nexus 7. It eats power though - over 2% per hour. It does this even when connected to wifi with mobile data off. It seems that disabling mobile data does not turn off the cell radio...
When in 2G only mode only about 0.5% per hour is consumed. You can switch this manually via settings but eventually you will forget and pay the price. With a bit of hacking you can make things better.
Here is a script manager script that can be called with llama or tasker to toggle the 2G only state.
#!/system/bin/sh
/system/bin/am start -W -a android.intent.action.MAIN -n com.android.phone/.MobileNetworkSettings
/system/bin/input tap 990 1070
/system/bin/input keyevent 4
/system/bin/sleep 2
exit 0
This is built to be run by script manager. To use it effectively you also need root (supersu) and the 'pro' version of script manager. You also need to install SMWidgets which lets llama/tasker easily start scripts. To use this on other devices you will have to figure out the coordinates for input as they will be different.
First add the script to script manager and set the 'su' flag.
Then in llama add events that do the following:
event
Toggle 2G
delay for 30 seconds and if still true
condition
screen rotated 0
screen off
llama variable 4g has a value of 1
connects to any WiFi network
actions
disable rotation
disable screen lock immediately
turn on screen at low brightness
run app shortcut called 'toggle 2g'
. select SMShortcuts, select 'add one script shortcut' and set the background flag when prompted
toggle llama variable 4g betwen 0 and 1
queue an event named '2g'
. wait 5 seconds
. condition
. llama variable 4g has a value of 0
. action
. enable screen lock (force)
. enable rotation
event
Toggle 4G
delay for 30 seconds and if still true
condition
screen rotated 0
screen off
llama variable 4g has a value of 0
dissconnects from any WiFi network
actions
disable rotation
disable screen lock immediately
turn on screen at low brightness
run app shortcut called 'toggle 2g'
. select SMShortcuts, select 'add one script shortcut' and set the background flag when prompted
toggle llama variable 4g betwen 0 and 1
queue an event named '2g'
. wait 5 seconds
. condition
. llama variable 4g has a value of 1
. action
. enable screen lock (force)
. enable rotation
make a test event to set the llama variable '4g' to 1
What the events do the following: verify that your screen is not in landscape mode, disable rotation, turn off lock screen, turn on the screen, run the script, (re)enable the lock screen & lock, (re)enable rotation.
And when wifi disconnects 4g quickly gets enabled, when you reconnect '2g only' is selected.
Have fun.

switching to Airplane mode then activating wifi will switch off NEXUS 's 7 LTE mobile data completely

xslavic said:
switching to Airplane mode then activating wifi will switch off NEXUS 's 7 LTE mobile data completely
Click to expand...
Click to collapse
Yes I realize that. I've had problems with wifi after using airplane mode.
Try this: switch to airplane mode, turn on wifi (it works), turn off airplane mode. Does your wifi work?
Some combo of turning on airplane mode, switching wifi on and off, and ending airplane mode with wifi off usually restores wifi.

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

Increase battery life and add new features with Tasker

Hi! My name is Gianluca and I'm from Italy. I didn't see any Tasker thread in droid razr section so I tought it would be a cool idea to start one.
I want to share with you my tasker configuration. My main focus is on battery life and gps tracking. I want to be always updated about my latest email, google reader feed and I also have backitude (cool app dude!) running every quarter of hour.
I will also add some extra "task" that I think are worth of seeing.
First I will describe my "tasks" and then I will write about how I use them in the "profiles".
This configuration is know tested and working on my european razr with stock ICS 4.0.4
APPS I HAVE
Tasker
Secure Settings
Synker
TASK
Sync
Airplane mode OFF(useful because during night, you will understand later)
WiFi ON
Wait 15 second (give some times to connect to a wifi network, if any)
Mobile Data Enabled (I use Secure Settings for this, I think is more reliable)
Synker Force Sync (the main action of this task, you can also choose what kind of data sync. I sync my emails, contacts, reader feeds)
Wait 3 minutes (wait some this to sync all the stuff. you can change this value depening on how much data you have to sync)
Mobile Data Disabled (It's better to disable mobile data before wifi data to save more battery if you're on wifi)
WiFi OFF
Night Sync
Perform Task Silent (I will talk about this later)
Perform Task Low light
Perform Task Sync
Airplane Mode ON
Silent
Alarm Volume 8 (set to whatever you like, this is useful because you may want your alarm working after night)
Haptic Feedback OFF (I hate it. It's also too loud during night)
Media Volume 0 (Very important for me, It avoids noise when opening some kind of apps or games)
Notification Pulse ON (It's cool, It alerts you without any kind of sounds)
Ringer Volume 0
Sound Effects OFF (I don't know what this is but I don't want it)
Vibrate on Ringer OFF
In-call Volume 3 (Change if it's too low for you)
Notification Volume 0
Vibrate on Notify OFF
Vibration Mode
Alarm Voume 8
Media Volume 0
Notification Pulse ON
Ringer Volume 0
Sound Effects OFF
System Volume 0
Vibrate On Ringer ON
Notification Volume 0
Vibrate On Notify ON
In-call Volume 3
High Volume
Alarm Volume 12
Media Volume 7
Ringer Volume 15
Vibrate on Ringer ON
Sound Effects ON
System Volume 11
In-Call Volume 7
Notification Volume 15
Vibrate on Notify ON
Low light
Auto Brightness OFF
Display Rotation OFF
Display Brightness 30
Display Timeout 15 seconds
Notification Pulse ON
Very Bright 30 sec
Auto Brightness OFF
Display Brightness 255
Wait 30 Seconds
Autobrightness ON
Very Bright Longer Time
Auto Brightness OFF
Display Brightness 255
Display Roation ON
Display TimeOut 5 Minutes
Quick Photo
Keyguard Disabled (again, using secure settings)
Take photo, rear, chronologial
Keyguard Enabled
Popup title "photo" text "ok"
Wrong lockscreen password
Take photo, front camera, chronological, discreet
Navigation
Perform Task Very Bright Longer Time
Perform Task High Volume
Mobile Data Enabled
Reset settings (it sets your preferred settings for almost everything, change to suit your needs/preferences)
Airplane Mode OFF
Bluetooth OFF
Mobile Data Disabled (Secure Settings)
WiFi OFF
AutoBrightness ON
Display Rotation OFF
USB Debug Disabled (Secure Settings)
GPS Enabled (Secure Settings)
Display TimeOut 30 secs
Notification Pulse ON
Haptic Feedback OFF
Perform Task "Silent/Vibration Mode/High Volume" (choose the one you use most)
Autosync OFF
KeyGuard Enabled
PROFILES
Turned On
Device Boot --> Reset Settings
Morning Sync
From 06.00 every 30m Till 00.00 --> Sync
Display State OFF
Battery Level between 30 and 100
Night Sync
From 00.00 every 1h Till 06.00 --> Night Sync
Display State OFF
Battery Level between 30 and 100
Bright Call (useful outdoor under direct sun light
Phone Ringing --> Very Bright 30 sec
Endomondo
When Endomondo is open --> Navigation
Exit Task Wrong lockscreen password
Failed Login Attemps - max : 3
Low Battery
Battery Level --> Reset Settings
between 0 and 30
Every 1h
SHORTCUTS AND WIDGETS
Nokia-like Audio Profile Widgets
Make on your Homescreen 3 widgets for Silent/Vibration Mode/High Volume
Fast Camera from Lockscreen (in gingerbread you could access camera when keyguard was on. recreate this feature in ICS)
Make a Shortcut with Widget locker for Quick Photo
USEFUL LINKS
Video from wicked4u2c The best video for beginners
Tasker Wiki A lot of Ideas
Serie of guides here on XDA
Very Long XDA Thread it's outdated but it's full of good stuff
MORE COMING ...
I hope you like my post. Please report me any errors (Please notify for language errors, grammatical errors etc. via pm). You can also share yours ideas.
Just in case...
For Very Bright 30 Seconds your first entry for Auto Brightness should have a value of OFF I believe.
Nice! I will try.
Sent from my XT910 using xda app-developers app
And how long your battery lasts?
Almost 2 day! Screen on time is 2 hours and some minutes. Backitude is setted to turn on gps every 15 minutes for 1 minutes during the whole day. I will add some screenshots later next week when all my tests are complete.

[Q] how to keep the wireless on while the screen is off

hi!
I have a sony xperia tablet s and yesterday i got the upgrade to JB
I would like to keep the wireless connection on while my screen tablet is off. I tried the wireless option and i checked "keep the wireless on always" but it doesn't work.
Is there a way to do that?
thanks
Try some of these apps https://play.google.com/store/search?q=wifi+lock&c=apps
Haven't tried them though
Advanced Wifi Lock is the best one out there. Has different settings aswell.
Ubichinon said:
Advanced Wifi Lock is the best one out there. Has different settings aswell.
Click to expand...
Click to collapse
yes! it works even the free version.
Like this i can download file all night long!
advanced wifi lock disables sleep.
sleep policy is disable wifi when sleep is triggered.
sleep is triggered when hitting power button regardless if synching or uploading is going on ignoring sleep prevention mechanic thats build in many apps.
most android devices are build to only put screen off when hit power button leaving sleep on untill not used anymore.
advanced wifi lock is btw huge batery drain you won't notice extended batery life improvements from 4.1.1 if you gonna use advanced wifi lock.
Zer0K3wL said:
advanced wifi lock disables sleep.
sleep policy is disable wifi when sleep is triggered.
sleep is triggered when hitting power button regardless if synching or uploading is going on ignoring sleep prevention mechanic thats build in many apps.
most android devices are build to only put screen off when hit power button leaving sleep on untill not used anymore.
advanced wifi lock is btw huge batery drain you won't notice extended batery life improvements from 4.1.1 if you gonna use advanced wifi lock.
Click to expand...
Click to collapse
Not true. If you enable the option "disable wifi after period of time" (it isnt named exactly like that), wifi is automatically switched off after 20 mins of afk and the tablet goes in to sleep mode.
Ubichinon said:
Not true. If you enable the option "disable wifi after period of time" (it isnt named exactly like that), wifi is automatically switched off after 20 mins of afk and the tablet goes in to sleep mode.
Click to expand...
Click to collapse
wifi won't turn back on then not sync for hours unless turn tablet on and turn on wifi.
and will interfear more with syncing stuff that way then not having advanced wifi lock installed.
no idea whats causing it but i don't have advanced wifi lock turning of screen does't put tablet in sleep anymore.
have no apps running and custom homescreen apex launcher.
wifi has been on for 2 hours non stop
MAC Address Interface Uptime TX Rate RX Rate Signal Noise SNR Signal Quality
xx:xx:xx:xx:xx:xx ath1 2:03:43 150M 6M -46 -95 49 59%
If sleep is being prevented should wake lock detector not show this ?
apearntly google+ was uploading file in background which has ability to prevent sleep, and if sleep is not triggered wifi stay's on.
so guess wifi working fine now as long apps that upload files or sync have ability to prevent sleep.

[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

Categories

Resources