Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 17 Nov 2018, 09:15
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
PeasyWiFi - a reliable WiFi connection manager
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 18 [270 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 16, 17, 18 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Mon 30 Jun 2014, 18:54    Post subject:  

OK. I am yielding to peer pressure on this issue and adding a "Search" tab. Its only function is to scan for all visible networks. The only thing you can do with the list is copy-and-paste an SSID into a profile.
Last edited by rcrsn51 on Mon 30 Jun 2014, 22:42; edited 2 times in total
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3532
Location: Worcestershire, UK

PostPosted: Mon 30 Jun 2014, 18:58    Post subject:  

rcrsn51 wrote:
So you know your passphrase from memory but not your own SSID ? Wink


Sure do Smile

I know my SSID to recognize it when I see it but don't remember its exact format as I never type it....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5280
Location: Republic of Novo Zelande

PostPosted: Tue 01 Jul 2014, 04:26    Post subject:  

Just tried v1.6 using both WPA and WPA2 and it worked well. The scan feature is useful - I had forgotten that my WPA2 profile had a space character in it so I couldn't connect initially till I ran the scan to confirm the SSID and corrected my typo.

Automatic restart after boot worked too.

While I was testing the auto restart I was thinking it would be nice to have a button to allow selection of the "restart profile" rather than manually typing the profile name into /root/Startup/peasywifi_auto. (So there could be an extra button attached to the "Select a wifi profile" field as follows: 'Connect', 'Disconnect', and 'Choose auto' or 'Set as auto').

And maybe also a tickbox to say "enable peasywifi_auto' (untick to disable).

I do like this utility (I never really felt in control of Frisbee...)

EDIT : While I was testing the connection that had been established by the autostart I decided to disconnect it, then connect again. However - it did not reconnect to the profile specified in the /root/Startup/peasywifi_auto file, instead it connected to the profile specified in the main peasywifi window. This is obviously expected behaviour, but just a trap for young players. If you are manually connecting and disconnecting make sure you choose the appropriate profile and don't expect the autostart to kick back in until the next reboot or restart X.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 08:49    Post subject:  

greengeek wrote:
While I was testing the auto restart I was thinking it would be nice to have a button to allow selection of the "restart profile" rather than manually typing the profile name into /root/Startup/peasywifi_auto.

Done. There is now a separate Auto screen for setting up auto-connection. It still uses the file /root/Startup/peasywifi_auto, but creates it for you.

You will also notice the new "eth0" button. It kills the Wifi connection and re-enables your wired Ethernet port. I originally added this for testing purposes, but it may have a larger use.

The standard Puppy network managers like SNS control both wired Ethernet and WiFi. But all Puppies now auto-connect eth0 at bootup. So you would only need SNS to do a re-connection (I think).

If PeasyWiFi can do this for you, it might completely replace SNS. This would need more discussion.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1089
Location: SW Wisconsin

PostPosted: Tue 01 Jul 2014, 11:02    Post subject:  

Thanks for listening to the squeaky wheels. Version 1.7 tested from pristine install of Carolina 1.2 and working well. It is the only net manager that has correctly modprobed the lib80211_crypt_ccmp and lib80211_crypt_tkip libs on its own for the ipw2200 drivers. That card/driver can do WPA2 but usually is seen as non-WPA2. I do need the dropwait option for that card so have added it into your pet with the initial value in /root/.peasywifi set at 0. Pretty simple to do, I can upload the modded pet if you wish.

Thanks again.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, LxPupBionic, upupbb and upupcc for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 11:30    Post subject:  

Marv wrote:
Thanks for listening to the squeaky wheels.

I tend to get my opinions from the last person I talk to. Wink

Quote:
It is the only net manager that has correctly modprobed the lib80211_crypt_ccmp and lib80211_crypt_tkip libs on its own for the ipw2200 drivers.

That's interesting because PeasyWiFi does NO modprobing at all! It relies on the kernel to initialize the wireless interface. So what are these other network managers doing?

Quote:
I do need the dropwait option for that card so have added it into your pet with the initial value in /root/.peasywifi set at 0..

Could you post a snippet of modified code instead, so other people can see it? Or post the whole PET if you prefer.

The nice thing about PeasyWiFi is that you can easily modify the script for special situations.

Thanks.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1089
Location: SW Wisconsin

PostPosted: Tue 01 Jul 2014, 12:51    Post subject:  

rcrsn51 wrote:


That's interesting because PeasyWiFi does NO modprobing at all! It relies on the kernel to initialize the wireless interface. So what are these other network managers doing?

Could you just post a snippet of modified code instead, so other people can see it? The nice thing about PeasyWiFi is that you can easily modify the script for special situations.

Thanks.


The encryption libs puzzle me a bit too. I started with the bare carolina, checked with lsmod after boot and only the ipw2200 drivers were loaded. Ran peasywifi sucessfully and rechecked immediately with lsmod and the crypt libraries were present and loaded correctly. With Frisbee, SNS, and Dougal, using wpa2 ALWAYS returns an "invalid password" using the ipw2200 until I manually modprobe the crypts.

Attached is a gz with the lines I modified or added in /usr/local/peasywifi/peasywifi. Short as I could make it. To run the modified version, the original .peasywifi must be removed so it will be rewritten with the modified one.
Modified_Lines.gz
Description  Changed lines to add dropwait option to peasywifi.
gz

 Download 
Filename  Modified_Lines.gz 
Filesize  818 Bytes 
Downloaded  324 Time(s) 

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, LxPupBionic, upupbb and upupcc for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 13:10    Post subject:  

Thanks for the mods. I hunted through jemimah's code and I suspected as much. I am going to change it slightly in case the dropwait argument is something other than -j. When I tested this in an old Puppy, it choked on "-j 0".

The module loading is a mystery. Maybe line 14
Code:
ifconfig $INTERFACE up

is triggering it. Do a restart and try it from the command line using your interface.

[Edit] Here is what I suspect is happening. PeasyWiFi is using wext as the default driver and it is smart enough to load the required modules. The other managers are picking a different driver from Puppy's wifi driver database and it doesn't load the modules.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 14:52    Post subject:  

Marv: I have posted v1.8. I changed DROPWAIT to the more flexible OPTION. See the Help for details.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5280
Location: Republic of Novo Zelande

PostPosted: Tue 01 Jul 2014, 16:12    Post subject:  

Just tried v1.8 on a slacko 5.6 derivative (no savefile) running on an Acer netbook and it works perfectly.

After running the 'make profile' the name of the new profile is not immediately reflected in the 'auto' tab so I can't select it straight away. Is this part of the same 'must_restart_peasywifi' requirement you mentioned before or might there be some way around this?

(would be nice to make a profile and set it as auto in the one session if poss - not that its hard to start peasywifi now that I realise I can use the taskbar icon instead of the menu Smile )
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 16:25    Post subject:  

greengeek wrote:
Is this part of the same 'must_restart_peasywifi' requirement you mentioned before

Yes.

Quote:
or might there be some way around this?

Not without a major restructuring. However, you could just manually paste the profile name into the Select a Profile box. But it would be safer to do a restart so you get the name right.

Quote:
not that its hard to start peasywifi now that I realise I can use the taskbar icon instead of the menu

Exactly.

Thanks for testing. I think that we are close to the end of this little project.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1089
Location: SW Wisconsin

PostPosted: Tue 01 Jul 2014, 16:39    Post subject:  

rcrsn51 wrote:
Marv: I have posted v1.8. I changed DROPWAIT to the more flexible OPTION. See the Help for details.

Thanks, I'll test it on the ipw2200s.

Edited once: Works just fine. OPTION="-j 15" used for my ipw2200 laptops. No dropwait needed for my iwlwifi laptops so the OPTION line is left at the default on them.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, LxPupBionic, upupbb and upupcc for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.

Last edited by Marv on Tue 01 Jul 2014, 16:58; edited 1 time in total
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5280
Location: Republic of Novo Zelande

PostPosted: Tue 01 Jul 2014, 16:54    Post subject:  

Can I make one more suggestion before you wrap up? I think it would be really handy if there was some way to combine/extend the functionality of the eth0 and I/F buttons...

Imagine if I could click a button called "choose interface" and it would let me do the following:
1) Switch to eth0 (as your eth0 button does)
2) Set export interface to eth1 (extend functionality of I/F button instead of manually editing /root/.peasywifi)
3) Set export interface to wlan0 ( " " ")

...so that the I/F window that currently shows the options for choice of wifi interface (wlan0 or eth1 depending on machine) could also show eth0 (if present) and allow selection between them - automatically updating the .peasywifi config as required.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 01 Jul 2014, 17:19    Post subject:  

Here are my thoughts on this idea.

1. I need to get some house painting done this week.

2. There are a number of situations, like Marv's, where people need to manually edit their config file. So it's worthwhile learning how to do it. This is Puppy Linux after all - people are expected to get their hands dirty.

Thanks for all your help.

Bill
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Wed 02 Jul 2014, 09:07    Post subject:  

Hi guys:

I have posted v1.9 and fixed a few things.

1. There is now a Config button on the toolbar that directly opens the config file in a text editor. So you don't have to hunt for it.

2. I have (hopefully) improved I/F detection. But this needs more testing.

3. If you try to access a non-functioning server, you may end up with a bogus 169.254.x.y IP address. But because your machine now has a lease for that address, you can't connect to a working server until you destroy the garbage lease. The Disconnect button now does that. Follow it with a reboot.

A bogus IP address can also occur if your WiFi adapter is not working correctly, usually because of a driver problem.

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

Last edited by rcrsn51 on Sun 03 Jul 2016, 06:59; edited 4 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 18 [270 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 16, 17, 18 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2114s ][ Queries: 13 (0.0163s) ][ GZIP on ]