Jump to content

Screen off = WiFi off :(


Guest TerryH

Recommended Posts

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?

Link to comment
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
Link to comment
Share on other sites

Guest debs626
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
Link to comment
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.

Link to comment
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...

Link to comment
Share on other sites

Guest SilentMobius
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!

Link to comment
Share on other sites

Guest simonta
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

Link to comment
Share on other sites

Guest simonta

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

Link to comment
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".

Link to comment
Share on other sites

Guest English Haze
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.

Link to comment
Share on other sites

Guest xathras
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:

Link to comment
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

Link to comment
Share on other sites

Guest Sir Gash
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:

Link to comment
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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.