HDMI sound via ATI graphics card: Difference between revisions

From WickyWiki
Created page with "Category:Ubuntu Category:Ubuntu System Category:201307 The HDMI sound device might not be detected automatically when booting the computer without the television con..."
 
mNo edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 3: Line 3:
[[Category:201307]]
[[Category:201307]]


The HDMI sound device might not be detected automatically when booting the computer without the television connected. Here you can read how to make sure the drivers are always loaded.
This concerns the AMD proprietary driver (fglrx)
 
== ATI graphics HDMI sound disabled when the television turned off ==
 
The ATI graphics card HDMI sound device is disabled when the television is turned off. Bug report:
* https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1001842
 
Workaround 1:
 
# Turn TV on
# Reboot
# Keep it on
 
Workaround 2:
 
# Go to terminal CTRL+ALT+F1
# Back to Unity CTRL+ALT+F7 / 8
 
Workaround 3:
 
<syntaxhighlight lang=bash>
xrandr -display :0 --output DFP2 --off
xrandr -display :0 --output DFP2 --auto
</syntaxhighlight>
 
Open ''sound settings'', you should see an HDMI Audio device here:
 
<blockquote>
[[File:SoundSettings.png|600px|link=]]
</blockquote>
 
== Testing HDMI audio device ==


First find your HDMI sound device, in this case '''card 1''', '''device 3''':
First find your HDMI sound device, in this case '''card 1''', '''device 3''':
Line 21: Line 52:
</blockquote>
</blockquote>


Modify the following file to force load the driver manually:
The following file loads the devices:
 
<syntaxhighlight lang=bash>
sudo gedit /etc/pulse/default.pa
</syntaxhighlight>
 
Insert a line after 'module-alsa-sink':


<blockquote>
<blockquote>
<syntaxhighlight lang=bash>
/etc/pulse/default.pa
...
#load-module module-alsa-sink
#20130701,wjv force load HDMI sound driver card 1, device 3:
load-module module-alsa-sink device=hw:1,3
...
</syntaxhighlight>
</blockquote>
</blockquote>


Reboot.
Test with ''aplay'' or with ''speaker-test'' (card 1, device 3):
 
Test (card 1 and device 3 --> option 1,3):


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
aplay -D plughw:1,3 alarm.wav
aplay -D plughw:1,3 ~/Scripts/other/alarm.wav
speaker-test -c 2 -r 48000 -D hw:1,3
speaker-test -c 2 -r 48000 -D hw:1,3
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 15:57, 15 July 2013


This concerns the AMD proprietary driver (fglrx)

ATI graphics HDMI sound disabled when the television turned off

The ATI graphics card HDMI sound device is disabled when the television is turned off. Bug report:

Workaround 1:

  1. Turn TV on
  2. Reboot
  3. Keep it on

Workaround 2:

  1. Go to terminal CTRL+ALT+F1
  2. Back to Unity CTRL+ALT+F7 / 8

Workaround 3:

xrandr -display :0 --output DFP2 --off
xrandr -display :0 --output DFP2 --auto

Open sound settings, you should see an HDMI Audio device here:

Testing HDMI audio device

First find your HDMI sound device, in this case card 1, device 3:

aplay -l
**** List of PLAYBACK Hardware Devices ****
...
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The following file loads the devices:

/etc/pulse/default.pa

Test with aplay or with speaker-test (card 1, device 3):

aplay -D plughw:1,3 ~/Scripts/other/alarm.wav
speaker-test -c 2 -r 48000 -D hw:1,3

Make sure the card is not muted:

sudo apt-get install gnome-alsamixer
alsamixer
  • F6 to select the device
  • M to mute/unmute