[SOLVED] Wifi connection dropping, is there a cure?

New to Debian (Or Linux in general)? Ask your questions here!

Re: Wifi connection dropping, is there a cure?

Postby Bulkley » 2016-11-22 23:48

bryanmc, is your laptop dropping connections when you are out and about or is this just a problem at home? If it's the latter, falcon_cmh might be right. Tuning a home router should be a must whenever in doubt. If a neighbour is using the same channel as you are you might be competing. Is Your Wireless Connection Dropping? Amazingly, some routers are directional; simply rotating it 90 degrees can make a big difference.
Bulkley
 
Posts: 5367
Joined: 2006-02-11 18:35

Re: Wifi connection dropping, is there a cure?

Postby dasein » 2016-11-23 00:05

The larger point is that WiFi issues can be difficult-to-impossible to diagnose. There are simply too many variables that can't be controlled (including and in particular RFI).
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 00:12

Bulkley wrote:bryanmc, is your laptop dropping connections when you are out and about or is this just a problem at home? If it's the latter, falcon_cmh might be right. Tuning a home router should be a must whenever in doubt. If a neighbour is using the same channel as you are you might be competing. Is Your Wireless Connection Dropping? Amazingly, some routers are directional; simply rotating it 90 degrees can make a big difference.


I haven't had the laptop out of the house to check it. It's dropping the signal 8ft across the room from the router. My wife's win 10 laptop, my mint 18 netbook and various other wifi devices in the house are not having the issue. Running
Code: Select all
sudo iwlist wlan1 scan | grep \(channel
shows my router on ch1 another on ch3 and another on ch11. The houses in my neighborhood are all on 1/2 acre lots so it's not like an apt building where interference could be an issue.
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby dasein » 2016-11-23 00:16

bryanmc wrote:... it's not like an apt building where interference could be an issue.

You have a profoundly misinformed notion of when/how RFI "could" be an issue. Diagnosing WiFi problems is hard enough without you rejecting ideas without testing them.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Wifi connection dropping, is there a cure?

Postby bw123 » 2016-11-23 00:23

my router on ch1 another on ch3 and another on ch11


So you set yours to channel 7 and don't let it move. Stake out your territory, because those other routers are probably switching channels constantly. Also, you should be aware of overlapping coverage, or "blind spots" when routers conflict with each other, no matter what channel they are on. It has to do with the ACK signal from sent packages, there's a wiki page somewhere. can't recall the topic.
User avatar
bw123
 
Posts: 2473
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Wifi connection dropping, is there a cure?

Postby gmlox » 2016-11-23 00:36

Hello,
I'm 99,9% confident this problem is related to IPv6 recursive DNS server discovery daemon.
problem is that this program contains a possible bug in current debian release
which overrides resolv.conf file, instead of appending nameserver to the file...
in short your network is working but DNS does not.

To resolve this issue you'll need to remove this package, and possibly resolvconf too if that won't work, and then connect manually to the network...
For now remove rdnssd buggy package:
Code: Select all
sudo apt-get purge rdnssd
sudo apt-get autoremove --purge
sudo apt-get check

#if error then
Code: Select all
sudo apt-get -f install

#else
Code: Select all
sudo apt-get update
sudo apt-get dist upgrade

#check state of DNS server
Code: Select all
sudo nano /etc/resolv.conf

#edit resolv.conf file, posibly remove invalid entries
#for example, you can use following entry (yandex DNS)
Code: Select all
nameserver 77.88.8.8
nameserver 77.88.8.1


at this point connect to the network as you usually do.
if unable to connect reboot interface and networking service.
for instance (replace wlan0 with your card):

get dev name
Code: Select all
sudo iw dev

reboot net
Code: Select all
sudo service networking restart
sudo ifdown wlan0
sudo ifup wlan0


now either connect with network manager such as wicd or do it on command line
Code: Select all
sudo wpa_passphrase "your network name" network_password > /etc/wpa.conf
sudo wpa_supplicant -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf

#ran new shell and:
Code: Select all
sudo dhclient -v wlan0


at this point your network should be working, try to surf and see how it goes.
if it does not work and you used command line to connect (wpa_supplicant) then,
editing /etc/network/interfaces/ should do a trick:

Code: Select all
sudo nano /etc/network/interfaces


for example see this entry for wireless card named wlan0

Code: Select all
# The primary wireless network interface
auto wlan0
iface wlan0 inet static
address 192.168.1.100
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 77.88.8.8
dns-nameservers 77.88.8.1

Please not that if you have resolvconf package installed the dns entry is required, because this is
where resolvconf looks for DNS address, and the puts that into /etc/resolv.conf file

If this doesn't solve your issue, remove resolvconf:
Code: Select all
sudo apt-get purge resolvconf
sudo nano /etc/resolv.conf

#now input this:
Code: Select all
nameserver 77.88.8.8
nameserver 77.88.8.1


remove dns-namservers entries from /etc/network/interfaces file, and the run:
reboot net
Code: Select all
sudo service networking restart
sudo ifdown wlan0
sudo ifup wlan0


Now again try to surf and see how it goes.
if still network does not work, reboot system and try to connect with either wicd or on command line
with wpa_supplicant and dhclient only as shown above.

If still no luck, or you have another problem or question, then please provide info on interface, driver and network setup.
then we'll see what to do next.
gmlox
 
Posts: 32
Joined: 2016-11-14 16:41

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 00:53

That's quite a bit to digest. :shock:
I'm curious though, since my router handles dns and I have ipv6 ignored in network manager does it all still apply. I'm fairly new to this so I'm not questioning your knowledge, just trying to expand mine.
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby gmlox » 2016-11-23 01:04

Yes, it does apply, regardless if IPv6 is ignored and regardless of DNS status in initial stage.

When client connects to router, it indeed receives DNS replies from router and is able to communicate with outside world, but not for very long time because it is not known at which time rdnssd will "corrupt" the resolver, and when it does the network will not work any more because your PC will try to reach router over IPv6 which you do not have enabled.
gmlox
 
Posts: 32
Joined: 2016-11-14 16:41

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 01:08

bw123 wrote:
my router on ch1 another on ch3 and another on ch11


So you set yours to channel 7 and don't let it move. Stake out your territory, because those other routers are probably switching channels constantly. Also, you should be aware of overlapping coverage, or "blind spots" when routers conflict with each other, no matter what channel they are on. It has to do with the ACK signal from sent packages, there's a wiki page somewhere. can't recall the topic.


I chose ch1 and locked it there because my understanding is that 1,6 and 11 have the least amount of overlap with the other channels. The other two pc's in the house with wireless connections are not having an issue, just the one running Debian.
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 01:29

gmlox wrote:Hello,

To resolve this issue you'll need to remove this package, and possibly resolvconf too if that won't work, and then connect manually to the network...
.


Well....

Code: Select all
bryan@zeus:~$ sudo apt-get purge rdnssd
[sudo] password for bryan:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'rdnssd' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  espeak-data gir1.2-wnck-3.0 libbrlapi0.6 libdotconf0 libespeak1
  liblouis-data liblouis2 libsonic0 libspeechd2 python3-brlapi python3-louis
  python3-pyatspi python3-speechd python3-xdg speech-dispatcher
  speech-dispatcher-audio-plugins xbrlapi
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bryan@zeus:~$
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby gmlox » 2016-11-23 02:10

I had this very issue my self, and that made me sure about resolving the issue but obviously I was wrong.

It could be a driver, realtek is known with these chips not working well without proper driver, and, unfortunately they don't provide a driver on their site :?
What I would do is compile wirless driver from backports, they usually have good working drivers.
https://backports.wiki.kernel.org/index.php/Main_Page
gmlox
 
Posts: 32
Joined: 2016-11-14 16:41

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 03:01

That may be the next step in my continuing linux education. I am going to cheat and install an Atheros wifi card to see if it changes things.
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby v&n » 2016-11-23 11:52

bryanmc wrote:I am going to cheat and install an Atheros wifi card to see if it changes things.

Before that, I suggest trying one more thing, quite common and easy to try. That is, add another parameter to your existing rtl8192.conf file -
Code: Select all
# sed -i '/rtl8192ce/ s/.*/& swenc=1/' /etc/modprobe.d/rtl8192.conf

Followed by a reload of the driver or a reboot.

Also, you seem to know about your router settings, maybe have even set them manually. Try these settings in the router -
  • Try fixing channel width to 20 MHz only instead of 20/40 MHz auto mode
  • If it is a dual band router, try disabling 5GHz support for a test. Fix it to 2.4 GHz only.
  • Try fixing the channel to ch.6. Apparently (from the report) it is not being used by any neighbouring APs, while current ch.1 is being used by at least one other AP and its signal is strong enough to cause significant interference -
    bryanmc wrote:
    Code: Select all
    iwlist scan ~~~~~~~~~~~~~~~~~~~~~~~~

    wlan1     Scan completed :
              Cell 01 - Address: <MAC C-01 lchouse>
                        Channel:1
    .... <snip> ....
              Cell 02 - Address: <MAC C-02 DIRECT-roku-17284E>
                        Channel:1
                        Frequency:2.412 GHz (Channel 1)
                        Quality=67/70  Signal level=-43 dBm 
  • Try toggling "WMM" (usually found under QoS settings) state to on/off.
Reboot the router after saving the changes to make sure they take effect properly. A tired brain can only think so far for now..
v&n
 
Posts: 595
Joined: 2015-02-04 02:57

Re: Wifi connection dropping, is there a cure?

Postby bryanmc » 2016-11-23 15:51

I think there may be a problem with the command you wrote. Initially the response was rtl1892.conf no such file or directory, so I went into modprobe.d, created the file and re-ran the command. It didn't error out, but it didn't write anything to the file either.

Your patience and assistance are both greatly appreciated.
bryanmc
 
Posts: 70
Joined: 2016-11-18 12:21

Re: Wifi connection dropping, is there a cure?

Postby wartisoc » 2016-11-23 17:18

Have you tried disabling the network manager service and connecting manually? Doing that has helped me in the past (can't explain why, though).
wartisoc
 
Posts: 40
Joined: 2016-06-28 18:17

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable