start or stop bluetooth – 业余语言练习

start or stop bluetooth

root@root135:~# systemctl disable bluetooth.service 
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.

Executing: /lib/systemd/systemd-sysv-install disable bluetooth
insserv: warning: current start runlevel(s) (empty) of script `bluetooth' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `bluetooth' overrides LSB defaults (0 1 6).
Removed /etc/systemd/system/dbus-org.bluez.service.
Removed /etc/systemd/system/bluetooth.target.wants/bluetooth.service.
root@root135:~# systemctl enable bluetooth.service 
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
insserv: warning: current start runlevel(s) (empty) of script `bluetooth' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `bluetooth' overrides LSB defaults (0 1 6).
Created symlink /etc/systemd/system/dbus-org.bluez.service → /lib/systemd/system/bluetooth.service.
Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service → /lib/systemd/system/bluetooth.service.
root@root135:~# systemctl stop bluetooth.service 
root@root135:~# systemctl start bluetooth.service 
root@root135:~# systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2025-07-27 21:37:26 CST; 44s ago
       Docs: man:bluetoothd(8)
   Main PID: 5079 (bluetoothd.sh)
      Tasks: 2 (limit: 4514)
     Memory: 1.0M
     CGroup: /system.slice/bluetooth.service
             ├─5079 /bin/sh /usr/lib/bluetooth/bluetoothd.sh
             └─5102 /usr/lib/bluetooth/bluetoothd

Jul 27 21:37:26 root135 bluetoothd[5102]: Bluetooth management interface 1.21 initialized
Jul 27 21:37:26 root135 bluetoothd[5102]: Sap driver initialization failed.
Jul 27 21:37:26 root135 bluetoothd[5102]: sap-server: Operation not permitted (1)
Jul 27 21:37:26 root135 bluetoothd[5102]: Endpoint registered: sender=:1.134 path=/MediaEndpoint/A2DPSink/sbc
Jul 27 21:37:26 root135 bluetoothd[5102]: Endpoint registered: sender=:1.134 path=/MediaEndpoint/A2DPSource/sbc
Jul 27 21:37:37 root135 bluetoothd[5102]: Failed to set mode: Failed (0x03)
Jul 27 21:37:44 root135 bluetoothd[5102]: Unable to get Headset Voice gateway SDP record: Host is down
Jul 27 21:37:52 root135 bluetoothd[5102]: Unable to get Headset Voice gateway SDP record: Host is down
Jul 27 21:38:01 root135 bluetoothd[5102]: Unable to get Headset Voice gateway SDP record: Host is down
Jul 27 21:38:09 root135 bluetoothd[5102]: connect error: Host is down (112)

root@root135:~# 
Published
Categorized as linux

Leave a comment

Your email address will not be published. Required fields are marked *