View previous topic :: View next topic |
Author |
Message |
miLosh n00b
Joined: 05 Dec 2005 Posts: 4
|
Posted: Mon Dec 05, 2005 8:44 pm Post subject: Alsa, Kernel-2.6.14 and udev |
|
|
hello,
i've searched the forum for this and also went to the IRC, apparently im the only one with this particular problem: i did a "emerge -u world" at sunday and also a kernel update to 2.6.14-r2, following an etc-update. most things work again except for sound - i do not have alsa sound. it seems that udev is not creating any devices in /dev for alsa (normally /dev/snd/* i believ).
my versions:
sys-apps/baselayout-1.11.13-r1
gentoo-sources-2.6.14-r2
hotplug-20040923-r1
udev-070-r1
kernel config:
CONFIG_SND_INTEL8X0=y
CONFIG_SND_INTEL8X0M=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_AC97_BUS=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_GENERIC_DRIVER=y
CONFIG_SOUND=y
# CONFIG_SOUND_PRIME is not set
output from alsamixer:
alsamixer: function snd_ctl_open failed for default: No such device
output from alsasound start:
orbit init.d # ./alsasound start
* Loading ALSA modules ... [ ok ]
* Restoring Mixer Levels ...
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '0'...
* Errors while restoring defaults, ignoring
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '1'...
* Errors while restoring defaults, ignoring
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '2'...
* Errors while restoring defaults, ignoring [ ok ]
does anyone have a clue why it doesnt work out of a sudden? it worked perfectly before the world update and kernel 2.6.12-r9, also with udev. what am i missing...? |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Dec 05, 2005 9:15 pm Post subject: |
|
|
Have you rebooted. The first boot of 2.6.14 caused some ALSA errors that disappeared after a second reboot. |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Mon Dec 05, 2005 9:35 pm Post subject: |
|
|
The problem may be strictly a udev problem. Try running "udevstart" and see if the dev nodes show up.
I've noticed this happening with udev on systems where udev has more than one udev rules file located in /etc/udev/rules.d/
Reading more than one udev rules file seems to cause problems with creating the nodes. I have no way to be absolutely sure that this is the source of the problem though. For now it is just a "suspicion". _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
miLosh n00b
Joined: 05 Dec 2005 Posts: 4
|
Posted: Mon Dec 05, 2005 9:56 pm Post subject: |
|
|
i've rebooted the system about 20 times now, with various kernel settings, building alsa as a module and so on. nothing works. having only one rules file does not help either. this is really driving me crazy - i'll try now the ~x86 release of udev, as suggested on another website for a similar problem. |
|
Back to top |
|
|
miLosh n00b
Joined: 05 Dec 2005 Posts: 4
|
Posted: Mon Dec 05, 2005 10:37 pm Post subject: |
|
|
well that was a bad idea... after emerging the ~x86 udev i've got lots of errors, hence i emerge the x86 udev and baselayout again. no errors on boot now, but in addition to having no sound, i also do not have Xorg now - no nvidia device.
thats just unbelievable, what did the devs change that nothing works as it was supposed to be? i'm starting to wish devfs back.... |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Mon Dec 05, 2005 11:58 pm Post subject: |
|
|
is the nvidia /dev node present? If not, try running udevstart, and then seeing if X11 will start. (udevstart basically refresheds the nodes in /dev. this often fixes the problem with the device not being available) _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
miLosh n00b
Joined: 05 Dec 2005 Posts: 4
|
Posted: Tue Dec 06, 2005 4:26 pm Post subject: |
|
|
nope, the nvidia device is now missing in /dev. though it's strange, for the module is loaded as i see with lsmod. so i have a loaded module but no device belonging to it, X is still not starting.
im at the end of my knowledge, it seems as if udev is not creating any devices dynamically. right now i have only the devices in /dev which are in the baselayout dev tarball. i tried udevstart but with no luck, i fear that something major is missing or misconfigured, but i dont know what that might be. any pointers?
[EDIT]: i just stumbled over a post speaking about upgrading gcc from 3.3 to 3.4. well, that could actually be the cause of my problems - before the emerge -u world i was using 3.3 (or older, not sure rightnow) and the emerge did upgrade gcc. could that be? anyways, im going to rebuild my whole sys, think thats the savest way. |
|
Back to top |
|
|
wizard69 Apprentice
Joined: 22 Sep 2003 Posts: 178 Location: Berlin
|
|
Back to top |
|
|
dekon Tux's lil' helper
Joined: 21 Aug 2005 Posts: 80
|
Posted: Thu Dec 08, 2005 3:01 pm Post subject: Re: Alsa, Kernel-2.6.14 and udev |
|
|
miLosh wrote: |
output from alsamixer:
alsamixer: function snd_ctl_open failed for default: No such device
output from alsasound start:
orbit init.d # ./alsasound start
* Loading ALSA modules ... [ ok ]
* Restoring Mixer Levels ...
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '0'...
* Errors while restoring defaults, ignoring
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '1'...
* Errors while restoring defaults, ignoring
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '2'...
* Errors while restoring defaults, ignoring [ ok ]
does anyone have a clue why it doesnt work out of a sudden? it worked perfectly before the world update and kernel 2.6.12-r9, also with udev. what am i missing...? |
I had some troubles with ALSA and udev too, i have this in /var/log/messages:
Code: |
Nov 18 20:04:18 gentoo ACPI: Using IOAPIC for interrupt routing
Nov 18 20:04:18 gentoo ACPI: PCI Root Bridge [PCI0] (0000:00)
Nov 18 20:04:18 gentoo PCI: Probing PCI hardware (bus 00)
Nov 18 20:04:18 gentoo Boot video device is 0000:01:00.0
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
Nov 18 20:04:18 gentoo ACPI: Power Resource [ISAV] (on)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGPB._PRT]
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LNK2] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LNK3] (IRQs 3 4 *5 6 7 10 11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LNK4] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LNK5] (IRQs 3 4 *5 6 7 10 11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LUBA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LUBB] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LMAC] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LAPU] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LACI] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LMCI] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LSMB] (IRQs 3 4 *5 6 7 10 11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LUB2] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LFIR] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [L3CM] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LIDE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LSID] (IRQs 3 4 *5 6 7 10 11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [LFID] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APC1] (IRQs *16), disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APC2] (IRQs *17), disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APC3] (IRQs *18), disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APC4] (IRQs *19), disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APC5] (IRQs *16), disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APCF] (IRQs 20 21 22 23) *0, disabled.
Nov 18 20:04:18 gentoo ACPI: PCI Interrupt Link [APCG] (IRQs 20 21 22 23) *0, disabled.
|
But i dont know how i solved the problem, i am running in 2.6.12-gentoo-r10 now and when a switch to 2.6.14-gentoo-r2 IRQ problems is back:
Code: |
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [APCL] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [APCM] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [AP3C] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [APCZ] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [APSI] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo ACPI: PCI Interrupt Link [APSJ] (IRQs 20 21 22 23) *0, disabled.
dec 13 09:54:28 gentoo SCSI subsystem initialized
dec 13 09:54:28 gentoo usbcore: registered new driver usbfs
dec 13 09:54:28 gentoo usbcore: registered new driver hub
dec 13 09:54:28 gentoo PCI: Using ACPI for IRQ routing
dec 13 09:54:28 gentoo PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
dec 13 09:54:28 gentoo IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
|
I remember that I turn on/of ACPI support and turn on/of PnP support. _________________ Sorry for my English,i am not good at in this |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Thu Dec 08, 2005 5:45 pm Post subject: |
|
|
I JUST upgraded to udev-077-r1 yesterday the 7th and when I woke today and booted I realized I too had no sound. Running "udevstart" also fixed the problem for me as well. So it appears SOMETHING is new w/ this upgrade. I'll look around a bit and see what I find..
udev-077-r1 is the version I am currently running. I had version udev-073 beforehand. So try running "udevstart" and if that works, maybe downgrade to a previous udev by:
emerge -pv =sys-fs/udev-073
|
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Thu Dec 08, 2005 7:00 pm Post subject: |
|
|
I would add that the key to this is those people that had it working fine til just a few days ago... As opposed to people who are getting their sound working for the first time... |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Thu Dec 08, 2005 7:05 pm Post subject: |
|
|
my sound cardS are located in
/dev/sound
and not
/dev/snd(that contain also sound related things)
the /dev/dsp and /dev/dsp2 are linked to /dev/sound/dsp and /dev/sound/dsp2 |
|
Back to top |
|
|
pigats n00b
Joined: 29 Nov 2005 Posts: 6 Location: Italy
|
Posted: Thu Dec 08, 2005 8:23 pm Post subject: |
|
|
I'm having troubles with udev, too, after adding an udev rule to change the mode of /dev/sd*. I've deleted the rule, but now I can't start alsasound and I've not sd* nodes in /dev. Using udevstart worked for a while, but now it isn't creating nodes.
My configuration is:
gentoo sources 2.6.14-r4
udev-073 (I tried to downgrade to 072, but didn't work)
baselayout-1.12.0-pre11-r3
alsa-driver-1.0.10
::pigats |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Thu Dec 08, 2005 9:39 pm Post subject: |
|
|
me too
the sequencer is /dev/dsp
and my card is /dev/dsp2
so xine and a lot of program use /dev/dsp or the first card (i made a /dev/dsp simplin but it has not worked...) |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Thu Dec 08, 2005 9:41 pm Post subject: |
|
|
i'll ask in the kernel section |
|
Back to top |
|
|
cyberjun Apprentice
Joined: 06 Nov 2005 Posts: 293
|
Posted: Fri Dec 09, 2005 1:38 am Post subject: |
|
|
Friends,
My observations on this:
1. udev-077-r1 + baselayout-1.11.13 doesn't start udevd on boot. So sound as well as wireless breaks. I would say everything in general which depends on dynamic udev breaks. However once you start udevd manually in daemon mode or otherwise, things start working again.
2. udev-073 + baselayout 1.11.13 work properly.
3. udev-077-r1 + baselayout -1.12.0_pre11-r3 although start udevd on boot, wireless interface fails again although at a different stage. The net.lo script fails to correctly configure wireless. It is somehow oblivious to the settings in /etc/conf.d/net.eth1 (eth1 is my wireless interface).
I now see that udev-077-r2 has come out so maybe you can try it. I can live with udev-073 and baselayout-1.11.13. However, I don't like the thought of not having the lastest versions :p
Please let me know if you make any progress on this. I will also post in case I find a solution. By the way I am using kernel 2.6.14 and I have a strong feeling that the kernel doesn't have anything to do with this mess.
cheers,
--cyberjun |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Fri Dec 09, 2005 4:16 am Post subject: |
|
|
Downgraded to 73 and its operating as before, perfectly.
I noticed, which caused me to finally downgrade, that although alsa was working fine (/dev/sound/* was present) /dev/dsp was not. OSS module was loaded fine yet it wasn't there.
Reboot in 73 and OSS functions as well. |
|
Back to top |
|
|
cyberjun Apprentice
Joined: 06 Nov 2005 Posts: 293
|
Posted: Fri Dec 09, 2005 4:39 am Post subject: |
|
|
calr0x..which baselayout version are you using? If all is well and you feel like breaking it, I suggest you try the latest baselayout version with latest udev.
Otherwise.....
--cyberjun |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Fri Dec 09, 2005 5:07 am Post subject: |
|
|
baselayout-1.11.13-r1
Ya I think I'll stay safe hehe... |
|
Back to top |
|
|
pigats n00b
Joined: 29 Nov 2005 Posts: 6 Location: Italy
|
Posted: Fri Dec 09, 2005 6:57 pm Post subject: |
|
|
tried udev-077-r2, the latest baselayout, gentoo sources 2.6.14-r4, but it is still not working. But now, at least, If I run udevd and udevstart when the system has booted I can start alsasound... but I have an error message during boot about udevd not starting and I'm still not able to see /dev/sd* nodes.
I tried to edit /etc/conf.d/rc and set udev to use a tarball of the /dev nodes (as was said in another thread of this forum), but without changes on my system's behaviour. Hope in a fast fix.
Last edited by pigats on Fri Dec 09, 2005 9:35 pm; edited 1 time in total |
|
Back to top |
|
|
bianco n00b
Joined: 21 Jun 2005 Posts: 54
|
Posted: Fri Dec 09, 2005 8:40 pm Post subject: |
|
|
Thank you boyZ!!!
solved this problem for me
|
|
Back to top |
|
|
sir_tez n00b
Joined: 26 Mar 2003 Posts: 69
|
Posted: Sat Dec 10, 2005 7:05 pm Post subject: |
|
|
So now that we know what fixes the problem, what can be done to automate this properly? Or will there be an -r3 that fixes this? |
|
Back to top |
|
|
pigats n00b
Joined: 29 Nov 2005 Posts: 6 Location: Italy
|
Posted: Sat Dec 10, 2005 10:22 pm Post subject: |
|
|
after a whole day trying, I could get alsa working at least. /dev/sd* nodes are not automatically created as before, but it's a beginning. So, my working configuration is baselayout-1.11.14, udev-072, gentoo-sources-2.6.14-r4. Hope it can be useful to you, till a better fix will be found. I notice that the latest hotplug version is not supporting its init script any more: I don't know if it's related with this bug and how, but I emerged coldplug and added it to the default runlevel. |
|
Back to top |
|
|
pigats n00b
Joined: 29 Nov 2005 Posts: 6 Location: Italy
|
Posted: Sat Dec 10, 2005 10:24 pm Post subject: |
|
|
sir_tez wrote: | So now that we know what fixes the problem, what can be done to automate this properly? Or will there be an -r3 that fixes this? |
udev-077-r3 exists, but didn't fix the problem for me... but they're working hard: it's the third version in three days, I think |
|
Back to top |
|
|
CyD Tux's lil' helper
Joined: 23 Jul 2004 Posts: 117
|
Posted: Sun Dec 11, 2005 5:52 am Post subject: |
|
|
i downgraded to latest stable udev (070-r1) just now, which resolved the problem. udev-077-r3 wanted an unstable baselayout. i'm wondering how i went to unstable udev in the first place; perhaps it was the hal/dbus i've been messing around with, trying to get kde mediamanager functioning properly!
EDIT: ok, so hal-0.5.5.1 depends on >=sys-fs/udev-071, which is unstable. that's where i got it at least |
|
Back to top |
|
|
|