2015-02-08, 00:59
Hi,
I am running kodi with Kubuntu 14.04 and am trying to get kodi to autostart in ALSA mode by temporarily killing off Pulseaudio before kodi starts and then starting it again when kodi exits. I believe this is a fairly standard approach which I found somewhere else on this forum. I have created a new session file in /usr/share/xsessions/kodi-alsa.desktop containing the following :
[Desktop Entry]
Name=kodi-alsa
Comment=kodi-alsa
Exec=/home/kodi/kodi_alsa_starter
TryExec=/home/kodi/kodi_alsa_starter
Type=Application
and also created a file /home/kodi/kodi_alsa_starter containing the following
#!/bin/bash
# Kill PulseAudio
echo autospawn = no > ~/.config/pulse/client.conf
pulseaudio --kill
# Start Kodi
kodi-standalone
# Start Pulse Audio
rm ~/.config/pulse/client.conf
pulseaudio --start
The file /etc/lightdm/lightdm.conf contains the following
[SeatDefaults]
autologin-user=kodi
user-session=kodi-alsa
greeter-session=lightdm-kde-greeter
allow-guest=false
When I boot the machine, kodi starts automatically as expected but there is no sound and kodi does not appear to be in ALSA mode because I cannot see the audio output device in kodi/system/audio. However, if I exit kodi then drop back to the lightdm login screen and then login again using a password then kodi starts up in ALSA mode as expected. For some reason, autologin is behaving differently from a manual login of the same user and same session.
The lightdm.log (http://paste.ubuntu.com/10116859) shows that /home/kodi/kodi_alsa_starter is being executed in both cases - there are some differences between the two runs but no errors that I can see.
There do not appear to be any pulseaudio errors in syslog (http://paste.ubuntu.com/10116949/)
Does anybody have any ideas about why an autologin session should behave differently from a normal manual login session of the same name?
Is this the best way to start kodi without pulseaudio?
Thanks
I am running kodi with Kubuntu 14.04 and am trying to get kodi to autostart in ALSA mode by temporarily killing off Pulseaudio before kodi starts and then starting it again when kodi exits. I believe this is a fairly standard approach which I found somewhere else on this forum. I have created a new session file in /usr/share/xsessions/kodi-alsa.desktop containing the following :
[Desktop Entry]
Name=kodi-alsa
Comment=kodi-alsa
Exec=/home/kodi/kodi_alsa_starter
TryExec=/home/kodi/kodi_alsa_starter
Type=Application
and also created a file /home/kodi/kodi_alsa_starter containing the following
#!/bin/bash
# Kill PulseAudio
echo autospawn = no > ~/.config/pulse/client.conf
pulseaudio --kill
# Start Kodi
kodi-standalone
# Start Pulse Audio
rm ~/.config/pulse/client.conf
pulseaudio --start
The file /etc/lightdm/lightdm.conf contains the following
[SeatDefaults]
autologin-user=kodi
user-session=kodi-alsa
greeter-session=lightdm-kde-greeter
allow-guest=false
When I boot the machine, kodi starts automatically as expected but there is no sound and kodi does not appear to be in ALSA mode because I cannot see the audio output device in kodi/system/audio. However, if I exit kodi then drop back to the lightdm login screen and then login again using a password then kodi starts up in ALSA mode as expected. For some reason, autologin is behaving differently from a manual login of the same user and same session.
The lightdm.log (http://paste.ubuntu.com/10116859) shows that /home/kodi/kodi_alsa_starter is being executed in both cases - there are some differences between the two runs but no errors that I can see.
There do not appear to be any pulseaudio errors in syslog (http://paste.ubuntu.com/10116949/)
Does anybody have any ideas about why an autologin session should behave differently from a normal manual login session of the same name?
Is this the best way to start kodi without pulseaudio?
Thanks