LinuxQuestions.org
Help answer threads with 0 replies.
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 02-19-2012, 02:22 PM   #1
Wardub
Member
 
Registered: May 2008
Posts: 49

Rep: Reputation: 21
Sound for notifications but nothing else


I installed Slackware on my brothers computer, and he hasn't had any problems until recently he doesn't get any sound. I wasn't sure if he did anything, so I just reinstalled but I'm not getting sound.

I'm using KDE, and under system settings > multimedia > phonon it lists "default audio output preference" and it has four items

HDA Intel, (ALC887 Analog)
HDA Intel, (ALC887 Digital)
HDA Intel, HDMI 0
HDA Intel, HDMI 1

I used "test" on all of them, and I found that HDA Intel HDMI 0 gives me sound. So I set that to prefer. Now notifications give me sound, but there really loud and the mixer doesn't seem to have any effect on the sound. But I still don't get audio from youtube, or mplayer.

With Umplayer I can get audio if I go to options, preferences and change the output driver from "alsa" to "alsa (.3 HDA - Intel)".

I'm using onboard sound, and Alsaconf finds nothing, I don't think I ever ran alsaconf when I set it up cause sound was working fine.

So does anyone know what I have to do to get sound working and have it controllable by the mixer?


Thanks.

edit
aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC887 Digital [ALC887 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
The monitor has the speaker and is using hdmi.

Looks like I need to set device 3 to default. How do I do this?

Last edited by Wardub; 02-19-2012 at 02:44 PM.
 
Old 02-19-2012, 05:31 PM   #2
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
Update: I managed to get sound, but there are some problems.
I put this in ~/.asoundrc
Code:
pcm.!default {
      type hw
      card 0
      device 3
 }
Problem is, it seems only one thing can use sound at a time, and I can't control the volume. It's extremely loud and I don't have a way to turn it down.

So is there a better way?

Also I was able to get alsa to find my card, by manually adding it to the database.
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
But if I run alsaconf again it won't find it, not really the biggest problem since it doesn't seem like alsamixer controls the volume for me.

Last edited by Wardub; 02-19-2012 at 05:34 PM.
 
Old 02-19-2012, 06:32 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If it's outputting through HDMI then you won't be able to change the volume (unless you use a software mixer, which would require a sound server and/or setting the volume in each application you use). Since HDMI is usually demodulated at some receiver, the volume is generally controlled there instead. If the sound is coming through the monitor over HDMI, then I'd look to see if the monitor has some hardware volume control. Otherwise, you would need to make sure some sound server is running and find a way to reduce the volume outputted artificially.
 
Old 02-19-2012, 07:15 PM   #4
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
Good idea, the control was kind of hidden, but I was able to turn it down. But when I first installed it, it seemed like kmix worked fine for adjusting the volume, it does nothing now. Now the problem is it seems only one application can use sound at a time. If I have youtube in firefox, and I can't open a video in umplayer. Not the worst thing in the world, but still a problem. Any ideas?
 
Old 02-19-2012, 07:33 PM   #5
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Use "dmix" plugin in your alsaconf: http://www.alsa-project.org/main/index.php/Asoundrc

EDIT:

And there is actually another plugin "SoftVol", that can add a volume control in your alsamix for a specific sound-card:http://alsa.opensrc.org/Softvol

Last edited by Bindestreck; 02-19-2012 at 07:37 PM.
 
1 members found this post helpful.
Old 02-20-2012, 10:53 AM   #6
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by eXpander_ View Post
Use "dmix" plugin in your alsaconf: http://www.alsa-project.org/main/index.php/Asoundrc

EDIT:

And there is actually another plugin "SoftVol", that can add a volume control in your alsamix for a specific sound-card:http://alsa.opensrc.org/Softvol
I tried dmix and it didn't seem to work.
Code:
cat .asoundrc
pcm.!default {
        type plug
        slave.pcm "dmixer"
}

pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:0,3"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

ctl.dmixer {
        type hw
        card 0
}
Here's what I have. I went and played a youtube video, I got sound, then I tried to test the sound in phonon, and it said can't play falling to backup.

Last edited by Wardub; 02-20-2012 at 10:59 AM.
 
Old 02-20-2012, 12:28 PM   #7
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
Ok, nevermind it did work once I set umplayer to use alsa instead of alsa (HDA .3 Intel).

But I can't get softvol to work with dmix. Anyone know what I have to add to my current configuration above?

Thanks to everyone so far, I'm almost there.
 
Old 02-20-2012, 12:42 PM   #8
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Try this:

Code:
pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:0,3"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

pcm.add_volume_control {
    type            softvol
    slave.pcm       "dmixer"
    control.name    "Vol_for_HDMI"  # <<< Name to whatever you want
    control.card    0
}

pcm.!default "add_volume_control"
A control named "Vol_for_HDMI" should appear on your alsamix.

Last edited by Bindestreck; 02-20-2012 at 12:44 PM.
 
Old 02-20-2012, 01:04 PM   #9
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by eXpander_ View Post
Try this:

A control named "Vol_for_HDMI" should appear on your alsamix.
Brilliant, now is there a way to control this through KMix? It doesn't seem to show up, I've tried restarting.

Never mind, it came up the second time I restarted kmix.

Thanks everyone, this is now solved.

Last edited by Wardub; 02-20-2012 at 01:08 PM.
 
Old 02-20-2012, 01:24 PM   #10
Wardub
Member
 
Registered: May 2008
Posts: 49

Original Poster
Rep: Reputation: 21
http://img830.imageshack.us/img830/1738/hdmicontrol.jpg
Spoke a little too soon, it shows up in KMix, and I can control from there. But I can't set it to master and control it from the icon tray. When I choose select master it shows up, but clicking won't change it. You'll also notice it doesn't have a sound icon at the bottom.
 
  


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
Sound notifications stop after some time. swalker23 Linux - Newbie 6 09-16-2008 02:24 PM
KDE 3.4 Sound Notifications not working joncbl Linux - Software 8 04-17-2005 04:14 PM
System notifications sound isn't work. z-vet Mandriva 7 08-27-2004 08:08 PM
Xchat sound notifications don't work! eugeny Mandriva 0 03-21-2004 12:41 PM
Disable Sound Notifications in Kmess? wh33t Linux - Software 1 10-29-2003 06:40 PM

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

All times are GMT -5. The time now is 10:30 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