If you're experiencing weak Wi-Fi signal strength on Arch Linux with your Qualcomm WCN785x Wi-Fi 7 chipset (using the ath12k driver), there are several steps you can take to troubleshoot and potentially improve the situation. Below is a detailed guide to help you address the issue:
1. Understand the Issue
- Wi-Fi signal strength depends on multiple factors, including hardware (antenna quality, chipset), software (driver, firmware), and environmental factors (distance from the router, interference, etc.).
- The Qualcomm WCN785x is a Wi-Fi 7 chipset, which is relatively new, and support in Linux (via the
ath12k driver) may still be maturing. Weak signal issues could be due to driver bugs, firmware issues, or configuration problems.
2. Check Signal Strength
Before proceeding, confirm the signal strength and quality of your Wi-Fi connection. Use the following tools to gather information:
-
Using iw to check signal strength:
iw dev wlan0 link
Replace wlan0 with your actual Wi-Fi interface name (find it using ip link or iw dev). Look for the signal value, which is in dBm. A value closer to 0 (e.g., -30 dBm) indicates a strong signal, while values like -70 dBm or lower indicate a weak signal.
-
Using iwconfig:
iwconfig wlan0
Look for the Signal level value. Again, higher values (closer to 0) are better.
-
Using nmcli (if using NetworkManager):
nmcli -f SSID,SIGNAL dev wifi
This will show the signal strength as a percentage for available networks.
If the signal is indeed weak (e.g., below -70 dBm or 30% strength), proceed with the steps below.
3. Update Your System
Ensure your system is fully up-to-date, as Wi-Fi issues may be resolved in newer kernel versions, firmware updates, or driver improvements.
-
Update Arch Linux:
sudo pacman -Syu
-
Check your kernel version:
uname -r
The ath12k driver is relatively new, and Wi-Fi 7 support may require a recent kernel (e.g., 6.6 or later). If you're using an older kernel, consider upgrading to the latest stable kernel or the linux-mainline kernel from the AUR.
-
Install the latest firmware:
The ath12k driver requires firmware files to function properly. Ensure you have the linux-firmware package installed:
sudo pacman -S linux-firmware
If you suspect the firmware is outdated, you can also try installing the linux-firmware-git package from the AUR for the latest firmware updates:
yay -S linux-firmware-git
-
Reboot after updates:
After updating, reboot your system to ensure the new kernel and firmware are loaded:
sudo reboot
4. Check Antenna Connections (Hardware)
If the signal strength is consistently weak, the issue might be hardware-related. Since your device uses a Qualcomm Wi-Fi chipset, it likely has external or internal antennas. Check the following:
5. Optimize Driver Settings
The ath12k driver may have configurable options that can help improve signal strength or stability. Since your /etc/modprobe.d/ath12k.conf file is empty, you can experiment with driver options.
-
Edit the configuration file:
Open /etc/modprobe.d/ath12k.conf with a text editor (e.g., nano):
sudo nano /etc/modprobe.d/ath12k.conf
-
Add driver options:
Try adding the following options to improve performance (these are experimental, so test each one individually):
options ath12k txpower=30
The txpower option sets the transmit power of the Wi-Fi card (in dBm). The maximum value depends on your hardware and regional regulations, but 30 dBm is a common maximum. Note that increasing transmit power may not always improve signal reception, as it primarily affects how strong your device's signal is to the router, not vice versa.
-
Save and apply changes:
After editing the file, save it and rebuild the initramfs:
sudo mkinitcpio -P
Then reboot:
sudo reboot
-
Check other driver options:
You can view available options for the ath12k driver by running:
modinfo ath12k
Look for parameters that might help with signal strength or stability, such as power-saving settings or channel selection.
6. Disable Power Saving
Wi-Fi power-saving features can sometimes reduce signal strength or cause instability. Disable power saving to see if it improves the situation.
-
Check current power-saving status:
iw dev wlan0 get power_save
If it says on, disable it:
iw dev wlan0 set power_save off
-
Make the change persistent:
If disabling power saving helps, make it persistent by adding a rule to NetworkManager (if you're using it). Edit or create the file /etc/NetworkManager/conf.d/wifi-powersave.conf:
sudo nano /etc/NetworkManager/conf.d/wifi-powersave.conf
Add the following:
[connection]
wifi.powersave = 2
(Here, 2 disables power saving, while 3 enables it.)
Restart NetworkManager to apply the changes:
sudo systemctl restart NetworkManager
7. Optimize Router Settings
If the signal strength issue persists, the problem might be related to your router or environmental factors. Try the following:
-
Move closer to the router:
Test if the signal improves when you're closer to the router. If it does, the issue is likely environmental (e.g., walls, interference).
-
Change Wi-Fi channel:
Wi-Fi interference from other networks or devices can weaken your signal. Use a tool like iwlist to scan for nearby networks and identify crowded channels:
sudo iwlist wlan0 scan | grep Channel
Log into your router's admin interface and switch to a less congested channel. For 5 GHz or 6 GHz bands (used by Wi-Fi 7), ensure you're using a wide channel width (e.g., 160 MHz) for maximum performance.
-
Enable Wi-Fi 7 features:
Ensure your router supports Wi-Fi 7 (802.11be) and has the latest firmware. Enable features like MU-MIMO, OFDMA, and 6 GHz band support if available.
-
Use a Wi-Fi extender or mesh network:
If the router is too far away or there are too many obstacles, consider using a Wi-Fi extender or a mesh network to boost the signal.
8. Test with a Different Kernel
If the issue persists, it could be a bug in the ath12k driver or kernel. Test with a different kernel version to see if the problem is resolved.
-
Install the LTS kernel:
The LTS (Long-Term Support) kernel is more stable and may have better-tested drivers:
sudo pacman -S linux-lts linux-lts-headers
Reboot and select the LTS kernel from your bootloader (e.g., GRUB).
-
Install the mainline kernel:
The mainline kernel has the latest features and driver updates, which may include fixes for Wi-Fi 7 issues:
yay -S linux-mainline
Reboot and select the mainline kernel from your bootloader.
9. Report Bugs
If none of the above steps resolve the issue, it could be a bug in the ath12k driver or firmware. Consider reporting the issue to the Linux kernel developers or the Qualcomm Atheros team.
-
Gather information for a bug report:
Collect the following details:
- Kernel version (
uname -r)
- Driver version (
modinfo ath12k)
- Firmware version (
dmesg | grep ath12k)
- Signal strength and connection details (
iw dev wlan0 link)
- Any error messages in the logs (
dmesg | grep -i error)
-
File a bug report:
Submit a bug report to the Linux kernel bug tracker or the ath12k mailing list. You can also check the Arch Linux forums or Reddit for similar issues and solutions.
10. Temporary Workaround: Use a USB Wi-Fi Adapter
If the issue cannot be resolved due to hardware or driver limitations, consider using a USB Wi-Fi adapter with better Linux support (e.g., one based on a Realtek or MediaTek chipset). This can serve as a temporary workaround until the ath12k driver matures.
Summary
To fix your Wi-Fi signal strength issue on Arch Linux with the Qualcomm WCN785x Wi-Fi 7 chipset:
- Update your system, kernel, and firmware.
- Check hardware (antennas, connections).
- Optimize driver settings (e.g., transmit power).
- Disable power-saving features.
- Optimize router settings (channel, band, etc.).
- Test with different kernels (LTS or mainline).
- Report bugs if the issue persists.
- Consider a USB Wi-Fi adapter as a workaround.
If you need further assistance, please provide additional details, such as the output of iw dev wlan0 link or any error messages in dmesg.