LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-11-2015, 12:52 PM   #16
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176

The speakers are on and the light is green.
The playback tab shows VLC playing the music video so that works.

I tried them all like you said to but still no dice.

I'll toy with pavucontrol and see what happens. I'll post back later:-
 
Old 07-11-2015, 12:58 PM   #17
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
The next step is to ensure that nothing is muted in alsamixer. Then, I'm afraid, it is a case of checking configuration files which, I'm afraid, I don't have much experience with.
 
Old 07-11-2015, 01:13 PM   #18
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by 273 View Post
The next step is to ensure that nothing is muted in alsamixer. Then, I'm afraid, it is a case of checking configuration files which, I'm afraid, I don't have much experience with.
Nothing in alsamixer is muted.

I'll try editing the /usr/share/alsa/alsa.conf file and the /etc/asound.conf and see if that makes any difference after a reboot.

Do you know, 273 how would I disable Pulse Audio?
 
Old 07-11-2015, 01:17 PM   #19
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Head_on_a_Stick View Post
Try booting with this kernel parameter:
Code:
snd_hda_intel.index=1
If that works, create the necessary configuration file:
Code:
# echo "options snd_hda_intel index=1" >> /etc/modprobe.d/alsa-base.conf
I know that this will work with your hardware in a pure ALSA system but I don't use PA so I'm not sure if that will confuse things.

If you don't need the extra features offered by Pulseaudio, you could try removing it (and any asoundrc/asound.conf files) and switch to pure ALSA with the above configuration file.
To add that parameter I would have to edit the kernel line through Grub, right?
 
Old 07-11-2015, 01:23 PM   #20
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Create a asoundrc file and make the device you want the default.
I don't have my laptop that I had to create it for with me but I'll search the forum here where I posted it.

Last edited by EDDY1; 07-11-2015 at 01:29 PM.
 
Old 07-11-2015, 01:27 PM   #21
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
well What I do is as a user 500 and above. not system wide?
Step one set my modprobe.d sound.conf for my card slats.
Code:
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel,snd-usb-audio,snd-usb-audio
then I also make sure snd-hda-intel.conf
Code:
options snd-hda-intel model=auto
now that's set up and alsa knows what cards get loaded and what order.
then I log in and delete the .config/pulse folder and the .config/pavucontrol.ini
then I delete the /var/lib/alsa/asound.state asound.state.lock
Then I reboot.
I then open as a regular user the pavucontrol and set my stuff up with skype
and audacity etc etc.

Ok so if the pavucontrol will not initialize. then run pulseaudio -vv find out what library it is missing.

we want pulse to listen to alsa if you have a full install of alsa. edit your
/etc/pulse/default.pa add these at the bottom.
Code:
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
this lets alsa ot your DE manager choose a defalt device and
pulseaudio will be your friend.
Hope this helps these are the steps I been using a long time with pulseaudio.

do not forget install your alsa-plugins you need them modules.

Last edited by Drakeo; 07-11-2015 at 01:41 PM. Reason: alsa-plugins
 
Old 07-11-2015, 01:34 PM   #22
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by EDDY1 View Post
Create a asoundrc file and make the device you want the default.
I don't have my laptop that I had to create it for with me but I'll search the forum here where I posted it.
I created this file because I didn't have it.

Code:
@debian:~$ cat /etc/asound.conf
pcm.!default {
  type plug
  slave {
    pcm "hw:1,7"
  }
}
ctl.!default {
  type hw
  card 1
}
So I need to create a /etc/asoundrc.conf?

If you can find the forum where you posted it that would be awesome EDDY!
 
Old 07-11-2015, 07:07 PM   #23
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Update

I tried editing the /etc/asound.conf file and changed the pcm "hw:1,7" to a "hw:0,0" and rebooted.
I also tried editing the kernel line and adding snd_hda_intel.index=1 still no sound.
Code:
@debian:~$ cat /home/user/.asoundrc
pcm.!default {
	type hw
	card 0
}

ctl.!default {
	type hw           
	card 0
}
Are the strings in this file correct?
 
Old 07-12-2015, 01:09 AM   #24
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Here's the link to my .asoundrc to get my hdmi working
http://www.linuxquestions.org/questi...4/#post5363386
 
Old 07-12-2015, 05:39 AM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Here's the link to my .asoundrc to get my hdmi working
http://www.linuxquestions.org/questi...4/#post5363386
 
Old 07-12-2015, 10:11 AM   #26
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ pavucontrol

Is how you access pulseaudios configuration interface gui thingy.

The simplest .asoundrc config that I use when the default soundcard is not card 0
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
Although the one you're supposed to use with pulseaudio is more like
Code:
pcm.pulse {  type pulse  }
ctl.pulse {  type pulse  }
pcm.!default {  type pulse  }
ctl.!default {  type pulse  }
Also add this line to your /etc/pulse/client.conf
Code:
autospawn = no
This will allow you to start and stop pulseaudio. By default it starts and automagically restarts if it fails.
$ pulseaudio --kill
$ pulseaudio --start

Having the option to toggle it on/off lets you test if alsa is working and allows you to use jack and other audio options. Although my current setup is pulse over jack. And a bit overly complex. Debian doesn't really configure this stuff by default. Or maybe it does, IF you create your user AFTER you install pulseaudio. Which basically never happens with how I install things.
 
Old 07-12-2015, 11:17 AM   #27
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by EDDY1 View Post
Here's the link to my .asoundrc to get my hdmi working
http://www.linuxquestions.org/questi...4/#post5363386
I edited my .asoundrc exactly like yours:-
Still no sound.
 
Old 07-12-2015, 11:31 AM   #28
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Shadow_7 View Post
$ pavucontrol

Is how you access pulseaudios configuration interface gui thingy.

The simplest .asoundrc config that I use when the default soundcard is not card 0
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
Although the one you're supposed to use with pulseaudio is more like
Code:
pcm.pulse {  type pulse  }
ctl.pulse {  type pulse  }
pcm.!default {  type pulse  }
ctl.!default {  type pulse  }
Also add this line to your /etc/pulse/client.conf
Code:
autospawn = no
This will allow you to start and stop pulseaudio. By default it starts and automagically restarts if it fails.
$ pulseaudio --kill
$ pulseaudio --start

Having the option to toggle it on/off lets you test if alsa is working and allows you to use jack and other audio options. Although my current setup is pulse over jack. And a bit overly complex. Debian doesn't really configure this stuff by default. Or maybe it does, IF you create your user AFTER you install pulseaudio. Which basically never happens with how I install things.
Thanks shadow_7 I tried what you have suggested and still no sound.

I think it's time for me to look for another distribution to install on this desktop.
 
Old 07-12-2015, 11:47 AM   #29
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I've tried everything that all of you have suggested and I still do not have sound.

Thank you, all of your for trying to help me.
I appreciate your time and assistance.

I'm marking this thread Solved because I have reached a point where I do not want to pursue this anymore.
Two weeks of trying IMO is ample time.

Cheers:-
 
Old 07-12-2015, 04:53 PM   #30
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Sound is muted by default. And the user has to be in the audio group to access it.

$ groups

$ alsamixer -c 1
(where -c is which card as ID'd in /proc/asound/cards)

$ speaker-test -c 2 -D hw:1
(where -c is the number of channels)
 
  


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
[SOLVED] Lubuntu sound without pulse audio? zeelog Ubuntu 5 06-21-2015 05:13 PM
[SOLVED] Audio problems while streaming (twitch.tv, avconv/ffmpeg + alsa/pulse). earthw0rmjim Linux - Software 1 10-20-2013 08:56 AM
pulse audio installed...should i delete alsa sound now? madmcphil Bodhi 4 08-13-2012 01:05 AM
How does Pulse Audio compare to Jackd / ALSA? browny_amiga Linux - General 4 12-05-2008 01:07 PM
no sound with Pulse-audio and xmms Brynn Linux - Software 2 12-06-2007 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:27 PM.

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