View previous topic :: View next topic |
Author |
Message |
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Jul 31, 2016 3:25 am Post subject: alsa being impossible... [solved] |
|
|
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 |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sun Jul 31, 2016 10:37 am Post subject: |
|
|
any error messages? or it just plays audio but you don't hear anything? |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Jul 31, 2016 11:04 am Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Jul 31, 2016 8:36 pm Post subject: |
|
|
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 |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Sun Jul 31, 2016 9:11 pm Post subject: ><)))°€ |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Jul 31, 2016 9:28 pm Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Jul 31, 2016 9:31 pm Post subject: Re: ><)))°€ |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Mon Aug 01, 2016 2:51 am Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Mon Aug 01, 2016 6:35 am Post subject: |
|
|
Sigh.
I can't get it to work.
Halp? _________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Mon Aug 01, 2016 7:44 pm Post subject: |
|
|
See original post. Issue was the kernel. _________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Aug 21, 2016 1:57 am Post subject: |
|
|
Nevermind. _________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Thu Sep 01, 2016 2:02 am Post subject: |
|
|
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 |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Sep 01, 2016 2:29 am Post subject: |
|
|
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 |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Thu Sep 01, 2016 10:28 am Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Mon Sep 12, 2016 3:15 pm Post subject: |
|
|
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 |
|
|
|