aboutsummaryrefslogtreecommitdiff
path: root/btfix.sh
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz.kasprzak@pm.me>2025-12-15 14:51:21 +0100
committerLukasz Kasprzak <lukasz.kasprzak@pm.me>2025-12-15 14:51:21 +0100
commita00f92fdb6062af011d98ba8af6ddf0713fa7b3e (patch)
tree4624064e541bd3644ad2b14d3aed842cbe20778c /btfix.sh
downloadbin-a00f92fdb6062af011d98ba8af6ddf0713fa7b3e.tar.gz
bin-a00f92fdb6062af011d98ba8af6ddf0713fa7b3e.zip
initial commit
Diffstat (limited to 'btfix.sh')
-rwxr-xr-xbtfix.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/btfix.sh b/btfix.sh
new file mode 100755
index 0000000..1d9cfc4
--- /dev/null
+++ b/btfix.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Reset Bluetooth adapter (run as root)
+
+systemctl stop bluetooth.service
+modprobe -r btusb
+modprobe btusb
+systemctl start bluetooth.service
+rfkill unblock bluetooth
+bluetoothctl power on
+