2009-04-20, 19:21
it depends if one interpretes white noise as distortion
Quote:# rename /etc/init.d/alsa-utils
sudo mv /etc/init.d/alsa-utils /etc/init.d/alsa-utils.x
# reboot your system
reboot
# rename /etc/init.d/alsa-utils.x back to /etc/init.d/alsa-utils
sudo mv /etc/init.d/alsa-utils.x /etc/init.d/alsa-utils
#start the alsamixer and activate iec958 output
alsamixer
Quote:sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
Quote:sudo apt-get install linux-sound-base alsa-base alsa-utils
Quote:sudo apt-get install gdm ubuntu-desktop
#!/bin/bash
##
# alsabug.sh
##
# Stop XBMC (type in here your command to stop your XBMC
/sbin/initctl stop tty2
# unload Alsa modules
/sbin/modprobe -r snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq_dummy snd_seq snd_rawmidi snd_pcm_oss snd_mixer_oss snd_hda_intel snd_pcm
# load Alsa modules
/sbin/modprobe -a snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_rawmidi snd_seq snd_timer snd_seq_device snd
# activate the digital sound output
amixer -- sset IEC958 on
# Start XBMC (type in here your command to start XBMC)
/sbin/initctl start tty2
davidw Wrote:My problem is now: how can I include this into XBMC so that I can start this script via remote?!!
Cheers,
David
export XBMC_PLATFORM_MODE=1
while [ 1 ]
do
/sbin/modprobe -a snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_se
q_oss snd_rawmidi snd_seq snd_timer snd_seq_device snd
amixer -- sset IEC958 on
/usr/share/xbmc/xbmc.bin
/sbin/modprobe -r snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq_du
mmy snd_seq snd_rawmidi snd_pcm_oss snd_mixer_oss snd_hda_intel snd_pcm
done
case "$?" in
0 ) # Quit
touch /tmp/noRestartXBMC
break ;;
64 ) # Shutdown System
sleep 10 ;;
65 ) # Warm Reboot
echo Restarting XBMC ... ;;
66 ) # Reboot System
sleep 10 ;;
* ) ;;
esac
tslayer Wrote:I've had this where only digital audio would output and NOT analog (still out of spdif).
What I usually do to fix in my scenario is:
0) Stop XBMC
1) Create a file in your home directory called .asoundrc that contains the following single line: pcm.!default spdif
2) Run: speaker-test -c 2
3) If you hear sound, you can stop.
4) Remove .asoundrc
5) Restart XBMC
Try that...
sudo alsa force-reload