LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2016, 02:32 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
Question Getting audio out HDMI port


This may turn into a multi-part multi-thread issue. I have my computer connect to a TV via HDMI. Originally I was using the NVIDIA drivers from SBO and managed to get audio working for most things I do. After the last upgrade the NVIDI drivers broke (of course, because the kernel changed). After the upgrade I got into a terminal and uninstalled the proprietary drivers and reverted to the nouveau drivers. Since doing that I have had no sound out of my system. I installed pulseaudio and pavucontrol but have had no success.

So I'll start by asking if the NVIDA proprietary drivers are required to make this work. If so I will rebuild and install them and go from there.
 
Old 09-28-2016, 02:53 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Is this 14.1 like your profile states or 14.2 (I ask because sometimes people forget to update them)? If so, you would likely need to change the order of devices through alsa. Since you installed Pulseaudio, things might be different, as I'm not familiar with how it works with alsa being the primary backend.

Can you provide the output of aplay -l?
 
1 members found this post helpful.
Old 09-28-2016, 03:25 PM   #3
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Yes it is 14.1

Code:
bash-4.2$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9200 Analog [STAC9200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-4.2$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9200 Analog [STAC9200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
I meant to add which version but forgot. It isn't completely stock as I use LXDE and have installed other programs from SBO. (video editing, etc.)

Last edited by interndan; 09-28-2016 at 05:35 PM.
 
Old 09-28-2016, 04:49 PM   #4
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Update. I seem to have a start now. Thanks to Bassmadrigal pointing me in the right direction. I modified my .asounrc and now have sound out the HDMI port. What I don't have now is any real control over volume. This may be an issue with my pulseaudio configuration but I'm not sure. I had to run alsamixer and re-select the correct card for output. Pavucontrol seems to have no effect. For some reason alsamixer keeps reverting to the analog output. Alsamixer also has no control over volume. I'm still don't know if proprietary drivers from NVIDIA would be any help.
 
Old 09-28-2016, 05:22 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Great, I'm glad I was able to nudge you along What did you put in your .asoundrc?

To be honest, I doubt the proprietary drivers are needed for proper sound output, but I'm not terribly familiar Nvidia.
 
Old 09-28-2016, 05:27 PM   #6
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Here is current .asoundrc.
Code:
pcm.!default {
    type hw
    card 1
    device 7
Device was set to 3. I took a guess from looking a pavucontrol which says device two is connected.

 
Old 09-28-2016, 05:32 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Try this instead:

Code:
defaults.pcm.card 1
defaults.pcm.device 7
defaults.ctl.card 1
BTW, I just noticed your first post's code tags are screwed up. You used curly brackets for the opening and square brackets for the closing. This forum uses square brackets for tags
 
1 members found this post helpful.
Old 09-28-2016, 05:43 PM   #8
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Fixed the code issue. That gives me control with alsamixer, but not with pavucontrol (pulseaudio controller)
 
Old 09-28-2016, 05:49 PM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
pavucontrol on 14.1 is beyond my knowledge. I never used pulseaudio on 14.1, so I'm not sure how to make sure it's properly running along with pavucontrol in comparison to alsa. Hopefully someone else can come and chime in.
 
Old 09-28-2016, 05:55 PM   #10
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Thanks for the help you have given me. I at least have sound now so I can play my great-grandbabies cartoons for him.

I may need another thread for pulseaudio.
 
Old 09-29-2016, 11:08 AM   #11
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
I'm going to mark this thread solved and open a new one for the pulseaudio issues.
 
Old 09-29-2016, 11:51 AM   #12
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Don't use an .asoundrc if you're using Pulseaudio.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Just installed Linux Mint 17.3 - No audio. Sound Settings says "play sound through HDMI/Display port 2" but no option for speakers klazarski Linux - Newbie 4 05-29-2016 01:43 AM
current -- suddenly hdmi audio is hd:0, instead of the pci audio card genss Slackware 5 04-25-2016 08:07 AM
[SOLVED] HDMI - do all video cards support sound through the HDMI port? taylorkh Linux - Hardware 4 01-24-2016 01:35 AM
Question: Ideas for connecting laptop to TV via HDMI (no HDMI port on laptop) haertig Linux - Software 5 07-18-2015 03:53 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration