I have searched the existing open and closed issues
Required Information
DietPi version: 9.8
Distro version: bookworm
Kernel version: Linux DietPi 6.6.44-current-sunxi64
Architecture: arm64
SBC model: Orange Pi Zero 2W (aarch64)
Power supply used: 2A
SD card used: 128GB
Additional Information (if applicable)
I have used WIFI to connect to the Internet
I have used the dietpi Software tool to install the MATE desktop and Firefox web browser
I am able to login with the dietpi user into the MATE desktop
I tried to use: sudo dietpi-config to enable sound unsuccessfully
Steps to reproduce
When I open the Sound applet, I see that there is no sound device
Therefore there is no sound coming out of mi orange pi zero 2w
I have my speakers connected to my monitor
I know the hardware setup works because I do get sound when I use the Orange Pi OS
but I would rather use dietpi
Expected behaviour
should be able to play audio through the HDMI connection into the speakers attached to my monitor
sudo dietpi-config
a menu is shown, select the Audio Options
shows:
sound-card : [none-plug]
auto-conversion: [on]
dietpi-justboom: launches EQ and MPD audio options menu
-----------------------------------------------
disable: disable all audio cababilities
If I select sound-card and then OK, it shows
--- auto detection ---
usb-dac: usb audio dac (any)
I select auto detection and enter, nothing seems to change
select ok, again nothing seems to change
the only way out is to hit cancel
alsa is installed
This user interface is confusing
What do I need to do to enable sound with some shell commands
and how to test?
The sound is broken with the default device tree. I will send a proper one here (heavily influenced by another topic which I will link to). Please remind me!
I the meantime, you can just use zero 3 dtb (fixes HDMI sound and everything seems to work but I won’t vouch for it not breaking anything).
For the sound you need to activate it by a static way for the orangepi card
so the modified file with the txt extension , just remve the dot and txt and upload
the file to your sd card in /boot/dtb/allwinner/sun50i-h618-orangepi-zero2w-essai.dtb
with the “sudo cp” command sun50i-h618-orangepi-zero2w-essai.dtb.txt (39,6 Ko)
when you upload you also edit the dietpienv.txt with “sudo nano /boot/dietpiEnv.txt”
and put a line with fdtfile like this
rootdev=UUID="your sd card"
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=console=ttyS0,115200 console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=allwinner
overlay_prefix=sun50i-h616
overlays=
user_overlays=
fdtfile=allwinner/sun50i-h618-orangepi-zero2w-essai.dtb
This dtb file activate the HDMI, Jack audio part, the i2s0 audio part
and also the i2c1