Raspberry Pi 3b how to disable WiFi and Bluetooth
由于不用和别的WiFi AP干扰,所以需要把WiFi和Bluetooth关掉。
参考文献:
http://www.pi-resource.com/?page_id=582
1 Check the WiFi status (On status)
command: iwconfig
pi@raspberrypi:~ $ iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
pi@raspberrypi:~ $
2. Check the Bluetooth status (On status)
command: sudo service bluetooth status
pi@raspberrypi:~ $ sudo service bluetooth status
? bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2017-11-23 15:21:24 HKT; 9min ago
Docs: man:bluetoothd(8)
Main PID: 469 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
+-469 /usr/lib/bluetooth/bluetoothd
Nov 23 15:21:24 raspberrypi systemd[1]: Starting Bluetooth service...
Nov 23 15:21:24 raspberrypi bluetoothd[469]: Bluetooth daemon 5.43
Nov 23 15:21:24 raspberrypi systemd[1]: Started Bluetooth service.
Nov 23 15:21:24 raspberrypi bluetoothd[469]: Starting SDP server
Nov 23 15:21:24 raspberrypi bluetoothd[469]: Bluetooth management interface 1.14 initialized
3. edit /boot/config.txt and put the following lines at the end of the file
#turn off WiFi and Bluetooth off
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
If you want to enable them again, just comment the the last lines.
reboot the device
4. Check the WiFi status (OFF status)
command: iwconfig
root@raspberrypi:/home/pi# iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
root@raspberrypi:/home/pi#
5. Check the Bluetooth status (OFF status)
command: sudo service bluetooth status
pi@raspberrypi:~ $ sudo service bluetooth status
? bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: inactive (dead)
Docs: man:bluetoothd(8)
pi@raspberrypi:~ $ |