Page 1 of 1

Disable Bluletooth at startup (KDE)

PostPosted: Jun 28th, '14, 10:05
by roti
Hi,

Is there a way to disable the bluetooth at startup (I'm using KDE)? I know I can disable the "KDE Bluetooth integration", but I don't know if that is turning off the bluetooth device as well (my laptop does not have a bluetooth LED, and I have not found an option in BIOS to disable it).


(IMHO the bluetooth should be disabled by default. I think statistically it's used rarely in a desktop/latop system.)

Cheers,
Razvan

Re: Disable Bluletooth at startup (KDE)

PostPosted: Jun 28th, '14, 11:10
by doktor5000
Actually that's a good question and should be easy to disable.
However, bluez does not seem to respect some of the settings :/

Do you want to completely disable it, so that also the service doesn't start, or so that only the device is initially disabled,
and you can enable it with a press on the bluetooth button or via the applet?

The former case is easier to do, as root disable the bluetooth service
Code: Select all
systemctl disable bluetooth.service

then add rfkill block bluetooth to /etc/rc.d/rc.local, you can do that as root via
Code: Select all
echo << EOF > /etc/rc.d/rc.local
#!/bin/sh
rfkill block bluetooth
EOF
chmod +x /etc/rc.d/rc.local


For the latter case you can try to change an option in /etc/bluetooth/main.conf to say
Code: Select all
InitiallyPowered = false

but when I tried that last time, didn't have any effect (I also want to keep bluetooth disabled on startup, and only enable it easily when needed).