Linux HOW-TO install XBMC for Linux on Asrock ION 330 with full Ubuntu Desktop

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vikjon0 Offline
---
Posts: 2,430
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #181
Quote:I know this isn't related, but did anyone tried to plug in a microphone and successfully recorded something ? I can't and don't know why :|

Go to the ubuntu forum or somewhere else with this problem
find quote
toiva Offline
Posting Freak
Posts: 822
Joined: Aug 2008
Reputation: 15
Post: #182
Is it normal (with HDMI output) that the sound if cut off from the beginning every time playback starts? I've read another threads and someone mentioned some "HDMI handshake" thing.
Last i time had this same problem i was using 8.04. different motherboard and spdif output. Back then it was fixed by upgrading to Jaunty, i still don't know what changed.
find quote
vikjon0 Offline
---
Posts: 2,430
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #183
Quote:Is it normal (with HDMI output) that the sound if cut off from the beginning every time playback starts?

I don't have that problem. I guess it depends on the exact version you are running. You can also try upgrading alsa.
find quote
toiva Offline
Posting Freak
Posts: 822
Joined: Aug 2008
Reputation: 15
Post: #184
I already upgraded to 1.0.21. This is the first i use HDMI for both video and audio AND i recently bought a new amp, so there's just too many variables here Tongue

Edit: with this .asoundrc mp3s play fine, HDMI output won't "deactivate" when skipping through songs, instead it's always on. Videos still have this issue but i can live with that.

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}
(This post was last modified: 2009-09-27 09:59 by toiva.)
find quote
nathan909 Offline
Member
Posts: 84
Joined: May 2004
Reputation: 0
Post: #185
Thank you Vikjon0!!!
This complete setup guide went smooth.

I did need Kingmos's fix, for MP3 Crossover audio fade to work.
So thank you as well!!

I have a small issue that i cant resolve.

I get no audio out of L/R LineOut even when audio output is sent to analog.

I have a shuttle PC with this same setup and it works, but on my ASRock I can not get analog audio through LineOut.

BTW my asound.conf is identical to Kingmos's setup.

Thanks.
find quote
nathan909 Offline
Member
Posts: 84
Joined: May 2004
Reputation: 0
Post: #186
toiva Wrote:Is it normal (with HDMI output) that the sound if cut off from the beginning every time playback starts? I've read another threads and someone mentioned some "HDMI handshake" thing.

I have noticed this same issue when using digital output over HDMI or digital Spdif and connect it to an AV receiver. I believe it has to do with the AV receiver waiting for the Handshake telling it what type of audio is being sent 5.1 or 2ch and then adjusting before you hear any audio. This resaults in a 1 second delay when the audio first begins it stream. I don't think you experience it with/on a TV because the audio is alway set to 2ch.

I have noticed that on all types of devices. Most noticeable on XBMC with the navigation sounds.
find quote
vikjon0 Offline
---
Posts: 2,430
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #187
Quote:I get no audio out of L/R LineOut even when audio output is sent to analog
If you unmute channels, max volume in alsa.
remove the .asoundrc and set xbmc to
analog
default
default
on

It will most likely work.
if not you have a unstable version of xbmc.
find quote
nathan909 Offline
Member
Posts: 84
Joined: May 2004
Reputation: 0
Post: #188
vikjon0 Wrote:If you unmute channels, max volume in alsa.
remove the .asoundrc and set xbmc to
analog
default
default
on

It will most likely work.
if not you have a unstable version of xbmc.


Thank you this did get audio from the line out, but I was hoping for a much easier method, a setting that can be changed just in XBMC with out the need to edit .asoundrc. Is that not possible?

Thanks again,
Nathan
find quote
KOROR Offline
Senior Member
Posts: 155
Joined: Aug 2009
Reputation: 0
Post: #189
Thanks for a awesome guide, I never tried Linux before, but the guide was were very detailed, however I'm having a few problems which I hope someone can help me with:

1. When trying to uninstall nvidia driver with sudo /etc/init.d/gdm stop my Asrock box crashes to some DOS looking screen. So I tried installaling new driver on top, seemed to work ok, except the mouse is acting up, like disappearing and making wierd "boxes" over stuff when using it. I was hoping HW cursor fix:
sudo sed -i '40i\ Option "HWCursor" "False"' /etc/X11/xorg.conf
Would fix this, but hasn't been the case.

2. When starting a movie from XBMC, I get the following sounds error "failed to initialize audio device check your settings hdmi" I think this is happening because I can't seem to find a hdmi setting in the "sudo alsamixer". In XBMC I changed settings according to guide to:
Settings, system, Audio hardware:
Audio output: Digital
Default audio device: hdmi (alt2 "plug:hdmi" alt3 "plughw:0,3")
Passthrough audio device: hdmi
Downmix to stereo: Yes

Actually entering the in bold above

Offtopic, I tried installing Aeon Showmix, Aeon Auriga and Aeon Hitched skins using this auto updater: http://www.xbmc.org/forum/showthread.php?t=56423
But the skins was not added to the skin folder?

These are the problems I'm having right now, please remember I tried Linux/Ubuntu for the first time yesterday, so be gentle with me :-)

Btw Killa Sample vid is playing perfect for the exception of a glitch when starting it (besides problems mentioned above)
find quote
vikjon0 Offline
---
Posts: 2,430
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #190
Quote:1. When trying to uninstall nvidia driver with sudo /etc/init.d/gdm stop my Asrock box crashes to some DOS looking screen. So I tried installaling new driver on top, seemed to work ok,
Yes, that part could be a bit confusing.
1) You only have to uninstall if it was previously installed. The code in my guide is for uninstall a manually built driver downloaded from NVIDIA homepage. If you have installed the restricted driver provided by ubuntu there is a different procedure. If you start with a fresh installation skip this step.
2) Stopping GDM will drop you to command line and this is necessary in order to remove the graphical driver currently in use.

Quote:except the mouse is acting up, like disappearing and making wierd "boxes" over stuff when using it. I was hoping HW cursor fix:
sudo sed -i '40i\ Option "HWCursor" "False"' /etc/X11/xorg.conf
Would fix this, but hasn't been the case.
I am not sure about the wierd boxes, but I do not trust the sed -i command. Please verify manually that the HWcursor option ended up in the Device section. (and the other fixes in the screen section)
(sudo nano /etc/X11/xorg.conf)

Quote:2. When starting a movie from XBMC, I get the following sounds error "failed to initialize audio device check your settings hdmi" I think this is happening because I can't seem to find a hdmi setting in the "sudo alsamixer". In XBMC I changed settings according to guide to:
Settings, system, Audio hardware:
Audio output: Digital
Default audio device: hdmi (alt2 "plug:hdmi" alt3 "plughw:0,3")
Passthrough audio device: hdmi
Downmix to stereo: Yes

Actually entering the in bold above
OK, again this is very clear when I read it my self...but not for all other people...
Only enter: Default audio device: hdmi
The other text is a comment. You may want to add plug:hdmi instead if mp3 or flash is playing to fast.

Quote:Offtopic, I tried installing Aeon Showmix, Aeon Auriga and Aeon Hitched skins using this auto updater: http://www.xbmc.org/forum/showthread.php?t=56423
But the skins was not added to the skin folder?
No idea, but if look through this thread there should be a post about installing Aeon. Maybe that will help you.

Quote:Btw Killa Sample vid is playing perfect for the exception of a glitch when starting it (besides problems mentioned above)
Yes, I also get a disturbance in the beginning. Not the best sample, I only use it to verify that VDPAU is working.
find quote
Post Reply