Jump to content


Photo

Screen off = WiFi off :(


  • Please log in to reply
37 replies to this topic

#1
TerryH

TerryH

    Newbie

  • Members
  • Pip
  • 25 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?

  • 0

#2
zzleezz

zzleezz

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 271 posts
  • Gender:Male
  • Location:Sudbury, Suffolk
  • Interests:Gadgets and tennis, what else is there?
  • Devices:Samsung GSII & Advent Vega
  • Twitter:@@zzleezz
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

#3
ptbw

ptbw

    Regular

  • MoDaCo Silver
  • PipPip
  • 135 posts
  • Gender:Male
  • Location:Suffolk, UK
  • Devices:Nexus 4 & Nexus 7 (2013)

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.c...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.co...LightKiller.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.co...LightKiller.apk

Please reply if you do actually find it useful.

Edited by ptbw, 22 January 2011 - 02:52 PM.

  • 0

Official Field Guide of the Paranormal Database
smallbanner.png

Still playing with:

Nexus 4
Nexus 7 (2103)

 

 


#4
zzleezz

zzleezz

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 271 posts
  • Gender:Male
  • Location:Sudbury, Suffolk
  • Interests:Gadgets and tennis, what else is there?
  • Devices:Samsung GSII & Advent Vega
  • Twitter:@@zzleezz
Wow! Nice work mate.

  • 0

#5
andycap

andycap

    Newbie

  • MoDaCo Silver
  • Pip
  • 43 posts
  • Location:Staffordshire UK
  • Devices:Dell Streak (froyo)
  • Twitter:@Andystreak
Hi.

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.

http://dl.dropbox.co...LightKiller.apk

  • 0
Dell Streak, Htc Desire HD, Advent Vega, iPad 3g 32g.

#6
ptbw

ptbw

    Regular

  • MoDaCo Silver
  • PipPip
  • 135 posts
  • Gender:Male
  • Location:Suffolk, UK
  • Devices:Nexus 4 & Nexus 7 (2013)

Hi.

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.

http://dl.dropbox.co...LightKiller.apk



No problem, as I said it was a work in progress.

  • 0

Official Field Guide of the Paranormal Database
smallbanner.png

Still playing with:

Nexus 4
Nexus 7 (2103)

 

 


#7
debs626

debs626

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 223 posts
  • Gender:Female
  • Location:Yorkshire, UK
  • Devices:SanFran, iPad v1
  • Twitter:@Debs626

I experimented with some code I found on GoogleCode that changed the brightness of the backlight. http://code.google.c...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.co...LightKiller.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.co...LightKiller.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, 22 January 2011 - 09:02 PM.

  • 0

#8
Ste_B

Ste_B

    Regular

  • Members
  • PipPip
  • 76 posts
  • Gender:Male
  • Location:N.I
  • Interests:NUFC, Andriod, Beer & Cuban cigars
  • Devices:Vega,Bravo,NexusS,OneX
  • Twitter:@Ste_Boyd

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
Posted Image

#9
TerryH

TerryH

    Newbie

  • Members
  • Pip
  • 25 posts
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

#10
Sir Gash

Sir Gash

    Enthusiast

  • Members
  • PipPipPip
  • 204 posts
  • Gender:Male
  • Location:London, UK
  • Devices:HTC Desire / Advent Vega
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
ANDROID DEVICES:

HTC Desire
ROOTED/S-OFF
ROM: Oxygen v2.0.3
RADIO: 32.48.00.32U_5.11.05.14

Advent Vega
ROM: VegaComb (Beta 1a) Honeycomb 3.0 :D

#11
Melted

Melted

    Regular

  • MoDaCo Silver
  • PipPip
  • 54 posts
  • Devices:Nexus One & Advent Vega
  • Twitter:@pmanosa
Thanks, I just love it!

  • 0
My devices:
Nexus One CyanogenMod 7 Posted Image Point Of view Mobii VegaComb AlphaPosted Image

#12
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@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!

  • 0

#13
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire

I experimented with some code I found on GoogleCode that changed the brightness of the backlight. http://code.google.c...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.co...LightKiller.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.co...LightKiller.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.and...er-element.html

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

http://developer.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
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#14
simonta

simonta

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,298 posts
  • Gender:Male
  • Location:Southampton
  • Devices:Vega. HTC Desire
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
If I've helped you, you want to say "thanks" and you do not use Dropbox (it's enormously useful, especially with mobile devices), please consider signing up for it using my reference. You'll get 2GB of disk space for files available anywhere, any time on any device. They give us both an extra 250MB if you do sign up!

Sign up for Dropbox

Apple? I'd rather eat my own kidneys!

#15
ptbw

ptbw

    Regular

  • MoDaCo Silver
  • PipPip
  • 135 posts
  • Gender:Male
  • Location:Suffolk, UK
  • Devices:Nexus 4 & Nexus 7 (2013)

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

http://developer.and...er-element.html

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

http://developer.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

Official Field Guide of the Paranormal Database
smallbanner.png

Still playing with:

Nexus 4
Nexus 7 (2103)

 

 


#16
English Haze

English Haze

    Regular

  • Members
  • PipPip
  • 121 posts
  • Gender:Male
  • Devices:Samsung Galaxy S2 + Modaco GR5
  • Twitter:@englishhaze

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
Posted Image

#17
andycap

andycap

    Newbie

  • MoDaCo Silver
  • Pip
  • 43 posts
  • Location:Staffordshire UK
  • Devices:Dell Streak (froyo)
  • Twitter:@Andystreak

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


Yea sure.

Here you go.

http://dl.dropbox.co...LightKiller.rar

  • 0
Dell Streak, Htc Desire HD, Advent Vega, iPad 3g 32g.

#18
remlap

remlap

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 282 posts
  • Gender:Male
  • Location:South Wales
  • Devices:Nexus7, GalaxyNexus, NookGlo
  • Twitter:@remlap1986
Hope you don't mind I tided up the icons a bit and renamed it Back Light so it would look okay on my desktop

Great application mate!

http://dl.dropbox.co.../Back Light.apk

Attached Files


Edited by remlap, 23 January 2011 - 11:01 PM.

  • 0

#19
xathras

xathras

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Devices:Advent Vega / Archos 70 250GB

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

#20
AndyCr15

AndyCr15

    Addict

  • Members
  • PipPipPipPipPip
  • 553 posts
  • Gender:Male
  • Location:London
  • Devices:Galaxy Nexus
  • Twitter:@AndyCr15
Sounds interesting. Does the screen still respond if I accidentally swipe across it though?

  • 0
Me on Google+ | LAN Gaming in North London
Hemorrdroids.net - Android News, Guide's and App reviews. - @hemorrdroids




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users