Kodi Community Forum
Linux HOW-TO install XBMC for Linux on Asrock ION 330 with full Ubuntu Desktop - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux HOW-TO install XBMC for Linux on Asrock ION 330 with full Ubuntu Desktop (/showthread.php?tid=54705)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


- beklyn - 2009-08-28

Yeah the HDMI Channel isnt muted as you can see in this Picture. And i cant see any Files at all on on the Network even on uPnP device Sad

Image


- azatot - 2009-08-30

beklyn Wrote:Yeah the HDMI Channel isnt muted as you can see in this Picture. And i cant see any Files at all on on the Network even on uPnP device Sad

Image


If you keep going to the right with the arrow buttons you will see that there is another device that you must unmute to get it to work, at least that did it for me.


Have anyone got a fix for the overscanning? When i first installed ubuntu the screen resolution was perfect and no overscan but as soon as i installed the nvidia drivers i got a huge overscan and since im a total linux newbie ive got no clue at all what to do. Would really appreciate some help with this :S
Ive got a Asrock ion 330 connected to a Samsung 40S71 LCD-TV. I had the same problem in Win XP but that was easily fixed with the resize option in the nvidia config panel.

Regards
Azatot


- vikjon0 - 2009-08-31

Yes, there is one more iec958 thing to unmute.

Quote:resize option in the nvidia config panel.
There is a screen calibration function in xbmc that I guess is similar to resize.


- bbaldino - 2009-08-31

Suspend and resume are working fine (although I wish you could turn off that blinking light during suspend!), but I've noticed that after re-starting XBMC after resume, it seems to have some issues (it hangs). I'll try and grab some debug logs tonight, but has anyone seen this?

EDIT: I am seeing on occasional hang, but it doesn't seem to be related to suspend/resume...I'll have to keep an eye on it to find out what's behind it.

Still would love a way to disable that blinking LED on suspend though! I looked in the suspend/resume scripts, and saw something about blinking in relation to a thinkpad, but disabling it didn't have any effect.


- Lamm - 2009-09-01

I've noticed something strange when resuming from suspend. the power LED doesnt come on! if i reboot it comes back on and it comes back on after the first suspend but then...nothing. I suspect that this is a bios bug but who knows. I like it Smile that LED is too strong for a dark room like mine.


audio crossfade over hdmi or spdif - kingmos - 2009-09-03

i got crossfade over hdmi working while still having the ability to direct output digital streams as DTS or Dolby Digital, maybe this is usefull for one of you Wink

this is my .asoundrc, i set up my system with the guide from the first page, so this should work for all of you ion 330 users.

Code:
# ~/.asoundrc or /etc/asound.conf
# ALSA configuration file

##### USAGE #####
# Save this file as "~/.asoundrc" (for user-specific sound configuration) or
# "/etc/asound.conf" (for system-wide sound configuration) and specify ALSA
# device names ad described in the next section.


##### DEVICE NAMES #####
# This configuration file defines four devices for use by the user.  Those
# devices are "analog", "mixed-analog", "digital", and "mixed-digital".  The
# user may also re-define "default" to be identical to one of the above-named
# devices (i.e. to send all sound output to the digital output unless otherwise
# specified).  Use the device names as described below:
#  - "analog" outputs to the analog output directly and (at least on software
#  sound cards) blocks other audio output.  After playback completes, "queued"
#  sounds are output in sequence.
#  - "mixed-analog" mixes audio output from multiple programs into the analog
#  output (so you can hear beeps, alerts, and other noises while playing back
#  an audio stream).
#  - "digital" outputs to the digital output directly.  Since most (all?)
#  digital outputs expect 48kHz PCM audio, this may not work for some playback
#  (i.e. CD's--which are 44.1kHz PCM audio--or 32kHz audio streams from TV
#  recordings, etc.).
#  - "mixed-digital"

# All other devices created within this file are used only by the configuration
# file itself and should /not/ be used directly.  In other words, do not use
# the devices "analog-hw", "dmix-analog", "digital-hw", or "dmix-digital".


##### IMPORTANT #####
# To make this ALSA configuration file work with your sound card, you will need
# to define the appropriate card and device information for the "analog-hw" and
# "digital-hw" devices below.  You can find the card and device information
# using "aplay -l".


##### Configuration File #####

# Override the default output used by ALSA.  If you do not override the
# default, your default device is identical to the (unmixed) "analog" device
# shown below.  If you prefer mixed and/or digital output, uncomment the
# appropriate four lines below (only one slave.pcm line).
#
# Note, also, that as of ALSA 1.0.9, "software" sound cards have been modified
# such that their default "default" device is identical to the "mixed-analog"
# device.  Whether using an ALSA version before or after 1.0.9, it does no harm
# and has no affect on performance to redefine the device (even if the
# redefinition does not change anything).  Also, by using this ALSA
# configuration file, you once again have access to unmixed analog output using
# the "analog" device.
pcm.!default {
  type plug
## Uncomment the following to use (unmixed) "analog" by default
#  slave.pcm "analog-hw"
## Uncomment the following to use "mixed-analog" by default
#  slave.pcm "dmix-analog"
## Uncomment the following to use (unmixed) "digital" by default
#  slave.pcm "digital-hw"
## Uncomment the following to use "mixed-digital" by default
  slave.pcm "dmix-digital"
}

# Control device (mixer, etc.) for the card
ctl.!default {
  type hw
  card 0
}

# Alias for (converted) analog output on the card
# - This is identical to the device named "default"--which always exists and
# refers to hw:0,0 (unless overridden)
# - Therefore, we can specify "hw:0,0", "default", or "analog" to access analog
# output on the card
# - Note that as of ALSA 1.0.9, "software" sound card definitions redefine
# "default" to do mixing, meaning this device is different from "default" and
# allows playback while blocking other sound sources (until playback
# completes).
pcm.analog {
  type plug
  slave.pcm "analog-hw"
}

# Control device (mixer, etc.) for the card
ctl.analog {
  type hw
  card 0
}

# Alias for (converted) mixed analog output on the card
# - This will accept audio input--regardless of rate--and convert to the rate
# required for the dmix plugin (in this case 48000Hz)
# - Note that as of ALSA 1.0.9, "software" sound card definitions redefine
# "default" to do mixing, meaning this device is identical to "default" for
# "software" sound cards.
pcm.mixed-analog {
  type plug
  slave.pcm "dmix-analog"
}

# Control device (mixer, etc.) for the card
ctl.mixed-analog {
  type hw
  card 0
}

# Alias for (converted) digital (S/PDIF) output on the card
# - This will accept audio input--regardless of rate--and convert to the rate
# required for the S/PDIF hardware (in this case 48000Hz)
pcm.digital {
  type plug
  slave.pcm "digital-hw"
}

# Control device (mixer, etc.) for the card
ctl.digital {
  type hw
  card 0
}

# Alias for mixed (converted) digital (S/PDIF) output on the card
#  - This will accept audio input--regardless of rate--and convert to the rate
#  required for the S/PDIF hardware (in this case 48000Hz)
pcm.mixed-digital {
  type plug
  slave.pcm "dmix-digital"
}

# Control device (mixer, etc.) for the card
ctl.mixed-digital {
  type hw
  card 0
}

# The following devices are not useful by themselves.  They require specific
# rates, channels, and formats.  Therefore, you probably do not want to use
# them directly.  Instead use of of the devices defined above.

# Alias for analog output on the card
# Do not use this directly--it requires specific rate, channels, and format
pcm.analog-hw {
  type hw
  card 0
  # The default value for device is 0, so no need to specify
#  - Uncomment one of the below or create a new "device N" line as appropriate
#    for your sound card or
#  device 1
#  device 4
}

# Control device (mixer, etc.) for the card
ctl.analog-hw {
  type hw
  card 0
}

# Alias for digital (S/PDIF) output on the card
# Do not use this directly--it requires specific rate, channels, and format
pcm.digital-hw {
  type hw
  card 0
[b]  device 3[/b]
#  - Comment out "device 1" above and uncomment one of the below or create a
#    new "device N" line as appropriate for your sound card or
#  device 2
#  device 4
}

# Control device (mixer, etc.) for the card
ctl.digital-hw {
  type hw
  card 0
}

# Direct software mixing plugin for analog output on the card
# Do not use this directly--it requires specific rate, channels, and format
pcm.dmix-analog {
  type dmix
  ipc_key 1234
  slave {
    pcm "analog-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
    }
}

# Control device (mixer, etc.) for the card
ctl.dmix-analog {
  type hw
  card 0
}

# Direct software mixing plugin for digital (S/PDIF) output on the card
# Do not use this directly--it requires specific rate, channels, and format
pcm.dmix-digital {
  type dmix
  ipc_key 1235
  slave {
    pcm "digital-hw"
    period_time 0
    period_size 2048
    buffer_size 32768
    rate 48000
    }
}

# Control device (mixer, etc.) for the card
ctl.dmix-digital {
  type hw
  card 0
}
change the bold code for spdif (in section pcm.digital-hw). should be device 2 i guess (haven't tested it though)

in xbmc you need to change toe following settings in the audio hardware section:

audio output device: mixed-digital
passthrough output device: digital

hope this is usefull!


- SilverSide - 2009-09-03

I have problems playing following stream. When played in 'desktop' mode in VLC player it plays fine. When added to a .strm file and played in XBMC it stays still...

mms://81.23.251.55/ArrowAudio01?MSWMExt=.asf

Someone any idea's?


- BLKMGK - 2009-09-04

Argh! No sound here <sigh>

ASROCK 330. HDMI is desired (highly!)

Using the GUI control I see:
HDA NVIDIA (Alsa mixer)
Nvidia MCP7a HDMI (OSS Mixer)

Running Alsamixer via SSH it comes up with Nvidia MCP7A HDMI. I have PCM maxxed out, IEC958 unmuted, IEC958 D unmuted, IEC958 1 unmuted, and IEC958 2 unmuted.

I am running ALSA 1.0.20 and have 21 but have not installed it. In my XBMC setup I have Digital set as my output, AC3 capable checked, DTS capable checked (my receiver is), my Audio output is listed as "default", and the passthrough is listed as "iec958". Downmix is NOT checked. I have NO .asoundrc file currently. Sound doesn't work at the desktop either :-(

This is Ubuntu 9.04 fully installed. I have the latest Nvidia 90 drivers from Nvidia's PPA. I know this stereo input works fine - my PS3 was on it previously. My other XBMC box works great but is a totally different setup. I struggled with the HDMI on it too!

So, what did I miss? :-(

P.S. Speaker-test also results in no sound...


- vikjon0 - 2009-09-04

Quote:i got crossfade over hdmi working while still having the ability to direct output digital streams as DTS or Dolby Digital, maybe this is usefull for one of you

this is my .asoundrc, i set up my system with the guide from the first page, so this should work for all of you ion 330 users.
It looks interesting but will take some time to analyse. What is the purpose of the analog stuff in there? What problem does it fix exaclty?
I posted a dmix .asoundrc earlier that fixes shutter and crossfades but I do not use it right now.
Do you have problem to get it to stick after suspend/resume?


- vikjon0 - 2009-09-04

Quote:I am running ALSA 1.0.20 and have 21 but have not installed it. In my XBMC setup I have Digital set as my output, AC3 capable checked, DTS capable checked (my receiver is), my Audio output is listed as "default", and the passthrough is listed as "iec958". Downmix is NOT checked. I have NO .asoundrc file currently. Sound doesn't work at the desktop either :-(

Since you have no sound in desktop I am not sure. Maybe try with the 180 drivers instead?
With HDMI I use the setting:
hdmi
hdmi
in xbmc.


- kingmos - 2009-09-04

vikjon0 Wrote:It looks interesting but will take some time to analyse. What is the purpose of the analog stuff in there? What problem does it fix exaclty?
I posted a dmix .asoundrc earlier that fixes shutter and crossfades but I do not use it right now.
Do you have problem to get it to stick after suspend/resume?

the analog stuff is just to make it complete, no direct need for that Wink

suspend / resume is working fine, no problems here at all.

i just edited the post to fix occasional stutter.


- kingmos - 2009-09-04

vikjon0 Wrote:Since you have no sound in desktop I am not sure. Maybe try with the 180 drivers instead?
With HDMI I use the setting:
hdmi
hdmi
in xbmc.

nvidia 90 drivers working fine here, no problem with that


- BLKMGK - 2009-09-07

vikjon0 Wrote:Since you have no sound in desktop I am not sure. Maybe try with the 180 drivers instead?
With HDMI I use the setting:
hdmi
hdmi
in xbmc.

Okay, finally got back to a working config on SVN 22781. I have now tried hdmi\hdmi and still no sound. Hrm, it would be nice if the info screen for video gave the driver revision. I'm on the "latest" PPA of the NVIDIA drivers from their repository. I'm going to try fooling around at the desktop using aplay and some verbose reporting to see if I can come up with something. Since I don't have sound at the desktop either I think this isn't just XBMC.

For those who have a working ASROCK system - did you do anything in the BIOS besides bump up video memory? I seem to recall it was already set for digital output but am wondering what others found....Blush

aplay -L seems to indicate that hdmi equates to the HDMI output on the card...

Edit: Could someone with a working ASROCK please try the following command -> aplay -vv /path/to/file.wav
Mine says that it is playing back via a PulseAudio PCM I/O plugin. -> "ALSA <-> Pulseaudio PCM I/O Plugin" Are folks with working systems using Pulseaudio?


Okay this is weird... - BLKMGK - 2009-09-07

Alright, it's working. Problem is i'm NOT sure why. I went into the sound config and tried using "default" for both entries. No joy. Tried "hdmi" again - no joy. Since this was a fresh build none of my sources or other information was setup. So, I decided to copy over my settings and other information from my working box. After doing so I tried to play an MP3 - it worked! Shocked I next checked the settings and "hdmi" is listed in both fields - no change. I have seen MP3 work and other sounds not before so I checked a MKV file - played fine! Now listening to some Shoutcast - it's working fine! I've yet to try a DVD but will soon, fingers crossed...

So, only change was to copy over a settings file from another machine and it began working. Visually in the dialog everything was the same so I'm not sure what's up. The ONLY thing I can think of is a 48K resample placed in the advancedsettings.xml file that got copied over. I have an NVIDIA 9400m in my other box and that was one of the things I had to do to get IT working. I've not seen anyone mention anything in this thread about it but when I searched for previous postings of mine where I was also beating my head against the wall I found an entry about that and sure enough I copied it over. I have NO navigation sounds which sux but oh well - it's mostly working. I have a 3rd machine offline with the same board as my C2D machine that has a custom .asound file on it that has allowed THAT machine both working vid\audio AND nav sounds but I'm not in the mood to play further after days of getting this one working. <sigh> Does anyone have an asound for getting nav sounds working? Huh

Hope this helps someone at least. No idea why sound is such a PITA! No


- vikjon0 - 2009-09-07

Quote:For those who have a working ASROCK system - did you do anything in the BIOS besides bump up video memory? I seem to recall it was already set for digital output but am wondering what others found....
No, I have only changed memory and removed the logo. I assume you flashed Bios.

Obviously you are doing something different from me, but I do not know what.
You do not have pulsaudio installed?