netmon_wce - network tray monitor

Configuration wizards, scanners, remote desktop, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#31 Post by 01micko »

New version is out, pets included. See main post

New features as described in the past couple of posts are added (not multiple interfaces - too much trouble). I didn't go with dhcpcd directly however, the patch is updated and that does deal with dhcpcd directly.


-------


@mikeb

Here is one line for your slax installs, and may even install with installpkg, even though it doesn't produce a legit slackware package -

Code: Select all

sh patch_me.sh yes please && make && sh package non-pup
See the 'package' script for more details.

See the extras dir for hints on getting the tx and rx stats saving at shutdown. That is basically what is in puppy's rc.shutdown script and has been for several years (circa 2010).
Puppy Linux Blog - contact me for access

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#32 Post by mikeb »

Well much appreciated...

its not just a slax thing as me pups and related stuff tend to have less puppyisms to make them more generic anyway.

Plus puppyisms vary somewhat as you well know so I aim for the 'work for anything' approach when possible.

Well will be testing out if I can drag myself away from this rather nice escape we are at up a river where the world cannot find us though the mosquitoes seem to find us regardless... :)

mike

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#33 Post by 01micko »

mikeb wrote:its not just a slax thing as me pups and related stuff tend to have less puppyisms to make them more generic anyway.
Sure. I don't like puppyisms myself, especially hard coding to /root :twisted:

BTW, I think I forgot to switch dhcpcd -k (from --release). You should be able to edit the patch ok - but no guarantees.

Thanks for your testing and suggestions - been a valuable contrib. :)
Puppy Linux Blog - contact me for access

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#34 Post by mikeb »

Been adrift for a while....

after the -k fix built cleanly and working happily... seems like a winner :)

cheers

mike

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#35 Post by 01micko »

mikeb wrote:Been adrift for a while....
Good for you :)
mikeb wrote:after the -k fix built cleanly and working happily... seems like a winner :)

cheers

mike
Good. I'll probably edit the source at some point and bring out a more or less 'final' version, pending any bug reports. I'm pretty happy with it. Been running on my lappy ever since the last mention and ram/cpu is consistent so no evidence of any leakage.
Puppy Linux Blog - contact me for access

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#36 Post by Moat »

Kicks butt, Mick! Noobish me fussing around lately, I've discovered the default network_tray in many/most (all?) Pups is one of the - if not *THE* - primary cause of Puppy's tendency towards somewhat high idle CPU use. That's always kinda' bugged me.

Quick test of your netmon_wce on this old Pentium D Optiplex GX620 running Tahrpup 6.0.2 clearly shows idle CPU use dropping from %4-6 to %1-2... flippin' great!! Finally, that issue seems fixed (here, at least). Polling enabled, too. Love the signal strength meter also.

Fantastic update! 8)

Bob

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#37 Post by 01micko »

Good to hear Bob :)

Now if we can snag a few more reports I'll ensure it becomes the default in future woof-CE based puppies.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#38 Post by 01micko »

Minor update to version 2.6

See main post

Code: Select all

20150727 netmon_wce-2.6
-----------------------
bugfix - gettext - remove '\n' char from translations for clarity
 -@line 221
 -@line 258
 -@line 313
 -@line 330
bugfix - fix compile warning -Wformat @line 139 (seen in tahrpup)
add .pot file to 'package'
===============================================================================
NOTE: a .pot file is included in the pet.
Puppy Linux Blog - contact me for access

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#39 Post by Smithy »

The old behaviour of Barry's network monitor is to also show network input and output.
I might be barking up the wrong tree here, but should there also be:
internet_connect_input.svg and internet_connect_output.svg in addition to internet_connect_both.svg?

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#40 Post by 01micko »

Smithy wrote:The old behaviour of Barry's network monitor is to also show network input and output.
I might be barking up the wrong tree here, but should there also be:
internet_connect_input.svg and internet_connect_output.svg in addition to internet_connect_both.svg?
TBH, I didn't want the icon to be too "loud" so that's why it's a bit toned down. BK's original had 5 icons, this one has 4.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#41 Post by 01micko »

Well that was a weird forum glitch. Definitely only clicked 'submit' once. Ignore this post.
Puppy Linux Blog - contact me for access

User avatar
rg66
Posts: 1158
Joined: Mon 23 Jul 2012, 05:53
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

#42 Post by rg66 »

Works great in both X-slacko and X-tahr. Dropped CPU usage at idle by 2%, thanks for this.
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
[url=http://smokey01.com/rg66/]X-series repo[/url]

april

#43 Post by april »

01micko; OK continuing on from the other thread .here
I find that your finding is very strange. The design is that as soon as your connection drops the IP address the disconnected icon should appear. This has been tested several times.
What happens in precise 5.7.1 is that If I connect to my modem by WiFi and then I go and turn the Modem off netmon_wce shows that the connection is still good and in my case with full bars.

Perhaps its different with eth0 or others but that is the result I get with wlan0 using a Realtech adaptor running module 8192cu which is the proprietary driver compiled for kernel 3.9.

When the modem is switched off the computer does not drop the connection and probing shows an IP and a RF connection so maybe its to do with the adaptor and driver?

Give me a little time on this and I will go back over things to be sure I have it right.
Last edited by april on Wed 16 Sep 2015, 11:26, edited 5 times in total.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#44 Post by 01micko »

No worries rg66

-------

Thanks april for the report. I don't have that adapter but I do have a few. I won't go to the length of installing precise just yet but if a reasonable outcome isn't achieved I will do that if nothing else works.

What connection manager are you using? (SNS, Frisbee, or other)
Puppy Linux Blog - contact me for access

april

#45 Post by april »

SNS and I just reran it to confirm .Attached screenshot is with the modem switched off as explained above.
Attachments
netmon_wceModemOff.png
(184.18 KiB) Downloaded 253 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#46 Post by 01micko »

Hi april,

I am assuming you clicked the icon to bring up 'ipinfo' after you killed the modem (it's showing the IP address). If so this is almost certainly a bug with the driver.

Can you try one test for me please to confirm this?

While the modem is off and the icon is still showing, open a terminal and run this command please:

Code: Select all

ifconfig wlan0
If the IP address appears on the second line then there is not much I can do to fix the icon behaviour for you. If not then we proceed.

'ifconfig' is a mature program, part of the 'wireless-tools' suite of programs.

Thanks.
Puppy Linux Blog - contact me for access

april

#47 Post by april »

# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:9E:95:9C:4D:1F
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3197 errors:0 dropped:23 overruns:0 frame:0
TX packets:3075 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10192465 (9.7 MiB) TX bytes:3084772 (2.9 MiB)

So I take it the driver is not disconnecting from the modem when it is switched off .At least then it tells me when I am properly connected.
Last edited by april on Wed 16 Sep 2015, 21:18, edited 1 time in total.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#48 Post by 01micko »

It appears that way. Leave it at that for now and I'll do some investigating.

Thanks for testing.
Puppy Linux Blog - contact me for access

april

#49 Post by april »

I would like to have a look through the source code for netmon_wce and network_tray.
How would I get those ? The package manager does not find them

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#50 Post by 01micko »

hi april

Source for netmon_wce is in the first post of this thread..

Attached is the source (minus icons and cruft, just the C code) for network_tray, as at version 2.5 where I forked.
Attachments
network_tray.tar.gz
(3.07 KiB) Downloaded 440 times
Puppy Linux Blog - contact me for access

Post Reply