[Q] How to disable USB host mode power saving? - Android Software/Hacking General [Developers Only]

Hi,
I've searched but can't find anything, hopefully I didn't miss anything.
I'm using the Zenithink ZT-280 C71 with official firmware 2.3.4. Since it doesn't have built in bluetooth, I'm using a Bluetooth dongle. It works fine except it seems to have a problem with the power saving function. After some earlier confusing results, I found that if I let the tablet sleep (whether after time or if I push the power button), the dongle light goes off. When I wakeup the tablet, the bluetooh dongle LED comes back on but Bluetooth no longer works. If I try to enable Bluetooth, it tries very briefly then gives up. If the Bluetooth is still working, I can enable or disable it and reenable and it's fine although I'm not sure how much it does. This doesn't happen if the tablet is plugged in, it's working fine hours later. So I'm pretty sure it's because the tablet disables USB power which unfortunately breaks the dongle requiring a restart to fix.
Is there any way to disable USB host mode power saving? Isn't good from a power saving perspective but then needing to restart I've looked in power control widget but nothing useful there, some setting in the build.prop perhaps? I've fooled around with hacking my LG Optimus P500 and another phone before so no problem changing files etc.
Alternatively I could try making the USB bluetooh dongle work with powersaving (although possibly this will be more device specific). I'm not sure but possibly the problem is related to the fact hotplugging doesn't work. If I start the tablet without the dongle and later plug it in, I similarly can't enable Bluetooth.
Any help much appreciated.

Related

Enabling GPS & Bluetooth with external power

Is it possible to turn Bluetooth & GPS on automatically whenever the phone is externally powered and off again when back to battery? That would be very convenient for car use.
Here is the program you want. I use it and it's great.
By the way, it only switches bluetooth on when charging. I don't know about GPS. You could check the Mortscript threads for that or request it there.
thanks, I've installed that, can't see it's doing anything though. But my phone is currently fully charged, so I'll wait a bit and have a look at Mortscript.

[Q] Trusted Bluetooth device

Hello everyone, just moved from a Nexus 5 and enjoying many of the unique features, one thing that interests me most is the ability to unlock the phone with a trusted Bluetooth device. I already have a fitbit, so was hoping I could use this, however it turns out you can't, I think it is due to the way Bluetooth 4 is designed to minimise battery drain and it therefore not always connected. I was wondering what other people use , other than say speakers and headphones. I know Motorola have a device planned, but hasn't been released yet.
Thunder_Bolt said:
Hello everyone, just moved from a Nexus 5 and enjoying many of the unique features, one thing that interests me most is the ability to unlock the phone with a trusted Bluetooth device. I already have a fitbit, so was hoping I could use this, however it turns out you can't, I think it is due to the way Bluetooth 4 is designed to minimise battery drain and it therefore not always connected. I was wondering what other people use , other than say speakers and headphones. I know Motorola have a device planned, but hasn't been released yet.
Click to expand...
Click to collapse
HX550 earpeace is the only thing I have used. The Moto 360 is the coolest option - but an expensive one. I understand the new micro power-bank is like your fitbit and doesn't do the trick.
I actually have the Power Pack Micro that I use as a trusted device. Works perfectly!
Thanks for the replies, I never knew about the power pack micro, think that is what I will go for, hopefully Motorola will release it in the UK soon.
I connected mine to my desktop PC. Tried it for a bit and it was a cool idea, except that when connected to it the sound would go through the headsets plugged in to the PC. If I tried disabling the audio connection through properties on the PC the phone would disconnect. I couldn't find a way to keep it connected without audio so I ended up removing it.
Would be nice if there was a WiFi option, then I could pair it with that. For now I guess I'll just live without.
cbsevenfifty said:
I connected mine to my desktop PC. Tried it for a bit and it was a cool idea, except that when connected to it the sound would go through the headsets plugged in to the PC. If I tried disabling the audio connection through properties on the PC the phone would disconnect. I couldn't find a way to keep it connected without audio so I ended up removing it.
Would be nice if there was a WiFi option, then I could pair it with that. For now I guess I'll just live without.
Click to expand...
Click to collapse
Have a look at Skiplock in the play store. I have been using that in the meantime, it works much the same as the trusted devices, but also does wifi. I have it set up with my home wifi network so when my phone is in the house I don't need to put the unlock code into the phone, does Bluetooth as well, just need to get myself one of those power pack micro now...
Advanced Keyguard Manager also let's you bypass the lockscreen based on WiFi connection.
cbsevenfifty said:
I connected mine to my desktop PC. Tried it for a bit and it was a cool idea, except that when connected to it the sound would go through the headsets plugged in to the PC. If I tried disabling the audio connection through properties on the PC the phone would disconnect. I couldn't find a way to keep it connected without audio so I ended up removing it.
Would be nice if there was a WiFi option, then I could pair it with that. For now I guess I'll just live without.
Click to expand...
Click to collapse
Wifi trusted areas is supposed to come as part of Android L I believe.
You cant use it with your fitbit because it doesnt pair, it only uses bluetooth to sync to the app occasionally. It doesnt have anything to do with BT 4.0 afaik.
The only trusted device I use is my car.
Celeras said:
You cant use it with your fitbit because it doesnt pair, it only uses bluetooth to sync to the app occasionally. It doesnt have anything to do with BT 4.0 afaik.
The only trusted device I use is my car.
Click to expand...
Click to collapse
Thanks for the info Celeras, that makes perfect sense.
pseudopsyche said:
I actually have the Power Pack Micro that I use as a trusted device. Works perfectly!
Click to expand...
Click to collapse
Is there a way to quickly/easily lock the phone when using this? I'd like to do the same, but wonder about the security if someone steals both my phone and my keys -- the phone's power button won't lock the device if the trusted bluetooth is nearby.
Is it possible, for example, to use the button on the Power Pack Micro to disconnect or lock the device? Or is there some quick way to re-enable the PIN using the phone itself? It would presumably be easy with a Moto 360 or a BT headset -- just turn the BT device off, and the connection will be broken. But it's not clear that the Power Pack Micro can be turned off or disconnected without going through the Moto Connect app.
Thanks!
/dev/random said:
Is there a way to quickly/easily lock the phone when using this? I'd like to do the same, but wonder about the security if someone steals both my phone and my keys -- the phone's power button won't lock the device if the trusted bluetooth is nearby.
Is it possible, for example, to use the button on the Power Pack Micro to disconnect or lock the device? Or is there some quick way to re-enable the PIN using the phone itself? It would presumably be easy with a Moto 360 or a BT headset -- just turn the BT device off, and the connection will be broken. But it's not clear that the Power Pack Micro can be turned off or disconnected without going through the Moto Connect app.
Thanks!
Click to expand...
Click to collapse
You can quickly lock the screen from the notification shade...there is a persistent notification at the top of the shade saying you're unlocked, and and if you tap it, it locks and stays locked until the next time you unlock it from the PIN/Pattern/PW lockscreen. You could also quickly unlocked it by turning off whatever device you are using as a trusted BT device. The Power Pack Micro has a power button you can turn it off with.
I've got so many things I use as Trusted Devices:
Moto 360
Moto Hint
Power Pack Micro
BT stereo headphones (Bluebuds X)
BT speakers at my work desk
BT HR monitor while at the gym
My cars Sync system
Cobra Tag - this one is really cool device, like the Power Pack it tethers your phone and lets you page it the phone if you've misplaced it, but goes one step further - if you get too far from your phone, both the phone and the Cobra Tag sound an alarm. Great for making sure you don't walk away from a restaurant or home or wherever with your keys in your pocket but the phone left behind (or vice versa). the Power Pack doesn't do that tethering alarm.
To your original concern, if someone walks off with both your BT device and your phone, you're screwed, unless you have time to get on Android Device Manager and remotely lock the phone.
Wow, you have a lot of devices, unfortunately the Motorola powerpack micro is not available in the UK yet, hopefully it will arrive soon.

[Q] How to turn on Bluetooth when I connect power to USB

I can't find an answer to this in the Q&A.
I want to have Bluetooth turn on automatically on my Nexus 5 when I connect power via USB
(this is for in car use in case anyone wonders why I would want that)
Then when I disconnect the USB power I want Bluetooth to turn off.
It seems a simple enough demand but for the life of me I cannot see how to do this in Tasker.
Has anyone any ideas?
Thanks in anticipation
Tasker?
Gasconman said:
I can't find an answer to this in the Q&A.
I want to have Bluetooth turn on automatically on my Nexus 5 when I connect power via USB
(this is for in car use in case anyone wonders why I would want that)
Then when I disconnect the USB power I want Bluetooth to turn off.
It seems a simple enough demand but for the life of me I cannot see how to do this in Tasker.
Has anyone any ideas?
Thanks in anticipation
Click to expand...
Click to collapse
There is an app called Tasker.
It can do all sorts of things and you can set it up so for example:
When I plug in my phone, turn on bluetooth.
Or when I connect via Bluetooth to my car, open the GPS app.
Google play link: https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm (3,38 USD)

Smashed screen/backup question

Okay so, the screen on my Z5 smashed, the LCD is fine but the digitizer doesn't work at all. I was thinking I could USB OTG a mouse, but the device isn't picking anything up. Quick google and I found that you have to do detect USB device in settings, however I can't touch the screen to do that. I'm trying to back everything up and wipe the device to sell on for spares/repairs but I can't do this because I can't touch the screen and I can't plug in a mouse.
I tried using okay google to turn on bluetooth and connect to a bluetooth remote but I have an alert on the screen about updating which is blocking okay google so that's not working either.
Does anyone have any suggestions?
Yea it's an old thread and everything but it would be nice to find here answer as well.
Since the phone can't be properly controlled without screen or external devices.
And OTG connection have to be activated in the settings it looks like there is no much else to do about.
Well fortunately there is at least one more easy way to activate usb OTG connection.
All you have to do is:
- Turn off the phone by holding power + volume up button
- While phone still turned off connect usb device with OTG cable
- Power on your Xperia Z5 and you're done.

display and touchscreen dead, no usb debugg : solution for this issue.

morning geeks
you have a phone, which is not able to :
show the display
use the touchscreen
but the hardware is still able of these features :
usb mtp device, as a usb key
wifi network
cell network
and so on..
so you are here, somebody gave you a smartphone, running android, locked, but you can't neither see display or use touchscreen;
but its starting anyway, you can hear the ringer if you call on it;
how would you do, without usb debugging enabled, to use this electronic technology as a specific usage, like a wifi AP or a usb key?
in an other words, what is the method to restore it and to take the control of it?
you just have a usb mouse can be connected on it. but no display.
[this is mainly destinated to avoid throwing several android hardware to bin, cause it can still poweron.]

Categories

Resources