this post was submitted on 07 Apr 2024
73 points (97.4% liked)

Linux

48381 readers
941 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by AlpΓ‘r-Etele MΓ©der, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

My desktop PC is the only machine in the house having Wi-Fi connectivity issues (connects fine, but drops out randomly after a few minutes or sometimes a few hours)

I think wpa_supplicant is getting confused and thinks signal strength is poor (I have a Netgear mesh, but this seems increasingly common, so it's weird for that to be the issue)

I did pick up a TP-Link USB Wi-Fi adapter, but can reproduce the same connectivity issues

The fix was switching away from wpa_supplicant in favour of iwd, which seems rock solid in comparison

I'm sure there's a way to fix wpa_supplicant, but it's man pages only seem to list the options without actually describing what they do, which seems sort of poor considering how old the project is 🀷

top 11 comments
sorted by: hot top controversial new old
[–] wwwgem@lemmy.ml 12 points 7 months ago

A somehow old (2021) but interesting article about why the community is moving from wpa-supplicant to iwd: https://www.linux-magazine.com/Issues/2021/243/iNet-Wireless-Daemon

Here is an excerpt of interest: "The description of the iwd project on www.kernel.org highlights simplicity as an important factor behind iwd's recent rise: "The core goal of the project is to optimize resource utilization: storage, runtime memory, and link-time costs. This is accomplished by not depending on any external libraries and utilizing features provided by the Linux Kernel to the maximum extent possible. The result is a self-contained environment that only depends on the Linux Kernel and the runtime C library.""

ArchLinux and Ubuntu respectively tested iwd on July 2020 and in Ubuntu 20.10.

[–] db2@lemmy.world 8 points 7 months ago

If you have an android phone it's likely using wpa_supplicant.

[–] d3Xt3r 7 points 7 months ago (3 children)

iwd is great. In fact I'd say take it a step further and get rid of the beast that is NetworkManager as well.

https://austindw.com/networkmanager-is-bloat/

[–] LemmyHead@lemmy.ml 5 points 7 months ago (1 children)

Tbf you only need iwd, as systemd can take care of the rest. But it's not an option for me on desktop anyway because signal and vpn connection visibility are important for me and that's not possible without a GUI running

[–] d3Xt3r 3 points 7 months ago

There are lightweight GUI options for that too. For iwd, you can use iwgtk. For VPN, that would depend on your VPN protocol/service. Some providers like Proton have their own client, others can use something like Wireguard Client (as an example) or something similar depending on your VPN setup.

[–] MonkderDritte@feddit.de 1 points 7 months ago

Though connman supports iwd only partially, no?

[–] jokeyrhyme@lemmy.ml 1 points 7 months ago

I did actually do this already, separate from working on this issue, but can confirm the intermittent problems with the combination of wpa_supplicant and systemd-networkd

[–] dr_jekell@lemmy.world 5 points 7 months ago

If you can, get yourself a wireless access point instead.

You can connect the computer by ethernet to the access point that then connects to the WiFi network.

By having the device separate you can have it situated away from the computer for better connection and the computer only sees a wired connection.

Plus they tend to be more stable than dongles.

[–] backhdlp@iusearchlinux.fyi 3 points 7 months ago

Thanks, I switched from unconfigured (but working because magic) networkmanager to pure wpa_supplicant on my NixOS system yesterday and I definitely noticed frequent reconnecting.

[–] zagaberoo@beehaw.org 3 points 7 months ago (1 children)

Holy shit I think I have the same problem, mesh network and all. I assumed it was a driver issue; thanks for the pointer!

[–] bjoern_tantau@swg-empire.de 1 points 7 months ago

Me as well, on multiple devices. Now I've got to test this out.