INTRO
About a month ago I decided to install Ubuntu 14.04 on an old pc and connect it to my Receiver using hdmi as a media center.
Also I wanted to useXBMC, for the movies, but also wanted the full Ubuntu desktop.
Also like listening to music using
Deezer,there is a nice Android app, to remote control Deezer so you don't need to keep the TV switched on:
Deemotefor Deezer And install
chrome and its
extension.
But I ran into quit some problems, mainly with the sound: no pass through audio, cracks,extreme distortion, ...
I tried lots of tutorials and guide some helped, some broke the installation completely.
SOLUTION: “disable pulseaudio”, not remove pulseaudio, use ALSA:
Howto disable pulseaudio (scroll down)
Secondary problem with sound, as I like to listen to music, my receiver ONKYO TX-SR608 only supports ANALOG input for ZONE 2, which in my case provides the dining-room of music.
SOLUTION: Output the sound twice, once to HDMI and once to onboard ANALOG jacks output in stereo:
Howto configure ALSA for dual sound output (scroll down)
Secondary, no proper hardware acceleration for video in XBMC, I had a ATI/AMD Radeon 5700 card and followed this guide:http://forum.xbmc.org/showthread.php?tid=174854
Howto disable pulseaudio
If your tried removing pulseaudio completely, it probably broke your “System Settings”, it will be missing a lot of icons, this you can fix simply by this, in terminal:
Code:
sudo apt-get install ubuntu-desktop
sudo reboot
Once rebooted, the best trick is to disable in staid of removing pulseaudio, in terminal:
Delete or move user pulse settings
Code:
Backup
sudo mv ~/.pulse ~/.pulse-backup
Delete
sudo rm -rf ~/.pulse
Code:
sudo gedit/etc/pulse/client.conf
Add the following two lines to this document, this will disable pulseaudio
Code:
autospawn = no
daemon-binary =/bin/true
Save & Reboot.
source & more info:http://askubuntu.com/questions/8425/...ble-pulseaudio
Configure ALSA to use the your sound card, in terminal:
Look for the soundcard you want to use and look for card number and device number, in my case card = 1 and device = 3
The output in my case:
**** List ofPLAYBACK Hardware Devices ****
card 0: Intel [HDAIntel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 0/1
Subdevice #0:subdevice #0
card 0: Intel [HDAIntel], device 1: ALC1200 Digital [ALC1200 Digital]
Subdevices: 1/1
Subdevice #0:subdevice #0
card 1:HDMI [HDA ATI HDMI],
device 3:HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0:subdevice #0
Now open the ALSA config file, using the terminal:
Code:
sudo gedit/etc/asound.conf
Copy & Paste the following and don't forget to change the card and device id:
Code:
pcm.!default {
type hw
card 1
device 3
}
ctl.!default {
type hw
card 1
device 3
}
Save & exit this file.
Now we will need to install a ALSA sound mixer, open terminal:
sudo apt-get install gnome-alsamixer
gnome-alsamixer
source & more info:http://www.hecticgeek.com/2012/01/ho...-ubuntu-linux/(DO NOT DELETE ALSA!)
Now test your audio using and hold your fingers crossed:
Code:
speaker-test -t wav-c 6
If everything went well you should hear sound .
Howto configure ALSA for dual sound output
Be sure to successfully disable pulseaudio first using the guide above, then open the alsa config file, using the terminal again:
Code:
sudo gedit/etc/asound.conf
And paste the following and don't forget to update the device and card id according your system!
Look for "pcm.digital-hw " and "pcm.analog-hw", use to look them up.
My file: asound.txt
Code:
pcm.!default {
type plug
slave.pcm "8channel_expander"
hint {
show on
description "Multichannel output to both analog and hdmi - for use with XBMC"
}
}
ctl.!default {
type plug
slave.pcm "8channel_expander"
hint {
show on
description "Multichannel output to both analog and hdmi - for use with XBMC"
}
}
pcm.xbmc {
type plug
slave.pcm "8channel_expander"
hint {
show on
description "Multichannel output to both analog and hdmi - for use with XBMC"
}
}
pcm.analog-hw {
type hw
card 0
device 0
}
pcm.digital-hw {
type hw
card 1
device 3
}
pcm.multi {
type multi
slaves.a.pcm "digital-hw"
slaves.a.channels 6
slaves.b.pcm "analog-hw"
slaves.b.channels 2
# digital (hdmi) bindings
bindings.0.slave a
bindings.0.channel 0 # bind alsa channel 0 to front left
bindings.1.slave a
bindings.1.channel 1 # bind alsa channel 1 to front right
bindings.2.slave a
bindings.2.channel 2 # bind alsa channel 2 to rear left
bindings.3.slave a
bindings.3.channel 3 # bind alsa channel 3 to rear right
bindings.4.slave a
bindings.4.channel 4 # bind alsa channel 4 to center
bindings.5.slave a
bindings.5.channel 5 # bind alsa channel 5 to LFE (subwoofer)
# analog bindings
bindings.6.slave b
bindings.6.channel 0 # bind alsa channel 6 to front left
bindings.7.slave b
bindings.7.channel 1 # bind alsa channel 7 to front right
}
pcm.8channel_expander {
type route
slave.pcm "multi"
slave.channels 8
# syntax for ttable is "ttable.inputchannel.outputchannel volume"
# digital mixing
ttable.0.0 1 # copy front left to front left digital @ 100%
ttable.1.1 1 # copy front right to front right digital @ 100%
ttable.2.2 1 # copy rear left to rear left digital @ 100%
ttable.3.3 1 # copy rear right to rear right digital @ 100%
ttable.4.4 1 # copy center to center digital @ 100%
ttable.5.5 1 # copy LFE (subwoofer) to LFE (subwoofer) digital @ 100%
# analog mixing
ttable.0.6 1 # copy front left to front left analog @ 100%
ttable.1.7 1 # copy front right to front right analog @ 100%
#ttable.2.6 1 # copy rear left to front left analog @ 100%
#ttable.3.7 1 # copy rear right to front right analog @ 100%
ttable.4.6 0.5 # copy center to front left analog @ 50%
ttable.4.7 0.5 # copy center to front right analog @ 50%
}
Now test soundagain, terminal:
Code:
speaker-test -t wav -c 6
Don't forget to configure XBMC again, more info in the link.
source & more info: http://ehelion.net/projects/alsa/alsa.html
I hope this makes a lot of people happy, it cost me over 3 weeks to completely figure this out by my self and was very happy, most of the credit has to goto the other people in the links above!
Bookmarks