2015-02-03, 09:38
Is pulseaudio running when you exit to kodibuntu? check with the command:
pidof pulseaudio
Also make sure the correct device is selected in kodi.
pidof pulseaudio
Also make sure the correct device is selected in kodi.
Quote:01:54:16 T:140257690654656 NOTICE: load settings...
01:54:16 T:140257690654656 ERROR: PulseAudio: Failed to connect context
01:54:16 T:140257690654656 NOTICE: PulseAudio might not be running. Context was not created.
01:54:17 T:140257690654656 NOTICE: Found 1 Lists of Devices
01:54:17 T:140257690654656 NOTICE: Enumerated ALSA devices:
01:54:17 T:140257690654656 NOTICE: Device 1
01:54:17 T:140257690654656 NOTICE: m_deviceName : iec958:CARD=Intel,DEV=0
01:54:17 T:140257690654656 NOTICE: m_displayName : HDA Intel
01:54:17 T:140257690654656 NOTICE: m_displayNameExtra: ALC1200 Digital S/PDIF
01:54:17 T:140257690654656 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
01:54:17 T:140257690654656 NOTICE: m_channels : FL,FR
01:54:17 T:140257690654656 NOTICE: m_sampleRates : 44100,48000,88200,96000,192000
01:54:17 T:140257690654656 NOTICE: m_dataFormats : AE_FMT_AC3,AE_FMT_DTS,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
01:54:17 T:140257690654656 NOTICE: Device 2
01:54:17 T:140257690654656 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=0
01:54:17 T:140257690654656 NOTICE: m_displayName : HDA NVidia
01:54:17 T:140257690654656 NOTICE: m_displayNameExtra: HDMI #0
01:54:17 T:140257690654656 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
01:54:17 T:140257690654656 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR
01:54:17 T:140257690654656 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
01:54:17 T:140257690654656 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
01:54:17 T:140257690654656 NOTICE: Device 3
01:54:17 T:140257690654656 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=1
01:54:17 T:140257690654656 NOTICE: m_displayName : HDA NVidia
01:54:17 T:140257690654656 NOTICE: m_displayNameExtra: HDMI #1
01:54:17 T:140257690654656 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
01:54:17 T:140257690654656 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR
01:54:17 T:140257690654656 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
01:54:17 T:140257690654656 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
01:54:17 T:140257690654656 NOTICE: Device 4
01:54:17 T:140257690654656 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=2
01:54:17 T:140257690654656 NOTICE: m_displayName : HDA NVidia
01:54:17 T:140257690654656 NOTICE: m_displayNameExtra: HDMI #2
01:54:17 T:140257690654656 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
01:54:17 T:140257690654656 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR
01:54:17 T:140257690654656 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
01:54:17 T:140257690654656 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
01:54:17 T:140257690654656 NOTICE: Device 5
01:54:17 T:140257690654656 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=3
01:54:17 T:140257690654656 NOTICE: m_displayName : HDA NVidia
01:54:17 T:140257690654656 NOTICE: m_displayNameExtra: SAM SAMSUNG on HDMI #3
01:54:17 T:140257690654656 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
01:54:17 T:140257690654656 NOTICE: m_channels : FL,FR
01:54:17 T:140257690654656 NOTICE: m_sampleRates : 32000,44100,48000
01:54:17 T:140257690654656 NOTICE: m_dataFormats : AE_FMT_LPCM,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
01:54:17 T:140257690654656 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
01:54:17 T:140257690654656 NOTICE: Loaded settings file from special://profile/advancedsettings.xml
Quote:#!/bin/bash
#change the ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_XBMC= to yes if you want to stop pulseaudio before starting xbmc
#killing pulseaudio before starting xbmc will ensure that xbmc always uses alsa, but steam may not like having pulseaudio stopped while steam is still running (via 'exit to desktop')
ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_XBMC=no
if $ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_KODI = yes (wiki) ; then
pulseaudio -k
fi
#change the KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM= to no if you dont want to stop pulseaudio only when completely exiting steam
#if yes xbmc will use pulseaudio when steam is running (via 'exit to desktop')
#change the SECONDS_TO_WAIT= to alter the time to wait after closing BPM to check if steam is still running, 2 seconds is good for my system although this could vary from system to system. This will cause xbmc to take 2 seconds longer to restart.
KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM=yes
SECONDS_TO_WAIT=2
if $KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM = yes (wiki) ; then
sleep $SECONDS_TO_WAIT
if ! $(pidof steam) (wiki) ; then
pulseaudio -k
fi
fi
Quote:#!/bin/bash
#change the KILL_XBMC_BEFORE_STARTING_PULSEAUDIO= to yes if you want to stop xbmc before starting pulseaudio
#killing xbmc before starting pulseaudio will ensure the steam bpm gui has sound but will reduce the seamlessness of the addon
KILL_KODI_BEFORE_STARTING_PULSEAUDIO=no
if $KILL_KODI_BEFORE_STARTING_PULSEAUDIO = yes (wiki) ; then
kill -9 $(pidof kodi.bin)
fi
pulseaudio --start
Quote:# --auto-generated-- by /etc/kodi/live.d/01-make-asoundrc.sh
# AUTOUPDATE=True # change this to disable updating of this file
pcm.!default {
type plug;
slave.pcm "plughw:CARD=Intel,DEV=0";
}
Quote:pidof pulseaudio
1097
(2015-02-07, 12:19)teeedubb Wrote: There are some changes to that guide in this post http://forum.kodi.tv/showthread.php?tid=...pid1891893
lightdm.conf Wrote:[SeatDefaults]mkdir -p $HOME/.config/openbox/ && echo "export DISPLAY=:0" >> $HOME/.config/openbox/autostart.sh && echo "xsetroot -solid black &" >> $HOME/.config/openbox/autostart.sh && echo "/usr/bin/xbmc &" >> $HOME/.config/openbox/autostart.sh && chmod +x $HOME/.config/openbox/autostart.sh
xserver-command=/usr/bin/X -bs -nolisten tcp
autologin-user=xbmc
autologin-user-timeout=0
user-session=Openbox
greeter-session=lightdm-gtk-greeter
allow-guest=false
default-user=xbmc
.asoundrc Wrote:# first set oss apps to use dmixersudo apt-add-repository ppa:mdeslaur/steamos
pcm.dsp {
type plug
slave.pcm "dmixer"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
# this makes native ALSA apps default to using dmix
pcm.!default {
type plug
slave.pcm "dmixer"
}
ctl.!default {
type hw
card 0
}
pcm.dmixer {
type dmix
ipc_key 101
slave {
pcm "hw:0,3"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}
# --auto-generated-- by /etc/xbmc/live.d/01-make-asoundrc.sh
# AUTOUPDATE=True # change this to disable updating of this file
pcm.!default {
type plug;
slave.pcm "hdmi:CARD=NVidia,DEV=0";
}