Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I have an Gigabyte motherboard that has integrated sound and i recently installed RedHat 8 (totally new to linux, btw). sound wouldn't work, so i downloaded and installed the Realtek drivers ,it's OK.
In Gnome as root, System Settings > Soundcard Detection gives me a tab that says:
but no sound plays when i hit "play test sound". the speakers are turned up, so i go to check the volume settings to make sure they're up too. Click Sound & Video > Volume Control gives me an error message:
Error (gnome_volume_control) I was not able to open your audio device. Please check that you have permission to open /dev/mixer and make sure you have sound support compiled into your kernel.
I don't know what error it was because I compiled my kernel with sound support.
I installed these packages : alsa-lib-1.0.8.tar.bz2 , alsa-utils-1.0.8.tar.bz2, alsa-driver-1.0.4.tar.bz . It's successful, but there is still that error.
Please show me the way to solve that error .
Thank you in advance. Best regards
Huu Hien
Is that right ?? I think It's no error . But my error messages at Sound & Video > Volume Control is :
Error (gnome_volume_control) I was not able to open your audio device. Please check that you have permission to open /dev/mixer and make sure you have sound support compiled into your kernel.
Aha! Yes, that's fine, but you just plain don't have permission to use those devices.
From reading the output of ls, you can see that your sound devices are owned by root, and no other user has permission to read/write to them.
If you want a quick fix, try, as root:
Code:
chmod a+rw /dev/dsp* /dev/mixer*
That will solve the problem for now, by giving all users read/write permission to your sound devices. Depending on your setup, though, those permissions might not stick after a reboot. If that's the case, let me know. =)
Originally posted by zhangmaike Aha! Yes, that's fine, but you just plain don't have permission to use those devices.
From reading the output of ls, you can see that your sound devices are owned by root, and no other user has permission to read/write to them.
If you want a quick fix, try, as root:
Code:
chmod a+rw /dev/dsp* /dev/mixer*
That will solve the problem for now, by giving all users read/write permission to your sound devices. Depending on your setup, though, those permissions might not stick after a reboot. If that's the case, let me know. =)
I'm sorry, It has still error. Although I'm root and I've changed mod such as you show.
Is there any other case ?
Thank about your helps
Well... if it's still the same error (the one that says you don't have permission to use the device) double check that the permissions actually changed. (On my laptop, changes to device permissions with chmod don't have any effect)
That's all I can think of for now. Still the same error?
Yes, the permission was actually changed, example : when I log in as root
# ls -l /dev/dsp*
lrwxrwxrwx 1 root root 9 Mar 16 12:01 dsp -> /dev/dsp0
crw------- 1 root root 14, 3 Mar 16 12:01 dsp0
crw------- 1 root root 14, 19 Mar 16 12:01 dsp1
crw------- 1 root root 14, 35 Mar 16 12:01 dsp2
crw------- 1 root root 14, 51 Mar 16 12:01 dsp3
Then I log in as huuhien
$ ls -l /dev/dsp*
lrwxrwxrwx 1 root root 9 Mar 15 10:08 /dev/dsp -> /dev/dsp0
crw------- 1 huuhien root 14, 3 Mar 15 10:08 /dev/dsp0
crw------- 1 huuhien root 14, 19 Mar 15 10:08 /dev/dsp1
crw------- 1 huuhien root 14, 35 Mar 15 10:08 /dev/dsp2
crw------- 1 huuhien root 14, 51 Mar 15 10:08 /dev/dsp3
crw------- 1 huuhien root 55, 0 Aug 30 2002 /dev/dsp56k
When Sound & Audio -> Volume Control :
Error (gnome_volume_control) I was not able to open your audio device. Please check that you have permission to open /dev/mixer and make sure you have sound support compiled into your kernel.
I think it doesn't a "permission" error . I think that I had detected the sound device and driver, but the mixer -volume is mute by default . May be I compiled kernel not right ? My kernel is 2.4.18-14.
Wait for your respond . Thanks you very much
Yes, the permission was actually changed, example : when I log in as root
# ls -l /dev/dsp*
lrwxrwxrwx 1 root root 9 Mar 16 12:01 dsp -> /dev/dsp0
crw------- 1 root root 14, 3 Mar 16 12:01 dsp0
crw------- 1 root root 14, 19 Mar 16 12:01 dsp1
crw------- 1 root root 14, 35 Mar 16 12:01 dsp2
crw------- 1 root root 14, 51 Mar 16 12:01 dsp3
Then I log in as huuhien
$ ls -l /dev/dsp*
lrwxrwxrwx 1 root root 9 Mar 15 10:08 /dev/dsp -> /dev/dsp0
crw------- 1 huuhien root 14, 3 Mar 15 10:08 /dev/dsp0
crw------- 1 huuhien root 14, 19 Mar 15 10:08 /dev/dsp1
crw------- 1 huuhien root 14, 35 Mar 15 10:08 /dev/dsp2
crw------- 1 huuhien root 14, 51 Mar 15 10:08 /dev/dsp3
crw------- 1 huuhien root 55, 0 Aug 30 2002 /dev/dsp56k
Can you clarify a bit? Logging in as a different used shouldn't change the ownership of a file, yet that's what your output shows. What happened between the two commands?
Originally posted by zhangmaike Can you clarify a bit? Logging in as a different used shouldn't change the ownership of a file, yet that's what your output shows. What happened between the two commands?
When you login , the system will give the permision for you to use application such as sound .... The permission when I log in as huuhien is :
lrwxrwxrwx 1 root root 9 Mar 15 10:08 /dev/dsp -> /dev/dsp0
crw------- 1 huuhien root 14, 3 Mar 15 10:08 /dev/dsp0
crw------- 1 huuhien root 14, 19 Mar 15 10:08 /dev/dsp1
crw------- 1 huuhien root 14, 35 Mar 15 10:08 /dev/dsp2
crw------- 1 huuhien root 14, 51 Mar 15 10:08 /dev/dsp3
crw------- 1 huuhien root 55, 0 Aug 30 2002 /dev/dsp56k
It's permission for me , but I can't use that device -It's problem .
When I login another machine with good sound, it is the same that. Do you understand ? I think It isn't a permission error
Originally posted by zhangmaike well... if those are the permissions of the devices and you still get that error, i guess it's not a permissions thing.
in that case... my only guess would be drivers... but I don't know enough about your situation to make any more edjucated of a guess.
any other information you can give me?
Oh ! Thanks for your all helps.
I've just installed and used my sound . Do you believe that its error because of my kernel ? I must recompiled and rpm the kernel-utils-2.4-8.13.i386.rpm . Thank you for your helps again. Good luck to you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.