You are not logged in.

#1 2013-12-22 11:47:32

Dokan
Member
Registered: 2013-07-08
Posts: 4

sometimes fails to load the right codec (or chipset) for audio

Sometimes fails to load the right sound codec (or chipset) for at boot, I think that it's same issue with alsa and OSS.

At boot time (toshiba u300) alsa (or kernel maybe) fails to load sound.

When it works this is loaded:

kike ~ $  log -b | grep "snd_"
jul 02 22:46:10 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: irq 48 for MSI/MSI-X


kike ~ $  amixer info
Card default 'Intel'/'HDA Intel at 0xf0800000 irq 48'
  Mixer name	: 'Realtek ALC268'
  Components	: 'HDA:10ec0268,10ec0268,00100003 HDA:11c11040,11790001,00100200'
  Controls      : 34
  Simple ctrls  : 14


kike ~ $  cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf0800000 irq 45


kike ~ $  cat /proc/asound/card0/codec#* | grep Codec
Codec: Realtek ALC268
Codec: LSI ID 1040


kike ~ $  modinfo soundcore
filename:       /lib/modules/3.9.7-1-ARCH/kernel/sound/soundcore.ko.gz
alias:          char-major-14-*
license:        GPL
author:         Alan Cox
description:    Core sound module
depends:        
intree:         Y
vermagic:       3.9.7-1-ARCH SMP preempt mod_unload modversions 686 
parm:           preclaim_oss:int


kike ~ $  alsactl init
Found hardware: "HDA-Intel" "Realtek ALC268" "HDA:10ec0268,1179ff50,00100003 HDA:11c11040,11790001,00100200" "0x1179" "0xff50"
Hardware is initialized using a generic method


kike ~ $  lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)


kike ~ $  lsmod | grep snd
snd_hda_codec_realtek    26353  1 
snd_hda_intel          30415  0 
snd_hda_codec         125545  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4746  1 snd_hda_codec
snd_pcm                62851  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          6038  2 snd_pcm,snd_hda_intel
snd_timer              14846  1 snd_pcm
snd                    44486  6 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               4386  1 snd


kike ~ $  aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


kike ~ $  ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       60 jul  8 14:45 by-path
crw-rw----+ 1 root audio 116,  6 jul  8 14:45 controlC0
crw-rw----+ 1 root audio 116,  5 jul  8 14:45 hwC0D0
crw-rw----+ 1 root audio 116,  4 jul  8 14:45 hwC0D1
crw-rw----+ 1 root audio 116,  3 jul  8 14:45 pcmC0D0c
crw-rw----+ 1 root audio 116,  2 jul  8 14:45 pcmC0D0p
crw-rw----  1 root audio 116,  1 jul  8 14:45 seq
crw-rw----+ 1 root audio 116, 33 jul  8 14:45 timer


kike ~ $  speaker-test -Dplug:front -c2

speaker-test 1.0.27.1

Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10,949396
 0 - Front Left
 1 - Front Right
Time per period = 10,959696

When sound doesn't works, only the codec «LSI ID 1040» is loaded, nor «Realtek ALC268» nor both:

kike ~ $  log -b | grep "snd_"
nov 21 07:47:20 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: irq 45 for MSI/MSI-X


kike ~ $  amixer info
Card default 'Intel'/'HDA Intel at 0xf0800000 irq 45'
  Mixer name	: 'LSI ID 1040'
  Components	: 'HDA:11c11040,11790001,00100200'
  Controls      : 0
  Simple ctrls  : 0


kike ~ $  cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf0800000 irq 45


kike ~ $  cat /proc/asound/card0/codec#* | grep Codec
Codec: LSI ID 1040


kike ~ $  modinfo soundcore
filename:       /lib/modules/3.11.6-1-ARCH/kernel/sound/soundcore.ko.gz
alias:          char-major-14-*
license:        GPL
author:         Alan Cox
description:    Core sound module
depends:        
intree:         Y
vermagic:       3.11.6-1-ARCH SMP preempt mod_unload modversions 686 
parm:           preclaim_oss:int


kike ~ $  alsactl init
Found hardware: "HDA-Intel" "LSI ID 1040" "HDA:11c11040,11790001,00100200" "0x1179" "0xff50"
Hardware is initialized using a generic method


kike ~ $  lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)


kike ~ $  lsmod | grep snd
snd_hda_intel          30903  0 
snd_hda_codec         127562  1 snd_hda_intel
snd_hwdep               4746  1 snd_hda_codec
snd_pcm                63876  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          5942  2 snd_pcm,snd_hda_intel
snd_timer              14942  1 snd_pcm
snd                    44566  5 snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               4386  1 snd


kike ~ $  aplay -l
**** List of PLAYBACK Hardware Devices ****


kike ~ $  ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       60 nov 21 07:47 by-path
crw-rw----+ 1 root audio 116,  3 nov 21 07:47 controlC0
crw-rw----+ 1 root audio 116,  2 nov 21 07:47 hwC0D1
crw-rw----  1 root audio 116,  1 nov 21 07:47 seq
crw-rw----+ 1 root audio 116, 33 nov 21 07:47 timer


kike ~ $  speaker-test

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No existe el fichero o el directorio
kike ~ $ 

I've followed this topics without luck.
https://wiki.archlinux.org/index.php/Al … sound_card
https://mailman.archlinux.org/pipermail … 05092.html
https://www.kernel.org/doc/Documentatio … Models.txt

First I worked around alsa sound state, it doesn't work, then I tried to point my laptop model in «/etc/modprobe.d/alsa-base.conf» file:

options snd-hda-intel model=toshiba
options snd-hda-intel index=0

options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
options snd-pcsp index=-2
options snd-usb-audio index=-2

And last I've tried to load Realtek modules in «/etc/modules-load.d/alsa.conf» file:

snd
snd_hda_intel
snd_hda_codec
snd_pcm
snd_page_alloc
snd_timer
snd_hwdep
snd_hda_codec_realtek

And here is that commands shows this sesion:

kike ~ $  log -b | grep "snd_"
dic 22 08:23:20 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: irq 45 for MSI/MSI-X
dic 22 08:23:21 dokan-laptop systemd-modules-load[146]: Inserted module 'snd_hda_intel'
dic 22 08:23:21 dokan-laptop systemd-modules-load[146]: Inserted module 'snd_hda_codec_realtek'
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:26 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:34 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:35 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:36 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:41 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:46 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:51 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:23:56 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:01 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:01 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:01 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:01 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:01 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:02 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:02 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:06 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform
dic 22 08:24:11 dokan-laptop kernel: snd_hda_intel 0000:00:1b.0: no hotplug settings from platform

kike ~ $  amixer info
Card default 'Intel'/'HDA Intel at 0xf0800000 irq 45'
  Mixer name	: 'LSI ID 1040'
  Components	: 'HDA:11c11040,11790001,00100200'
  Controls      : 0
  Simple ctrls  : 0

kike ~ $  cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf0800000 irq 45

kike ~ $  cat /proc/asound/card0/codec#* | grep Codec
Codec: LSI ID 1040

kike ~ $  modinfo soundcore
filename:       /lib/modules/3.12.5-1-ARCH/kernel/sound/soundcore.ko.gz
alias:          char-major-14-*
license:        GPL
author:         Alan Cox
description:    Core sound module
depends:        
intree:         Y
vermagic:       3.12.5-1-ARCH SMP preempt mod_unload modversions 686 
parm:           preclaim_oss:int

kike ~ $  alsactl init
Found hardware: "HDA-Intel" "LSI ID 1040" "HDA:11c11040,11790001,00100200" "0x1179" "0xff50"
Hardware is initialized using a generic method
kike ~ $  lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

kike ~ $  lsmod | grep snd
snd_hda_codec_realtek    35534  0 
snd_hda_intel          31255  0 
snd_hda_codec         128858  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4750  1 snd_hda_codec
snd_pcm                63880  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          5978  2 snd_pcm,snd_hda_intel
snd_timer              14946  1 snd_pcm
snd                    44566  6 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               4386  1 snd

kike ~ $  aplay -l
**** List of PLAYBACK Hardware Devices ****

kike ~ $  ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       60 dic 22 08:23 by-path
crw-rw----+ 1 root audio 116,  3 dic 22 08:23 controlC0
crw-rw----+ 1 root audio 116,  2 dic 22 08:23 hwC0D1
crw-rw----  1 root audio 116,  1 dic 22 08:23 seq
crw-rw----+ 1 root audio 116, 33 dic 22 08:23 timer

kike ~ $  speaker-test -Dplug:front -c2

speaker-test 1.0.27.2

Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No existe el fichero o el directorio

My next step is go into kernel but I think it's better to ask here first.
I have to say that before Arch it had installed Ubuntu 10.04 with OSS (problems with keyboard sound keys with alsa), lately before change to Arch I must to restart sound system before it works frequently with this procedure; «soundoff», then «soundon» absolutly freezes the laptop so I had to turn off it and turn on again, then «rm /usr/lib/oss/starting», and last «soundon», then it sometimes works.

Now my only way to have sound is to restart the system time and time again until it works.

Thanks for your advices.

Last edited by Dokan (2013-12-22 11:49:08)

Offline

#2 2013-12-26 19:56:15

Dokan
Member
Registered: 2013-07-08
Posts: 4

Re: sometimes fails to load the right codec (or chipset) for audio

Maybe two kernel modules that try to control the same piece of hardware, but how can I know what modules are?

Blacklisting [https://wiki.archlinux.org/index.php/Ke … acklisting]

Blacklisting, in the context of kernel modules, is a mechanism to prevent the kernel module from loading. This could be useful if, for example, the associated hardware is not needed, or if loading that module causes problems: for instance there may be two kernel modules that try to control the same piece of hardware, and loading them together would result in a conflict.

Some modules are loaded as part of the initramfs. mkinitcpio -M will print out all autodetected modules: to prevent the initramfs from loading some of those modules, blacklist them in /etc/modprobe.d/modprobe.conf. Running mkinitcpio -v will list all modules pulled in by the various hooks (e.g. filesystem hook, SCSI hook, etc.). Remember to add that .conf file to the FILES section in /etc/mkinitcpio.conf (if you have not done so already) and rebuild the initramfs once you have blacklisted the modules, and to reboot afterwards.

# mkinitcpio -M
==> Modules autodetected
ac
acpi_cpufreq
ahci
ata_generic
ata_piix
battery
btusb
button
coretemp
ehci_pci
evdev
ext4
firewire_ohci
hid_generic
i2c_i801
i915
intel_agp
iTCO_wdt
iwl4965
joydev
kvm_intel
lpc_ich
microcode
pata_acpi
pcspkr
processor
psmouse
r592
r8169
sdhci_pci
sd_mod
serio_raw
shpchp
snd_hda_intel
sr_mod
thermal
toshiba_acpi
toshiba_bluetooth
uhci_hcd
usbcore
usbhid
uvcvideo
video
wmi
[root@dokan-laptop ~]# mkinitcpio -v
==> Starting dry run: 3.12.5-1-ARCH
  -> Running build hook: [/usr/lib/initcpio/install/base]
    adding file: /bin/busybox
    adding symlink: /usr/lib/libc.so.6 -> libc-2.18.so
    adding file: /usr/lib/libc-2.18.so
    adding symlink: /lib/ld-linux.so.2 -> ld-2.18.so
    adding file: /usr/lib/ld-2.18.so
    adding symlink: /usr/bin/[ -> busybox
    adding symlink: /usr/bin/[[ -> busybox
    adding symlink: /usr/bin/ash -> busybox
    adding symlink: /usr/bin/awk -> busybox
    adding symlink: /usr/bin/basename -> busybox
    adding symlink: /usr/bin/cat -> busybox
    adding symlink: /usr/bin/chgrp -> busybox
    adding symlink: /usr/bin/chmod -> busybox
    adding symlink: /usr/bin/chown -> busybox
    adding symlink: /usr/bin/chroot -> busybox
    adding symlink: /usr/bin/clear -> busybox
    adding symlink: /usr/bin/cp -> busybox
    adding symlink: /usr/bin/cttyhack -> busybox
    adding symlink: /usr/bin/cut -> busybox
    adding symlink: /usr/bin/dd -> busybox
    adding symlink: /usr/bin/df -> busybox
    adding symlink: /usr/bin/dirname -> busybox
    adding symlink: /usr/bin/dmesg -> busybox
    adding symlink: /usr/bin/du -> busybox
    adding symlink: /usr/bin/echo -> busybox
    adding symlink: /usr/bin/egrep -> busybox
    adding symlink: /usr/bin/env -> busybox
    adding symlink: /usr/bin/expr -> busybox
    adding symlink: /usr/bin/false -> busybox
    adding symlink: /usr/bin/free -> busybox
    adding symlink: /usr/bin/getopt -> busybox
    adding symlink: /usr/bin/grep -> busybox
    adding symlink: /usr/bin/halt -> busybox
    adding symlink: /usr/bin/head -> busybox
    adding symlink: /usr/bin/hexdump -> busybox
    adding symlink: /usr/bin/ifconfig -> busybox
    adding symlink: /usr/bin/init -> busybox
    adding symlink: /usr/bin/install -> busybox
    adding symlink: /usr/bin/ip -> busybox
    adding symlink: /usr/bin/ipaddr -> busybox
    adding symlink: /usr/bin/iplink -> busybox
    adding symlink: /usr/bin/iproute -> busybox
    adding symlink: /usr/bin/iprule -> busybox
    adding symlink: /usr/bin/iptunnel -> busybox
    adding symlink: /usr/bin/kbd_mode -> busybox
    adding symlink: /usr/bin/kill -> busybox
    adding symlink: /usr/bin/killall -> busybox
    adding symlink: /usr/bin/less -> busybox
    adding symlink: /usr/bin/ln -> busybox
    adding symlink: /usr/bin/loadfont -> busybox
    adding symlink: /usr/bin/loadkmap -> busybox
    adding symlink: /usr/bin/losetup -> busybox
    adding symlink: /usr/bin/ls -> busybox
    adding symlink: /usr/bin/md5sum -> busybox
    adding symlink: /usr/bin/mkdir -> busybox
    adding symlink: /usr/bin/mkfifo -> busybox
    adding symlink: /usr/bin/mknod -> busybox
    adding symlink: /usr/bin/mktemp -> busybox
    adding symlink: /usr/bin/mountpoint -> busybox
    adding symlink: /usr/bin/mv -> busybox
    adding symlink: /usr/bin/nc -> busybox
    adding symlink: /usr/bin/netstat -> busybox
    adding symlink: /usr/bin/nslookup -> busybox
    adding symlink: /usr/bin/openvt -> busybox
    adding symlink: /usr/bin/pgrep -> busybox
    adding symlink: /usr/bin/pidof -> busybox
    adding symlink: /usr/bin/ping -> busybox
    adding symlink: /usr/bin/ping6 -> busybox
    adding symlink: /usr/bin/poweroff -> busybox
    adding symlink: /usr/bin/printf -> busybox
    adding symlink: /usr/bin/ps -> busybox
    adding symlink: /usr/bin/pwd -> busybox
    adding symlink: /usr/bin/readlink -> busybox
    adding symlink: /usr/bin/reboot -> busybox
    adding symlink: /usr/bin/rm -> busybox
    adding symlink: /usr/bin/rmdir -> busybox
    adding symlink: /usr/bin/route -> busybox
    adding symlink: /usr/bin/sed -> busybox
    adding symlink: /usr/bin/seq -> busybox
    adding symlink: /usr/bin/setfont -> busybox
    adding symlink: /usr/bin/sh -> busybox
    adding symlink: /usr/bin/sha1sum -> busybox
    adding symlink: /usr/bin/sha256sum -> busybox
    adding symlink: /usr/bin/sha512sum -> busybox
    adding symlink: /usr/bin/sleep -> busybox
    adding symlink: /usr/bin/sort -> busybox
    adding symlink: /usr/bin/stat -> busybox
    adding symlink: /usr/bin/strings -> busybox
    adding symlink: /usr/bin/sync -> busybox
    adding symlink: /usr/bin/tac -> busybox
    adding symlink: /usr/bin/tail -> busybox
    adding symlink: /usr/bin/telnet -> busybox
    adding symlink: /usr/bin/test -> busybox
    adding symlink: /usr/bin/tftp -> busybox
    adding symlink: /usr/bin/touch -> busybox
    adding symlink: /usr/bin/true -> busybox
    adding symlink: /usr/bin/umount -> busybox
    adding symlink: /usr/bin/uname -> busybox
    adding symlink: /usr/bin/uniq -> busybox
    adding symlink: /usr/bin/uptime -> busybox
    adding symlink: /usr/bin/vi -> busybox
    adding symlink: /usr/bin/wc -> busybox
    adding symlink: /usr/bin/wget -> busybox
    adding symlink: /usr/bin/yes -> busybox
    adding file: /usr/sbin/kmod
    adding symlink: /usr/lib/libz.so.1 -> libz.so.1.2.8
    adding file: /usr/lib/libz.so.1.2.8
    adding symlink: /usr/bin/depmod -> kmod
    adding symlink: /usr/bin/insmod -> kmod
    adding symlink: /usr/bin/rmmod -> kmod
    adding symlink: /usr/bin/lsmod -> kmod
    adding symlink: /usr/bin/modprobe -> kmod
    adding symlink: /usr/bin/modinfo -> kmod
    adding file: /usr/sbin/blkid
    adding symlink: /usr/lib/libblkid.so.1 -> libblkid.so.1.1.0
    adding file: /usr/lib/libblkid.so.1.1.0
    adding symlink: /usr/lib/libuuid.so.1 -> libuuid.so.1.3.0
    adding file: /usr/lib/libuuid.so.1.3.0
    adding file: /usr/sbin/mount
    adding symlink: /usr/lib/libmount.so.1 -> libmount.so.1.1.0
    adding file: /usr/lib/libmount.so.1.1.0
    adding file: /usr/sbin/switch_root
    adding file: /init_functions
    adding file: /init
    adding file: /usr/lib/modprobe.d/usb-load-ehci-first.conf
  -> Running build hook: [/usr/lib/initcpio/install/udev]
    adding file: /etc/udev/udev.conf
    adding file: /usr/lib/systemd/systemd-udevd
    adding symlink: /usr/lib/librt.so.1 -> librt-2.18.so
    adding file: /usr/lib/librt-2.18.so
    adding symlink: /usr/lib/libkmod.so.2 -> libkmod.so.2.2.5
    adding file: /usr/lib/libkmod.so.2.2.5
    adding symlink: /usr/lib/libacl.so.1 -> libacl.so.1.1.0
    adding file: /usr/lib/libacl.so.1.1.0
    adding symlink: /usr/lib/libpthread.so.0 -> libpthread-2.18.so
    adding file: /usr/lib/libpthread-2.18.so
    adding symlink: /usr/lib/libattr.so.1 -> libattr.so.1.1.0
    adding file: /usr/lib/libattr.so.1.1.0
    adding file: /usr/bin/udevadm
    adding file: /usr/bin/systemd-tmpfiles
    adding symlink: /usr/lib/libcap.so.2 -> libcap.so.2.22
    adding file: /usr/lib/libcap.so.2.22
    adding file: /usr/lib/udev/rules.d/50-udev-default.rules
    adding file: /usr/lib/udev/rules.d/60-persistent-storage.rules
    adding file: /usr/lib/udev/rules.d/64-btrfs.rules
    adding file: /usr/lib/udev/rules.d/80-drivers.rules
    adding file: /usr/lib/udev/ata_id
    adding file: /usr/lib/udev/scsi_id
    adding file: /hooks/udev
  -> Running build hook: [/usr/lib/initcpio/install/autodetect]
    caching 44 modules
  -> Running build hook: [/usr/lib/initcpio/install/modconf]
    adding dir: /etc/modprobe.d
    adding file: /etc/modprobe.d/alsa-base.conf
    overwriting file: /usr/lib/modprobe.d/usb-load-ehci-first.conf
  -> Running build hook: [/usr/lib/initcpio/install/block]
    adding module: scsi_mod
    adding module: sd_mod
    adding module: cdrom
    adding module: sr_mod
    adding module: libata
    adding module: pata_acpi
    adding module: ata_generic
    adding module: libahci
    adding module: ahci
    adding module: ata_piix
    adding module: usb-common
    adding module: usbcore
    adding module: ehci-hcd
    adding module: ehci_pci
    adding module: uhci_hcd
    adding module: crc-itu-t
    adding module: firewire-core
    adding module: firewire_ohci
    adding module: mmc_core
    adding module: sdhci
    adding module: sdhci_pci
    adding module: firewire-sbp2
    adding module: usb_storage
    adding module: mmc_block
  -> Running build hook: [/usr/lib/initcpio/install/lvm2]
    adding module: dm-mod
    adding module: dm-snapshot
    adding module: dm-log
    adding module: dm-region-hash
    adding module: dm-mirror
    adding file: /usr/bin/lvm
    adding symlink: /usr/lib/libudev.so.1 -> libudev.so.1.4.0
    adding file: /usr/lib/libudev.so.1.4.0
    adding symlink: /usr/lib/libdl.so.2 -> libdl-2.18.so
    adding file: /usr/lib/libdl-2.18.so
    adding file: /usr/lib/libdevmapper-event.so.1.02
    adding file: /usr/lib/libdevmapper.so.1.02
    adding symlink: /usr/lib/libreadline.so.6 -> libreadline.so.6.2
    adding file: /usr/lib/libreadline.so.6.2
    adding symlink: /usr/lib/libncursesw.so.5 -> libncursesw.so.5.9
    adding file: /usr/lib/libncursesw.so.5.9
    adding file: /usr/bin/lvmetad
    adding file: /usr/bin/dmsetup
    adding file: /usr/lib/udev/rules.d/10-dm.rules
    adding file: /usr/lib/udev/rules.d/13-dm-disk.rules
    adding file: /usr/lib/udev/rules.d/95-dm-notify.rules
    adding file: /usr/lib/udev/rules.d/11-dm-lvm.rules
    adding file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules
    adding file: /usr/lib/udev/rules.d/11-dm-initramfs.rules
    adding file: /etc/lvm/lvm.conf
    adding file: /hooks/lvm2
  -> Running build hook: [/usr/lib/initcpio/install/filesystems]
    adding module: mbcache
    adding module: jbd2
    adding module: crc16
    adding module: ext4
  -> Running build hook: [/usr/lib/initcpio/install/keyboard]
    adding module: hid
    adding module: hid_generic
    adding module: usbhid
  -> Running build hook: [/usr/lib/initcpio/install/fsck]
    adding file: /usr/sbin/fsck.ext4
    adding symlink: /usr/lib/libext2fs.so.2 -> libext2fs.so.2.4
    adding file: /usr/lib/libext2fs.so.2.4
    adding symlink: /usr/lib/libcom_err.so.2 -> libcom_err.so.2.1
    adding file: /usr/lib/libcom_err.so.2.1
    adding symlink: /usr/lib/libe2p.so.2 -> libe2p.so.2.3
    adding file: /usr/lib/libe2p.so.2.3
    adding symlink: /usr/bin/fsck.ext2 -> fsck.ext4
    adding symlink: /usr/bin/fsck.ext3 -> fsck.ext4
    adding file: /usr/sbin/fsck
==> Generating module dependencies
==> Dry run complete, use -g IMAGE to generate a real image
[root@dokan-laptop ~]# nano /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=toshiba
options snd-hda-intel index=0

options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
options snd-pcsp index=-2
options snd-usb-audio index=-2

Offline

#3 2013-12-31 11:13:22

Dokan
Member
Registered: 2013-07-08
Posts: 4

Re: sometimes fails to load the right codec (or chipset) for audio

«Udev loads kernel modules by utilizing... . The inherent disadvantage of this method is that Udev does not always load modules in the same order on each boot

Is there a way to know the load order for modules when system has loaded?

Also, from linux.com, «Udev uses the modalias data to find the correct device driver from¬†/lib/modules/`uname -r`/modules.alias.».

Could be something wrong with modalias?

Does someone know a way to manually load Realtek chipset/codec once system has finished loading?
I've been reading about udev rules at freedesktop.org, but I need a newbie howto... :-/

kike ~ $  l /dev/snd/by-path/
pci-0000:00:1b.0@
kike ~ $  udevadm test /dev/snd/by-path/pci-0000\:00\:1b.0 
calling: test
version 208
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

=== trie on-disk ===
tool version:          208
file size:         5866515 bytes
header size             80 bytes
strings            1296323 bytes
nodes              4570112 bytes
load module index
Skipping overridden file: /usr/lib/udev/rules.d/51-android.rules.
read rules file: /usr/lib/udev/rules.d/10-dm.rules
read rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules
read rules file: /usr/lib/udev/rules.d/13-dm-disk.rules
read rules file: /usr/lib/udev/rules.d/40-gphoto.rules
read rules file: /usr/lib/udev/rules.d/40-hpet-permissions.rules
read rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /usr/lib/udev/rules.d/49-sane.rules
read rules file: /usr/lib/udev/rules.d/50-firmware.rules
read rules file: /usr/lib/udev/rules.d/50-udev-default.rules
read rules file: /etc/udev/rules.d/51-android.rules
specified group 'plugdev' unknown
read rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules
read rules file: /usr/lib/udev/rules.d/60-keyboard.rules
read rules file: /usr/lib/udev/rules.d/60-openobex.rules
read rules file: /usr/lib/udev/rules.d/60-pcmcia.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-input.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-serial.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /usr/lib/udev/rules.d/60-vhba.rules
read rules file: /usr/lib/udev/rules.d/61-accelerometer.rules
read rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules
read rules file: /usr/lib/udev/rules.d/64-btrfs.rules
read rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules
read rules file: /usr/lib/udev/rules.d/65-kvm.rules
read rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules
read rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules
read rules file: /usr/lib/udev/rules.d/69-libmtp.rules
read rules file: /usr/lib/udev/rules.d/70-infrared.rules
read rules file: /usr/lib/udev/rules.d/70-power-switch.rules
read rules file: /usr/lib/udev/rules.d/70-uaccess.rules
read rules file: /usr/lib/udev/rules.d/71-seat.rules
read rules file: /usr/lib/udev/rules.d/73-seat-late.rules
read rules file: /usr/lib/udev/rules.d/75-net-description.rules
read rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules
read rules file: /usr/lib/udev/rules.d/75-tty-description.rules
read rules file: /usr/lib/udev/rules.d/78-sound-card.rules
read rules file: /usr/lib/udev/rules.d/80-drivers.rules
read rules file: /usr/lib/udev/rules.d/80-net-name-slot.rules
read rules file: /usr/lib/udev/rules.d/80-udisks.rules
read rules file: /usr/lib/udev/rules.d/80-udisks2.rules
read rules file: /usr/lib/udev/rules.d/85-usbmuxd.rules
read rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules
read rules file: /usr/lib/udev/rules.d/95-cd-devices.rules
read rules file: /usr/lib/udev/rules.d/95-dm-notify.rules
read rules file: /usr/lib/udev/rules.d/95-udev-late.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-dell.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-gateway.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-ibm.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-lenovo.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-toshiba.rules
read rules file: /usr/lib/udev/rules.d/95-upower-csr.rules
read rules file: /usr/lib/udev/rules.d/95-upower-hid.rules
read rules file: /usr/lib/udev/rules.d/95-upower-wup.rules
read rules file: /usr/lib/udev/rules.d/99-laptop-mode.rules
read rules file: /usr/lib/udev/rules.d/99-systemd.rules
rules contain 393216 bytes tokens (32768 * 12 bytes), 27956 bytes strings
27907 strings (222398 bytes), 24973 de-duplicated (197377 bytes), 2935 trie nodes used
unable to open device '/sys/dev/snd/by-path/pci-0000:00:1b.0'
unload module index
kike ~ $  

unable to open device '/sys/dev/snd/by-path/pci-0000:00:1b.0'
unload module index

Something wrong...

kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/0000\:00\:1b.0/sound/card0/device
calling: test-builtin
syspath missing

I think I'm not pointing right syspath, but... what the right syspath is?

kike ~ $  udevadm test-builtin /dev/snd/
by-path/   controlC0  hwC0D0     hwC0D1     pcmC0D0c   pcmC0D0p   pcmC0D1p   pcmC0D2c   seq        timer      
kike ~ $  udevadm test-builtin /sys/
block/    bus/      class/    dev/      devices/  firmware/ fs/       kernel/   module/   power/    
kike ~ $  udevadm test-builtin /sys/dev
dev/     devices/ 
kike ~ $  udevadm test-builtin /sys/dev/
block/ char/  
kike ~ $  udevadm test-builtin /sys/dev/block/
11:0/  254:0/ 254:1/ 254:2/ 254:3/ 254:4/ 254:5/ 8:0/   8:1/   8:2/   
kike ~ $  udevadm test-builtin /sys/dev/char/
Display all 159 possibilities? (y or n)
kike ~ $  udevadm test-builtin /sys/devices/
breakpoint/  isa/         pci0000:00/  pnp0/        rapidio/     system/      virtual/     
cpu/         LNXSYSTM:00/ platform/    pnp1/        software/    tracepoint/  
kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/
0000:00:00.0/  0000:00:1a.0/  0000:00:1b.0/  0000:00:1c.2/  0000:00:1d.1/  0000:00:1e.0/  0000:00:1f.2/  pci_bus/       
0000:00:02.0/  0000:00:1a.1/  0000:00:1c.0/  0000:00:1c.3/  0000:00:1d.2/  0000:00:1f.0/  0000:00:1f.3/  power/         
0000:00:02.1/  0000:00:1a.7/  0000:00:1c.1/  0000:00:1d.0/  0000:00:1d.7/  0000:00:1f.1/  firmware_node/ uevent         
kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/0000\:00\:1b.0/
broken_parity_status      device                    input/                    msi_bus                   resource                  subsystem_vendor
class                     dma_mask_bits             irq                       power/                    resource0                 uevent
config                    driver/                   local_cpulist             remove                    sound/                    vendor
consistent_dma_mask_bits  enable                    local_cpus                rescan                    subsystem/                
d3cold_allowed            firmware_node/            modalias                  reset                     subsystem_device          
kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/0000\:00\:1b.0/
calling: test-builtin
syspath missing

kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/0000\:00\:1b.0/sound/card0/
controlC0/ hwC0D0/    id         input11/   input13/   number     pcmC0D0p/  pcmC0D2c/  subsystem/ 
device/    hwC0D1/    input10/   input12/   input14/   pcmC0D0c/  pcmC0D1p/  power/     uevent     
kike ~ $  udevadm test-builtin /sys/devices/pci0000\:00/0000\:00\:1b.0/sound/card0/device
calling: test-builtin
syspath missing

kike ~ $

Offline

Board footer

Powered by FluxBB