LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-15-2005, 10:44 PM   #1
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Unhappy Sound on board with Linux 8 -help me


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:

Vendor: Unknown vendor
Model: Generic snd-inte8x0 device
Module: snd-intel8x0

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
 
Old 03-15-2005, 10:48 PM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Oops - didn't see the error message in your post. Edited:

Run the following commands from a terminal and post the results:
Code:
ls -l /dev/mixer
Code:
ls -l /dev/dsp

Last edited by zhangmaike; 03-15-2005 at 10:50 PM.
 
Old 03-15-2005, 10:56 PM   #3
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, I run commands:
# ls -l /dev | grep 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

#ls -l /dev |grep mixer
lrwxrwxrwx 1 root root 11 Mar 16 12:01 mixer -> /dev/mixer0
crw------- 1 root root 14, 0 Mar 16 12:01 mixer0
crw------- 1 root root 14, 16 Mar 16 12:01 mixer1
crw------- 1 root root 14, 32 Mar 16 12:01 mixer2
crw------- 1 root root 14, 48 Mar 16 12:01 mixer3

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.

Please help me to solve it.

Last edited by hiensds; 03-15-2005 at 10:58 PM.
 
Old 03-15-2005, 11:01 PM   #4
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
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. =)
 
Old 03-16-2005, 12:40 AM   #5
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
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
 
Old 03-16-2005, 12:47 AM   #6
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
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?
 
Old 03-16-2005, 01:08 AM   #7
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 03-16-2005, 01:14 AM   #8
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
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?
 
Old 03-16-2005, 01:22 AM   #9
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
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
 
Old 03-16-2005, 02:03 AM   #10
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
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?
 
Old 03-16-2005, 03:17 AM   #11
hiensds
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA MIDI: Sound fonts for NVIDIA/NForce Soundstorm on-board sound vharishankar Linux - Hardware 6 09-04-2007 12:37 PM
No sound at all with FC4 and on board AC97 sound ATI motherboard janie Fedora 2 10-13-2005 11:50 AM
Can I run MIDI with only an on-board sound card in Linux? CrashProne Linux - Software 3 04-10-2005 11:10 AM
Who can use ADI AD1888 sound card on P4R800-V ASUS board on Linux?? vanhelsing Linux - Hardware 6 03-04-2005 06:03 PM
redhat 9 no sound with on board i810 sound bendo Linux - Newbie 1 02-18-2004 05:59 PM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration