Re: [DNG] Wifi dropping ramdomly

2022-08-22 Thread Bob Proulx via Dng
Jim Murphy via Dng wrote:
> My wifi connection drops randomly. It can sometimes run for days.
> Other times it may drop within hours of a reboot. There seems to be
> no pattern to when. Initially rebooting seemed to be the only way to
> get the network back. Under xfce4 disabling the wifi and/or network,
> then re-enabling them had no effect. After many google searches
> I finally found at:
>
> https://askubuntu.com/questions/26054/how-to-restart-wifi-interface-without-rebooting-it-drops-connection
>
> I now have the alias(zsh):
>
> alias reload_network_module='sudo modprobe -r iwldvm && sudo modprobe
> iwldvm'
>
> to re-enable the wifi. So far this has restored the network connection
> without having to reboot. Strange as it may seem, the wifi  connection
> has stopped dropping as frequently since reloading the iwldvm module
> this way.?? FWIW

Is this problematic WiFi Access Point encrypted using WPA/WPA2?  Or is
it an open not encrypted Access Point?

I find that WPA/WPA2 APs are perfectly reliable using wpasupplicant
which will handle glitches and reconnecting without problem.  But I
find that open APs are problematic.  They will often glitch and drop
the connection.  And since those are connected to directly from the
Linux kernel the connection simply drops.  The WiFi manager utility
monitoring the connection must notice this and retry the connection.
Being a glitch the retry always succeeds.  But how well this is
handled depends upon the connection manager.

Up until now I have been using WICD.  But of course as all of us know
that is a python 2 program and as we upgrade from Beowulf to Chimaera
we wicd users are forced to find alternatives.  The connman network
connection manager is often recommended for those like me who have
been frustrated by network-manager.

> Computer:  ThinkPad X230
> configuration: broadcast=yes driver=iwlwifi

I normally use an X220 with the same driver.  I am using the
firmware-iwlwifi package from non-free.  I have no problems with
WPA/WPA2 sites.  And some open APs are perfectly reliable.  While
other open APs glitch and drop the connection very often.  The wicd
manager handles these seemlessly.

>  % ls /lib/modules/**/iwldvm.ko
> /lib/modules/5.10.0-10-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
> /lib/modules/5.10.0-9-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko

That's the free software portion that is in Linux kernel main.
However to install the iwlwifi driver you will need the files from the
firmware-iwlwifi package.  Do you have it installed?

dpkg -l | grep firmware-iwlwifi

If not then enable the non-free suite and install it.

apt-get install firmware-iwlwifi

> If anyone has any advice it would be appreciated. Since I have a
> workaround it is just an annoyance.

For some debugging one can run ip monitor and see the status changes
of network devices as they happen.

ip monitor

And then for example I might associate with an open AP.

sudo iw dev wlan0 connect "Starbucks WiFi"

And then I might see this from "ip monitor".  Also similar data is
logged to the /var/log/syslog file.

10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b STALE
10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b PROBE
10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b REACHABLE
10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b STALE
10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b PROBE
10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b REACHABLE

Everything is all good.  And then see this.

Deleted 10.0.0.1 dev wlan0 lladdr 74:83:c2:78:b0:8b REACHABLE
Deleted ff02::2 dev wlan0 lladdr 33:33:00:00:00:02 NOARP
Deleted ff02::16 dev wlan0 lladdr 33:33:00:00:00:16 NOARP
2: wlan0:  mtu 1500 qdisc noqueue state 
DOWN group default
link/ether 20:1e:88:78:61:94 brd ff:ff:ff:ff:ff:ff
2: wlan0: 
link/ether
10.0.0.1 dev wlan0  FAILED
10.0.0.1 dev wlan0  FAILED
10.0.0.1 dev wlan0  FAILED
10.0.0.1 dev wlan0  FAILED
10.0.0.1 dev wlan0  FAILED
Deleted 2: wlan0inet 10.0.8.118/20 brd 10.0.15.255 scope global dynamic 
wlan0
   valid_lft 3826sec preferred_lft 3826sec
Deleted 10.0.0.0/20 dev wlan0 proto kernel scope link src 10.0.8.118 
linkdown
Deleted broadcast 10.0.15.255 dev wlan0 table local proto kernel scope link 
src 10.0.8.118 linkdown
Deleted local 10.0.8.118 dev wlan0 table local proto kernel scope host src 
10.0.8.118
Deleted 10.0.0.1 dev wlan0  INCOMPLETE

A glitch has caused the connection to the open access point to fail
and the connection was dropped.  I find that the local Starbucks WiFi
does this very often.  Another local coffee shop with an open AP
however is absolutely reliable and never drops the connection.

A network connection manager would retry the connection and that would
immediately succeed.  Here I am working the task manually so I am the
connection manager.

sudo iw dev wlan0 connect "Starbucks WiFi"

That's normally handled automatically by 

Re: [DNG] Wifi dropping ramdomly

2022-08-17 Thread Syeed Ali
On Wed, 17 Aug 2022 06:32:18 -0400
Hendrik Boom  wrote:

> This is likely not your problem, but I've found that wifi shuts down
> on one of the older and slower local wifi frequencies whenever my
> microwave oven is in use.

I had a microwave mess with bluetooth, but it was hard to reproduce.  I
got a new microwave.  That's unrelated, but probably for the best.  :)
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Wifi dropping ramdomly

2022-08-17 Thread Antony Stone
On Wednesday 17 August 2022 at 12:32:18, Hendrik Boom wrote:

> I've found that wifi shuts down on one of the older and slower local wifi
> frequencies whenever my microwave oven is in use.

I would suggest you get someone to check the seals on your oven if it's 
leaking that much radiation.


Antony.

-- 
My life is going completely according to plan.

I do sometimes wish it had been *my* plan, though.

   Please reply to the list;
 please *don't* CC me.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Wifi dropping ramdomly

2022-08-17 Thread Hendrik Boom
On Tue, Aug 16, 2022 at 06:26:20AM -0500, Jim Murphy via Dng wrote:
> Hi,
> 
> My wifi connection drops randomly. It can sometimes run for days.
> Other times it may drop within hours of a reboot. There seems to be
> no pattern to when.

This is likely not your problem, but I've found that wifi shuts down on one of 
the older and slower local wifi frequencies whenever my microwave oven is in 
use.

-- hendrik

> Initially rebooting seemed to be the only way to
> get the network back. Under xfce4 disabling the wifi and/or network,
> then re-enabling them had no effect. After many google searches
> I finally found at:
> 
> https://askubuntu.com/questions/26054/how-to-restart-wifi-interface-without-rebooting-it-drops-connection
> 
> I now have the alias(zsh):
> 
> alias reload_network_module='sudo modprobe -r iwldvm && sudo modprobe
> iwldvm'
> 
> to re-enable the wifi. So far this has restored the network connection
> without having to reboot. Strange as it may seem, the wifi  connection
> has stopped dropping as frequently since reloading the iwldvm module
> this way.?? FWIW
> 
> /etc/os-release:
> PRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"
> NAME="Devuan GNU/Linux"
> VERSION_ID="4"
> VERSION="4 (chimaera)"
> VERSION_CODENAME="chimaera"
> ID=devuan
> ID_LIKE=debian
> HOME_URL="https://www.devuan.org/;
> SUPPORT_URL="https://devuan.org/os/community;
> BUG_REPORT_URL="https://bugs.devuan.org/;
> 
> /etc/debian_version:
> 11.1
> 
> Computer:  ThinkPad X230
> 
> *-pci:1
>  description: PCI bridge
>  product: 7 Series/C210 Series Chipset Family PCI Express Root Port 2
>  vendor: Intel Corporation
>  physical id: 1c.1
>  bus info: pci@:00:1c.1
>  version: c4
>  width: 32 bits
>  clock: 33MHz
>  capabilities: pci normal_decode bus_master cap_list
>  configuration: driver=pcieport
>  resources: irq:17 memory:f1c0-f1cf
>*-network
> description: Wireless interface
> product: Centrino Advanced-N 6205 [Taylor Peak]
> vendor: Intel Corporation
> physical id: 0
> bus info: pci@:03:00.0
> logical name: wlan0
> version: 34
> serial:  "redacted"
> width: 64 bits
> clock: 33MHz
> capabilities: bus_master cap_list ethernet physical wireless
> configuration: broadcast=yes driver=iwlwifi
> driverversion=5.10.0-10-amd64 firmware=18.168.6.1 6000g2a-6.ucode
> ip=192.168.0.102 latency=0 link=yes multicast=yes wireless=IEEE 802.11
> resources: irq:29 memory:f1c0-f1c01fff
> 
>  % ls /lib/modules/**/iwldvm.ko
> /lib/modules/5.10.0-10-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
> /lib/modules/5.10.0-9-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
> 
> Not sure if this is a hardware or software or firmware issue. No other
> devices/systems are having this issue on the same wifi network.
> 
> If anyone has any advice it would be appreciated. Since I have a
> workaround it is just an annoyance.
> 
> Regards,
> 
> Jim Murphy

> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Wifi dropping ramdomly

2022-08-16 Thread lists

Only one simple advice, take a deep breath, maybe you have this installed: 
https://xkcd.com/2659/
Sorry for the noise


--- Original Message ---
On Tuesday, August 16th, 2022 at 13:26, Jim Murphy via Dng  
wrote:


> Hi,
> 
> My wifi connection drops randomly. It can sometimes run for days.
> Other times it may drop within hours of a reboot. There seems to be
> no pattern to when. Initially rebooting seemed to be the only way to
> get the network back. Under xfce4 disabling the wifi and/or network,
> then re-enabling them had no effect. After many google searches
> I finally found at:
> 
> https://askubuntu.com/questions/26054/how-to-restart-wifi-interface-without-rebooting-it-drops-connection
> 
> I now have the alias(zsh):
> 
> alias reload_network_module='sudo modprobe -r iwldvm && sudo modprobe iwldvm'
> 
> to re-enable the wifi. So far this has restored the network connection
> without having to reboot. Strange as it may seem, the wifi connection
> has stopped dropping as frequently since reloading the iwldvm module
> this way.?? FWIW
> 
> /etc/os-release:
> PRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"
> NAME="Devuan GNU/Linux"
> VERSION_ID="4"
> VERSION="4 (chimaera)"
> VERSION_CODENAME="chimaera"
> ID=devuan
> ID_LIKE=debian
> HOME_URL="https://www.devuan.org/;
> SUPPORT_URL="https://devuan.org/os/community;
> BUG_REPORT_URL="https://bugs.devuan.org/;
> 
> /etc/debian_version:
> 11.1
> 
> Computer: ThinkPad X230
> 
> *-pci:1
> description: PCI bridge
> product: 7 Series/C210 Series Chipset Family PCI Express Root Port 2
> vendor: Intel Corporation
> physical id: 1c.1
> bus info: pci@:00:1c.1
> version: c4
> width: 32 bits
> clock: 33MHz
> capabilities: pci normal_decode bus_master cap_list
> configuration: driver=pcieport
> resources: irq:17 memory:f1c0-f1cf
> *-network
> description: Wireless interface
> product: Centrino Advanced-N 6205 [Taylor Peak]
> vendor: Intel Corporation
> physical id: 0
> bus info: pci@:03:00.0
> logical name: wlan0
> version: 34
> serial: "redacted"
> width: 64 bits
> clock: 33MHz
> capabilities: bus_master cap_list ethernet physical wireless
> configuration: broadcast=yes driver=iwlwifi driverversion=5.10.0-10-amd64 
> firmware=18.168.6.1 6000g2a-6.ucode ip=192.168.0.102 latency=0 link=yes 
> multicast=yes wireless=IEEE 802.11
> resources: irq:29 memory:f1c0-f1c01fff
> 
> % ls /lib/modules/**/iwldvm.ko
> /lib/modules/5.10.0-10-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
> /lib/modules/5.10.0-9-amd64/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
> 
> Not sure if this is a hardware or software or firmware issue. No other
> devices/systems are having this issue on the same wifi network.
> 
> If anyone has any advice it would be appreciated. Since I have a
> workaround it is just an annoyance.
> 
> Regards,
> 
> Jim Murphy
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng