Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa being impossible... [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Jul 31, 2016 3:25 am    Post subject: alsa being impossible... [solved] Reply with quote

Alsa stopped working from command line, KDE and browswer, but works fine in mythtv.

I'm using HDMI output and have run the gammut. Can someone suggest ideas of what to do, anything?

I've rechecked my .asoundrc, tweaked it. I've run mplayer and aplay from the command line specifying the hardware device directly. I've compared the device I'm using in mythtv with the devices specified in .asoundrc and on the mplayer command lines.

No sound.

I have made very little updates to my system.. I monkeyed withe the version of alsa-lib, etc installed, no difference. There is no error listed in the kernel log or in dmesg.

It stopped working a few days ago...

Any help would be appreciated.


Update: I had to disable a feature in the kernel called: Dynamic device file minor numbers

Then I had to change the device back to 3 (what it was years ago).

Sound is working now.

I presume this is a kernel bug or an issue between alsa and the kernel or something else.
_________________
Some day there will only be free software.


Last edited by RayDude on Mon Aug 01, 2016 7:25 am; edited 1 time in total
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sun Jul 31, 2016 10:37 am    Post subject: Reply with quote

any error messages? or it just plays audio but you don't hear anything?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Jul 31, 2016 11:04 am    Post subject: Reply with quote

agreeing with frostshutz logic there: if you don't have any errors, it's because you have none, and sound might be play and you cannot hear it.

i would explains this with: default set to another soundcard (and no more hdmi), mythtv is set to hdmi, others are using default.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Jul 31, 2016 8:36 pm    Post subject: Reply with quote

Thanks for the replies.

I've checked all the settings. Everything is correct, as far as I can tell. There are no error messages. root can't play audio.

mythtv works fine. No idea why.

I tried a newer kernel, no difference.

I should have some time to go through everything again today and post it for people who want to debug their own system in the future...

I'm sure it will turn out to be some stupid mistake I made. It always is.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2575
Location: Here and Away Again

PostPosted: Sun Jul 31, 2016 9:11 pm    Post subject: ><)))°€ Reply with quote

One simple check while running an application that is supposedly playing audio could be something like this:

Code:
fuser -v /dev/snd/*

This should show who and what is using which audio device, if any.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Jul 31, 2016 9:28 pm    Post subject: Reply with quote

Details:

Code:
~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  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
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I'm using HDMI 1, have been for a long time.

Here's the .asoundrc in my home directory. There isn't no /etc/asound.conf

Code:
pcm.optical {
        type hw
        card 1
        device 7
}

pcm.!default {
        type plug
        slave.pcm "optical"
}

pcm.dsp0 {
        type plug
        slave.pcm "optical"
}

_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Jul 31, 2016 9:31 pm    Post subject: Re: ><)))°€ Reply with quote

Chiitoo wrote:
One simple check while running an application that is supposedly playing audio could be something like this:

Code:
fuser -v /dev/snd/*

This should show who and what is using which audio device, if any.


Thanks! The next time I can, I'll check to see if it's owned by someone else. That was a reoccurring issue with web pages taking control of the alsa device and preventing anything else from driving it. When I had this issue previously it was usually due to chrome. Killing chrome fixed it. During my experiments yesterday, I completely killed all chrome processes...

Right now I'm emerging world for the hell of it and installing 0.28 of mythtv to see what happens.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Mon Aug 01, 2016 2:51 am    Post subject: Reply with quote

fuser /dev/snd/* shows the correct ownership of the pcm device.

I was running netflix in Chrome and did an fuser

Code:
/dev/snd/pcmC1D7p:   12655m


That was the process for chrome and that is the correct device card 1, device 7...

I don't get it.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Mon Aug 01, 2016 6:35 am    Post subject: Reply with quote

Sigh.

I can't get it to work.

Halp?
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Mon Aug 01, 2016 7:44 pm    Post subject: Reply with quote

See original post. Issue was the kernel.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Aug 21, 2016 1:57 am    Post subject: Reply with quote

Nevermind.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Thu Sep 01, 2016 2:02 am    Post subject: Reply with quote

The problem is back. Mythtv works, everything else is muted...

No messages. No feedback nothing...

It just stopped working and rebooting, powering everything down, no sound...

Except in mythtv which works fine!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Thu Sep 01, 2016 2:29 am    Post subject: Reply with quote

There is alsa-info.sh script, it used to be installed with alsa tools or utils package, in any case you can get it from ALSA website. Somebody may figure out what's wrong with your system if you pastebin the output of the script.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2575
Location: Here and Away Again

PostPosted: Thu Sep 01, 2016 10:28 am    Post subject: Reply with quote

Buffoon wrote:
There is alsa-info.sh script, it used to be installed with alsa tools

It still is, at least with 'media-sound/alsa-utils-1.1.2'.

It's installed under '/usr/sbin/' though, so normally for the root user only.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Mon Sep 12, 2016 3:15 pm    Post subject: Reply with quote

Buffoon wrote:
There is alsa-info.sh script, it used to be installed with alsa tools or utils package, in any case you can get it from ALSA website. Somebody may figure out what's wrong with your system if you pastebin the output of the script.


Thanks and sorry for the late reply. I monkeyed with the kernel, receiver, TV and nvidia drivers and it started working again. I honestly don't know why it starts and stops like it does.

I'll be sure to run that script the next time...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum