# Orange Pi zero 2w Bluetooth

**URL:** <https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615>\
**Category:** Troubleshooting\
**Created:** [7 October 2024 21:50 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615 "2024-10-07T21:50:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [7 October 2024 21:50 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/1 "2024-10-07T21:50:23Z")

</div>

3 issues upon basis installation

Gpu  
Sound  
Bluetooth, focussing on this here

### Creating a bug report/issue

I have searched the existing open and closed issues

I did see a nanopi issue in line with the issue but don’t know if it is similar here

#### Required Information

- DietPi version | `971 master michaIng`
- Distro version | 'bookworm`
- Kernel version | `6.6.31-current-sunxi64’
- Architecture | `arm64`
- SBC model | `Orange pi zero 2w`
- Power supply used | (5V 2.1A)
- SD card used | (SanDisk ultra)

#### Steps to reproduce

1. fresh installation with Bluetooth on from the config
2. And after installing blueZ blueman Bluetooth-manager (I think this was all, asked chatgpt for what I needed 😉 )

#### Expected behaviour

- Bluetooth adapter should work

#### Actual behaviour

- Cannot detect hci0 only vhci
- Bluetooth manager window pops up and disappears
- Eventually I managed to open the BT manager menu, but I could not press search
- Bluetooth adapter is not working, but a BT USB dongle works and I connected a device

Could ralink cause firmware clash?

I worked a lot with chatgpt, it helps noobs.  
Been playing with linux for 2 months now and I like Dietpi.  
Hope you can help so I can work on retropie optimization 😅, thanks in advance!

Wifi adapter works, menu would be nice eventually

PS: earlier found the gpu fix and the dtb replacement fix for the no Soundcard issue.

---

<div class="post-metadata">

**Author:** ![boxer](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@boxer](https://dietpi.com/forum/u/boxer)\
**Post date:** [8 October 2024 07:46 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/2 "2024-10-08T07:46:28Z")

</div>

Dietpi doesn’t support this hardware.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [8 October 2024 15:18 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/3 "2024-10-08T15:18:12Z")

</div>

Thanks for the quick reply,

I might be miscommunicating. I called it pci, but it is an integrated Bluetooth/wifi adapter. It works with any other OS that I’ve tried so far.

OrangePI  
Armbian

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [8 October 2024 15:24 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/4 "2024-10-08T15:24:11Z")

</div>

v9.5  
(2024-06-09)

Bug fixes:

- Orange Pi Zero 2W | Resolved an issue where the onboard Ethernet adapter did not work.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 05:54 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/5 "2024-10-09T05:54:41Z")

</div>

Which hardware are you referring to, the orange pi zero 2w or the Bluetooth?

Sorry for the possible mixup.

I mean internal Bluetooth that comes with the board

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [9 October 2024 11:16 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/6 "2024-10-09T11:16:14Z")

</div>

let me ping @MichaIng , maybe he has an idea

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [9 October 2024 14:41 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/7 "2024-10-09T14:41:14Z")

</div>

IIRC, WiFi (the WiFi kernel module) needs to be enabled for Bluetooth to work. Please try this:

```sh
echo 'sprdwl_ng' | sudo tee -a /etc/modules-load.d/dietpi-enable_bluetooth.conf
reboot

```

I’ll implement it ASAP into `dietpi-config`, if it works.

@boxer last warning: If I see you one more time spreading false facts like this, I’ll permanently ban you. It is embarrassing and somewhat sad to see you wasting your time, desperately trying to sabotage other projects, instead of investing this time into your own project. I cannot see into your mind, but what you do is self-destruction. You are making a fool of yourself here, in case you are unable to recognise this yourself.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 16:11 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/8 "2024-10-09T16:11:37Z")

</div>

Tried your cmd… 🥲 no luck

Connection to BlueZ failed.

Bluez daemon is not running, blueman-manager cannot continue. No Bluetooth adapter detected or Bluetooth daemon was not started.

After retrying and rebooting:

Menu openen with the question below. After automatically enabling Bluetooth, each time I open the BT-manager it pops up and disappears.

 ![IMG_20241009_180241](https://dietpi.com/forum/uploads/default/original/2X/3/3578f59fd7eded592d2664c76e98891731210293.jpeg)

```auto
root@DietPi:~# blueman-manager

(blueman-manager:1807): dbind-WARNING **: 18:06:43.254: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
blueman-manager 18.06.44 ERROR Manager:147 on_dbus_name_appeared: Default adapter not found, trying first available.
blueman-manager 18.06.44 ERROR Manager:151 on_dbus_name_appeared: No adapter(s) found, exiting

```

```auto
root@DietPi:~# sudo hciconfig hci0 up
Can't get device info: No such device

```

```auto
root@DietPi:~# rfkill
ID TYPE DEVICE SOFT HARD
 0 bluetooth bluetooth unblocked unblocked
 1 wlan phy0 unblocked unblocked

```

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 16:19 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/9 "2024-10-09T16:19:30Z")

</div>

Again to confirm.  
Asus Bluetooth dongle works as intended. If inserted, Bluetooth icon appears on the right next to the volume icon (in my case)

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 17:57 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/10 "2024-10-09T17:57:08Z")

</div>

![Screenshot_20241009-195557](https://dietpi.com/forum/uploads/default/original/2X/4/46f789ed2682af77e61f2d8db7f6aab0fd8c43c2.jpeg)

Checking this out : ended up being the input of your cmd too many times 😃

nano now looks like this  
sprdbt\_tty (was in her and is default in armbian)  
btusb (added myself)  
hci\_uart (added myself)  
sprdwl\_ng

bluetooth.service - Bluetooth service was skipped because of an unmet condition check (ConditionPathIsDirectory=/sys/class/bluetooth).

end of today: still no luck, sad

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [9 October 2024 19:56 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/11 "2024-10-09T19:56:10Z")

</div>

Ah wait I missed that UART attachment needed for the onboard Bluetooth here. Please try this:

```sh
sudo curl -fo /usr/local/bin/hciattach_opi 'https://raw.githubusercontent.com/orangepi-xunlong/orangepi-build/refs/heads/next/external/packages/blobs/bt/hciattach/hciattach_opi_arm64'
sudo chmod +x /usr/local/bin/hciattach_opi
cat << '_EOF_' | sudo tee /etc/systemd/system/sprd-bluetooth.service
[Unit]
Description=Spreadtrum (sprd) Bluetooth support
After=bluetooth.service

[Service]
RemainAfterExit=yes
ExecStart=/usr/local/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd

[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
systemctl start sprd-bluetooth

```

Please also check which kernel modules are loaded:

```sh
lsmod

```

`sprdwl_ng` and `sprdbt_tty` somehow did not want to load both via `/etc/modules-load.d`, or the order was relevant. And after the need for the UART-attachment, I am actually not sure anymore whether `sprdwl_ng` (WiFi driver) is really needed or not.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 20:18 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/12 "2024-10-09T20:18:42Z")

</div>

works!!!

But problem returns after reboot ☹

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 20:24 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/13 "2024-10-09T20:24:25Z")

</div>

do you want me to try with and without wifi driver? i can remove it, test, put it back

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 20:25 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/14 "2024-10-09T20:25:27Z")

</div>

FYI lsmod

```auto
root@DietPi:~# lsmod
Module Size Used by
uhid 16384 1
rfcomm 73728 12
algif_hash 12288 1
algif_skcipher 12288 1
af_alg 20480 6 algif_hash,algif_skcipher
bnep 28672 2
ath3k 20480 0
snd_soc_hdmi_codec 20480 1
sunxi_cedrus 49152 0
polyval_ce 12288 0
sunxi_cir 16384 0
v4l2_mem2mem 32768 1 sunxi_cedrus
rc_core 45056 2 sunxi_cir
polyval_generic 12288 1 polyval_ce
snd_soc_sunxi_ahub 32768 4
videobuf2_dma_contig 20480 1 sunxi_cedrus
sun50iw9_codec 24576 3
snd_soc_sunxi_machine 20480 0
snd_soc_sunxi_ahub_dam 20480 1 snd_soc_sunxi_ahub
videobuf2_memops 16384 1 videobuf2_dma_contig
dw_hdmi_i2s_audio 12288 0
dw_hdmi_cec 12288 0
videobuf2_v4l2 20480 2 sunxi_cedrus,v4l2_mem2mem
videodev 221184 3 sunxi_cedrus,videobuf2_v4l2,v4l2_mem2mem
videobuf2_common 45056 5 sunxi_cedrus,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
mc 57344 5 sunxi_cedrus,videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
joydev 28672 0
panfrost 69632 6
pwm_sunxi_enhance 16384 1
dump_reg 20480 0
gpu_sched 32768 1 panfrost
drm_shmem_helper 16384 1 panfrost
display_connector 16384 0
cpufreq_dt 16384 0
binfmt_misc 20480 1
sprdwl_ng 344064 0
sunxi_addr 16384 1 sprdwl_ng
cfg80211 385024 1 sprdwl_ng
hci_uart 135168 1
btqca 20480 1 hci_uart
btusb 57344 0
btrtl 28672 2 hci_uart,btusb
btintel 40960 2 hci_uart,btusb
btbcm 16384 2 hci_uart,btusb
bluetooth 700416 46 btrtl,btqca,btintel,hci_uart,btbcm,bnep,ath3k,btusb,rfcomm
ecdh_generic 12288 2 bluetooth
ecc 28672 1 ecdh_generic
sprdbt_tty 36864 2
uwe5622_bsp_sdio 204800 2 sprdbt_tty,sprdwl_ng
rfkill 24576 8 sprdbt_tty,bluetooth,cfg80211
fuse 126976 1
dm_mod 131072 0
sunxi_gmac 40960 0
sunxi_ephy 16384 1 sunxi_gmac
sunxi_ac200 12288 1 sunxi_ephy

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [9 October 2024 20:43 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/15 "2024-10-09T20:43:16Z")

</div>

Great! Ah, the service needs to be enabled, of course:

```sh
sudo systemctl enable sprd-bluetooth

```

Would be indeed great if you could test it without WiFi driver:

```sh
sudo sed -i '/sprdwl_ng/d' /etc/modules-load.d/dietpi-enable_bluetooth.conf
sudo reboot

```

Also good to know that both modules did load successfully via `/etc/modules-load.d` in your case.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 21:03 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/16 "2024-10-09T21:03:00Z")

</div>

Works without Wifi driver

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [9 October 2024 21:08 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/17 "2024-10-09T21:08:34Z")

</div>

Thanks for the amazing service. Didn’t expect this at first. Keep doing what you are doing!! ❤

I hope to get Retropie working tomorrow evening 🤣 \<edit: got it working\>

Will the 3 issues be able to be implemented in a fresh install IMG for Orange Pi zero 2w?

No dietpieEnv Gpu overlays, thanks @urostor + michaIng  
No Soundcard detected, thanks @Totof  
No Bluetooth, thanks @MichaIng

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [10 October 2024 21:16 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/18 "2024-10-10T21:16:58Z")

</div>

Can you try this:

```sh
systemctl disable --now sprd-bluetooth
rm /etc/systemd/system/sprd-bluetooth.service /usr/local/bin/hciattach_opi
apt update
apt install sprd-bluetooth

```

I just created a package with this binary and service and will implement the installation of this into `dietpi-config`: [v9.8 · MichaIng/DietPi@e857d43 · GitHub](https://github.com/MichaIng/DietPi/commit/e857d43)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [11 October 2024 19:43 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/19 "2024-10-11T19:43:55Z")

</div>

@Arrafar  
Answering via email does not work on our forum yet, since we do not run an own webserver here. But I got your mail, that it worked 🙂. Thanks for testing. I’ll have a look into the other issues as well.

---

<div class="post-metadata">

**Author:** ![Arrafar](https://dietpi.com/forum/user_avatar/dietpi.com/arrafar/32/6976_2.png) [@Arrafar](https://dietpi.com/forum/u/Arrafar)\
**Post date:** [16 October 2024 17:47 UTC](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615/20 "2024-10-16T17:47:32Z")

</div>

My 8bitdo modkit controllers are recognized, successfully connected, by Dietpi, but not inside retropie, it was all good with Armbian OS.

Anything were are missing?

Edit: This is a modkit issue. Alternates between 2 startup modes. “Szmy power Ltd” and “\*30 modkit”

[Next page](https://dietpi.com/forum/t/orange-pi-zero-2w-bluetooth/21615.md?page=2)
