Bluetooth.service 'bad unit file setting'

Hello,

Cannot seem to get Bluetooth back up and running. I did reinstall Bluez but no effect, rebooted a few times as well. I’ve also searched here and Arch community but can’t seem to find a similar error or the right fix.

Here are the things I’ve tried and the outputs:

sudo systemctl start bluetooth.service
Failed to start bluetooth.service: Unit bluetooth.service has a bad unit file setting.
See system logs and 'systemctl status bluetooth.service' for details.
sudo systemctl restart bluetooth
Failed to restart bluetooth.service: Unit bluetooth.service has a bad unit file setting.
See system logs and 'systemctl status bluetooth.service' for details.
systemctl status bluetooth.service
○ bluetooth.service
     Loaded: bad-setting (Reason: Unit bluetooth.service has a bad unit file setting.)
     Active: inactive (dead)

Nov 04 09:40:55 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:40:55 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:40:55 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:41:56 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:42:28 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:42:42 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:46:09 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:51:02 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:52:40 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Nov 04 09:53:14 kelltech-delta1 systemd[1]: bluetooth.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.

journalctl -u bluetooth
Sep 30 13:29:42 kelltech-delta1 systemd[1]: Starting Bluetooth service...
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Bluetooth daemon 5.78
Sep 30 13:29:42 kelltech-delta1 systemd[1]: Started Bluetooth service.
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Starting SDP server
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support bap plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support bass plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support mcp plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support vcp plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support micp plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support ccp plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support csip plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: src/plugin.c:init_plugin() System does not support asha plugin
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Bluetooth management interface 1.22 initialized
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Battery Provider Manager created
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/ldac
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aptx_hd
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_hd
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aptx
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aac
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aac
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/opus_g
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/opus_g
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/sbc
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/sbc
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/faststream
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/faststream_duplex
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/opus_05
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/opus_05
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Sep 30 13:29:42 kelltech-delta1 bluetoothd[165683]: Endpoint registered: sender=:1.686 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Sep 30 13:30:26 kelltech-delta1 bluetoothd[165683]: src/service.c:btd_service_connect() Hands-Free Voice gateway profile connect failed for FC:58:FA:18:EF:E9: Operation already in progress
Sep 30 13:30:26 kelltech-delta1 bluetoothd[165683]: src/profile.c:ext_auth() Hands-Free Voice gateway rejected FC:58:FA:18:EF:E9: Rejecting service auth (0000111f-0000-1000-8000-00805f9b34fb) for /org/bluez/hci0/dev_FC_58_FA_18_EF_E9: no>
Sep 30 13:35:24 kelltech-delta1 bluetoothd[165683]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Sep 30 13:35:31 kelltech-delta1 bluetoothd[165683]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Sep 30 13:35:34 kelltech-delta1 bluetoothd[165683]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Sep 30 13:36:28 kelltech-delta1 bluetoothd[165683]: /org/bluez/hci0/dev_FC_58_FA_18_EF_E9/sep1/fd1: fd(29) ready
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Terminating
Sep 30 13:38:14 kelltech-delta1 systemd[1]: Stopping Bluetooth service...
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSource/ldac
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aptx_hd
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx_hd
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aptx
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aptx
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSink/aac
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSource/aac
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSink/opus_g
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSource/opus_g
Sep 30 13:38:14 kelltech-delta1 bluetoothd[165683]: Endpoint unregistered: sender=:1.686 path=/MediaEndpoint/A2DPSink/sbc

What do systemctl cat bluetooth.service and paclog --package=bluez return?

systemctl cat bluetooth.service
# /etc/systemd/system/bluetooth.service

I just looked at that file and it’s completely blank. :thinking:

paclog --package=bluez
[/quote]

paclog --package=bluez
[2024-09-27T12:50:25-0500] [ALPM] installed bluez (5.78-1)
[2024-11-04T09:10:28-0600] [ALPM] upgraded bluez (5.78-1 -> 5.79-1)
[2024-11-04T09:48:49-0600] [ALPM] reinstalled bluez (5.79-1)

Maybe need a downgrade to 5.78-1?

That might be necessary. I’m still on 5.78-1. If you’d like, here’s my service file:

# /usr/lib/systemd/system/bluetooth.service
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluetooth/bluetoothd
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1

# Filesystem lockdown
ProtectHome=true
ProtectSystem=strict
PrivateTmp=true
ProtectKernelTunables=true
ProtectControlGroups=true
StateDirectory=bluetooth
StateDirectoryMode=0700
ConfigurationDirectory=bluetooth
ConfigurationDirectoryMode=0555

# Execute Mappings
MemoryDenyWriteExecute=true

# Privilege escalation
NoNewPrivileges=true

# Real-time
RestrictRealtime=true

[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service
1 Like

Perfect, thank you! I pasted into my service file and was able to immediately restart Bluetooth service. Very much appreciated!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.