Отключить bluetooth raspberry pi 4

Как отключить Bluetooth на Raspberry Pi

Bluetooth в Raspberry Pi позволяет пользователям легко обмениваться файлами с другими устройствами с поддержкой Bluetooth, такими как мобильные телефоны, ноутбуки или ПК. Он также позволяет пользователям подключаться к устройствам Bluetooth, таким как наушники или динамики, и начинать прослушивание звука с устройства. Служба Bluetooth на Raspberry Pi уже включена по умолчанию в системе Raspberry Pi, что позволяет пользователям выполнять задачи, ориентированные на Bluetooth, в системе. Однако лучше отключить службу, если вы не используете ее в течение длительного времени, чтобы снизить нагрузку на устройство Raspberry Pi.

В этом уроке вы узнаете самые простые способы отключения Bluetooth на Raspberry Pi:

Как отключить Bluetooth на Raspberry Pi?

Есть три простых способа отключить Bluetooth на Raspberry Pi:

  • Отключить Bluetooth на Raspberry Pi через графический интерфейс
  • Отключить Bluetooth на Raspberry Pi через файл конфигурации
  • Отключить Bluetooth на Raspberry Pi с помощью команды Systemctl

Способ 1: отключить Bluetooth на Raspberry Pi через графический интерфейс

Служба Bluetooth уже включена в системе Raspberry Pi, и вы можете увидеть значок Bluetooth на панели задач.

Отключение Bluetooth отключит службу в вашей системе Raspberry Pi.

Способ 2: отключить Bluetooth на Raspberry Pi через файл конфигурации

Вы можете отключить службу Bluetooth на Raspberry Pi через файл конфигурации загрузки, выполнив следующие действия:

Шаг 1: Сначала откройте файл конфигурации загрузки на Raspberry Pi с помощью следующей команды:

Шаг 2: После открытия файла конфигурации прокрутите вниз и вставьте указанный ниже текст, чтобы отключить Bluetooth на Raspberry Pi:

Сделав это, нажмите кнопку «Ctrl+Х» ключ, добавить «Й» чтобы сохранить измененный файл. Для применения изменений необходимо перезагрузить систему.

Если вы хотите снова включить Bluetooth, просто вернитесь к config.txt файл и удалите «dtoverlay=pi3-отключить-BT” из файла и перезагрузиться в обычном режиме.

Способ 3: отключить Bluetooth на Raspberry Pi с помощью команды Systemctl

Вы также можете использовать следующие «системный» команды для отключения Bluetooth и связанных с ним служб на Raspberry Pi.

$ sudo systemctl отключить hciuart.service

$ sudo systemctl отключить bluetooth.service

Затем просто перезагрузите систему, чтобы применить новые изменения:

Как только система запустится после перезагрузки, обратите внимание на панель задач, прежде чем отключить Bluetooth. Значок Bluetooth отображалось на панели задач. Но теперь, когда Bluetooth отключен, значок исчез, что означает, что Bluetooth успешно отключен.

Читайте также:  Блютуз антенна ps4 fat

Заключение

Чтобы отключить Bluetooth на Raspberry Pi, вы можете использовать графический интерфейс метод, загрузочная конфигурация файл или systemctl команда. Метод GUI прост, а для случая «Файл конфигурации», пользователи должны добавить dtoverlay=pi3-отключить-BT” текст внутри файла и перезагрузите систему, чтобы изменения вступили в силу. Пользователи также могут выполнять «системный» команды для отключения служб Bluetooth в системе Raspberry Pi после перезагрузки.

Источник

Отключить bluetooth raspberry pi 4

За большое время работы с Raspberry PI и экспериментами с ним выяснилось, что внутреннй BT работает не совсем идеально и общее использование сети на 2.4 GHZ
приводит к небольшим траблам и сеть может пропустить пару пакетиков или БТ подтупливает при передаче или приеме данных.
Да и субьективное мнение сложилось, что чувствительность страдает и работает со сбоями.

В общем как отключить внутренний BT и WI-FI и воткнуть USB BT и WI-FI донглы этот блог.

    /boot/config.txt
    и в конце дописываем (спасибо SoulTaker, подправил строчку про WI-FI)

# Disable Bluetooth dtoverlay=pi3-disable-bt # Disable WI-FI dtoverlay=pi3-disable-wifi

В консоли для этого делаем:
sudo nano /boot/config.txt
Вписываем выделенное выше и Ctrl+X, потом Y

Это в принципе достаточно, но можно и другим путем, где можно выключить и BT, и WI-FI размазанные по плате.
Идем по пути:
/etc/modprobe.d/raspi-blacklist.conf
и там пишем:

# Отключение BT blacklist btbcm blacklist hci_uart # Отключение WI-FI blacklist brcmfmac blacklist brcmutil

Все, внутренние железки не работают.

Напомню, что если конфиги правите любыми внешними редакторами, то не забывайте про кодировку UTF-8.

Втыкаем USB BT CSR 4.0.
У меня был только такой и драйвера подхватились автоматически, с другим чипсетом возможно придется поставить драйвера к нему.
Проверяем командой, что cистема увидела донгл:
lsusb
Там должны увидеть Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
ID какой у него и куда прилепился ( у меня Device 005: ID 0a12:0001) не особо интересует, это нужно, к примеру для того, что бы работать с конфигами устройства.
Ну допустим описать его в Pulse Audio.
В общем обнаружили и удостоверились, что все живое.

Дальше на всякий случай апдейтнем систему и модули:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install bluetooth bluez-utils blueman bluez python-gobject python-gobject-2

Для BT 4.0 лучше всего использовать модуль Bluez последней версии.
Сейчас актуальный 5.9

Как ставить.
Качаем:
wget www.kernel.org/pub/linux/bluetooth/bluez-5.9.tar.xz
Распаковываем:
tar xvf bluez-5.9.tar.xz && cd bluez-5.9
Конфигурируем:
./configure —prefix=/usr —mandir=/usr/share/man —sysconfdir=/etc —localstatedir=/var —enable-experimental
Компилируем:
make -j4
Устанавливаем:
sudo make install

И после не длительных по времени ожиданий обязательно ребутим:
sudo reboot

Идем снова в консоль и удостоверяемся, что поставили 5.9 версию:
bluetoothctl -v
Высветит 5.9

Аналогично ставим USB WI-FI на 5 Ghz.
Не думаю, что у кого-то возникнут проблемы по установке USB донгла на 5 Ghz, но если возникнут вопросы — пишите в комменты или форум.

Источник

How to disable onboard WiFi and Bluetooth on Raspberry Pi 4

Disable onboard WiFi and Bluetooth on Raspberry Pi 4 device.

Devices: hci0 E4:5F:01:42:3A:4B
phy#0 Unnamed/non-netdev interface wdev 0x2 addr e6:5f:01:42:3a:4a type P2P-device Interface wlan0 ifindex 3 wdev 0x1 addr e4:5f:01:42:3a:4a type managed channel 34 (5170 MHz), width: 20 MHz, center1: 5170 MHz

Inspect available options.

[. ] Name: disable-bt Info: Disable onboard Bluetooth on Pi 3B, 3B+, 3A+, 4B and Zero W, restoring UART0/ttyAMA0 over GPIOs 14 & 15. N.B. To disable the systemd service that initialises the modem so it doesn't use the UART, use 'sudo systemctl disable hciuart'. Load: dtoverlay=disable-bt Params: [. ] Name: disable-wifi Info: Disable onboard WLAN on Pi 3B, 3B+, 3A+, 4B and Zero W. Load: dtoverlay=disable-wifi Params: [. ]

Disable onboard Bluetooth devices.

$ echo "dtoverlay=disable-bt" | sudo tee -a /boot/config.txt

Disable onboard WLAN devices.

$ echo "dtoverlay=disable-wifi" | sudo tee -a /boot/config.txt

Disable systemd service that initializes Bluetooth Modems connected by UART.

$ sudo systemctl disable hciuart

Reboot Raspberry Pi device.

Читайте также:  Магнитола jvc блютуз как

Ensure that Bluetooth devices are not available.

Ensure that wireless devices are not available.

lo UNKNOWN 127.0.0.1/8 ::1/128 eth0 UP 172.16.1.101/16 fe80::12b8:2400:4357:ec24/64

Follow me on Mastodon , check out source code ad GitHub

Источник

How to Disable Bluetooth on Raspberry Pi

Bluetooth in Raspberry Pi allows users to easily share files to other Bluetooth-enabled devices, such as mobile phones, laptops, or PC. It also enables users to connect to Bluetooth devices, such as headphones or speakers, and start listening to audio from the device. The Bluetooth service on Raspberry Pi is already enabled by default on the Raspberry Pi system, allowing users to perform Bluetooth-oriented tasks on the system. However, it’s better to disable the service in case you are not using it for the long run to reduce the workload on the Raspberry Pi device.

In this tutorial, you will learn the easiest ways to disable Bluetooth on Raspberry Pi:

How to Disable Bluetooth on Raspberry Pi?

There are three easy methods to disable Bluetooth on Raspberry Pi:

  • Disable Bluetooth on Raspberry Pi Through GUI
  • Disable Bluetooth on Raspberry Pi Through Configuration File
  • Disable Bluetooth on Raspberry Pi Through Systemctl Command

Method 1: Disable Bluetooth on Raspberry Pi Through GUI

Bluetooth service is already enabled on the Raspberry Pi system and you can view the Bluetooth icon on the taskbar panel.

Tuning off Bluetooth will disable the service on your Raspberry Pi system.

Method 2: Disable Bluetooth on Raspberry Pi Through Configuration File

You can disable Bluetooth service on Raspberry Pi through the boot configuration file using the following steps:

Step 1: First open the boot configuration file on Raspberry Pi through the following command:

Step 2: Once the configuration file is opened, scroll down to the bottom, and insert the below-mentioned text to disable Bluetooth on Raspberry Pi:

Once done, press the “Ctrl+X” key, add “Y” to save the modified file. You must reboot the system to apply the changes.

If you want to enable Bluetooth again then just go back to the config.txt file and remove the “dtoverlay=pi3-disable-bt” from the file and reboot normally.

Method 3: Disable Bluetooth on Raspberry Pi Through Systemctl Command

You can also use the following “systemctl” commands to disable Bluetooth and its related services on Raspberry Pi.

Then just reboot the system to apply the new changes:

Once the system starts after rebooting, notice the taskbar, before disabling the Bluetooth the Bluetooth- icon was been displayed on the taskbar. But now since the Bluetooth is disabled so the icon has disappeared ensuring that the Bluetooth is disabled successfully.

Читайте также:  Bluetooth app play store

Conclusion

To disable Bluetooth on Raspberry Pi, you can use the GUI method, boot configuration file, or systemctl command. The GUI method is simple, while for the case of “configuration file”, the users have to add the dtoverlay=pi3-disable-bt” text inside the file and reboot the system to apply the changes. The users can also execute the “systemctl” commands to disable the Bluetooth services on the Raspberry Pi system after a reboot.

About the author

Zahra Zamir

An Electronics graduate who loves to learn and share the knowledge, my passion for my field has helped me grasp complex electronics concepts and now I am here to share them with others.

Источник

Отключить bluetooth raspberry pi 4

Hi,
I’m new to this world, I just bought my first Raspberry Pi (3 B+) and I use it headless mode through ssh. I wanted to disable both Bluetooth and wifi at startup (since I don’t use them) to reduce the load and heat of the Raspberry.
I found online how to disable wifi, but I can’t find how to disable Bluetooth. For now, I disabled wifi with `sudo crontab -e` and adding `@reboot ifconfig wlan0 down` and I would like to use a similar solution for Bluetooth.
Furthermore, how can I check if I really have disabled Wifi and Bluetooth?
Thanks

Re: How to diable bluetooth at startup

But with buster, this changed to the following /boot/config.txt entries to disable both Bluetooth and WiFi.

dtoverlay=disable-bt dtoverlay=disable-wifi

Re: How to disable bluetooth at startup

Ok, thanks. And how can I check if I have really disabled Wifi and Bluetooth?
I found the /boot/overlays/README file and read it, and it says that in order to disable bluetooth I should use also

sudo systemctl disable hciuart

Re: How to disable bluetooth at startup

Ok, thanks. And how can I check if I have really disabled Wifi and Bluetooth?
I found the /boot/overlays/README file and read it, and it says that in order to disable bluetooth I should use also

sudo systemctl disable hciuart

Earlier reply was missing some prep commands for using the serial port ttyAMA0 and complete removal of Bluetooth/WiFi and kernel serial console

sudo systemctl disable hciuart sudo systemctl disable serial-getty@ttyAMA0.service sudo systemctl mask serial-getty@ttyAMA0.service sudo apt purge bluez bluez-firmware wpasupplicant sudo apt-get autoremove

This gives you the hardware serial UART back for your own use. Testing serial ports are correctly assigned

ls -l /dev | grep serial lrwxrwxrwx 1 root root 7 Nov 30 23:27 serial0 -> ttyAMA0 lrwxrwxrwx 1 root root 5 Nov 30 23:27 serial1 -> ttyS0
sudo nano /etc/modprobe.d/raspi-blacklist.conf #Disable wifi blacklist 8192cu #Disable bluetooth blacklist btbcm blacklist bnep blacklist bluetooth

Re: How to disable bluetooth at startup

I don’t want to remove Bluetooth and WiFi forever because I may need them in the future. I would like to only deactivate them (at startup so when I reboot the raspberry it doesn’t turn on them)

Re: How to disable bluetooth at startup

Then disable with the overlays in /boot/config.txt and use sudo systemctl disable hciuart to reuse the UART — job done!

Источник

Оцените статью
Adblock
detector