Please try:
Code:
systemctl disable bluetooth
It should prompt you to enter your password
Also you could try:
Code:
systemctl stop --now bluetooth
That should persist through out your session
EDIT After using my suggestions above, I needed to reboot to see the changes made.
Code:
systemctl status bluetooth
○ bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; prese>
Active: inactive (dead)
Docs: man:bluetoothd(8)
I also have a script i use on Arch and it should work on Ubuntu as well.
Code:
#!/bin/bash
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
rfkill block all &
notify-send 'Mode avion: actif'
else
rfkill unblock all &
notify-send 'Mode avion: inactif'
fi
Bookmarks