You are not logged in.

#1 2018-09-23 20:27:27

mathijs123
Member
Registered: 2017-09-02
Posts: 4

Bluetooth service not starting

I have enabled the bluetooth service on my arch system via systemctl, but when I try to start the bluetooth service, I get an error:

"Failed to start 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 returns:

"Warning: The unit file, source configuration file or drop-ins of bluetooth.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● bluetooth.service - Bluetooth service
   Loaded: bad-setting (Reason: Unit bluetooth.service has a bad unit file setting.)
  Drop-In: /etc/systemd/system/bluetooth.service.d
           └─policy.conf
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

Sep 23 22:15:13 <name_of_pc> systemd[1]: bluetooth.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot s>
Sep 23 22:15:13 <name_of_pc> systemd[1]: bluetooth.service: Cannot add dependency job, ignoring: Exec format error

Furthermore, in journalctl I find this error:
"bluetoothd[14204]: Unable to get on D-Bus"

Last edited by mathijs123 (2018-09-23 20:31:37)

Offline

#2 2018-09-23 22:07:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,386

Re: Bluetooth service not starting

The stock bluetooth service does not lead to this error message (and does not have multiple ExecStart=) what have you changed in your service file?

Offline

#3 2018-09-24 02:43:05

mathijs123
Member
Registered: 2017-09-02
Posts: 4

Re: Bluetooth service not starting

Hi V1del, thanks for your reply.

I can't remember having changed anything in my service file. I tried reinstalling bluez and bluez-utils, I also tried installing nluez-git, but with no avail.

Are there some configuration files that I can delete?

Offline

#4 2018-09-24 03:30:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: Bluetooth service not starting

What is /etc/systemd/system/bluetooth.service.d/policy.conf, is it owned by a package? It is not from a repo package.

EDIT: it seems the wiki suggests that the file should exist and should indeed have two ExecStart lines.

Last edited by Trilby (2018-09-24 03:32:29)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2018-09-24 20:08:14

mathijs123
Member
Registered: 2017-09-02
Posts: 4

Re: Bluetooth service not starting

Update: Bluetooth is working, can connect devices

Solution: I removed policy.conf, located at: /etc/systemd/system/bluetooth.service.d/

Offline

#6 2018-09-24 21:23:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: Bluetooth service not starting

I don't use bluetooth, but these results may suggest that the wiki page needs an update.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB