You are not logged in.

#1 2023-07-23 12:40:27

somannak
Member
Registered: 2021-04-01
Posts: 14

Start Bluetooth service on start up [SOLVED]

I installed Arch on my Dell Inspiron 7591 recently. I moved to Windows for a bit, but I didn't like it so I'm back to Arch. Well, for this installation I faced a few issues, one of which would be that I couldn't find a way to connect to Bluetooth devices. I couldn't find any icon on the bottom right corner and after looking around I figured out that I had to manually start the Bluetooth service every time I switch on my laptop.

The command I am using to start the service is

 sudo systemctl start Bluetooth 

Now I want the Bluetooth service to start on the system start-up automatically.

Last edited by somannak (2023-07-23 20:34:32)

Offline

#2 2023-07-23 16:18:39

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: Start Bluetooth service on start up [SOLVED]

If you enable the bluetooth.service, then it should start on boot; bluetooth.service is required by bluetooth.target (check /usr/lib/systemd/system), and

man systemd.special wrote:

bluetooth.target is started automatically as soon as a Bluetooth controller is plugged in or becomes available at boot

Check status for bluetooth.service after a reboot. Is it not running?

If it is, maybe your problem is with a pared device not being reconnected? In that case, you may be able to fix it by trusting the device after pairing.

And if it isn't, then please post the output of journalctl -b

somannak wrote:

I couldn't find any icon on the bottom right corner

Install a graphical front-end and a system tray (if your DE doesn't provide one). You didn't mention what you use for your desktop, but with Xfce, Blueman shows up in the system tray just fine.

Offline

#3 2023-07-23 17:29:32

somannak
Member
Registered: 2021-04-01
Posts: 14

Re: Start Bluetooth service on start up [SOLVED]

I am using KDE Plasma as my Desktop Environment


systemctl status bluetooth.service wrote:

○ bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

after starting the Bluetooth services like I always do

systemctl status bluetooth.service wrote:

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; preset: disabled)
     Active: active (running) since Sun 2023-07-23 22:05:01 IST; 2min 19s ago
       Docs: man:bluetoothd(8)
   Main PID: 2209 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18898)
     Memory: 2.9M
        CPU: 100ms
     CGroup: /system.slice/bluetooth.service
             └─2209 /usr/lib/bluetooth/bluetoothd

Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSource/aptx_l>
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSource/fastst>
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSource/fastst>
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSink/opus_05
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSource/opus_05
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSink/opus_05_>
Jul 23 22:06:14 archlinux bluetoothd[2209]: Endpoint registered: sender=:1.54 path=/MediaEndpoint/A2DPSource/opus_0>
Jul 23 22:06:20 archlinux bluetoothd[2209]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Fre>
Jul 23 22:06:48 archlinux bluetoothd[2209]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP re>
Jul 23 22:06:51 archlinux bluetoothd[2209]: /org/bluez/hci0/dev_F0_BE_25_4A_05_9A/sep4/fd0: fd(41) ready


the output for the journalctl command

journalctl -b wrote:

contents of the log

before getting the log, I have already started the Bluetooth service manually. The log you see is after starting the service and connecting to a Bluetooth headset, I can see the name of the head set in the log. just FYI, not sure if the information is relevant.


just in case it matters
contents of log after a fresh reboot and before starting the Bluetooth service and connecting to a headset

can you also point me to where exactly you got to know what went wrong in the log?



I see

systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.

does that mean I have to install that unit manually?

Last edited by somannak (2023-07-23 17:55:44)

Offline

#4 2023-07-23 19:03:58

espritlibre
Member
Registered: 2022-12-15
Posts: 138

Re: Start Bluetooth service on start up [SOLVED]

ArchWiki

sudo systemctl enable bluetooth.service

Offline

#5 2023-07-23 20:35:34

somannak
Member
Registered: 2021-04-01
Posts: 14

Re: Start Bluetooth service on start up [SOLVED]

espritlibre wrote:

ArchWiki

sudo systemctl enable bluetooth.service


Alright, this is what I have been missing. Now the issue is fixed. This is what I did not understand earlier. Now I think I get it.

Offline

#6 2024-05-27 10:12:39

stellarharbour
Member
Registered: 2024-05-27
Posts: 1

Re: Start Bluetooth service on start up [SOLVED]

Any idea why it's disabled by default? Wi-Fi always enabled for me

Offline

#7 2024-05-27 17:16:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,182

Re: Start Bluetooth service on start up [SOLVED]

Because on Arch most services aren't enabled by default. To get wifi working you'd also have to enable some networking service e.g. NetworkManager or systemd-networkd, same as bluetooth

Last edited by V1del (2024-05-27 17:16:45)

Offline

Board footer

Powered by FluxBB