Page 3 of 4

Posted: Sun 13 Sep 2015, 08:36
by 01micko
Well that was a weird forum glitch. Definitely only clicked 'submit' once. Ignore this post.

Posted: Wed 16 Sep 2015, 09:01
by rg66
Works great in both X-slacko and X-tahr. Dropped CPU usage at idle by 2%, thanks for this.

Posted: Wed 16 Sep 2015, 10:44
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.

Posted: Wed 16 Sep 2015, 10:49
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)

Posted: Wed 16 Sep 2015, 11:11
by april
SNS and I just reran it to confirm .Attached screenshot is with the modem switched off as explained above.

Posted: Wed 16 Sep 2015, 11:20
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.

Posted: Wed 16 Sep 2015, 11:35
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.

Posted: Wed 16 Sep 2015, 11:40
by 01micko
It appears that way. Leave it at that for now and I'll do some investigating.

Thanks for testing.

Posted: Fri 18 Sep 2015, 09:09
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

Posted: Fri 18 Sep 2015, 09:20
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.

Posted: Fri 18 Sep 2015, 15:12
by Scooby
Is the code stable as in debugged and no more features being
developed?

Posted: Fri 18 Sep 2015, 22:12
by 01micko
Scooby wrote:Is the code stable as in debugged and no more features being
developed?
Yes apart from april's issue, which seems to be one off.

Note, that there is a patch for non puppy builds tested by mikeb. You might want to change the message app to something that suits you.

Nice to have??

Posted: Mon 28 Sep 2015, 09:45
by peebee
With the wifi strength indicator, I miss having an activity indication....

A nice to have enhancement might be to make the strength indicator change colour (subtly - maybe just a different shade of green) in response to activity?

Cheers
peebee

Setting lost after reboot

Posted: Wed 30 Sep 2015, 06:33
by peebee
The

enable wireless device polling

setting is not maintained through a reboot for me. Should it be? Where is it stored?

Later............just read the README in the source:
The program now has wireless polling off by default, toggled in the right click
menu. There is a mechanism whereby you can start the program in wireless polling
mode from a symlink to the exec named "netmon_wpoll" (or rename the exec). If you
do this then edit the .desktop file or the symlink in /root/Startup must be
name "netmon_wpoll".
Perhaps 2 desktop files could be provided - one enabled and one disabled and the right click menu could toggle them??

Re: Setting lost after reboot

Posted: Wed 30 Sep 2015, 08:11
by 01micko
peebee wrote: Perhaps 2 desktop files could be provided - one enabled and one disabled and the right click menu could toggle them??
No, that's a bit silly but a config file in $HOME isn't. I'll think about that, bearing in mind that I want this to stay out of the way. That was the whole point - wireless support was a bonus. :)

Posted: Wed 30 Sep 2015, 10:32
by peebee
Hi Mick

The link in your .pet is called netmom_wpoll

Posted: Sat 03 Oct 2015, 10:02
by 01micko
Sorry about that Peter, typo in my script to package :lol: :oops: . I'm a bit surprised it took so long to turn up.

Anyway.. try this experimental source code. I think you will be pleasantly surprised by the new icons and their functionality.

By the way, the Makefile supports DESTDIR (always has).

SOURCE removed. Updated source is on the front page. Note there are no changes, except for the patch and some superficial stuff that won't affect puppy users if they compiled from the source that was posted here.

Posted: Sat 03 Oct 2015, 17:02
by peebee
01micko wrote:I think you will be pleasantly surprised by the new icons and their functionality.
Many thanks Mick - works well

Posted: Sat 03 Oct 2015, 19:24
by sheldonisaac
peebee wrote:Looks AOK here...........
Mine shows 4 green bars and one (tallest and furthest to the right) is not green.
And at the bottom it says Wifi stats disabled.

How can I get mine to look like yours, with the Wireless strength 55% at the bottom?

Lucid Puppy 5.2.8.7 Super2

Thanks,
Sheldon

Posted: Sat 03 Oct 2015, 21:45
by 01micko
@sheldonisaac - check the right click menu. For persistence then it has to be called as 'netmon_wpoll'. Depending on how it is started on your system, make a symlink from /usr/bin/netmon_wce to /root/Startup/netmon_wpoll or edit /root/.config/autostart/netmon_wce.desktop changing the 'Exec=' line to netmon_wpoll.

------------------------------------------------------------------------------------------------------------

The new 2.7 pets and source are posted. Changelog is updated.

See main post.

NOTE: the pinstall.sh is removed so if you are migrating from Barry's old network_tray you'll have to delete the startup files manually. If installing in an old puppy you will have to unpack and install manually as all pets are XZ compressed in woof-ce. Also, if starting from /root/Startup you'll have to do that manually too.