hmi-audio-policy manual


Image Types:
hmi-armhf / hmi-amd64 / sdk-amd64
Image Deployment:


Test that audio policy to mute song application when switching to video application

Pre Conditions

  1. The respective target (i.MX6 or UP Squared board) should be on and running
  2. Lilliput/LVDS touch screens must be connected to the respective targets
  3. When running the test on SabreLite boards using the headphone jack to check the audio output, the audio manager needs to be configured to route it accordingly as it defaults to the HDMI output:
  4. $ pactl set-default-sink alsa_output.platform-sound.stereo-fallback
    $ pactl set-sink-port alsa_output.platform-sound.stereo-fallback analog-output-headphones
  5. After reboot ensure that headphones will not be muted:
  6. $ pactl set-sink-mute alsa_output.platform-sound.stereo-fallback false

Execution Steps

  1. Add the Flathub and Apertis Flatpak repositories (only needed on SDK images)
  2. $ flatpak remote-add --user --no-sign-verify --if-not-exists flathub
    $ flatpak remote-add --user --if-not-exists apertis
  3. Install Rhythmbox from Flathub (only needed on SDK images)
  4. $ flatpak install --user flathub org.gnome.Rhythmbox3
  5. Install Totem (only needed on SDK images)
  6. $ flatpak install --user apertis org.apertis.hmi.totem//stable
  7. Open the Rhythmbox Music Application
  8. $ flatpak run org.gnome.Rhythmbox3
  9. Play any song
  10. While the song is playing, open the Videos Application
  11. $ flatpak run org.apertis.hmi.totem
  12. Play any video
  13. Ensure that audio from Videos is played and audio from Rhythmbox is not heard
  14. Close Videos application
  15. Audio from Rhythmbox is heard


Audio files play without any glitch and can be paused