ANSWER for post: "Fedora Core 8 - Problema con xmms+plugin de salida alsa 1.2.10 (libALSA.so) / Problem with xmms+alsa output plugin 1.2.10 (libALSA.so)"

cyberpro at gmail.com cyberpro at gmail.com
Sun May 11 08:34:50 UTC 2008


El problema se resolvió de manera sencilla. No sé si es la correcta pero 
acá les paso la solución para que usuarios no root puedan usar el alsa 
correctamente:

Agregué un script en el /etc/init.d el cual tiene el siguiente contenido:
######################
chmod 666 /dev/dsp
chmod 666 /dev/audio
chmod 666 /dev/mixer
chmod -R 777 /dev/snd/
######################

El problema principal era que mi usuario no root no podía acceder al 
directorio de dispositivos /dev/snd (daba permiso denegado al intentar 
ingresar en él).
Luego de este problema ya pude escuchar normalmente los videos en 
youtube.com y utilizar el xmms con el libALSA.so (plugin de ALSA)

ENGLISH:
=========

The answer to this problem it's: I put a script into /etc/init.d, with 
this commands:
######################
chmod 666 /dev/dsp
chmod 666 /dev/audio
chmod 666 /dev/mixer
chmod -R 777 /dev/snd/
######################

The real problem was that my non root user can't access to /dev/snd 
folder. Now I can hear flash videos from youtube and use libALSA.so from 
xmms.


Rodrigo S.R. escribió:
> ESPAÑOL:
> =========
> =========
>
> Estoy teniendo un inconveniente, aparentemente con permisos o algo 
> relacionado a esto básicamente con el xmms cuando intento usar el 
> plugin del ALSA en vez del "Controlador OSS" que viene en forma 
> predeterminada.
>
> Sistema y soft instalado:
> ==================
> Fedora Core 8 (estable)
> Kernel 2.6.24.3 <http://2.6.24.3>
> alsa 1.0.16 (driver, firmware, lib, oss (1.0.15), plugins, utils)
>
> Placa de sonido:
> =============
>  0 [Live]: EMU10K1 - SBLive! Platinum [CT4760P]
>               SBLive! Platinum [CT4760P] (rev.8)
>
>
> Cuando quiero utilizar el plugin alsa del xmms (libALSA.so) me tira el 
> siguiente error:
>
> #################################################
> Por favor, verifique que:
> Su tarjeta de sonido esta configurada adecuadamente
> Tiene seleccionado el plugin de salida correcto
> No hay otros programas bloqueando la tarjeta de sonido
> #################################################
>
> Este problema ocurre cuando utilizo un usuario distinto al root. Otro 
> síntoma del aparente problema con los permisos es que desde el 
> firefox, cuando deseo veo un video en flash (firefox 2.0.0.8 
> <http://2.0.0.8> y plugin flash player 9 bajados del repositorio de 
> Fedora) no me reproduce el sonido. Tanto el xmms como el firefox 
> reproduciendo videos (por ejemplo de youtube) con el usuario root 
> funcionan perfectamente (ya vi todas las posibilidades, tanto la de 
> modificar el /etc/firefox/firefoxrc con el DEVICE_DSP, como las otras 
> alternativas).
> Los permisos de /dev los forcé por si este era el problema, pero sigue 
> todo igual:
>
> chmod 666 /dev/dsp
> chmod 666 /dev/audio
> chmod 666 /dev/mixer
> chmod -R 666 /dev/snd/
>
> Todas las aplicaciones que intentan utilizar el ALSA como salida de 
> sonido fallan. Solamente funcionan si elijo como opción el "OSS/ioctl 
> audio output", como es el caso del MPlayer:
>
> [root at localhost / ]# lsof | egrep '/dev/(sound|dsp|mixer)'
> gkrellm   2794 cyber    9u      CHR       14,0               5037 
> /dev/mixer
> xmms      3646 cyber   9w     CHR       14,3                5018 /dev/dsp
> gmplayer  3843 cyber  9w     CHR       14,3                5018 /dev/dsp
>
> En la salida por pantalla anterior se puede ver como el xmms, el 
> mplayer (GUI) y el gkrellm no utilizan el ALSA (oss o lo que fuese).
>
> Estuve leyendo en varios foros que quizás el problema esté relacionado 
> con el demonio HAL + ConsoleKit (hay dos bugs definidos en el Fedora 
> con respecto a este demonio/aplicación), pero sinceramente no funcionó 
> lo que recomendaban. No creo que la solución sea utilizar el root en 
> el entorno gráfico para que los programas puedan utilizar el oss del 
> ALSA para reproducir sonido.
>
> Quizás la solución sea mucho más sencilla de lo que creo; o quizás 
> alguien me pueda ayudar si lo tiene funcionando de esta forma. Tengo 
> que modificar algún permiso extra?. Es realmente un bug?.
>
>
>
> ENGLISH:
> ========
> ========
>
> I'm having a problem, apparently with permissions or something related 
> to this, basically with xmms; when I attempt to use the ALSA plugin 
> instead of the "OSS Controller" (default).
>
> Soft and System:
> ================
> Fedora Core 8 (stable)
> Kernal 2.6.24.3 <http://2.6.24.3>
> alsa-driver/firmware/oss/plugins/utils (1.0.16) and alsa-oss 1.0.15 
> (latest)
>
> Sound Card:
> ===========
>  0 [Live]: EMU10K1 - SBLive! Platinum [CT4760P]
>               SBLive! Platinum [CT4760P] (rev.8)
>
> When I want to use xmms alsa plugin (libALSA.so) throws the following 
> error (sorry, but I translate the error that appears in spanish):
>
> ##################################################
> Please, verify:
> The sound card is configured.
> Has selected the correct output plugin.
> there are no other programs blocking the sound card
> ###################################################
>
> This problem happens when I don't use root user. Another symptom of 
> the apparent problem with the permissions is from firefox, when I want 
> to see a flash video (firefox 2.0.0.8 <http://2.0.0.8> and flash 
> player 9 downloaded and installed from Fedora repository) doesn't 
> reproduce the sounds. As much xmms as firefox reproducing videos (for 
> example from youtube) with the user root works perfectly (already I 
> saw all the possibilities, as much the one to modify 
> /etc/firefox/firefoxrc with DEVICE_DSP option, like the other 
> alternatives). I forced the permissions of /dev, but it doesn't work too:
>
> chmod 666 /dev/dsp
> chmod 666 /dev/audio
> chmod 666 /dev/mixer
> chmod -R 666 /dev/snd/
>
> All the programs that try to use the ALSA as sound output fails. They 
> only work if I choose the option "audio OSS/ioctl output", as the case 
> of the MPlayer.
>
> [root at localhost / ]# lsof | egrep '/dev/(sound|dsp|mixer)'
> gkrellm   2794 cyber    9u      CHR       14,0               5037 
> /dev/mixer
> xmms      3646 cyber   9w     CHR       14,3                5018 /dev/dsp
> gmplayer  3843 cyber  9w     CHR       14,3                5018 /dev/dsp
>
> Perhaps the solution is much more simple of which I think; or perhaps 
> somebody can help me if it has it working....I need to change some 
> extra permissions?. It's really a bug?.
>
>
> Muchas gracias / Thanks.
>
> Atte.: Rodrigo.
>




More information about the users mailing list