I recently installed Ubuntu 16.04 MATE on my Thinkpad X240. In order to disable the automatic start of bluetooth, I did the following:
Attempt 1: sudo pluma /etc/rc.local
, then add the line
rfkill block bluetooth
above exit 0
. However, when I restarted bluetooth was still activated. So I again edited the file and removed the line I had added.
I later followed the suggestions here, and repeated attempt 1 with adding also
echo disable > /proc/acpi/ibm/bluetooth
,
but that didn't do the trick as well
Attempt 2: Following the description here (in German), I created a file /lib/systemd/system/disablebluetooth.service
with the content:
#########################################################################
#
# disablebluetooth.service
# systemd service: disable bluetooth at start
#
#########################################################################
[Unit]
Description=Disable Bluetooth
[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill block bluetooth
[Install]
WantedBy=multi-user.target
# EOF
and then ran
sudo systemctl enable disablebluetooth.service
This also did not help, bluetooth still automatically started on startup.
However, this then, Ubuntu also reports a problem on the system startup (and a dialogue opens in which I can click cancel, or report problem). [EDIT: fixed now]
So, to undo attempt 2, I ran
sudo systemctl disable disablebluetooth.service
and deleted the file I had created.
But the warning/problem report at startup still shows up. So now, my questions are
- How can I find out details about the problem report plopping up at the system startup, and how can I get rid of it? EDIT: Apparently, that warning was only the result of some earlier problems, I was able to remove it by clearing /var/crash/* (or something like that)
- How do I disable the autostart of bluetooth?
lsusb
returns
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 5986:0268 Acer, Inc
Bus 002 Device 006: ID 8087:07dc Intel Corp.
Bus 002 Device 002: ID 138a:0017 Validity Sensors, Inc. Fingerprint Reader
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb
– Jeremy31 Jan 24 '17 at 23:12