Wi-fi disconnecting

If none of the more specific forums is the right place to ask

Wi-fi disconnecting

Postby vitorfhc » 2018-10-21 15:56

I am having issues with my Debian, it keeps disconnecting me from my wi-fi, not exactly disconnecting. I tested with two different Dells, mine is an Inspiron.
I have Debian 9 running on it and every 10 to 20 minutes the internet stops working, it shows it still connected to the wi-fi but can't even grab Google. It comes back if I disconnect and connect again to the network or turn on then off the airplane mode.
Would appreciate some insights or possible logs I could give to help out finding the solution.

Edit: worth mentioning that it works fine with other wi-fi, it is my home wi-fi which gives me trouble.
Last edited by vitorfhc on 2018-10-22 17:53, edited 1 time in total.
vitorfhc
 
Posts: 4
Joined: 2018-06-04 23:11

Re: Wi-fi disconnecting

Postby bw123 » 2018-10-21 16:34

10-20 minutes is pretty good without tweaking anything. I've used several wifi devices and it seems like they all need some extra attention. It's one of my least favorite things to do. Here's a quick rundown, in no particular order:

Reset the router to default settings, allow all protocols, a,b, g, n

If you are using Networkmanager, try ifup instead (debian wiki)

If you are using DHCP, try static to take that off the possibles list.

Check rfkill or systemd is not blocking the device for whatever reason (daemon.log)

ID the chip (lspci -nn), make sure firmware is current and matches kernel (debian wiki)

Check what module(s) it uses (lspci -k) and the parameters (modinfo -F parm) and verify the settings (/sys/module/,,,/parameters)

Tweak around with the parameters or look them up on the internet with the modulename

Connect and don't do anything for awhile, when it's stable all you should see is the "rekeying.." msg about every ten minutes
Code: Select all
# watch -n 30 tail /var/log/daemon.log


Be prepared to drink heavily, and look a lot of stuff up, it usually takes awhile.

good luck
User avatar
bw123
 
Posts: 3517
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Wi-fi disconnecting

Postby Bulkley » 2018-10-21 17:33

it shows it still connected to the wi-fi but can't even grab Google


That could very easily be something unrelated to Debian. I have seen that several times with poor Internet supply. Once the cause was a nearby road construction that dug up the Internet ADSL feed leaving only a long circuitous alternate. Another time I solved the problem by turning the router I had then by 90 degrees. Amazingly, some Wifi routers are directional. Check to make sure your router has an exclusive connection; ie: make sure the kid next door isn't playing on-line games on your slice of the feed. Hotels and restaurants have notoriously poor Wifi. The following link may be out of date for some but it has several good suggestions.

Is Your Wireless Connection Dropping?

From the OS side, make sure you don't have a power saver interfering. Also, IPv6 can cause issues, usually slowing connections.
Bulkley
 
Posts: 5645
Joined: 2006-02-11 18:35

Re: Wi-fi disconnecting

Postby stevepusser » 2018-10-21 18:38

Get the exact chipset for your wi-fi and websearch for the same problem on Debian, Ubuntu, and other distros.

Here's a wi-fi troubleshooting script that's also good to run on Debian: https://github.com/UbuntuForums/wireless-info

Odds are you have a Broadcom chipset and you just have to set up a conf file to disable the automatic power saving "feature".
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10122
Joined: 2009-10-06 05:53

Re: Wi-fi disconnecting

Postby debiman » 2018-10-22 17:46

there's always this simple test:
Code: Select all
ping -c5 google.com
ping -c5 8.8.8.8

if the second succeeds, but not the first, then it's a DNS problem.
User avatar
debiman
 
Posts: 3015
Joined: 2013-03-12 07:18

Re: Wi-fi disconnecting

Postby vitorfhc » 2018-10-22 17:51

Bulkley wrote:
it shows it still connected to the wi-fi but can't even grab Google


That could very easily be something unrelated to Debian. I have seen that several times with poor Internet supply. Once the cause was a nearby road construction that dug up the Internet ADSL feed leaving only a long circuitous alternate. Another time I solved the problem by turning the router I had then by 90 degrees. Amazingly, some Wifi routers are directional. Check to make sure your router has an exclusive connection; ie: make sure the kid next door isn't playing on-line games on your slice of the feed. Hotels and restaurants have notoriously poor Wifi. The following link may be out of date for some but it has several good suggestions.

Is Your Wireless Connection Dropping?

From the OS side, make sure you don't have a power saver interfering. Also, IPv6 can cause issues, usually slowing connections.


It is OS related, I have other notebook which I run Windows for playing games and it is fine. I had Ubuntu and Arch on this same notebook which is giving me problemas now and no problem at all.
vitorfhc
 
Posts: 4
Joined: 2018-06-04 23:11

Re: Wi-fi disconnecting

Postby vitorfhc » 2018-10-22 17:52

debiman wrote:there's always this simple test:
Code: Select all
ping -c5 google.com
ping -c5 8.8.8.8

if the second succeeds, but not the first, then it's a DNS problem.


Yeah, both worked fine, already knew but just to be sure I did it.
vitorfhc
 
Posts: 4
Joined: 2018-06-04 23:11

Re: Wi-fi disconnecting

Postby bw123 » 2018-10-22 18:55

vitorfhc wrote:
Edit: worth mentioning that it works fine with other wi-fi, it is my home wi-fi which gives me trouble.


yeah, it's all a big box of tinker toys. There are so many wifi doodads, devices, protocols, and configurations it really sucks when you find one that doesn't play nice. It happens a lot on the other OS also.

One thing that doesn't hurt is reboot the router/ap. Maybe try with no other devices connected, or only G enabled, or only N. Bluetooth can be an issue also, try disabling it if you don't need it.

Interference can still be an issue, because that was then, this is now when you ran ubuntu and arch. The other laptop with windows isn't relevant to interference on *this* one with debian. I scan the neighborhood by script once a day and take a look when I get a lot of disconnects. Some people on my block have 5 or six wireless devices, it gets crowded out here. Why does everybody have a wireless printer screaming out it's name on every damn channel, 24 hrs a day? Do you really need a wireless printer online at 4AM in the morning? Well, probably because they are idiots, and don;t know any better. PLUG THE PRINTER INTO THE COMPUTER. This used to be called 'walking on my channel' with CB radios. People don't even know wtf equipment they have or how it works.

You didn't follow up with any hardware details, so I'm guessing you don't want to tell people the wireless chip and the router. Or perhaps you don't know wtf equipment you have...

EDIT: https://www.werockyourweb.com/your-wire ... -dropping/ good link!
EDIT2: oh yeah, going to sleep and waking up, or running on battery could have a whole new set of problems...
User avatar
bw123
 
Posts: 3517
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Wi-fi disconnecting

Postby Bulkley » 2018-10-22 21:08

vitorfhc wrote:It is OS related, . . .


Then do what stevepusser said.
Bulkley
 
Posts: 5645
Joined: 2006-02-11 18:35


Return to General Questions

Who is online

Users browsing this forum: arochester and 9 guests

fashionable