Desactivar l'Speaker és una de les coses més torracollons (perdó) que hi ha a Linux. Abans, amb un modprobe -r pcspkr (o rmmod pcspkr) n'hi havia prou. Deixo un parell de links on proposen algunes maneres.
La que m'ha funcionat a mi consta del següent:
1. Editar /etc/modprobe.d/blacklist.conf (o crear-lo si no existeix) i posar-hi:
blacklist pcspkr
blacklist snd_pcspkr
En principi amb això n'hi ha prou (el que fa es no carregar els mòduls que s'escriuen després de blacklist, és a dir un rmmod modul però que es manté quan reiniciem).
A una de les pàgines anteriorment vistes es suggereix que encara que posem a la blacklist els mòduls del Speaker no n'hi ha prou ja que:
" Note: The blacklist command will blacklist a module so that it will not be loaded automatically, but the module may be loaded if another non-blacklisted module depends on it or if it is loaded manually.
However, there is a workaround for this behaviour; the install command instructs modprobe to run a custom command instead of inserting the module in the kernel as normal, so you can force the module to always fail loading with:
/etc/modprobe.d/blacklist.conf
...install MODULE /bin/false...
This will effectively "blacklist" that module and any other that depends on it. "
Jo aquest opció no l'he provat així que seria interessant fer-ho. Enlloc d'això:
2. root@debian:~# apt-get install alsa-base
xddxdd@debian:~$ echo "options snd_hda_intel beep_mode=0" >> /etc/modprobe.d/alsa-base.conf
Ara si reiniciem, no hauriem de sentir més el molest soroll de l'Speaker.
NOTA: Si desinstal·lem ALSA (apt-get remove alsa-base) veurem que al reiniciar tindrem el Speaker tocant els pebrots un altre cop en forma de dispositiu del Phonon. Es tan facil com anar al Phonon ("Preferencias del sistema" / "Multimedia" / "Audio Hardware Setup") i sel·leccionar:
Tarjeta de sonido: pcsp
Perfil: Apagado
És possible que encara tinguem l'Speaker (és pitjor que el monstre Bu) anem a alsamixer i F6 sel·leccionem pcsp, anem a "Beep" i clickem la tecla "m" i veurem com es canvia de 00 a MM (mute). A dalt veiem: Item: Beep [off]. Clickem "Esc".
Ara en principi si que ja està.
No hay comentarios:
Publicar un comentario