You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/bluetooth.md
+30-23Lines changed: 30 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ sudo nano /etc/tlp.conf
101
101
102
102
### Bluetooth Version
103
103
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.
105
105
106
106
You can check your computer's Bluetooth version by installing and running the `inxi` tool:
To show if the Bluetooth module (driver) is loaded, and see what system messages have been logged:
217
+
#### Logging
218
218
219
-
```bash
220
-
lsmod | grep bluetooth
221
-
```
219
+
To show kernel logs related to Bluetooth:
222
220
223
221
```bash
224
-
dmesg | grep Bluetooth
222
+
sudo dmesg | grep -i Bluetooth
225
223
```
226
224
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):
228
226
229
227
```bash
230
-
sudo systemctl status bluetooth
228
+
sudo btmon
231
229
```
232
230
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:
234
236
235
237
```bash
236
238
rfkill list
237
239
```
238
240
239
241
To unblock Bluetooth:
240
242
241
-
```
243
+
```bash
242
244
sudo rfkill unblock bluetooth
243
245
```
244
246
@@ -248,47 +250,52 @@ To unblock all wireless types:
248
250
sudo rfkill unblock all
249
251
```
250
252
251
-
To manually reload the Bluetooth USB kernel module:
253
+
#### Kernel Module
252
254
253
-
```bash
254
-
sudo rmmod btusb
255
-
```
255
+
To show what Bluetooth kernel modules (drivers) are loaded:
256
256
257
257
```bash
258
-
sudo modprobe btusb
258
+
lsmod | grep bluetooth
259
259
```
260
260
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:
262
262
263
263
```bash
264
-
sudo btmon
264
+
sudo rmmod btusb
265
+
sudo modprobe btusb
265
266
```
266
267
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:
268
271
269
272
```bash
270
273
sudo rm -r /var/lib/bluetooth/
271
274
```
272
275
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.
274
277
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:
276
281
277
282
```bash
278
283
sudo apt install pavucontrol
279
284
```
280
285
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.
282
287
283
288
### File Transfer
284
289
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:
286
291
287
292
```bash
288
293
sudo apt install obexfs obexftp
289
294
```
290
295
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.
0 commit comments