Gå til innhold

kun lyd som root?


Anbefalte innlegg

heisann jeg prøver og spille av en lydfil men det ser ikke til og funke uten root??

som en helt vanlig bruker skriver jeg: mpg321 lydfil.mp3 jeg ender da opp mef følgende output:

ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default
No default libao driver available.

 

det som er rart er at hvis jeg skriver su root og skriver den samme komandoen en gang til så funker det utmerket... det virker som ikke brukeren finner lydkortet i det heletatt men med en gang jeg bytter til root så gjør den det.. noen løsninger?

Endret av eppis
Lenke til kommentar
Videoannonse
Annonse

http://alsa.opensrc.org/home/w/org/opensrc...TroubleShooting

Check that non-root users can access the sound device special files

 

Run alsamixer both as root and as a non-root ordinary user. If the latter fails, the permissions on the device special files don't allow access by ordinary users. There are several options to fix this, depending on security requirements, your distribution and how your PC is set up:

 

* Allow all users read and write access to all sound devices, for example with chmod -R a+rwX /dev/snd/.. This might be slightly insecure.

 

* Make sure that the sound device files belong to a specific group, they have group read/write permissions, and add all the users that should have access to the sound cards to that group. In many distributions this is the audio group.

 

* If only one user needs access to the sound card, change the ownership of the sound device files to that user.

 

Eller:

 

http://wiki.archlinux.org/index.php/ALSA_S...tup_Permissions

Setup Permissions

 

To be able to use the sound card as a user, follow these steps:

 

* Add your user to the audio group:

 

# gpasswd -a USERNAME audio

 

* Log your user out and back in to ensure the audio group is loaded.

Endret av huf
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...