Follow

Configuring OpenElec/LibreElec with device-tree-overlays

Should I configure OpenElec/LibreElec using device-tree overlay?

Alle newer versions of OpenElec (starting with version 6) and all LibreElec versions use the device-tree method to configure the board.
If you have already flashed the EEPROM of your DAC+ Standard/Pro or Digi+, the card will be automatically detected and you only have to configure it in the settings menu.

Login to your OpenElec system using ssh.

When you first boot you should enable SSH when the Welcome to OpenElec wizard is displayed. You can enable SSH, later, via the OpenElec settings.

The SSH login details are

Login: root
Password: openelec

Make /flash writeable

Once logged in via SSH the disk partition mounted under the /flash directory needs to be made writeable. Run the following command in the SSH console to do this:

mount -o remount,rw /flash

Edit config.txt

Edit the configuration text file /flash/config.txt using an available text editor, such as nano or vi.

Add the following lines,depending on the type of sound card, to config.txt.

DAC/DAC+ Light

dtoverlay=hifiberry-dac
dtdebug=1

DAC+ standard/pro

dtoverlay=hifiberry-dacplus
dtdebug=1

Digi/Digi+

dtoverlay=hifiberry-digi
dtdebug=1

Amp/Amp+

dtoverlay=hifiberry-amp
dtdebug=1

Save the changes to config.txt and then reboot your OpenElec machine.

If the sound card isn’t recognized after the reboot, check the log output via the command:

vcdbg log msg

Select the sound card

Once rebooted, navigate the OpenElec menu to SystemSettings to show the Change Your Settings panel. Select the System submenu followed by the Audio output page. From the Audio output device select the ALSA enabled HiFiBerry sound card. All sound will now go to the HiFiBerry sound card’s output.
raspbmc6

Mixer control for DAC+

OpenElec seems to set the mixer to 100% by default. This can result in distortions of the music output. Therefore you should set this to around 80%. Login and use the following command:

amixer -c 0 set Digital 80%

You may want to experiment with the percentage volume in order to tune it to your desired preference.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Mike Burgert

    One question, It seems the mixer volume is too loud and distorted. Just for the benefit of noobs like myself...
    Above it says Login and use the following command: amixer -c 0 set Digital 80%
    Is this a line to add to the /flash/config.txt file? Add this line after the dtoverlay-etc?
    I've got my dac+ pro working, but it does seem to be clipping a bit...
    Thanks! -Mike