Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
T_T
Do you want help or not? I'm asking if it works when you startx as root, and doesn't when you startx as a standard user.
I also need to know if your using ALSA or OSS drivers.
And it wouldn't hurt to know what sound card you are using.
If it works as root, but doesn't as a standard user, then you just need to be added to the "audio" or "sound" group in your groups.
# vi /etc/group
scroll down to the line for "audio" or "sound" and add your standard user name to the end of that line after the : That should fix the problem, IF this is your problem, but being as I was guessing, and your reply didn't give me any information I asked for, it makes it a little hard for me to help you out.
Please don't forget to reply to this post and let us know if your problem is fixed.
iam getting the same problem.but there is not audio or sound in my /etc/group .What should i do?
Quote:
Originally posted by zakl T_T
Do you want help or not? I'm asking if it works when you startx as root, and doesn't when you startx as a standard user.
I also need to know if your using ALSA or OSS drivers.
And it wouldn't hurt to know what sound card you are using.
If it works as root, but doesn't as a standard user, then you just need to be added to the "audio" or "sound" group in your groups.
# vi /etc/group
scroll down to the line for "audio" or "sound" and add your standard user name to the end of that line after the : That should fix the problem, IF this is your problem, but being as I was guessing, and your reply didn't give me any information I asked for, it makes it a little hard for me to help you out.
Please don't forget to reply to this post and let us know if your problem is fixed.
I don't have any "audio" or "sound" group in etc /grop ... so what else I have to do after I add the audio group and put my user in that group?...
do I have to change the /dev/dsp own by this group? ....
That should work fine, the any user you add to that group will be able to access /dev/dsp. ALSA and OSS automatcally create a group of this sort, which you have to add the users to manually.
If you use kde, you can use the "kuser" program located in the system section of your kmenu to edit users and groups, then chown group /dev/dsp, and you should be set.
Just to confirm... are you saying that I only need to add "sound" or "audio" group and append selected users to it? So I don't need to chmod the /dev/dsp...?
I add a new group called audio and put couple of users to it...... sad to say it dosen't work...
p/s: I did not change my /dev/dsp permission . unfortunately I can't stay back to try on "sound" group.... . May be I'll continue tomorrow. Looking forward to solve this.
!
No, if you go with the sound or audio group option, you have to change ownership of /dev/dsp to that particular group. If it is still owned by x user and y user/group tries to access it, and they don't have the permission, they will be rejected. Therefore, you add the users to the group, and change ownership of /dev/dsp to "audio" or whatever your sound group is you created.
It seems like we solve the problem. I've test with couple of users and it work. The funny thing is, when I log in using a uset that is not in the audio group I can't get any audio when I'm using KDE but I can get it using GNOME. Peace
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.