LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-02-2011, 06:46 AM   #1
Nasgarath
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
No sound in KDE under Mandriva


Hello everyone,

I've been banging my head against the wall with this one. I've had a few folks on IRC trying to help me, but they've now ran out of ideas! So I figured I'd try here.

Here's the quick version: I recently upgraded (from 2007) to 2010.2 on a brand new PC. All was well at first, then no more sound at all after a reboot. Except, for some reason, at startup & shutdown. Anything else doesn't work at all (music, videos, etc -- I've tried with xmms, xine, mplayer and youtube to no avail). OTOH, logging in to a root session DOES work. Which is somewhat reassuring, I suppose. I've also tried creating a brand new user, but that did not do the trick either. Only root seems to work as expected.

And now, for the gritty details on how this all started...

I reinstalled my whole system last week. Everything was working fine for about two days. Then, at one point, I was prompted to use --auto-orphans. The concept was new to me (coming from Mandriva 2007) and seemed intriguing & interesting. So I tried it out... NEVER AGAIN!

Shortly afterward, I got a popup stating that some sound drivers were no longer required, should they be removed or no? Before clicking anything, I played some music and it was fine, so I figured what the hey, might as well clean house a bit, so I clicked yes. Shortly after THAT I had to reboot to test some other stuff, and once I was back in KDE... I had no more sound!!! It has been like this for days now.

I have since had that popup message about unused sound drivers 3 times more:
- the second time, I clicked "no";
- the third time, I noticed there was a third button I hadn't noticed before about configuring the devices or somesuch. I clicked on it and, lo and behold, it took me to the KDE > Computer Administration > Multimedia panel (I'd been there earlier, trying to fix the problem) where I now could see a lot more devices than earlier... and one of them new ones (hw:0,0) actually worked when I tested it (all others didn't and never did before). So I was all excited, tossed it at the top of the list, saved the settings, rebooted KDE and... still no sound! And testing hw:0,0 again in kcontrol no longer worked!
- and finally, the fourth time I got that annoying popup, I checked the "don't show me this window anymore" box before hitting the NO button. So it hasn't bugged me anymore since.

OK. Now here's some info on my system, that might be useful:

- Mandriva 2010.2 (fresh install, from last Thursday)
- KDE 4.4.3
- Soundcard: built into my motherboard, a Gigabyte 870A-UD3
(the card is reported as a Realtek ALC892 by numerous reliable sources)
- Kernel: 2.6.36.2-server-2mnb
- Both the alsa & sound services are running
- Also, alsa-lib & alsa-utils are both installed

A few commands I've tried (my comments, where appropriate, are in parenthesis, underneath each output):

Code:
    # lspcidrake -v | fgrep AUDIO
    (brings up nothing at all)

    # grep sound-slot /etc/modprobe.conf
    alias sound-slot-0 snd_hda_intel model=ALC892
    alias sound-slot-1 snd_hda_intel model=ALC892
    (I initially had just "alias sound-slot-0 snd_hda_intel" and I've also tried with model=6stack, none of it worked)

    # lsmod | grep snd
    snd_hda_codec_nvhdmi    14155  4
    snd_hda_codec_realtek   234934  1
    snd_hda_intel          23357  7
    snd_hda_codec          92717  3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
    snd_bt87x               9826  1
    snd_hwdep               5648  1 snd_hda_codec
    snd_seq_dummy           1382  0
    snd_seq_oss            30277  0
    snd_seq_midi_event      6047  1 snd_seq_oss
    snd_seq                50859  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_seq_device          6096  3 snd_seq_dummy,snd_seq_oss,snd_seq
    snd_pcm_oss            41451  0
    snd_pcm                78622  6 snd_hda_intel,snd_hda_codec,snd_bt87x,snd_pcm_oss
    snd_timer              18881  3 snd_seq,snd_pcm
    snd_mixer_oss          14102  2 snd_pcm_oss
    snd                    58735  25 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_bt87x,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
    soundcore               6428  2 snd
    snd_page_alloc          7312  3 snd_hda_intel,snd_bt87x,snd_pcm

    # chkconfig --list sound
    sound           0:off   1:off   2:on    3:on    4:on    5:on    6:off   7:off

    # chkconfig --list alsa
    alsa            0:off   1:off   2:on    3:on    4:on    5:on    6:off   7:off

    # aumix -q
    vol 69, 69
    line 77, 77
    mic 0, 0
    pcm2 61, 61
    igain 61, 61
    dig1 0, 0, P

    # fuser -v /dev/dsp
    (brings up nothing at all)

    # lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/corwin/.gvfs
          Output information may be incomplete.
    COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    knotify4  2329 corwin  mem    CHR  116,9          8950 /dev/snd/pcmC0D0p
    knotify4  2329 corwin   13u   CHR  116,9      0t0 8950 /dev/snd/pcmC0D0p
    kmix      2544 corwin   12u   CHR 116,12      0t0 8956 /dev/snd/controlC0
    kmix      2544 corwin   14u   CHR  116,6      0t0 8905 /dev/snd/controlC1
    kmix      2544 corwin   15u   CHR 116,21      0t0 9328 /dev/snd/controlC2
    gkrellm   2635 corwin   12u   CHR   14,0      0t0 8957 /dev/mixer
    VirtualBo 5518 corwin  mem    CHR 116,10          8951 /dev/snd/pcmC0D0c
    VirtualBo 5518 corwin   34r   CHR  116,2      0t0 8867 /dev/snd/timer
    VirtualBo 5518 corwin   35u   CHR 116,10      0t0 8951 /dev/snd/pcmC0D0c
    VirtualBo 5518 corwin   36u   CHR 116,12      0t0 8956 /dev/snd/controlC0

    # lspcidrake -v | fgrep snd
    snd_hda_intel   : nVidia Corporation|Device 0bea (vendor:10de device:0bea subv:10de subd:0825) (rev: a1)
    snd_hda_intel   : ATI Technologies Inc|SBx00 Azalia (Intel HDA) (vendor:1002 device:4383 subv:1458 subd:a102) (rev: 40)

    # lspcidrake -v | fgrep -i AUDIO
    bt878           : Brooktree Corporation|Bt878 Audio Capture [MULTIMEDIA_OTHER] (vendor:109e device:0878 subv:11bd subd:0012) (rev: 11)
Those last two commands really puzzle me because I only have one soundcard as far as I know, on the mobo.

The bt878, BTW, is my TV tuner card, so not really a soundcard.

Some of the folks I've asked suggested disabling pulseaudio, which I did, but that unfortunately did not help.

That's all I can think of for now. Let me know if you need anything else...

Thanks in advance for your help!

Last edited by Nasgarath; 04-03-2011 at 04:43 PM.
 
Old 04-02-2011, 09:12 AM   #2
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
Most times, I suppose sound not to be working at all, the reason is either one of these:
* volume control not set properly
* wrong or no output selected in mixer
* wrong soundsystem choosen
* speakers turned off ^^

Acutally, your sound is working fine - as root.

This looks like a kind of missing access rights. Is there a group "media" or "audio" you should put your users into?

Code:
snd_hda_codec_nvhdmi    14155  4
    snd_hda_codec_realtek
Any HDMI output is a soundcard aswell. Your Booktree device is a soundcard (input only I suppose) aswell. So, you have three soundcards at least, not just one.

As I do not use HDMI sound, I disabled HDMI sound in BIOS to reduce my confusion.
 
Old 04-02-2011, 04:48 PM   #3
Nasgarath
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Most times, I suppose sound not to be working at all, the reason is either one of these:
* volume control not set properly
* wrong or no output selected in mixer
* wrong soundsystem choosen
* speakers turned off ^^
Yep. But none of these apply here, unfortunately... if only it were that simple :-o

Quote:
Acutally, your sound is working fine - as root.
You know, I just thought of something... Since sound works as root, maybe I should run all the same commands there and compare the output to what I got as my user. Perhaps that would give us some new insight into the matter... I'll try that tomorrow morning.

Quote:
This looks like a kind of missing access rights. Is there a group "media" or "audio" you should put your users into?
Already tried that. I do have an "audio" group in which my user was initially not included. But adding him to the group did not solve the problem, unfortunately.

I'm also guessing it must be some sort of permission issue, since only root plays sound, but I've looked everywhere and can't figure it out. All the sound devices seem to be properly set up (owned by root:audio) so I dunno...

Quote:
As I do not use HDMI sound, I disabled HDMI sound in BIOS to reduce my confusion.
That is an excellent idea! Did not know you could do that in the BIOS. I'll do that tomorrow as well, when I reboot the system.

Last edited by Nasgarath; 04-02-2011 at 04:50 PM.
 
Old 04-03-2011, 10:02 AM   #4
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
This does indeed look very much like a permission problem, not a driver problem. I am not that much into Mandriva to be a further help here.

Quote:
Since sound works as root, maybe I should run all the same commands there and compare the output to what I got as my user. Perhaps that would give us some new insight into the matter... I'll try that tomorrow morning.
Have a look at "man aplay".

aplay is very simple ... it can list your sound devices and play sound ... .wav only afaik. You will find a .wav file somewhere on the net.

Yes, compare the outputs ... as "root" and as "user".

Have a look at "alsamixer", too.
 
Old 04-03-2011, 04:43 PM   #5
Nasgarath
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Alsamixer wasn't much help when I tried it, though I hadn't thought of aplay... but it's now officially a moot point as... I HAVE SOUND! Everything's back to normal, heheh.

Here's what I did -- just in case it might someday help someone else.

So as planned, I rebooted this morning. I first checked in the BIOS but couldn't see any HDMI option. The only sound-related stuff I had was "onboard audio". I tried to disable that but, as I suspected, it made things worse as I no longer had any sound at all, LOL. So I switched it back on.

A few days ago, someone had suggested a solution through pulseaudio, apparently it has a control that allows to disable a soundcard when you have more than one. But I never found the app to control that. However, when I logged back into my user, I decided to disable pulseaudio again. I also tried to remove it completely, but that would have required removing 30+ other packages, including some stuff I needed. But, while looking at that list of packages, I noticed one called "pavucontrol". Made me wonder if that wasn't the control app I'd been looking for. So I ran it, and... sure enough!

So in pavucontrol I was able to disable HDMI. After a reboot... TADA! The sound was working.

I'd have preferred doing it the BIOS way, as I'd have been able to disable pulseaudio, but now I guess I'm stuck with it, LOL. But hey, I won't complain so long as it all works...

What I don't get though is why sound was working as root. After all, if the problem was a conflict between the two cards, shouldn't I have had the same issue as root?

In any case, I'm marking this as SOLVED.

Thank you for the help, bluebox!
 
  


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
ati ixp sb4x0 sound card not palying sound in mandriva compaq b1900 karun_mca Linux - Hardware 0 04-12-2010 03:17 PM
Sound problem in Mandriva 2010 KDE TheBookmark Linux - Newbie 2 03-03-2010 01:59 PM
Installing KDE Help files in KDE Help Center: 2008.1 Mandriva One smiley_lauf Mandriva 1 05-05-2008 07:02 AM
Mandriva 2006 and ALSA sound drivers and Creative USB Sound Blaster MP3+ fieryprophet Linux - General 1 05-06-2006 11:20 AM
Lost the Mandriva KDE sound mixer... how do I regain it? LaptopLinux Mandriva 4 06-24-2005 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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