Make sure that your xbmc-user is allowed to perform this commands without password inquiry (sudo visudo).
Code:
#!/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!! I tested it only with Ubuntu Intrepid !!
My problem is now: how can I include this into XBMC so that I can start this script via remote?!!
Cheers,
David


Search
Help