Puppy doesn't alert me to loss of Internet.

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Puppy doesn't alert me to loss of Internet.

Post by April »

Not exactly a bug but a something that has bugged me since I started using Puppies. A bugbear.

The network connection in the tray and the network setup GUI both fail to tell me if my network is down .

If my router , a cell phone type device , which connects to a cell phone tower for service , goes down and there is "no service" nothing alerts me and I cannot discover from what's in those programs the fact that it is not connected at all.

Everything looks exactly right when I look. When I delve deeper and go to the devices built in page 192.168.8.1 there and only there does it tell me there is no service available. My Opera browser does sometimes tell me and it can't connect to the vpn which is usually the first I will know of it.

So what good an internet status tray app and GUI if it tells me I am connected when I am not . C'mon guys ,who's designing these things?

Tethering through my phone is the same .

Last edited by April on Mon Jan 10, 2022 9:29 pm, edited 1 time in total.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
rockedge
Site Admin
Posts: 7038
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3159 times
Been thanked: 2941 times
Contact:

Re: Loss of Internet Status.

Post by rockedge »

@April One of the challenges is the network monitor systems in the operating system is to see the difference between being locally connected and being actually connected to the ISP. My system can be connected to the local router in the house and that connection is fine, but the router's connection to the ISP is not working, the network monitor will still say "connected" because it is connected to the router and the LAN. But the router's modem is no longer connected to the outside network. This is where a PING comes in handy. Periodically send a PING with a script and cron job to see if it successfully pings out a signal that gets a return message from an external location if connected. If the PING fails to reach it's target going outside to the external network and can't return a success code, the external network connection is down. Send a PING to google.com or to puppylinux.com....if it returns an OK you're connected, if not and it fails, your not connected.

Small Revision: with a ping if the target is unavailable in any way the ping will fail.

Test it out in a terminal:

Code: Select all

ping puppylinux.com

Or something like that.........

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: Loss of Internet Status.

Post by April »

Thanks @rockedge

I hope someone sees this anyway and maybe writes an extra bit of code in there for it .
Gotta gripe or no one sees.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
spiritwild
Posts: 96
Joined: Wed Jul 22, 2020 1:34 am
Been thanked: 35 times

Re: Puppy doesn't alert me to loss of Internet.

Post by spiritwild »

I use to run a script on conky but it was useless for my needs.
I changed to one that sends a text message when I'm away

Not sure if the code is right or up to speed, Not a expert by any means
________________________________________________________________________

#! /bin/bash

statusFile=/var/tmp/connected # used to remember status
pingedHost=8.8.8.8
checkPeriod=5 # seconds

while true
do
echo "Sleeping..."
sleep $checkPeriod
echo "Checking..."
ping -c 1 $pingedHost > /dev/null 2>&1
if [[ $? -eq 0 ]]
then
echo "Ping OK..."
if [[ ! -f $statusFile ]] # not connected already
then
echo "Reconnected..."
# send reconnection mail here
touch $statusFile # remember state
fi
else
echo "Ping KO..."
if [[ -f $statusFile ]] # was connected before
then
echo "Disconnected..."
rm $statusFile # remember state
export MAIN_DIALOG='
<window title="ALERT" window_position="1">
<vbox>
<hbox>
<pixmap icon_size="6">
<input file icon=""></input>
</pixmap>
<frame Connection Lost>
<button ok>
<action type="exit">OK</action>
</button>
</frame>
</hbox>
</vbox>
</window>
'

gtkdialog --program=MAIN_DIALOG
#gtksplash -c "blue" -k "yellow" -s "Lost Connection"

fi
fi
done

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: Puppy doesn't alert me to loss of Internet.

Post by April »

@spiritwild

Mmm possibly every 10 seconds or so . I'll give it a go thanks.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

Post Reply

Return to “Bug Reports”