TerryH

Screen off = WiFi off :(

38 posts in this topic

I am looking for a solution that if the screen turns off the Wifi doesn't turn off too. I am using a static Ip with Dns of my router. I would like have a screen blanker (battery saving) and Wifi on if this is possible. Anybody has an idea for this issue?

0

Share this post


Link to post
Share on other sites

Something we are all waiting for. Needs an updated kernel (one just dropped) that enables this or kernel source so someone can add it.

0

Share this post


Link to post
Share on other sites
I am looking for a solution that if the screen turns off the Wifi doesn't turn off too. I am using a static Ip with Dns of my router. I would like have a screen blanker (battery saving) and Wifi on if this is possible. Anybody has an idea for this issue?

I experimented with some code I found on GoogleCode that changed the brightness of the backlight. http://code.google.com/p/autosettings/source/checkout but I soon discovered the a brightness of 0 put the Vega to sleep wifi and all. (The brightness level is a float between 1.00 and 0.00)

However a brightness of 0.01 looks like the screen is off but the Vega does not sleep...........

So I have a pretty basic APK that can turn off the screen when run, press the back button to make it restore to its previous level. I did play with touching the screen to restore the backlight as well but that's still a work in progress.

Source is here: http://dl.dropbox.com/u/17486207/BackLightKiller.zip

Since the WiFi is a large part of the battery drain I did not notice that much improvement but you are welcome to give it a try:

APK is here: http://dl.dropbox.com/u/17486207/BackLightKiller.apk

Please reply if you do actually find it useful.

Edited by ptbw
0

Share this post


Link to post
Share on other sites

Wow! Nice work mate.

0

Share this post


Link to post
Share on other sites
I experimented with some code I found on GoogleCode that changed the brightness of the backlight. http://code.google.com/p/autosettings/source/checkout but I soon discovered the a brightness of 0 put the Vega to sleep wifi and all. (The brightness level is a float between 1.00 and 0.00)

However a brightness of 0.01 looks like the screen is off but the Vega does not sleep...........

So I have a pretty basic APK that can turn off the screen when run, press the back button to make it restore to its previous level. I did play with touching the screen to restore the backlight as well but that's still a work in progress.

Source is here: http://dl.dropbox.com/u/17486207/BackLightKiller.zip

Since the WiFi is a large part of the battery drain I did not notice that much improvement but you are welcome to give it a try:

APK is here: http://dl.dropbox.com/u/17486207/BackLightKiller.apk

Please reply if you do actually find it useful.

You Sir are awesome, thanks very much for this, I think its going to prove to be a very handy tweek for many . I greatly appreciate your time and effort :)

and thanks to andycap for adding the icon and exit function :lol:

Maybe this needs to be put in a seperate (renamed) post

Edited by debs626
0

Share this post


Link to post
Share on other sites
You Sir are awesome, thanks very much for this, I think its going to prove to be a very handy tweek for many . I greatly appreciate your time and effort :)

and thanks to andycap for adding the icon and exit function :lol:

Maybe this needs to be put in a seperate (renamed) post

.

Totally agree! Nice little app this.

0

Share this post


Link to post
Share on other sites

Thank you for this nice idea!

I am using this at the moment for 3G-tethering from my small Android device to the Vega, this app lets the device on, otherwhise my WiFi connection cracks up...

0

Share this post


Link to post
Share on other sites

Thanks guys, I've been look for a solution to this problem for weeks! I can finally stream some music on the Vega to go to sleep to.

Cheers!

0

Share this post


Link to post
Share on other sites
Please reply if you do actually find it useful.

While this apk isn't actually useful to me, I must applaud the work you've done as it answers one of the main questions I've had regarding the backlight/wi-fi connection. I was _very_ worried that power for the wi-fi chipset was slaved directly from the power line to the display backlight, you've now proved that incorrect. This means that when we get kernel source it should be a simple job to decouple the wi-fi from the backlight. Yay!

0

Share this post


Link to post
Share on other sites
I experimented with some code I found on GoogleCode that changed the brightness of the backlight. http://code.google.com/p/autosettings/source/checkout but I soon discovered the a brightness of 0 put the Vega to sleep wifi and all. (The brightness level is a float between 1.00 and 0.00)

However a brightness of 0.01 looks like the screen is off but the Vega does not sleep...........

So I have a pretty basic APK that can turn off the screen when run, press the back button to make it restore to its previous level. I did play with touching the screen to restore the backlight as well but that's still a work in progress.

Source is here: http://dl.dropbox.com/u/17486207/BackLightKiller.zip

Since the WiFi is a large part of the battery drain I did not notice that much improvement but you are welcome to give it a try:

APK is here: http://dl.dropbox.com/u/17486207/BackLightKiller.apk

Please reply if you do actually find it useful.

Hi ptbw

Nice work for the good people of this town. Thank you.

You might want to think about some enhancements then push this onto the market? I'm sure other Android user other than Vegans would appreciate your work.

If I may make so bold:

If you register a broadcast receiver, you can receive a message from Android when the system is putting itself to sleep.

http://developer.android.com/guide/topics/...er-element.html

You could then cancel the sleep and apply your brightness setting.

http://developer.android.com/reference/and...werManager.html

You could further enhance it by adding a timer so it does this automagically at a time the user sets.

Cheers

Simon

0

Share this post


Link to post
Share on other sites

For those bugged by the slow connect after resume, Wifi Static on the market will help a great deal.

There's an existing thread somewhere on here covering this. You do need to understand DHCP vs static addressing and be comfortable with configuring your router but if this is old hat to you, Wifi Static will make connection after resume much faster as Android seems to be really slow with DHCP.

Cheers

0

Share this post


Link to post
Share on other sites
..

If you register a broadcast receiver, you can receive a message from Android when the system is putting itself to sleep.

http://developer.android.com/guide/topics/...er-element.html

You could then cancel the sleep and apply your brightness setting.

http://developer.android.com/reference/and...werManager.html

You could further enhance it by adding a timer so it does this automagically at a time the user sets.

Interesting, if I ever get any free time I will have a play. Although most devices would not behave like the Vega so I can't see it being worth while outside our "burg".

0

Share this post


Link to post
Share on other sites
I have taken the liberty of adding an icon to the App and also have it exiting when screen is clicked. Hope you don't mind.

Would you mind posting the source with your amendments? I'd be interested to see what changes you made.

0

Share this post


Link to post
Share on other sites
For those bugged by the slow connect after resume, Wifi Static on the market will help a great deal.

There's an existing thread somewhere on here covering this. You do need to understand DHCP vs static addressing and be comfortable with configuring your router but if this is old hat to you, Wifi Static will make connection after resume much faster as Android seems to be really slow with DHCP.

Cheers

Thanks for the heads up on WiFi Static. Much faster reconnect. :lol:

0

Share this post


Link to post
Share on other sites

Sounds interesting. Does the screen still respond if I accidentally swipe across it though?

0

Share this post


Link to post
Share on other sites
Sounds interesting. Does the screen still respond if I accidentally swipe across it though?

Yes it does

0

Share this post


Link to post
Share on other sites

Just chiming in with my thanks for this app, seriously good work.

0

Share this post


Link to post
Share on other sites

Unless I'm missing something that's special to the Vega when you turn the screen off it puts the device into a sleep mode.

If you don't want that behaviour a program can acquire a lock that will keep the machine active, if people are interested I'll knock something together

0

Share this post


Link to post
Share on other sites
Unless I'm missing something that's special to the Vega when you turn the screen off it puts the device into a sleep mode.

If you don't want that behaviour a program can acquire a lock that will keep the machine active, if people are interested I'll knock something together

If you are referring to a 'partial wake lock' then I have a feeling the Vega does not adhere to it for whatever reason, I have tried many apps using this method to keep the device alive during standby with no success.

However, please give it a try as any solution is welcome! I will be happy to beta test anything you can offer :lol:

0

Share this post


Link to post
Share on other sites
Unless I'm missing something that's special to the Vega when you turn the screen off it puts the device into a sleep mode.

If you don't want that behaviour a program can acquire a lock that will keep the machine active, if people are interested I'll knock something together

The brightness of the screen and sleep mode are linked. Setting the brightness to 0 puts the machine to sleep ( no wifi, no nothing ) apps that on other devices leave the WiFi in standby on don;t seem to work on the Vega.

This app sets the brightness to 0.01 so turning the backlight off but leaving the machine running so for example you can stream music without the glare of the screen.

HTH

Edited by ptbw
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.