maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   [Request] Keeping internet ALIVE (https://talk.maemo.org/showthread.php?t=70271)

zikmir 2011-02-23 20:54

[Request] Keeping internet ALIVE
 
hi,
1st. im a n900 lover..
2nd i PISSED of because in my univ, and in my town.. the internet is all free, but every time the internet goes ideal for 30 seconds, it shows a page to varefy the conditions/acceptence.

in other words, as im 24/7 connected to net, im actually stuck on the page to "click" i accept and star browsing...(in that time im connected but recieve not interet) thus i have to keep facebook or some website open so it keeps the conenction alive all time..
--- that (fuc*s the battery)
so ... i was wondering if we could come up with soem sort of minute program that would send some random bits of data every 10 seconds or so, so the interet is alive all the time..

this would save my battery, my time (im studying electrical enig.) so its most important i dont keep wasting time .

please if its not too much work. could it be made/possible ?

thanks a lot !

Joorin 2011-02-23 21:15

Re: [Request] Keeping internet ALIVE
 
You could play around with the ping command.

Start an xterm, gain root and start ping with some interesting time between packets. This will keep things alive.

geneven 2011-02-23 21:23

Re: [Request] Keeping internet ALIVE
 
Quote:

Originally Posted by zikmir (Post 954011)
hi,
1st. im a n900 lover..
2nd i PISSED of because in my univ, and in my town.. the internet is all free, but every time the internet goes ideal for 30 seconds, it shows a page to varefy the conditions/acceptence.

in other words, as im 24/7 connected to net, im actually stuck on the page to "click" i accept and star browsing...(in that time im connected but recieve not interet) thus i have to keep facebook or some website open so it keeps the conenction alive all time..
--- that (fuc*s the battery)
so ... i was wondering if we could come up with soem sort of minute program that would send some random bits of data every 10 seconds or so, so the interet is alive all the time..

this would save my battery, my time (im studying electrical enig.) so its most important i dont keep wasting time .

please if its not too much work. could it be made/possible ?

thanks a lot !

It's been a long time since I've thought of this, back in the days of old-fashioned modems, remember them? But aren't there programs called things like keep alive? You might try a Google on that.

daperl 2011-02-23 23:28

Re: [Request] Keeping internet ALIVE
 
Open an xterm and try something like this:

Code:

while [ 1 == 1 ]; do wget http://www.debian.org/ -O /tmp/deb.html >/dev/null 2>&1; sleep 25; done

zikmir 2011-02-23 23:52

Re: [Request] Keeping internet ALIVE
 
Quote:

Originally Posted by daperl (Post 954154)
Open an xterm and try something like this:

Code:

while [ 1 == 1 ]; do wget http://www.debian.org/ -O /tmp/deb.html >/dev/null 2>&1; sleep 25; done

hey ! what will this do >?

daperl 2011-02-24 00:06

Re: [Request] Keeping internet ALIVE
 
It will keep the internet alive.

aligatro 2011-02-24 00:32

Re: [Request] Keeping internet ALIVE
 
Quote:

Originally Posted by daperl (Post 954154)
Open an xterm and try something like this:

Code:

while [ 1 == 1 ]; do wget http://www.debian.org/ -O /tmp/deb.html >/dev/null 2>&1; sleep 25; done

ping -s 1 google.com -i 25

MartinK 2011-02-24 00:48

Re: [Request] Keeping internet ALIVE
 
Quote:

Originally Posted by zikmir (Post 954168)
hey ! what will this do >?

It basically just downloads a website without actually storing it, every 25 seconds.

Its a bit overkill IMO, I just use ping to override it (the WiFi power-saving feature)...

Frappacino 2011-02-24 02:19

Re: [Request] Keeping internet ALIVE
 
hmmm how about IM ? Doesnt some IM protocols keep hitting the server to retrieve updates?

Mentalist Traceur 2011-02-24 04:04

Re: [Request] Keeping internet ALIVE
 
Download the proper full ping utility from the repos (search maemo.org/packages for "ping" and there's too in there that are basically the same thing, and work the same).

Everyone advising the use of -i for ping needs to pay attention to this - the default ping utility that comes with busybox preinstalled on the N900 cannot use the -i flag. It's that badly stripped. The full one is in the repos, though, so you can apt-get it or manually download it if you know the name.

But yeah, I do this on my campus WiFi to keep the connection alive. I found that ping at -i 240 is sufficient to keep the connection going for me. (I keep raising it by a minute when I remember to, but pinging every 4 minutes hasn't caused a connection time-out yet.)

Benson 2011-02-24 05:35

Re: [Request] Keeping internet ALIVE
 
Quote:

Originally Posted by zikmir (Post 954168)
hey ! what will this do >?

Absolutely nothing of value.

You should use this instead, it will increase the net justice of the universe by at least one quantum per day. ;)
Code:

while [ 1 == 1 ]; do wget http://distrowatch.com/slackware -O /dev/null >/dev/null 2>&1; sleep 25; done


All times are GMT. The time now is 21:17.

vBulletin® Version 3.8.8