Ubuntu: Avaktivera Bluetooth efter systemstart
Med Ubuntu kan du också inaktivera Bluetooth-adaptern automatiskt efter systemstart. Tyvärr är systemet inställt som standard så att det inte kommer ihåg om du hade inaktiverat Bluetooth-funktionen innan du startade.
Endast möjligt via skript: Deaktivera Bluetooth automatiskt
Om du vill starta tjänster eller skript automatiskt efter att du har startat Ubuntu kan du använda filen "rc.local". Kommandon som du skriver i den här filen innan "exit 0" startas automatiskt med root-rättigheter. Du kan också inaktivera Bluetooth-adaptern i den:
- Öppna textfilen med roträttigheter i terminalen. Till exempel kan du använda "gedit" som redaktör.
- Motsvarande kommandorad med detta program skulle vara "sudo gedit /etc/rc.local". Bekräfta din post med [Enter] och skriv in ditt root-lösenord.
- Nu - som på skärmdumpen - lägg till kommandot "rfkill block bluetooth" innan "avsluta 0" och spara filen.
- Bluetooth-ikonen visas fortfarande i den övre aktivitetsfältet och du kan aktivera adaptern där om du behöver det.