Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Soundcards suddenly missing
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
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Dec 06, 2012 3:04 pm    Post subject: Soundcards suddenly missing Reply with quote

Hi, after a reboot today, alsa seems unable to find any of my soundcards (one onboard one for normal playback, one usb external for other stuff)
Code:
alsactl: save_state:1580: No soundcards found...
This message appears when the /etc/init.d/alsasound script stops while
Code:
sed: can't read /proc/asound/cards: No such file or directory
appears on startup. That's as much info as I've been able to find on my system. Any idea what could cause this?

Since the last reboot I've upgraded both udev and openrc, and an old thread from the arch forum implies udev might be the culprit somehow ( https://bbs.archlinux.org/viewtopic.php?id=91104 ) but the situation seems different.

Between shutting down Gentoo and booting it again, I unplugged my main hdd (to try and install Windows on the other hdd, a failed project), and then plugged it back to how it was before, I don't suppose that could have made a difference? Both soundcards wouldn't disappear if I somehow dislodged some cable inside my box?
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Dec 06, 2012 3:38 pm    Post subject: Reply with quote

If you dislodged a cable connecting your soundcard, then yes, it would not be visible by the system, obviously. The first thing you should do is check that. If your sound cards do not show up under lspci and lsusb, they are simply not connected. lspci and lsusb show you what hardware is connected regardless of whether the drivers and software are working and configured correctly.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Dec 06, 2012 4:14 pm    Post subject: Reply with quote

Yes, both cards show up with lspci and lsusb respectively.
lspci:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
lsusb:
Bus 004 Device 003: ID 0763:200f Midiman M-Audio MobilePre

_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Dec 06, 2012 4:47 pm    Post subject: Reply with quote

This looks like it could be the thing, but I'm not sure how to apply it to my gentoo? https://www.linuxquestions.org/questions/linux-from-scratch-13/systemd-udev-196-problem-devices-not-discovered-4175438699/
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Dec 06, 2012 6:41 pm    Post subject: Reply with quote

Same thing happened to me today, none of my modules are being autoloaded by udev at boot when they should - not just sound card ones.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Dec 06, 2012 8:12 pm    Post subject: Reply with quote

Do you guys have udev-mount in the sysinit runlevel?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Dec 06, 2012 9:29 pm    Post subject: Reply with quote

Yes
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Dec 06, 2012 9:58 pm    Post subject: Reply with quote

rc-status -a says it's started...
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Dec 06, 2012 10:15 pm    Post subject: Reply with quote

Can't believe you dig archlinux and linuxquestion and didn't find any thread in gentoo complaining against udev >= 172 :)
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Dec 06, 2012 10:34 pm    Post subject: Reply with quote

Oh, I've read plenty of complaints, but this problem seemed new. Anyway, I synced again, there was a kmod upgrade and a udev rebuild, and after a restart everything seems normal. Or at least I have sound. My computer's been fucking me enough for today, so I'm going to bed.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
ShinyDoofy
n00b
n00b


Joined: 22 Jul 2006
Posts: 73

PostPosted: Wed Dec 19, 2012 6:30 pm    Post subject: Reply with quote

I've had a similar problem. After I'd swapped my / drive, I had to repopulate /dev from a stage 3 tarball (guess I excluded it in backups...) and found that /dev/snd was missing, yet /proc/asound/cards still listed two cards (namely being my Realtek 889a and the one for HDMI output in my nVidia card). Rebuilding udev, kmod, switching kernels from 3.5 to 3.7 and back and countless reboots didn't change anything. The cards file still listed those two, the modules were correctly loaded (including the model option), but whatever I tried doing, there was no /dev/snd and thus no mixer and no sound output at all.

Going back to udev-171 (and an older udisks revision at that due to dependencies) fixed it, even without rebooting. Restarting udev and udev-mount in /etc/init.d/ already did the trick. /dev/snd was fully populated and mplayer and sorts started playing sound again.

This bug indicates the culprit being about moved directories. Is anyone knowledgeable enough about udev and/or the recent updates to confirm this? Is there a safe way to update to the latest udev again without this biting me once more? Is there some einfo I've simply missed or misinterpreted? Is eudev a viable alternative? Would this not have happened had I used systemd over OpenRC?

If possible, I'd really appreciate any input or information on this as it's already cost me the better part of last night and I've grown tired of running into dead ends.

Thank you, though, arnvidr, for the udev rules directory pointer. I wouldn't have even tried it without your post.

/edit: Turns out my initramfs was at fault. See this thread for details.
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