用于节电。
https://gist.github.com/0xfe11/d0874b7d31cf649616fa9d816571ab3c
推荐执行
# Stop and disable the bluetooth service
sudo systemctl stop bluetooth.service
sudo systemctl disable bluetooth.service
# To check the status of the service -
systemctl status bluetooth.service
# Then there’s this command to permanently prevent it being used -
sudo systemctl mask bluetooth.service
命令手册
# Turn off the bluetooth
sudo rfkill block bluetooth
# Turn on bluetooth
sudo rfkill unblock bluetooth
# Stop and disable the bluetooth service
sudo systemctl stop bluetooth.service
sudo systemctl disable bluetooth.service
# To check the status of the service -
systemctl status bluetooth.service
# Then there’s this command to permanently prevent it being used -
sudo systemctl mask bluetooth.service
# Likewise, I think ‘unmask’ undoes the above if you want it back for whatever reason.
sudo systemctl unmask bluetooth.service
# If you want to list which services are enabled -
systemctl list-unit-files --type=service | grep enabled