View Full Version : Had to blow away Ubuntu, found two missing packages
While watching a movie XBMC crashed, Ubuntu lost sound and as before nothing I tried would bring it back. Not sure if this is Ubuntu or XBMC corrupting something but in any case I moved to an older backup.
When I began to compile I found two libraries not in the Readme currently. Libhal-dev and Libhal-storage-dev were both required, I think there was a third but I didn't keep notes:no:
Got some other errors but killing the source completely and pulling again seems ot have solved this - whew!
For Ubuntu 7.10 (Gutsy Gibbon):
# sudo apt-get install make g++-4.1 gcc-4.1 libsdl1.2-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer
1.2-dev libsdl-sound1.2-dev libsdl-stretch-dev libcdio6 libcdio-dev libfribidi0 libfribidi-dev liblzo1 liblzo-d
ev libfreetype6 libfreetype6-dev libsqlite3-0 libsqlite3-dev libogg-dev libasound2-dev python2.4-dev python2.4
python-sqlite libglew1.4 libglew1.4-dev libcurl3-dev g++ gawk x11proto-xinerama-dev libxinerama-dev libxrandr-d
ev libxrender-dev libmms-dev pmount libmad0-dev libtre-dev libogg-dev libvorbis-dev libmysqlclient15-dev libpcr
e3-dev libdbus-1-dev libhal-dev libhal-storage-dev
Looks to be there in README.linux.
Yes, it appears to be there NOW. However I can tell you that when I copy\pasted directly from the Readme yesterday it wasn't. Looks like it was added Feb 28 for 11829 but I know I pulled from SVN. Cannot explain why I didn't get it but I copy\pasted both in SSH and from a text editor on the box. Weird :(
Maybe your local copy was write protected or something :)
Who knows...
GrandAnse
2008-03-19, 13:42
[QUOTE=BLKMGK;174834]While watching a movie XBMC crashed, Ubuntu lost sound and as before nothing I tried would bring it back. QUOTE]
I have the same problem. XBMC crashed while watching a .mkv movie and I lost sound in Ubuntu. Got it back by turning on PCM sound in alsamixer after that.
[QUOTE=BLKMGK;174834]While watching a movie XBMC crashed, Ubuntu lost sound and as before nothing I tried would bring it back. QUOTE]
I have the same problem. XBMC crashed while watching a .mkv movie and I lost sound in Ubuntu. Got it back by turning on PCM sound in alsamixer after that.
Pretty sure this is an Ubuntu issue but... yes was watching a MKV file. XBMC dumped and upon restarting XBMC no sound in the UI. No sound at desktop. Rebooted, still no sound. Disabled and re enabled PCM, no sound. Reloaded OS from backup - sound! Last time this occured I went so far as to remove and reload ALSA - no joy. It's weird but the only connection to XBMC is that I was using XBMC when a crash occurred. If it happened more often I might be pointing fingers but twice in like 4 months with no one else but maybe you and I seeing it isn't a smoking gun IMO. Looking over the Ubuntu forums I saw plenty of posts about weird sound issues but nothing that helped me - backup is no biggie to restore from although it seems mine is a bit out of date now:shocked:
althekiller
2008-03-20, 04:16
What prolly happened is the same thing as GrandAnse was saying except that when you rebooted your alsa state was stored (muted/low) in /etc/asound.state.
What prolly happened is the same thing as GrandAnse was saying except that when you rebooted your alsa state was stored (muted/low) in /etc/asound.state.
That state would have shown up in the commandline ALSA mixer app at the very least yes? Trust me, tried that app, the GUI mixer, and multiple other things. I didn't go so far as to look at asound.state itself but I'll try that too if it happens again. FWIW, when I very first installed Ubuntu I had no PCM sound and the issue turned out to be that the PCM was muted so the very fist place I looked was there since it took me so long to figure that out the first time. Odder still? When this occurs on my machine the headphone output works fine - volume and all! I can play music, I just get no PCM output. The PCM is checked off as enabled too, very weird.
In any case I do not think it's anything that XBMC is doing and the fact that it occurs during an XBMC crash is tangential IMO. <shrug>
Zeppstar
2008-12-20, 09:01
I have/had a similar PCM sound issue on both Ubuntu 8.04 and 8.10. My setup is a command line install with alsa, xorg, envyng-core and xbmc.
If the x-server or xbmc crashed, I would lose pcm sound output through spdif. No matter what I did I could not re-enable. Curiously, all my Dobly, DTS and surround material would play fine with audio. I too was forced to clean re-install which would bring back PCM until the next crash.
Just recently I found an article which compiles and re-installs alsa.
And to my suprise, PCM audio has returned.
This is what I did.
sudo aptitude install build-essential module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a a-i alsa
I'll let you know if this fixes my PCM audio problem for good.
You may also want to read this thread -> http://xbmc.org/forum/showthread.php?t=35901 So far that solution has solved this issue for me about 4 times now! (lol)
Zeppstar
2008-12-22, 00:38
When you say "solved this issue for me 4 times" are you you saying that the sound still drops out and you have to do the .asoundrc fix again ?
or has the .asoundrc fix sovled this issue on 4 seperate systems ?
althekiller
2008-12-22, 02:21
He's saying you brought up a 9mo old thread and many solutions have been proposed since.
No actually... when XBMC has hard crashed on me a few times (I run SVN code) it has occasionally surfaced a bug in the ALSA code that kills digital sound. When that occurs I follow the instructions in the sticky thread I highlighted to get my sound back. This has worked for me MULTIPLE times on the same machine. The bug is apparently in ALSA and not XBMC but when XBMC cores while playing surround sound it can occasionally trigger this situation <shrug>
Zeppstar
2008-12-22, 14:19
Thanks for clarifying that.
thx guys, it was driving me nuts lately (loosing PCM stereo but DD or DTS wil work just fine)