Skip to content

Commit 62131c7

Browse files
committed
Put descriptions before commands, remove redundant commands...
...and other cleanup.
1 parent 79be4a8 commit 62131c7

File tree

1 file changed

+92
-117
lines changed

1 file changed

+92
-117
lines changed

content/wireless.md

Lines changed: 92 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -80,112 +80,111 @@ iwlist wlan0 scan | grep -E 'SSID|Channel|Frequency'
8080

8181
These commands help verify whether your wireless card and drivers are functioning correctly.
8282

83-
```bash
84-
ip a
85-
```
86-
87-
List all wireless network interfaces to confirm that your Wi-Fi interface (usually `wlp2s0` or `wlan0`) is recognized.
88-
89-
```bash
90-
iw dev
91-
```
92-
93-
Show wireless devices and their states:
94-
95-
```bash
96-
sudo rfkill list
97-
```
98-
99-
Check for hardware or software Wi-Fi blocks:
100-
101-
```bash
102-
nmcli device status
103-
```
104-
105-
Check NetworkManager device states:
106-
107-
```bash
108-
sudo systemctl restart NetworkManager
109-
```
110-
111-
Restart the network stack (safe to run at any time).
112-
113-
```bash
114-
journalctl -b | grep -i network
115-
```
116-
117-
View network-related boot logs.
118-
119-
```bash
120-
dmesg | grep -i -E 'wifi|wlan|firmware|ieee80211|rtl|brcm|ath'
121-
```
122-
123-
View driver and firmware kernel logs.
124-
125-
To collect diagnostic info automatically:
126-
127-
```bash
128-
sudo dmesg | grep -i wlan > ~/wireless-dmesg.txt
129-
```
83+
- List all wireless network interfaces to confirm that your Wi-Fi interface (usually `wlp2s0` or `wlan0`) is recognized:
84+
```bash
85+
ip a
86+
```
87+
- Show wireless devices and their states:
88+
```bash
89+
iw dev
90+
```
91+
- Check for hardware or software Wi-Fi blocks:
92+
```bash
93+
sudo rfkill list
94+
```
95+
- Check NetworkManager device states:
96+
```bash
97+
nmcli device status
98+
```
99+
- Restart the network stack (safe to run at any time):
100+
```bash
101+
sudo systemctl restart NetworkManager
102+
```
103+
- View network-related boot logs:
104+
```bash
105+
journalctl -b | grep -i network
106+
```
107+
- View driver and firmware kernel logs:
108+
```bash
109+
sudo dmesg | grep -i -E 'wifi|wlan|firmware|ieee80211|rtl|brcm|ath'
110+
```
111+
- To save the logs to a file:
112+
```bash
113+
sudo dmesg | grep -i -E 'wifi|wlan|firmware|ieee80211|rtl|brcm|ath' > ~/wireless-dmesg.txt
114+
```
130115

131116
## Driver and Firmware Checks
132117

133118
If the device is detected but unstable, verify the driver and firmware setup.
134119

135-
Check for missing firmware messages:
136-
137-
```bash
138-
dmesg | grep -i firmware
139-
```
140-
141-
Reinstall firmware packages:
142-
143-
```bash
144-
sudo apt update
145-
sudo apt install --reinstall linux-firmware
146-
```
147-
148-
Test with a different router or mobile hotspot.
120+
- Check for missing firmware messages:
121+
```bash
122+
dmesg | grep -i firmware
123+
```
124+
- Reinstall firmware packages:
125+
```bash
126+
sudo apt update
127+
sudo apt install --reinstall linux-firmware
128+
```
129+
- Test with a different router or mobile hotspot.
149130

150131
## NetworkManager and Configuration Tips
151132

152133
NetworkManager controls Wi-Fi connections on many Linux systems, including Pop!_OS and Ubuntu systems by default.
153134

154-
Restart NetworkManager:
135+
To restart NetworkManager, run this command:
155136

156137
```bash
157138
sudo systemctl restart NetworkManager
158139
```
159140

160-
Delete and recreate saved connections:
141+
To delete and recreate saved connections, run these commands:
161142

162143
```bash
163144
nmcli connection delete <SSID>
164145
nmcli device wifi connect <SSID>
165146
```
166147

167-
For unstable networks, set IPv6 to “Ignore” in the network settings:
148+
If network connectivity seems unstable, try setting IPv6 to “Ignore” in the network settings:
168149

169150
1. Open Settings → Network.
170151
2. Select your Wi-Fi connection.
171152
3. Go to the IPv6 tab → change the method to Ignore.
172153

173154
## Bluetooth and Airplane Mode Interactions
174155

175-
If Wi-Fi disappears when Bluetooth is active:
156+
The `rfkill` command can be used to view whether Bluetooth, Wireless LAN (Wi-Fi), or both are disabled at a software or hardware level:
176157

177158
```bash
178159
sudo rfkill list
160+
```
161+
162+
Sample output where Bluetooth and Wi-Fi are both enabled looks like this:
163+
164+
```
165+
0: hci0: Bluetooth
166+
Soft blocked: no
167+
Hard blocked: no
168+
1: phy0: Wireless LAN
169+
Soft blocked: no
170+
Hard blocked: no
171+
```
172+
173+
If anything is blocked, check that airplane mode is off and that Bluetooth and Wi-Fi are enabled in your system settings.
174+
175+
This command can be used to restart the Bluetooth stack:
176+
177+
```
179178
sudo systemctl restart bluetooth
180179
```
181180
182-
If the issues started after you applied updates, add a modprobe configuration to prevent a problematic Wi-Fi driver from loading, then reboot your computer:
181+
If Wi-Fi drops after you've used Bluetooth (or vice versa), run the following command to add modprobe configuration to allow both Wi-Fi and Bluetooth to transmit at the same time:
183182
184183
```bash
185184
echo "options iwlwifi bt_coex_active=0" | sudo tee -a /etc/modprobe.d/iwlwifi.conf
186185
```
187186

188-
Save, then reboot.
187+
Reboot after running this command. Note that transmitting both Wi-Fi and Bluetooth at the same time can cause interference between the two; only certain wireless cards that don't track transmission properly (e.g. acting as if Bluetooth is always transmitting) need this option applied.
189188

190189
## Advanced Troubleshooting
191190

@@ -250,49 +249,31 @@ sudo wavemon
250249

251250
## Useful Commands
252251

253-
```bash
254-
iwevent
255-
```
256-
257-
Run this command to watch what the Wi-Fi hardware is doing. Pay attention to the disconnect reasons, and ignore the scans.
258-
259-
```bash
260-
sudo systemctl restart NetworkManager
261-
```
262-
263-
This command will restart the service that manages all Internet traffic on the computer, which is usually easier than restarting the computer.
264-
265-
```bash
266-
dmesg | grep iwlwifi
267-
```
268-
269-
This will check the hardware startup and driver loading messages.
270-
271-
```bash
272-
lspci | grep Network
273-
```
274-
275-
This will check if the hardware is being detected by the kernel.
276-
277-
```bash
278-
lsmod | grep iwlwifi
279-
```
280-
281-
This will check to see if the device driver (module) is loaded.
282-
283-
```bash
284-
sudo rm /etc/NetworkManager/system-connections/*
285-
```
286-
287-
This will erase the stored information about all wireless access points.
288-
289-
```bash
290-
sudo apt install --reinstall network-manager
291-
```
292-
293-
This will reinstall network-manager, which can fix some network issues.
252+
These are miscellaneous commands that may be useful for troubleshooting.
294253

295-
**NOTE:** After reinstalling the above packages, fully shut down the machine and then power it back on, rather than rebooting. This ensures the hardware completely resets.
254+
- To watch what the Wi-Fi hardware is doing, including disconnection reasons and scan logs:
255+
```bash
256+
iwevent
257+
```
258+
- To check what hardware network controllers are detected by your system:
259+
```bash
260+
lspci | grep Network
261+
lsusb | grep Network
262+
```
263+
- To check if the Intel Wi-Fi kernel module is loaded:
264+
```bash
265+
lsmod | grep iwlwifi
266+
```
267+
- To erase all saved network information, such as Wi-Fi passwords and other configuration:
268+
```bash
269+
sudo rm /etc/NetworkManager/system-connections/*
270+
```
271+
- To reinstall NetworkManager:
272+
```bash
273+
sudo apt install --reinstall network-manager
274+
sudo systemctl poweroff
275+
```
276+
After the system has completely powered off, power it back on. (This allows network hardware to fully reset.)
296277

297278
## Additional Info
298279

@@ -308,15 +289,9 @@ Wi-Fi Speeds and Frequencies:
308289

309290
- 450Mbps uses a 60Mhz channel width and 600Mbps uses a 80Mhz channel width, and is typically less stable.
310291

311-
The name of the Linux driver for Intel Wi-Fi cards is called <u>iwlwifi</u> and is included in the kernel by default. All information about the driver can be found here:
312-
313-
[wireless.wiki.kernel.org/en/users/drivers/iwlwifi](https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi)
314-
315-
The newest version of the <u>linux-firmware</u> package, which contains the iwlwifi driver, can be found here:
316-
317-
[mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware](https://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware)
292+
The name of the Linux driver for Intel Wi-Fi cards is called <u>iwlwifi</u> and is included in the kernel by default. All information about the driver can be found [on the Kernel.org wiki](https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi).
318293

319-
Sometimes the newest version of the firmware will clear up occasional bugs. Please download the newest `.deb` package.
294+
Sometimes the newest version of the `linux-firmware` package will clear up occasional bugs. You can download the newest `.deb` package from [the Kernel.org Ubuntu mirror](https://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware).
320295

321296
### Windows Dual Boot
322297

0 commit comments

Comments
 (0)