Related
change N1 behavior/settings & automate tasks based upon connected bluetooth device?
I've had my ATT N1 for the past 1.5 wks and have been loving it. I know with the desktop dock for the N1 that bluetooth can be automatically enabled when docked (at least it does for me). i hope to see this go one step further perhaps. i've tried searching on the market and here on xda, but I haven't found anything that does what i'm thinking of...
I'd like the phone to change various behaviors (eg. sound alerts, screen unlocking, application launching, etc) depending upon the bluetooth device that it is paired with. Essentially, creating setting profiles dependent upon the connected bluetooth device and reverting settings when disconnecting from said devices.
I envision:
-connecting w/ car bluetooth:
disable screen unlocking (having to unlock via pattern while driving is not only annoying but possibly dangerous)
jump to a particular home screen, automatic launching of application such as car home, google maps/nav, music, etc
enable maximum screen brightness (if plugged in and charging could be another modifier. the N1 AMOLED really is pretty bad in direct sunlight and is even worse when trying to view while wearing sunglasses)
set max volume
upon disconnecting, revert to original settings, disable bluetooth
-connecting w/ desktop dock [bluetooth] (bluetooth isn't an absolute requirement here since it can recognize the dock due to the electrical contacts)
disable screen unlocking
silencing most alarms/alerts (so that i can sleep in peace w/o being woken up to by random spam/marketing emails overnight)
upon disconnecting/undocking, revert to original settings
are there any combination of apps/settings that can make this possible? at this point, i'm not too interested in rooting my phone...
thanks
BlueDock (market) plus Tasker (in beta, not yet in the market - http://tasker.dinglisch.net/).
In a future version Tasker will hopefully be able to do this on it's own. But currently you have to hack it useing BlueDock to start an application you don't really need, have Tasker detect the start, kill the app, and then change your settings according to your needs. One drawback is that the app started by BlueDock will only start once the phone is out of sleep mode. So you have to press the unlock button once - no need to swipe to unlock, though.
As for disconnecting you have to abuse the change in the power status.
The setup is quite complex. I will post my setup on the tasker wiki as soon as the next version is released (which will, I hope *gg*, provide a bugfix that make this a little smoother) and I have time. ;-)
I have a widget which I use to indicate whether I want to listen to podcasts (using BeyondPod) or to music. Upon switching on any of my bluetooth devices it will start playback and set the loudness according to the device connected - it will have to be louder with the car bluetooth than with the headset. Upon detecting the car bluetooth it will also start Waze.
interesting. i know what i'm asking is a bit complex. but i'll definitely keep an eye on Tasker. as they're mostly background tasks, any idea as to the battery consumption of these applications? (eg. surprisingly the "Shake Them All" live wallpaper i had installed was consuming up to 10% of battery time recently and was ultimately uninstalled even w/ those cute androids)
My usage pattern says:
40% Display
35% Calls
6% Standby
5% Android System
5% Phone inactive
2% EarthRot
2% Mediaserver
2% Android OS
Tasker isn't even listed.
Within Tasker I have more that a dozen profiles and about 30 tasks.
Hi All,
in the company I work for we use a range of XDA's for our drivers, the current and most popular one is the HD2, however i have noticed that drivers are able to put the XDA to standby, normally this is a requirement, however for the system we are using it causes major issues and provides the driver a way to cheat the system.
What im looking for it a way to disable the hardware buttons when the device is switched on, i imagine there may be a registry edit, but im not sure and need help as this is becoming a pressing issue.
Thanks
M
Your request is very peculiar, and I seriously doubt that you can achieve something like that, after all completely disabling the hardware buttons can impair seriously the functionality of the device and I don't think there is a pre-set method to do that.
Anyway, I've seen a thread that talked about reassigning the shortpress on power button to something else (and I'm talking about shortpress, not longpress), yet this didn't work on the HD2 when I tested it this morning.
Anyway, if your system is debunked by putting the device in standby, it will also troubled by simply removing the battery. In other words, you can put a strong password to forbid a user from turnning off a pc from the start menu, but you cannot forbid this user from pulling the plug off the mains
Anyway, a very feeble solution could be making so that whatever is that's thrown off by the standby, keeps working even in standby; there's a tweak for wifi that allows wifi radio to stay on during standby, and probably forcing the wifi always on, and tweaking it from bsb to be on even during standby, it will also force the CPU of the device to be on even if you lock the phone by press endkey
Dont really want to give too much away, but our application uses gprs/3g and gps constantly, and by going into standby it loses connection with our servers and gps, thus allowing users to go standby in one area and then turn back on somewhere else but system thinks they are in area 1 until they move to antoher area again. this causes a major issue and headache for me, so what i really need is for the app to remain live when in standby and to keep the data and gps connection live
hope that makes sense
Hi,
These threads may help:
http://forum.xda-developers.com/showthread.php?p=6417238
http://forum.xda-developers.com/showthread.php?t=661472
had a look at those links and the second won looked like a winner, but when hit the HW power button the device still goes off, however i noticed that it kept its gprs connection, but it still lost gps which is one of the main factors. Just need some way to stop the device from turning off, apart from removing the case and then removing the buttons
railto said:
had a look at those links and the second won looked like a winner, but when hit the HW power button the device still goes off, however i noticed that it kept its gprs connection, but it still lost gps which is one of the main factors. Just need some way to stop the device from turning off, apart from removing the case and then removing the buttons
Click to expand...
Click to collapse
try this:
Change this with your registery
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Resuming]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Unattended]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Suspend]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
Normaly the numbers are on "4" - put this on "1" and gps should stay awake even when you put the phone in standby.
It will stay on until a program stops using the gps.
found it here
http://forum.xda-developers.com/showthread.php?t=676267
railto said:
had a look at those links and the second won looked like a winner
Click to expand...
Click to collapse
It's the first one you should try. Works fine for me.
http://forum.xda-developers.com/showpost.php?p=6416870&postcount=6
But frankly if they do it on purpose they will no doubt find other ways to do it - so you should rather build in some protection in your software to detect it, like if 2 consecutive positions are at the same place but with more than a certain amount of time apart, it's that they turned the thing off / cut connection on purpose/...
EDIT: wilcovh beat me to it.
those reg edits have been confirmed not to work... at the time being there is no way to have the GPS stay on while in standby, and that's a pity. I am personally interested in this and have researched in the forums, yet no working method was devised (yet). And I would love to be corrected by someone, but all the solutions I found were app specific (as in, app turns off screen without turning off GPS).
So, unless the drivers should have a personal reason to "cheat" the system by turning off the GPS, just instruct them not to press that button
If they just want to turn off the display, you can make it so that they do just that without actually locking the device, by associating, as I did, longpress on send key, with xdashutdown /lightsout command. That will turn off the screen but the phne won't be locked nor put to standby.
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
to my best knowledge you can't really do that; I mean, you can programmatically disable automatica standby in an app by calling a function to reset the idle timer, yet the power button will put the device into standby.
I'm almost positive neither AEbutton plus can remap the power button short press on the HD2, but giving it a try won't hurt that much
railto said:
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
Click to expand...
Click to collapse
other approach:
app that wakes up the device after a minute or so? the gps only disconnects for short time.
railto said:
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
Click to expand...
Click to collapse
But that's solved already!
The keepAwake app posted earlier, music players keeping playing when pressing the off button, IM clients continue to run and receive messages after pressing the power button (implies both processor running and internet connection active)... in these cases, like any app that does the required system calls to disable standby while it's running, the device won't go to standby.
The only real problem you're facing is that GPS goes off when the power button is pressed, regardless of whether the rest of the device actually goes to standby or not (try running a GPS app while playing music, press power button, music still plays but GPS turns off).
Now we pointed some hints for you - you can try them (the reg edits for GPS apparently work in some cases but not all), but if they don't work then you're alone on that one, no solution is known. And tbh I've never seen any device on which you can disable the power off key, and it's obvious why...
Hi, I have Windows 8 Pro 64 bit on a Toshiba Portege R830 (Core i5) laptop.
My problem is that if I lock the screen and shut the laptop lid and leave it for a while, when I reopen the lid the screen is all green but otherwise completely blank apart from the mouse pointer (which does respond to the mouse/touchpad ok), and there's no way to unlock the screen to get the system working again that I can find. I have to long-press the hard power button to force a power off, then re-boot from cold. Everything works after that until the next time!
I do have a screen saver enabled (Electric Sheep), but after a few restarts the screensaver is disabled too. Also I have the power profile set up to do nothing on shutting the lid (i.e. no standby or power down) when plugged in to the power.
Does anyone have ideas how to resolve this? I figure that whatever's disabling the screensaver is also causing this behaviour, but I could be wrong too.
TIA
Has this problem recently bugged you or was It present since when you installed windows 8?
I'd say it's been on and off since Windows 8 was installed (RTM Box version, clean install -i.e disk-reformat). When I re-enable the screensaver it seems to behave for a while, but then when the problem reoccurs, the screensaver also seems to gets disabled (which I never do myself).
Sounds like hibernate or standby isn't working on your system. Check for a firmware update. Try disabling hibernate. You'd also lose fast boot, since it's tied to hib.
Hibernate disable: Win-X, run Command Prompt Admin. Enter powercfg /h off
Check available sleep states: powercfg /a
Also, try powercfg /energy for an energy diagnostic.
Portege R830 BIOS version 3.90_160 - 2012-09-12
* EC/KBC V1.60: Improved standby stability.
* EC/KBC V1.60: Modified the power supply error detection method.
>I have the power profile set up to do nothing on shutting the lid
Lid-close action is separate from inactivity. System will still go into standby or hib unless specifically disabled.
I have a laptop pretty similar to yours. I have the portege r835-p56x
I have had this problem but did you check event viewer. I know that some if the drivers will cause certain problems.
The only problem i have is if I leave my computer for awhile, it locks itself and I don't even have it set on that setting.
To add extra info about my setup in regard to your problem, I don't have the screen saver enabled but I have hibernate enabled.
Sent From My YP-G1 running ParanoidAndroid beta 2
goldflame09 said:
I have a laptop pretty similar to yours. I have the portege r835-p56x
I have had this problem but did you check event viewer. I know that some if the drivers will cause certain problems.
The only problem i have is if I leave my computer for awhile, it locks itself and I don't even have it set on that setting.
To add extra info about my setup in regard to your problem, I don't have the screen saver enabled but I have hibernate enabled.
Sent From My YP-G1 running ParanoidAndroid beta 2
Click to expand...
Click to collapse
There are two things you can do with the lock screen - you can prevent it from appearing on startup with a group policy change and you can prevent it from locking the system automatically after 1 min (this is the windows default)
To prevent the lock screen from appearing at startup:
press Windows+R (the Run command) and type GPEDIT.MSC
navigate to Computer Configuraton\Control Panel\Personalization
Look at the setting for "Do not display the lock screen" and set it to your preference. It takes effect on the next reboot.
To prevent the Lock Screen from locking the screen after 1 minute of inactivity there's a hidden power setting for the Display you can change in the registry. See this post on the Windows Eightforums: http://www.eightforums.com/tutorial...ole-lock-display-off-timeout-windows-8-a.html
HTH
I found a simpler way. Might not work for you, but, my little sister had the problem. So we looked on every website we could find. I finally gave up, then had the idea to restart the computer using the restart button instead of force shut down. Guess what. It worked...
Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.
Have been looking for a long time for an app that wakes up the screen when I pick up the phone and keeps the screen on for as long as I want, but which turns off the screen when I put the phone away. No app has managed to handle Onplus 6T's aggressive battery optimization (which in itself is otherwise very efficient and good). It never helped even when I disabled battery optimization for those app's (this is necessary anyway) in OP6T's settings. Until I found KinScreen https://play.google.com/store/apps/details?id=com.teqtic.kinscreen&hl=sv . Works perfectly and very reliably.
I use the tilt function. As long as i keep the phone in an angle (15-70 degrees) the screen is always on, when I lay the phone at the table the screen turns off within seconds (encl pic with my custom settings).
Highly recommended :good:
F5:ed said:
Have been looking for a long time for an app that wakes up the screen when I pick up the phone and keeps the screen on for as long as I want, but which turns off the screen when I put the phone away. No app has managed to handle Onplus 6T's aggressive battery optimization (which in itself is otherwise very efficient and good). It never helped even when I disabled battery optimization for those app's (this is necessary anyway) in OP6T's settings. Until I found KinScreen https://play.google.com/store/apps/details?id=com.teqtic.kinscreen&hl=sv . Works perfectly and very reliably.
I use the tilt function. As long as i keep the phone in an angle (15-70 degrees) the screen is always on, when I lay the phone at the table the screen turns off within seconds (encl pic with my custom settings).
Highly recommended :good:
Click to expand...
Click to collapse
Hey there. The app is good. But it doesn't perform the action you mentioned in the first sentence. It won't wake up the screen when I pick my phone. Or, am I missing a simple checkbox in options?
jonny908 said:
Hey there. The app is good. But it doesn't perform the action you mentioned in the first sentence. It won't wake up the screen when I pick my phone. Or, am I missing a simple checkbox in options?
Click to expand...
Click to collapse
Hi, did you copied my settings (pic) and disabled battery optimization for KinScreen in OP6T's settings (that's important) ? Also try a reboot after.
I know that when I tried an combo of action in KeinScreen's own setting it seamed to be less reliable. So better stick to a single action I guess. For me, all works every time with these settings.
There is a KinScreen-thread at XDA https://forum.xda-developers.com/showthread.php?t=2743082 If you still have problem, contact the developer there, he will probably assist you.
Good luck!