Failed to set mode: Failed (0x03)

I had problems with buletooth and after I solve the problem and bluetooth worked for 1 day next day when I tried to use it It's not working when I checked the bluetooth status I found this

дек 19 20:59:16 blackjoker-X750JB systemd[1]: Starting Bluetooth service...
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Bluetooth daemon 5.53
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Starting SDP server
дек 19 20:59:16 blackjoker-X750JB systemd[1]: Started Bluetooth service.
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Bluetooth management interface 1.21 initialized
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSink/sbc
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSource/sbc
дек 19 20:59:17 blackjoker-X750JB bluetoothd[35062]: Failed to set mode: Failed (0x03)
дек 19 20:59:18 blackjoker-X750JB bluetoothd[35062]: Failed to set mode: Failed (0x03)

I searched for this error tired almost everything and nothing helps

Please send me the output from:

journalctl -xe | grep bluetooth

дек 19 20:54:49 blackjoker-X750JB sudo[34737]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth.service
дек 19 20:55:14 blackjoker-X750JB sudo[34793]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl start bluetooth.service
дек 19 20:55:28 blackjoker-X750JB sudo[34802]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/sbin/rfkill unblock bluetooth
дек 19 20:55:28 blackjoker-X750JB rfkill[34803]: unblock set for type bluetooth
дек 19 20:55:33 blackjoker-X750JB sudo[34805]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth.service
дек 19 20:58:48 blackjoker-X750JB sudo[35021]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/sbin/rfkill unblock bluetooth
дек 19 20:58:48 blackjoker-X750JB rfkill[35024]: unblock set for type bluetooth
дек 19 20:58:55 blackjoker-X750JB sudo[35027]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl stop bluetooth
дек 19 20:58:55 blackjoker-X750JB bluetoothd[31344]: Terminating
-- Subject: A stop job for unit bluetooth.service has begun execution
-- A stop job for unit bluetooth.service has begun execution.
дек 19 20:58:55 blackjoker-X750JB bluetoothd[31344]: Endpoint unregistered: sender=:1.76 path=/MediaEndpoint/A2DPSink/sbc
дек 19 20:58:55 blackjoker-X750JB bluetoothd[31344]: Endpoint unregistered: sender=:1.76 path=/MediaEndpoint/A2DPSource/sbc
дек 19 20:58:55 blackjoker-X750JB dbus-daemon[936]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.76" (uid=1000 pid=1697 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.309" (uid=0 pid=31344 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
дек 19 20:58:55 blackjoker-X750JB dbus-daemon[936]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.76" (uid=1000 pid=1697 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.309" (uid=0 pid=31344 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
дек 19 20:58:55 blackjoker-X750JB bluetoothd[31344]: Stopping SDP server
дек 19 20:58:55 blackjoker-X750JB bluetoothd[31344]: Exit
дек 19 20:58:55 blackjoker-X750JB systemd[1]: bluetooth.service: Succeeded.
-- The unit bluetooth.service has successfully entered the 'dead' state.
-- Subject: A stop job for unit bluetooth.service has finished
-- A stop job for unit bluetooth.service has finished.
дек 19 20:59:01 blackjoker-X750JB sudo[35032]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth
дек 19 20:59:16 blackjoker-X750JB sudo[35058]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl restart bluetooth
-- Subject: A start job for unit bluetooth.service has begun execution
-- A start job for unit bluetooth.service has begun execution.
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Bluetooth daemon 5.53
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Starting SDP server
-- Subject: A start job for unit bluetooth.service has finished successfully
-- A start job for unit bluetooth.service has finished successfully.
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Bluetooth management interface 1.21 initialized
дек 19 20:59:16 blackjoker-X750JB dbus-daemon[936]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.323' (uid=0 pid=35062 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSink/sbc
дек 19 20:59:16 blackjoker-X750JB bluetoothd[35062]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSource/sbc
дек 19 20:59:17 blackjoker-X750JB bluetoothd[35062]: Failed to set mode: Failed (0x03)
дек 19 20:59:18 blackjoker-X750JB bluetoothd[35062]: Failed to set mode: Failed (0x03)
дек 19 20:59:26 blackjoker-X750JB sudo[35073]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth
дек 19 21:01:28 blackjoker-X750JB sudo[35294]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth
дек 19 21:01:50 blackjoker-X750JB sudo[35347]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl start bluetooth.service
дек 19 21:01:59 blackjoker-X750JB sudo[35355]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/sbin/rfkill unblock bluetooth
дек 19 21:01:59 blackjoker-X750JB rfkill[35356]: unblock set for type bluetooth
дек 19 21:02:02 blackjoker-X750JB sudo[35376]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth
дек 19 21:09:39 blackjoker-X750JB sudo[36004]: blackjoker : TTY=pts/2 ; PWD=/home/blackjoker ; USER=root ; COMMAND=/usr/bin/systemctl status bluetooth

Reset the BT Adapter:

sudo hciconfig hci0 reset

and reinstall BT packages:

sudo apt-get install --reinstall bluez

Give it a try...

At times, it can be challenging to provide assistance without more specific details. For instance, knowing the hardware or notebook you are using, along with any steps you've taken so far to address the issue, would be helpful. Without these details, it's a bit like trying to fish in the dark. :blush:

1 Like

@BlackJoker may have output

sudo lshw -C network

uname -r

in another thread; but it is worth repeating those here along with make and model.

image

image

sudo rfkill unblock bluetooth

Have you checked the answer provided here?

1 Like

Usage

# Init
sudo modprobe rtbth
sudo rfkill unblock bluetooth
hcitool dev # check

# Switch off
sudo rfkill block bluetooth

# Switch on
sudo rfkill unblock bluetooth

# Shutdown
sudo pkill -2 rtbt
sudo rmmod rtbth

I tried but it's not working some stem not going

image

no devices

@Aravisian @Inzingor When I turned on my laptop today and I used

sudo modprobe btusb
sudo systemctl start bluetooth.service
sudo modprobe rtbth
sudo rfkill unblock bluetooth
sudo systemctl status bluetooth.service

It worked and by the end of the day I wanted to send some files from the phone and I got this


дек 20 10:22:58 blackjoker-X750JB systemd[1]: Starting Bluetooth service...
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Bluetooth daemon 5.53
дек 20 10:22:58 blackjoker-X750JB systemd[1]: Started Bluetooth service.
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Starting SDP server
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Bluetooth management interf>
дек 20 10:23:05 blackjoker-X750JB bluetoothd[2832]: Endpoint registered: sender>
дек 20 10:23:05 blackjoker-X750JB bluetoothd[2832]: Endpoint registered: sender>
дек 20 10:24:41 blackjoker-X750JB bluetoothd[2832]: Unable to get io data for O>
дек 20 21:54:43 blackjoker-X750JB bluetoothd[2832]: Failed to set mode: Failed >
дек 20 21:54:45 blackjoker-X750JB bluetoothd[2832]: Failed to set mode: Failed >
lines 1-21/21 (END)...skipping...
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-12-20 10:22:58 MSK; 11h ago
Docs: man:bluetoothd(8)
Main PID: 2832 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9237)
Memory: 1.4M
CGroup: /system.slice/bluetooth.service
└─2832 /usr/lib/bluetooth/bluetoothd

дек 20 10:22:58 blackjoker-X750JB systemd[1]: Starting Bluetooth service...
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Bluetooth daemon 5.53
дек 20 10:22:58 blackjoker-X750JB systemd[1]: Started Bluetooth service.
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Starting SDP server
дек 20 10:22:58 blackjoker-X750JB bluetoothd[2832]: Bluetooth management interface 1.21 initialized
дек 20 10:23:05 blackjoker-X750JB bluetoothd[2832]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSink/sbc
дек 20 10:23:05 blackjoker-X750JB bluetoothd[2832]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSource/sbc
дек 20 10:24:41 blackjoker-X750JB bluetoothd[2832]: Unable to get io data for Object Push: getpeername: Transport endpoint is not connected (107)
дек 20 21:54:43 blackjoker-X750JB bluetoothd[2832]: Failed to set mode: Failed (0x03)
дек 20 21:54:45 blackjoker-X750JB bluetoothd[2832]: Failed to set mode: Failed (0x03)
~

Have you yet examined: Failed to set mode: Failed (0x03) - #9 by Aravisian

to see if your driver needs to be fully reinstalled?

yes I tried but look at that


when I'm using sudo pico /etc/rc.local

use gedit instead of pico

sudo gedit /etc/rc.local

The steps are (Skip any that you have successfully done):

sudo add-apt-repository ppa:blaze/rtbth-dkms

sudo apt update && sudo apt install rtbth-dkms

Then as @littlekun suggests, use Gedit (or Nano; Pico is fine if you have it installed and working)
Create the file:

sudo touch /etc/rc.local

Edit it with the text editor:

sudo gedit /etc/rc.local

Once that file is open, paste using Right Click and Paste in the terminal window or the keybaord shortcut ctl+shift+v:

modprobe rtbth &> /dev/null

exit 0

Once that is pasted in, tap ctl+o to overwrite, then the enter key to save current configuration, then tap ctrl+x to exit the editor.
Now, give the file exec permission:

sudo chmod 777 /etc/rc.local

The author recommends blueman which I agree with

sudo apt install blueman

I use blueman Bluetooth Manager for ease and versatility in managing BT devices.

Once the above is done, Reboot and test detecting your device using Blueman, launchable from the app menu.

gedit works in GUI so ctrl+c/v works perfectly. ctrl+s to save

touch is not needed, gedit creates the file as mentioned in command after the save.

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