Network issues on laptop, issue with iwd?
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues. I've got it set up with iwd and connected to my home wifi, but it's having a bunch of issues. It keeps dropping the connection, and when it doesn't do that, it really struggles with resolving addresses. I also tested going to 1.1.1.1 and even that had issues, so it's not just DNS. I haven't had any issues with my other devices on the wifi, so I'm not sure if it's that. I tried restarting it as well, which didn't help. Could it be an issue with iwd? Hoping for something that can lead me in the right direction, this is getting quite frustrating. Best, Lucie
Did you install and enable dhcpcd? That helps after doing all of the iwd stuff usually. -- Jude <jdashiel at panix dot com> "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940. On Thu, 22 Aug 2024, Lucie Scarlet wrote:
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues.
I've got it set up with iwd and connected to my home wifi, but it's having a bunch of issues. It keeps dropping the connection, and when it doesn't do that, it really struggles with resolving addresses. I also tested going to 1.1.1.1 and even that had issues, so it's not just DNS.
I haven't had any issues with my other devices on the wifi, so I'm not sure if it's that. I tried restarting it as well, which didn't help.
Could it be an issue with iwd?
Hoping for something that can lead me in the right direction, this is getting quite frustrating.
Best, Lucie
I tried installing and enabling dhcpcd, but it doesn't seem to make a difference. /Lucie On Thursday, August 22nd, 2024 at 6:01 PM, Jude DaShiell <jdashiel@panix.com> wrote:
Did you install and enable dhcpcd? That helps after doing all of the iwd stuff usually.
-- Jude <jdashiel at panix dot com>
"There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940.
On Thu, 22 Aug 2024, Lucie Scarlet wrote:
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues.
I've got it set up with iwd and connected to my home wifi, but it's having a bunch of issues. It keeps dropping the connection, and when it doesn't do that, it really struggles with resolving addresses. I also tested going to 1.1.1.1 and even that had issues, so it's not just DNS.
I haven't had any issues with my other devices on the wifi, so I'm not sure if it's that. I tried restarting it as well, which didn't help.
Could it be an issue with iwd?
Hoping for something that can lead me in the right direction, this is getting quite frustrating.
Best, Lucie
Okay, now try running dhcpcd. -- Jude <jdashiel at panix dot com> "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940. On Thu, 22 Aug 2024, Lucie Scarlet wrote:
I tried installing and enabling dhcpcd, but it doesn't seem to make a difference.
/Lucie
On Thursday, August 22nd, 2024 at 6:01 PM, Jude DaShiell <jdashiel@panix.com> wrote:
Did you install and enable dhcpcd? That helps after doing all of the iwd stuff usually.
-- Jude <jdashiel at panix dot com>
"There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940.
On Thu, 22 Aug 2024, Lucie Scarlet wrote:
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues.
I've got it set up with iwd and connected to my home wifi, but it's having a bunch of issues. It keeps dropping the connection, and when it doesn't do that, it really struggles with resolving addresses. I also tested going to 1.1.1.1 and even that had issues, so it's not just DNS.
I haven't had any issues with my other devices on the wifi, so I'm not sure if it's that. I tried restarting it as well, which didn't help.
Could it be an issue with iwd?
Hoping for something that can lead me in the right direction, this is getting quite frustrating.
Best, Lucie
On Thu, 2024-08-22 at 15:23 +0000, Lucie Scarlet wrote:
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues.
Hi. I am using iwd with network manager on a few laptops without any issues. But of course things vary by hardware, access point etc. So it would be helpful if you can provide some additional info on your specific setup. 1) Do you configure network using iwd directly or using iwd as backend for network manager? Or something else? 2) hardware: something like lspci -v | grep -i -A6 net 3) When on wifi how do things look: iw dev wlan0 link | grep -E 'freq|signal|bitrate' iwctl station wlan0 show | grep -E 'Security|RxMode|TxMode' 4) What about journal - anything logged about networking problems? 5) is your wired connection solid ? gene -- Gene
On Thursday, August 22nd, 2024 at 6:07 PM, Genes Lists <lists@sapience.com> wrote:
1) Do you configure network using iwd directly or using iwd as backend for network manager? Or something else? I am using iwctl directly.
2) hardware: something like lspci -v | grep -i -A6 net [lucie@koumakan ~]$ lspci -v | grep -i -A6 net pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted 01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller Subsystem: Hewlett-Packard Company Device 88e3 Flags: bus master, fast devsel, latency 0, IRQ 115, IOMMU group 11 I/O ports at 6000 [size=256] Memory at b4900000 (64-bit, non-prefetchable) [size=1M] Capabilities: <access denied> Kernel driver in use: rtw89_8852be
3) When on wifi how do things look: iw dev wlan0 link | grep -E 'freq|signal|bitrate' iwctl station wlan0 show | grep -E 'Security|RxMode|TxMode' [lucie@koumakan ~]$ iw dev wlan0 link | grep -E 'freq|signal|bitrate' freq: 2452.0 signal: -37 dBm rx bitrate: 270.0 MBit/s MCS 15 40MHz tx bitrate: 300.0 MBit/s MCS 15 40MHz short GI [lucie@koumakan ~]$ iwctl station wlan0 show | grep -E 'Security|RxMode|TxMode' Security WPA2-Personal RxMode 802.11n TxMode 802.11n
4) What about journal - anything logged about networking problems? Yes, I do see a bunch of deauthentication events: "Received Deauthentication event, reason: 6, from_ap: true event: disconnect-info, reason: 6" and a couple of these in between: "Received Deauthentication event, reason: 3, from_ap: false event: disconnect-info, reason: 3"
5) is your wired connection solid ? Using USB tethering and disconnecting wifi seems to be working very stable, so I'd say it's solid, yes.
/Lucie
On Thu, 2024-08-22 at 16:29 +0000, Lucie Scarlet wrote:
Thats helpful - kernel is 6.10.6 ? Do you have other devices which are working well (phone or other computer or whatever) with the same wifi AP? In past when I've seen those kind of errors being logged its either been a router issue or driver bug or NM going nuts - but you're not using NM so that one is ruled out. So lets try - reboot the wifi AP / router. I checked kernel commits and last one for the rtw89_8852be driver was already in 6.10.6. linux firmware is pretty up to date as well. I also note that your router is connected using 802.11n on 2.4 GHz while your laptop is capable of 802.11ax Your signal strength is super high - possibly too high. I'd make sure laptop is at least a few feet from the router. Does the router support 5Ghz band? If so are the SSID for 2.4 and 5 Ghz the same or different?
-- Gene
On Thursday, August 22nd, 2024 at 6:49 PM, Genes Listslists@sapience.comwrote:
Do you have other devices which are working well (phone or other computer or whatever) with the same wifi AP?
Yes I do, my phone and my Xbox are both on the same AP and working perfectly fine.
So lets try
- reboot the wifi AP / router.
I tried that earlier, didn't help at all.
I also note that your router is connected using 802.11n on 2.4 GHz while your laptop is capable of 802.11ax Your signal strength is super high - possibly too high. I'd make sure laptop is at least a few feet from the router.
Yeah, I can see it's high, but that would be the case for everything else too. My AP is right behind my desk (and I can't easily move it)
Does the router support 5Ghz band? If so are the SSID for 2.4 and 5 Ghz the same or different?
Sadly, no.
Thats helpful - kernel is 6.10.6 ?
Yes.
I suppose, if you're comfortable and have the time, you can always build iwd from git and try that version[1]. But perhaps the odds of a router related issue seem higher to me than iwd issues.
I don't have much experience with PKGBUILD, but I could try. /Lucie
On Fri, 2024-08-23 at 14:44 +0000, Lucie Scarlet wrote:
...
build iwd from git and try that version[1]. But perhaps the odds of ... I don't have much experience with PKGBUILD, but I could try.
- Random thought - there isn't a copy of wpa_supplicant running in addition to iwd by chance? Assume not, but if there is that would be very problematic. - iwd-git: I put a PKGBUILD on my gh blog: https://github.com/gene-git/blog/tree/master/arch-package/iwd-git Instructions are in PKGBUILD file. Copy the files, build and install package. # To copy using git (only want the iwd-git not the entire repo). git clone --no-checkout git@github.com:gene-git/blog.git cd blog git sparse-checkout init git sparse-checkout set arch-package/iwd-git git checkout arch-package/iwd-git # Build cd arch-package/iwd-git/src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd .. # Build : makepkg # Install the new iwd-git-xx.zst file : pacman -U iwd-git-xxx.zst # To go back to the arch package : pacman -Syu iwd -- Gene
Another random thought - Have you used any performance and/or battery power saving tools to 'tune' the system? They can sometimes lead to little quirks. One indicator would be that the problem only happens on battery but all is fine when plugged in to A/C power. Gene
Hi, So it turns out that I'm still having some issues, so I'm trying this method. I'm having quite some trouble with this though. Firstly, I can't get the sparse-checkout to work. [lucie@koumakan blog]$ git sparse-checkout init [lucie@koumakan blog]$ git sparse-checkout set arch-package/iwd-git [lucie@koumakan blog]$ git checkout arch-package/iwd-git error: pathspec 'arch-package/iwd-git' did not match any file(s) known to git I'm then downloading the whole repository. Going to ./arch-package/iwd-git, I don't see any src folder in there? Even if I create it myself and clone ell and iwd inside there, I get this issue with makepkg [lucie@koumakan iwd-git]$ makepkg ==> ERROR: install file (iwd.install) does not exist or is not a regular file. Is there something missing or am I doing something wrong? Lucie Scarlet lucie@scarlet.moe https://scarlet.moe On 8/23/24 18:25, Genes Lists wrote:
On Fri, 2024-08-23 at 14:44 +0000, Lucie Scarlet wrote:
...
build iwd from git and try that version[1]. But perhaps the odds of ... I don't have much experience with PKGBUILD, but I could try.
- Random thought - there isn't a copy of wpa_supplicant running in addition to iwd by chance? Assume not, but if there is that would be very problematic.
- iwd-git: I put a PKGBUILD on my gh blog:
https://github.com/gene-git/blog/tree/master/arch-package/iwd-git
Instructions are in PKGBUILD file. Copy the files, build and install package.
# To copy using git (only want the iwd-git not the entire repo). git clone --no-checkout git@github.com:gene-git/blog.git cd blog git sparse-checkout init git sparse-checkout set arch-package/iwd-git git checkout arch-package/iwd-git
# Build cd arch-package/iwd-git/src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd ..
# Build : makepkg
# Install the new iwd-git-xx.zst file : pacman -U iwd-git-xxx.zst
# To go back to the arch package : pacman -Syu iwd
On Thu, 2024-08-29 at 18:43 +0000, Lucie Scarlet wrote:
Hi,
1) makepkg fail: the PKGBUILD had unused line So sorry about that - the downside of "cleaning up" before pushing ... and not testing 😞 Remove the line "install=iwd.install" or copy the updated version of PKGBUILD 1) git sparse seems to not work with github - or perhaps its flaky working sometimes and not others. New instructions In a working directory, download copies of the 3 files ChangeLog gen-changelog PKGBUILD Then: mkdir src cd src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd .. makepkg Hopefully this works for you gene
Hi, Sadly, it doesn't seem to work. It's still having drops even on the version you gave me. Starting to wonder if I should try reinstalling, but that also doesn't quite make sense to me... Lucie On 8/30/2024 1:51 AM, Genes Lists wrote:
On Thu, 2024-08-29 at 18:43 +0000, Lucie Scarlet wrote:
Hi,
1) makepkg fail:
the PKGBUILD had unused line So sorry about that - the downside of "cleaning up" before pushing ... and not testing 😞 Remove the line "install=iwd.install" or copy the updated version of PKGBUILD
1) git sparse seems to not work with github - or perhaps its flaky working sometimes and not others.
New instructions
In a working directory, download copies of the 3 files ChangeLog gen-changelog PKGBUILD
Then: mkdir src cd src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd ..
makepkg
Hopefully this works for you
gene
instead of reinstalling, why not move to wpa_supplicant and drop iwd? On Sun, Sep 1, 2024, 12:06 Lucie Scarlet <lucie@scarlet.moe> wrote:
Hi, Sadly, it doesn't seem to work. It's still having drops even on the version you gave me.
Starting to wonder if I should try reinstalling, but that also doesn't quite make sense to me...
Lucie
On 8/30/2024 1:51 AM, Genes Lists wrote:
On Thu, 2024-08-29 at 18:43 +0000, Lucie Scarlet wrote:
Hi,
1) makepkg fail:
the PKGBUILD had unused line So sorry about that - the downside of "cleaning up" before pushing ... and not testing 😞 Remove the line "install=iwd.install" or copy the updated version of PKGBUILD
1) git sparse seems to not work with github - or perhaps its flaky working sometimes and not others.
New instructions
In a working directory, download copies of the 3 files ChangeLog gen-changelog PKGBUILD
Then: mkdir src cd src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd ..
makepkg
Hopefully this works for you
gene
On Sun, 2024-09-01 at 14:30 +0000, Lucie Scarlet wrote:
Hi, Sadly, it doesn't seem to work. It's still having drops even on the version you gave me.
Starting to wonder if I should try reinstalling, but that also doesn't quite make sense to me...
Lucie
Sorry to hear. That kind of suggests that iwd may not be the problem (or less likely it is still a problem even in git head). Assume you double checked the journal - if were me I'd check kernel messages and iwd and/or any other network tools you're using such as dhcpcd or whatever. The usual stuff: dmesg -H, journalctl -k, journalctl -u iwd, etc. - can you share any interesting messages? No don't reinstall, it likely gets you to the same place and a lot of time spent. -- Gene
Hi, I had the same kind of troubles you have. I updated ell (.68) and iwd (2.20) to the new versions. And have no problem anymore. Gerard Le dim. 1 sept. 2024 à 16:31, Lucie Scarlet <lucie@scarlet.moe> a écrit :
Hi, Sadly, it doesn't seem to work. It's still having drops even on the version you gave me.
Starting to wonder if I should try reinstalling, but that also doesn't quite make sense to me...
Lucie
On 8/30/2024 1:51 AM, Genes Lists wrote:
On Thu, 2024-08-29 at 18:43 +0000, Lucie Scarlet wrote:
Hi,
1) makepkg fail:
the PKGBUILD had unused line So sorry about that - the downside of "cleaning up" before pushing ... and not testing 😞 Remove the line "install=iwd.install" or copy the updated version of PKGBUILD
1) git sparse seems to not work with github - or perhaps its flaky working sometimes and not others.
New instructions
In a working directory, download copies of the 3 files ChangeLog gen-changelog PKGBUILD
Then: mkdir src cd src git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git git clone git://git.kernel.org/pub/scm/libs/ell/ell.git cd ..
makepkg
Hopefully this works for you
gene
I think I've gotten some more progress on this now. I tried pulling ell-git and iwd-git from AUR, which didn't work. The packages from pacman were also 0.68 and 2.20, so they should both be on the latest version. I then tried uninstalling them and getting networkmanager, which had the exact same issues. I'm now on my phone's hotspot and I don't seem to get the issues anymore. I have ordered a new router, so we'll see how that turns out when I get it, but so far I think I'm landing on the router being bad (would make sense too; it's the cheapest one I could find when I started studying and I've had it since, around 5 or 6 years lol). Crossing my fingers that I've found a solution. /Lucie On 9/1/24 19:23, gerard.bigot@gmail.com wrote:
Hi,
I had the same kind of troubles you have.
I updated ell (.68) and iwd (2.20) to the new versions. And have no problem anymore.
Gerard
Le dim. 1 sept. 2024 à 16:31, Lucie Scarlet <lucie@scarlet.moe> a écrit :
Hi, Sadly, it doesn't seem to work. It's still having drops even on the version you gave me.
Starting to wonder if I should try reinstalling, but that also doesn't quite make sense to me...
Lucie
On 8/30/2024 1:51 AM, Genes Lists wrote: > On Thu, 2024-08-29 at 18:43 +0000, Lucie Scarlet wrote: >> Hi, > > > 1) makepkg fail: > > the PKGBUILD had unused line > So sorry about that - the downside of "cleaning up" before > pushing ... and not testing 😞 > Remove the line "install=iwd.install" > or copy the updated version of PKGBUILD > > 1) git sparse > seems to not work with github - or perhaps its flaky working > sometimes and not others. > > New instructions > > In a working directory, download copies of the 3 files > ChangeLog gen-changelog PKGBUILD > > Then: > mkdir src > cd src > git clone git://git.kernel.org/pub/scm/network/wireless/iwd.git <http://git.kernel.org/pub/scm/network/wireless/iwd.git> > git clone git://git.kernel.org/pub/scm/libs/ell/ell.git <http://git.kernel.org/pub/scm/libs/ell/ell.git> > cd .. > > makepkg > > Hopefully this works for you > > gene >
On Thu, 2024-08-22 at 16:29 +0000, Lucie Scarlet wrote:
On Thursday, August 22nd, 2024 at 6:07 PM, Genes Lists <lists@sapience.com> wrote:
I check iwd for changes since the last release 2.19 Possibly interesting is that there has been quite a lot of work around handling disconnects happening during handshake. I have no idea if this is in any way related to what you're seeing - since you should not be getting those typically. I suppose, if you're comfortable and have the time, you can always build iwd from git and try that version[1]. But perhaps the odds of a router related issue seem higher to me than iwd issues. [1] If helpful I can send you a PKGBUILD to build iwd-git. -- Gene
Hi, On Thu, Aug 22, 2024 at 6:30 PM Lucie Scarlet <lucie@scarlet.moe> wrote: [...]
4) What about journal - anything logged about networking problems? Yes, I do see a bunch of deauthentication events: "Received Deauthentication event, reason: 6, from_ap: true event: disconnect-info, reason: 6"
[...] Though I have an Intel card with iwlwifi, it appears to be the same problem as when I got my new laptop. I fixed it by turning off the power saving as the arch wiki suggests.[1] This is are my udev rules: ``` $ cat /etc/udev/rules.d/70-wifi-powersave.rules ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/usr/bin/iw dev %k set power_save off" $ ``` You could try to set this up and see it it works ``` { cat << __EOF__ ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/usr/bin/iw dev %k set power_save off" __EOF__ } | sudo tee /etc/udev/rules.d/70-wifi-powersave.rules $ sudo udevadm trigger $ sudo systemctl restart iwd.service ``` [1] https://wiki.archlinux.org/title/Power_management#Network_interfaces Best, Matteo
On 8/22/24 5:23 PM, Lucie Scarlet wrote:
Hi, I've got my HP laptop set up with Arch, and it's been working absolutely wonderful. That is, until recently when it seems like it is having major network issues.
I've got it set up with iwd and connected to my home wifi, but it's having a bunch of issues. It keeps dropping the connection, and when it doesn't do that, it really struggles with resolving addresses. I also tested going to 1.1.1.1 and even that had issues, so it's not just DNS.
I haven't had any issues with my other devices on the wifi, so I'm not sure if it's that. I tried restarting it as well, which didn't help.
Could it be an issue with iwd?
Hoping for something that can lead me in the right direction, this is getting quite frustrating.
Best, Lucie
No answer but I have a similar issue with my Arch laptop. Using netctl with ethernet after a while DNS doesn't function anymore. I can then ping ipv4 8.8.8.8 but not ping archlinux.org. It happens often after a ping (or so) to abnamro.nl (a bank here). The peculiar thing about that address is that that its ip address changes a lot. For instance I do now a ping -c 3 abnamro.nl and it pings to 2.18.244.20 and subsequently another ping -c 3 abnamro.nl and then it pings to 2.16.6.95. The banks ipv4 address changes fast ! A restart of netctl solves it for a while. I am using systemd-resolved but dhcpcd is also running (but that service is not enabled). I do not have that issue on another laptop running Arch. On that laptop I use NetworkManager and systemd-resolved. Anyone having a suggestion ? Regards, ~Zerro
Have you enabled the extra-testing repo in your pacman config? If so there is currently a bug in the ell dependency (v0.68) of iwd. Issue can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/ell/-/issues/1 Try downgrading ell to 0.67 and see if that resolves the issue.
Hi, I had the same problem with iwd (because wpa_supplicant …) and extra-testing activated. Hence, I was on ell .68 I went back to .67, and I'm sending the email on a back to normal wifi connection. Thank you. G. Le mar. 27 août 2024 à 13:09, Quadsam <lists@quadsam.com> a écrit :
Have you enabled the extra-testing repo in your pacman config? If so there is currently a bug in the ell dependency (v0.68) of iwd.
Issue can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/ell/-/issues/1
Try downgrading ell to 0.67 and see if that resolves the issue.
On Tue, 2024-08-27 at 05:08 -0600, Quadsam wrote:
Have you enabled the extra-testing repo in your pacman config? If so there is currently a bug in the ell dependency (v0.68) of iwd.
Issue can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/ell/- /issues/1
Try downgrading ell to 0.67 and see if that resolves the issue.
Excellent find thank you. I've been using my own iwd package [1] from git which has been working without any issue. thanks for sharing this. gene [1] iwd-git build information on my gh in case of interest: https://github.com/gene-git/blog/tree/master/arch-package/iwd-git -- Gene
I'm not sure if I want to call the issue fully resolved just yet, but it does seem like it's running a lot better on 0.67. I've still had some slow-downs and drops, but far less than earlier. /Lucie On 8/27/2024 1:08 PM, Quadsam wrote:
Have you enabled the extra-testing repo in your pacman config? If so there is currently a bug in the ell dependency (v0.68) of iwd.
Issue can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/ell/-/issues/1
Try downgrading ell to 0.67 and see if that resolves the issue.
participants (8)
-
Genes Lists
-
gerard.bigot@gmail.com
-
Jude DaShiell
-
Lucie Scarlet
-
Matteo Piccinini
-
Quadsam
-
x choice
-
Zerro