Disable Bluletooth at startup (KDE)

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Disable Bluletooth at startup (KDE)

Postby roti » Jun 28th, '14, 10:05

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
roti
 
Posts: 31
Joined: Nov 7th, '11, 10:05
Location: Bucharest, Romania

Re: Disable Bluletooth at startup (KDE)

Postby doktor5000 » Jun 28th, '14, 11:10

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).
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron