Portál AbcLinuxu, 8. května 2025 23:05
Zdravim , občas se mi při spuštění pc stane že alsa nahlásí chybu a místo aby zvuk přehrávala zvuková karta tak zvuk hraje skrze pcspeaker. Zde je LSMOD :
Module Size Used by
ipv6 260340 10
bridge 49556 0
stp 4100 1 bridge
llc 7180 2 bridge,stp
bnep 12416 2
sco 11908 2
l2cap 23552 3 bnep
bluetooth 54372 5 bnep,sco,l2cap
rfkill_input 6656 0
nls_cp437 7424 1
vfat 12800 1
fat 50720 1 vfat
hid_a4tech 4608 0
usbhid 36640 0
hid 40704 2 hid_a4tech,usbhid
arc4 3712 2
ecb 4608 2
b43 129948 0
joydev 11712 0
mac80211 161184 1 b43
usb_storage 95552 0
snd_seq_oss 31872 0
snd_seq_midi_event 8192 1 snd_seq_oss
snd_seq 49968 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 8204 2 snd_seq_oss,snd_seq
cfg80211 31760 1 mac80211
input_polldev 5256 1 b43
snd_pcm_oss 40192 0
snd_mixer_oss 16512 1 snd_pcm_oss
ppdev 9348 0
rfkill 11596 3 rfkill_input,b43
led_class 5508 1 b43
snd_intel8x0m 15500 0
uhci_hcd 24592 0
parport_pc 37700 1
lp 11108 0
parport 33004 3 ppdev,parport_pc,lp
sg 26804 0
ohci1394 31280 0
snd_intel8x0 30876 3
snd_ac97_codec 102308 2 snd_intel8x0m,snd_intel8x0
wmi 7848 0
snd_pcsp 11048 1
psmouse 55828 0
serio_raw 7172 0
video 18704 5
output 4608 1 video
container 5248 0
ac97_bus 3584 1 snd_ac97_codec
snd_pcm 70020 5 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcsp
ieee1394 79940 1 ohci1394
tg3 122116 0
nvidia 7092040 26
snd_timer 21384 2 snd_seq,snd_pcm
ssb 40964 1 b43
iTCO_wdt 12836 0
iTCO_vendor_support 4996 1 iTCO_wdt
yenta_socket 25996 1
rsrc_nonstatic 13056 1 yenta_socket
snd 50980 19 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcsp,snd_pcm,snd_timer
soundcore 8160 1 snd
snd_page_alloc 10120 3 snd_intel8x0m,snd_intel8x0,snd_pcm
ehci_hcd 37388 0
i2c_core 22804 1 nvidia
pcmcia 35532 2 b43,ssb
pcmcia_core 34452 5 b43,ssb,yenta_socket,rsrc_nonstatic,pcmcia
libphy 19456 1 tg3
usbcore 136848 5 usbhid,usb_storage,uhci_hcd,ehci_hcd
intel_agp 27836 1
agpgart 31572 2 nvidia,intel_agp
shpchp 34068 0
pci_hotplug 28064 1 shpchp
thermal 17180 0
processor 41388 2 thermal
evdev 11296 13
fan 6276 0
button 7824 0
battery 12036 0
ac 6020 0
vboxdrv 115368 0
cpufreq_powersave 3456 0
cpufreq_userspace 4996 1
p4_clockmod 6084 1
speedstep_lib 6148 1 p4_clockmod
freq_table 5632 1 p4_clockmod
fuse 53020 6
rtc_cmos 12332 0
rtc_core 17564 1 rtc_cmos
rtc_lib 4480 1 rtc_core
sd_mod 27036 6
sr_mod 16708 0
cdrom 35360 1 sr_mod
pata_acpi 6016 0
ata_generic 6788 0
ata_piix 23300 5
libata 157856 3 pata_acpi,ata_generic,ata_piix
scsi_mod 102164 5 usb_storage,sg,sd_mod,sr_mod,libata
reiserfs 231424 1
Zde lspci :
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, fast devsel, latency 0
Memory at d8000000 (32-bit, prefetchable) [size=128M]
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, fast devsel, latency 96
Bus: primary=00, secondary=01, subordinate=01, sec-latency=80
Memory behind bridge: d1000000-d1ffffff
Prefetchable memory behind bridge: e0000000-efffffff
Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1cc0 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 1ce0 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 2000 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at d0000000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=07, sec-latency=32
I/O behind bridge: 00003000-00003fff
Memory behind bridge: d2000000-d20fffff
Prefetchable memory behind bridge: 50000000-53ffffff
Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
Flags: bus master, medium devsel, latency 0
Kernel modules: intel-rng, iTCO_wdt
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 2060 [size=16]
Memory at 54000000 (32-bit, non-prefetchable) [size=1K]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, piix
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 1400 [size=256]
I/O ports at 1c80 [size=64]
Memory at d0000c00 (32-bit, non-prefetchable) [size=512]
Memory at d0000800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:1f.6 Modem: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 1800 [size=256]
I/O ports at 1c00 [size=128]
Capabilities: <access denied>
Kernel driver in use: Intel ICH Modem
Kernel modules: snd-intel8x0m
01:00.0 VGA compatible controller: nVidia Corporation NV36 [GeForce FX Go5700] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 16
Memory at d1000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (32-bit, prefetchable) [size=256M]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nvidia
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
Memory at d2000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at <ignored> [disabled]
Capabilities: <access denied>
Kernel driver in use: tg3
Kernel modules: tg3
03:01.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 168, IRQ 18
Memory at d2017000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=03, secondary=04, subordinate=07, sec-latency=176
Memory window 0: 50000000-53fff000 (prefetchable)
Memory window 1: 58000000-5bfff000
I/O window 0: 00003000-000030ff
I/O window 1: 00003400-000034ff
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
03:02.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
Subsystem: Acer Incorporated [ALI] Device 0045
Flags: bus master, medium devsel, latency 32, IRQ 19
Memory at d2016000 (32-bit, non-prefetchable) [size=2K]
Memory at d2010000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: ohci1394
Kernel modules: ohci1394
03:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
Subsystem: Wistron NeWeb Corp. TravelMate 290E WLAN Mini-PCI Card
Flags: bus master, fast devsel, latency 32, IRQ 20
Memory at d2014000 (32-bit, non-prefetchable) [size=8K]
Kernel driver in use: b43-pci-bridge
Kernel modules: ssb
APLAY - L
**** List of PLAYBACK Hardware Devices ****
card 0: pcsp [pcsp], device 0: pcspeaker [pcsp]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Modem [Intel ICH5 Modem], device 0: Intel ICH - Modem [Intel ICH5 Modem - Modem]
Subdevices: 1/1
Subdevice #0: subdevice #0
Zde : cat /proc/asound/modules
0 snd_pcsp
1 snd_intel8x0
2 snd_intel8x0m
Takže je jasné že jako výchozí dá PCSPEAKER , ale ne vždy , jen 1x za cca 15 startů.
zkoušel sem podle návodu na https://help.ubuntu.com/community/SoundTroubleshooting
vytvořit /etc/modprobe.d/alsa-base a do něj dát
options snd_intel8x0 index=0
options snd_intel8x0m index=1
options snd_pcsp index=2
ale žádná změna , občas stále je výchozí pcspeaker
uname -a
Linux NB-Pepe 2.6.28-ARCH #1 SMP PREEMPT Tue Mar 17 06:42:43 UTC 2009 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
Archlinux current
Napadá Vás něco ?
To pořadí mi vždy fungovalo. Pochopil jsem správně dle uname -a, že jde o arch? Pak by ubuntí postupy nemusely fungovat, je otázkou, zda se ta konfigurace v /etc/modprobe.d vůbec načítá. Pokud existuje /etc/modprobe.conf, zkusil bych to dát tam. Jinak možná ještě lepší by bylo dát snd_pcspk na blacklist, aby se vůbec nenatahoval. Nebo natvrdo smazat z /lib/modules, ale to je ošklivý hack.
To samé bych udělal s tím modulem pro modem snd_intel8x0m, pokud jej nepoužíváš.
Podle modprobe.conf(5) se nejprve načítá /etc/modprobe.conf a když neexistuje, tak /etc/modprobe.d/*. Některé distribuce (Debian/testing) už od generování /etc/modprobe.conf upouštějí.
MODULES=(... !snd_pcsp ...)
Vykřičník zařídí umístění modulu na blacklist.
-miky
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.