[LINUX] XBMC on Xtreamer Ultra, HDMI sound problem
#1
Hi all!

I'm trying to use XBMC on my linux-box Xtreamer Ultra. I have ALSA and Pulseaudio correctly installed, because I can play some test sounds through the HDMI output

For example, this command line works fine and play a "white" noise on my TV speakers:

Code:
speaker-test -Dplughw:1,7

I installed XBMC standalone and run it from my GDM login screen. It starts and works very fine, but I can't heard any sound from the videos.

I tried several configurations under System->Preferences->Audio, but I cannot get it working. When I set the audio output to customize and use the HDMI output, I don't get any sound or I get an error message about a bad audio device initialization when I play something.

I know that some people here is using the Xtreamer Ultra. Had anyone been able to make it works?
Reply
#2
just registered here to tell you... found the solution just now!

i use HDMI for stereo out to the TV, so i want it to output menu sounds and everything "just" stereo there. i use the optical output for surround pass-through. i'm sure this can be adapted, if you want to do something else. do "aplay -l", it should look like the following

Code:
root@ultra:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

so hw:1,3 is HDMI out and hw:0,1 is optical out. should be the same on your box. if it shows more then one nvidia entry then you have to mask the driver discovery. ask me.

in xbmc set the following:
- audio output: HDMI
- speaker conf: 2.0
- check the three boxes
- audio output device: custom --> "hw:1,3"
- passthough output device: custom --> "hw:0,1"

paste the following into /etc/asound.conf
Code:
pcm.!default {
   type plug
   slave {
       pcm "hw:1,3"
       #rate 48000
   }
}

now reboot the box. if this does not work i also did the following, according to some other post. did not try to revert it yet.

DISABLE PULSE AUDIO!
edit /usr/bin/xbmc-standalone. insert the SDL_AUDIODRIVER line and comment out the pulse section. top part should look something like this after:

Code:
#!/bin/sh

#      Copyright (C) 2009-2010 Team XBMC
#      http://www.xbmc.org
#
#  This Program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with XBMC; see the file COPYING.  If not, write to
#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#  http://www.gnu.org/copyleft/gpl.html

SDL_AUDIODRIVER=alsa

prefix="/usr"
exec_prefix="${prefix}"
bindir="${exec_prefix}/bin"
XBMC="${bindir}/xbmc --standalone $@"

#PULSE_START="$(which start-pulseaudio-x11)"
#if [ -n "$PULSE_START" ]; then
#  $PULSE_START
#else
#  PULSE_SESSION="$(which pulse-session)"
#  if [ -n "$PULSE_SESSION" ]; then
#    XBMC="$PULSE_SESSION $XBMC"
#  fi
#fi

LOOP=1
CRASHCOUNT=0
LASTSUCCESSFULSTART=$(date +%s)

I think the most important part is the asound.conf file. i did not try to set the xbmc audio values to the non-custom-devices yet. just glad it works now... if you want you could just take the asound.conf file and set the xbmc config to some sane values and try it out.

tell me how it works Smile
Reply
#3
awwgghhh,,,
dont we just love Xtreamer box problems LoL
Reply
#4
also add this to advancedsettings.xml for GPU/CPU temps:

Code:
<cputempcommand>sensors | grep 'Core 0' | sed -e 's/^Core\ 0\:\ *//' -e 's/\+//' -e 's/\..*/\ C/'</cputempcommand>
  <gputempcommand>nvidia-smi -q -d TEMPERATURE | grep Gpu | sed -e 's/.*:\ //'</gputempcommand>

and in the same directory a file Lircmap.xml should make the play button work
Code:
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml  -->
<!--                                                                              -->
<!-- How to add remotes                                                           -->
<!-- <remote device="name_Lirc_calls_the_remote">                                 -->
<!--                                                                              -->
<!-- For the commands the layout following layout is used                         -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND>                                  -->
<!--                                                                              -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml   -->

<lircmap>
    <remote device="mceusb">
        <play>Play</play>
        <pause>PlayPause</pause>
        <stop>Stop</stop>
        <forward>Forward</forward>
        <reverse>Rewind</reverse>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>OK</select>
        <pageplus>ChanUp</pageplus>
        <pageminus>ChanDown</pageminus>
        <back>Back</back>
        <menu>DVD</menu>
        <title>Guide</title>
        <info>More</info>
        <skipplus>Skip</skipplus>
        <skipminus>Replay</skipminus>
        <display>Aspect</display>
        <start>Home</start>
        <record>Record</record>
        <volumeplus>VolUp</volumeplus>
        <volumeminus>VolDown</volumeminus>
        <mute>Mute</mute>
        <power>Power</power>
        <myvideo>Videos</myvideo>
        <mymusic>Music</mymusic>
        <mypictures>Pictures</mypictures>
        <mytv>TV</mytv>
        <one>One</one>
        <two>Two</two>
        <three>Three</three>
        <four>Four</four>
        <five>Five</five>
        <six>Six</six>
        <seven>Seven</seven>
        <eight>Eight</eight>
        <nine>Nine</nine>
        <zero>Zero</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <clear>Clear</clear>
        <enter>Enter</enter>
        <red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
        <teletext>Teletext</teletext>
    </remote>
</lircmap>

and if shutdown/reboot won't work create the file /var/lib/polkit-1/localauthority/50-local.d/custom-xbmc.pkla and paste (don't forget to change the user in the second line!!)
Code:
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.udisks.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

(2012-04-06, 13:09)eskro Wrote: awwgghhh,,,
dont we just love Xtreamer box problems LoL

it has gotten way better since kernel 3.0. but way better is still not good Confused
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] XBMC on Xtreamer Ultra, HDMI sound problem0