Force KODI to use ALSA

Force load PulseAudio and ALSA at the same time. Buggy, if you set Kodi Audio output to same device as default desktop audio output. In my case, work like charm as my default desktop audio route to HDMI while Kodi using another device.

create file /usr/share/applications/kodi-alsa.desktop and paste this into the file

 

[Desktop Entry]
Version=1.0
Name=Kodi-ALSA
GenericName=Media Center
Comment=Forced Kodi to run on ALSA instead of PulseAudio
Exec=/usr/share/applications/kodi-alsa.sh
TryExec=/usr/share/applications/kodi-alsa.sh
Icon=kodi
Terminal=false
Type=Application
Categories=AudioVideo;Video;Player;TV;

Actions=Fullscreen;Standalone;

Path=
StartupNotify=false

Create file /usr/share/applications/kodi-alsa.sh and paste this into file

#! /bin/bash

# this makes kodi start with ALSA instead of FUCKING pulse audio

# disable pulse audio
pasuspender

# start kodi with ALSA
AE_SINK=ALSA kodi

Set permission so kodi-alsa.sh could be executed.

credit : https://gist.github.com/bmaeser/1918514429e4855d5188

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s