LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-30-2014, 01:28 PM   #1
LodeVanB
LQ Newbie
 
Registered: Sep 2014
Location: Ghent,Belgium
Distribution: opensuse leap,mint20,fedora33,lubuntu20,emmabuntüs-debian10buster, endeavour,bluestarlinux,kali,...
Posts: 3

Rep: Reputation: Disabled
Continuous disconnecting/connecting Wifi in ubuntu and derived


Hi,

I have an issue for some time with Ubuntu14 and Deepin, that is, they both continuously connect and disconnect from my WIfi with correct SSID and WPA2-PSK key. It works from the same machine, a HP-Pav7DVD, in opensuse and in Linux Mint (that is also ubuntu IMHO). I have already tried to manually connect with IP addresses from the above mentioned but to no avail.

Can anyone shed some light please;

TIA

Lode
 
Old 09-30-2014, 09:25 PM   #2
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Some thoughts:

Different distros may not use the same drivers or releases thereof for your wifi hardware. If they don't, then fixing that might help a lot. Take a look at lsmod output for the ones that work vs. the ones that don't.

Sometimes you can download better drivers from the manufacturer's website than those which came with your distro.

You should take a look at dmesg output (while the system is connecting and disconnecting) to see if any wifi related error messages are being issued. They'll probably be at the end of the log, so you don't have to put it through a pager like less - at least for the first look.

Also, here's a little script I wrote to continuously display wifi signal strength in a dialog box. If you don't have yad installed (consider installing it! or ...), you can just let the results spill out onto the terminal.

You should be able to see if the signal strength is varying a lot or is just plain low - which may be a driver issue (it was for me). And, you can see if signal strength is distro dependent.

Last I saw, zenity won't do for this because it didn't have a tail option to follow the output and didn't have a clean way (kill-parent) to terminate the loop.

You will also have to adjust the script if your wifi connection is not wlan0.

Code:
#!/bin/bash
## Display wifi link quality

##source ~/bin/bash_trace

while true
do
  iwconfig wlan0 | grep Quality 
  sleep 2
done | yad  --title "WiFi Quality" --text-info --width=300 --height=180 --tail --kill-parent
 
1 members found this post helpful.
Old 10-01-2014, 03:36 PM   #3
LodeVanB
LQ Newbie
 
Registered: Sep 2014
Location: Ghent,Belgium
Distribution: opensuse leap,mint20,fedora33,lubuntu20,emmabuntüs-debian10buster, endeavour,bluestarlinux,kali,...
Posts: 3

Original Poster
Rep: Reputation: Disabled
I will try your suggestions beginning with dmesg to see where it leads me Thanx
 
Old 10-02-2014, 10:50 AM   #4
stan66
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Rep: Reputation: Disabled
I don't know if this applies to your situation, but I had a similar problem with Slackware 14.1 on a Dell Inspiron 9100 laptop. Looking at the dmesg output and at /var/log/messages, I could see that WIFI was being turned off and on by rfkill, one of the modules loaded during boot. After a little more work, I found that another module, compal_laptop, also loaded during boot, was causing the rfkill behavior. The output of lsmod showed that compal_laptop was only used by rfkill, so as a test, I removed compal_laptop with 'modprobe -r compal_laptop'. That solved the problem.

The permanent solution was to blacklist compal_laptop by adding a file:
/etc/modprobe.d/compal_laptop.conf, containing a single line:
blacklist compal_laptop
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi keeps disconnecting more and more shengchieh Linux - Wireless Networking 5 02-24-2014 09:13 PM
Wifi keeps disconnecting usually after about 10 mins. lugoteehalt Debian 2 07-14-2012 06:12 PM
intel wifi link 5100 in ubuntu 10.04 not connecting mikeandike22 Linux - Hardware 1 06-18-2010 08:24 PM
Wifi not connecting after upgrade to Ubuntu 10.04 xmanmonk Linux - Networking 4 05-04-2010 07:16 AM
Continuous Wifi Hassles - WTF!? DrakIE Linux - Newbie 1 11-19-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration