Skip to content

Commit 5898a34

Browse files
committed
Better organization of additional commands
1 parent 6ff37ec commit 5898a34

1 file changed

Lines changed: 30 additions & 23 deletions

File tree

content/bluetooth.md

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ sudo nano /etc/tlp.conf
101101

102102
### Bluetooth Version
103103

104-
Computers with newer Bluetooth versions will generally work with devices built for older Bluetooth versions, but devices requiring newer Bluetooth versions may not work on computers with older Bluetooth versions.
104+
Computers with newer Bluetooth versions will generally work with accessories built for older Bluetooth versions, but accessories requiring newer Bluetooth versions may not work on computers with older Bluetooth versions.
105105

106106
You can check your computer's Bluetooth version by installing and running the `inxi` tool:
107107

@@ -214,31 +214,33 @@ Successful device connection:
214214

215215
### Useful Commands
216216

217-
To show if the Bluetooth module (driver) is loaded, and see what system messages have been logged:
217+
#### Logging
218218

219-
```bash
220-
lsmod | grep bluetooth
221-
```
219+
To show kernel logs related to Bluetooth:
222220

223221
```bash
224-
dmesg | grep Bluetooth
222+
sudo dmesg | grep -i Bluetooth
225223
```
226224

227-
To check if the service that handles Bluetooth is running:
225+
To monitor Bluetooth events (try leaving this command running while pairing or using a device to see any error messages or failures):
228226

229227
```bash
230-
sudo systemctl status bluetooth
228+
sudo btmon
231229
```
232230

233-
To check if Bluetooth or Wireless (Wi-Fi) are software-blocked:
231+
#### Blocks
232+
233+
The `rfkill` utility shows whether Bluetooth or Wi-Fi are blocked in software or hardware. Generally, this information corresponds to whether airplane mode is enabled, but it can be useful to check separately in case of bugs in the airplane mode GUI or other components.
234+
235+
To check if Bluetooth or Wireless LAN (Wi-Fi) are blocked:
234236

235237
```bash
236238
rfkill list
237239
```
238240

239241
To unblock Bluetooth:
240242

241-
```
243+
```bash
242244
sudo rfkill unblock bluetooth
243245
```
244246

@@ -248,47 +250,52 @@ To unblock all wireless types:
248250
sudo rfkill unblock all
249251
```
250252

251-
To manually reload the Bluetooth USB kernel module:
253+
#### Kernel Module
252254

253-
```bash
254-
sudo rmmod btusb
255-
```
255+
To show what Bluetooth kernel modules (drivers) are loaded:
256256

257257
```bash
258-
sudo modprobe btusb
258+
lsmod | grep bluetooth
259259
```
260260

261-
To monitor Bluetooth-related messages (try leaving this command running while pairing or using a device to see any error messages or failures):
261+
To manually reload the Bluetooth USB kernel module:
262262

263263
```bash
264-
sudo btmon
264+
sudo rmmod btusb
265+
sudo modprobe btusb
265266
```
266267

267-
To reset the Bluetooth device profiles and require re-pairing all devices (this can help if your Bluetooth audio device is stuck in an HSP/HFP profile and will not switch to A2DP mode after updates <sup>[1](https://github.com/bluez/bluez/issues/157)</sup>):
268+
#### Resetting Bluetooth Devices
269+
270+
Resetting the Bluetooth device profiles will require re-pairing all devices:
268271

269272
```bash
270273
sudo rm -r /var/lib/bluetooth/
271274
```
272275

273-
### Controlling audio
276+
This can help if your Bluetooth audio device is stuck on an HSP/HFP profile and won't switch to A2DP mode.
274277

275-
Once you are connected to a Bluetooth speaker, you may need to change where your current audio is "routed". You can get a more advanced interface to settings on audio with the program called PulseAudio Volume Control. To install, run this command:
278+
### Controlling Audio
279+
280+
Once you're connected to a Bluetooth speaker, you may need to change where your current audio is "routed." PulseAudio Volume Control provides a more advanced GUI interface for routing audio. To install it, run this command:
276281

277282
```bash
278283
sudo apt install pavucontrol
279284
```
280285

281-
There will be a drop-down in the Playback tab for each of your applications that is outputting sound that you should be able to change to your Bluetooth speaker.
286+
There will be a drop-down in the Playback tab for each of your applications that's outputting sound, which you can use to send audio from individual applications to your Bluetooth speaker.
282287

283288
### File Transfer
284289

285-
Sometimes, additional programs need to be installed for mobile device file transfer. Install the transfer tool with this command:
290+
Sometimes, additional programs need to be installed for mobile device file transfer to work. Install the Object Exchange (OBEX) packages with this command:
286291

287292
```bash
288293
sudo apt install obexfs obexftp
289294
```
290295

291-
Then connect (pair) to the device and see if send files works. To receive files over Bluetooth, you will need to enable the option in <u>Personal File Sharing</u>.
296+
Then connect (pair) to the device and see if file sending works.
297+
298+
On GNOME environments (such as Pop!_OS 22.04 and below), you may need to enable the Personal File Sharing option in Settings for file receiving to work.
292299

293300
## Get Support for Ongoing Bluetooth Issues
294301

0 commit comments

Comments
 (0)