Showing posts with label fix sound in fedora20. Show all posts
Showing posts with label fix sound in fedora20. Show all posts

No sound in Fedora. Fix sound in fedora20

1. lets find the output sources we have.
$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Headset [Logitech USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0


2. Now we know the card# and device#. I want to use Logitech as my default output source so let me test it by outputting the stream to that source by running below command.

aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Right.wav           #0,0 is card 0, device 0 for Logitech

3. Determine the index of the above source by running below command.

pacmd list-sinks | less            # don't run this command as root as you will not find any source. For me it was 4


4. Lets append following 2 lines in /etc/pulse/default.pa

load-module module-alsa-sink device=hw:0,0            #0,0 is card 0, device 0 for Logitech
set-default-sink 4                       #4 is the index of the source i got from step 3

5. Restart the computer and you will have your sound fixed.
 
Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.

[source - https://wiki.archlinux.org/index.php/PulseAudio/Examples#Defaulting_an_Analog_Output_Source]