LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-26-2004, 10:39 AM   #1
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Rep: Reputation: 15
Sound problems with 10.0CE


I've checked the threads to see if I could find similar information, but I've not had any luck, so I thought I'd ask. I just installed MDK 10.0CE after a lengthy hiatus from Linux due to frustration. Guess what? My frustration has returned. It seems like every distribution I try has something fatally wrong with it. Well, MDK 10.0CE recognizes my on-board AC97 VIA sound card, but I can't hear anything. Nothing's muted, sound settings appear fine. It's set up with ALSA, whatever the hell that means. Every other distribution I've tried has found my sound card no problem. I've looked for Linux-specific drivers for my ECS K7VTA3 MoBo and VIA on-board sound, but haven't found anything. Is there some setting I need to play with? I've also tried switching in MDK Control Panel to the other sound driver option, and that didn't work either. Any suggestions would be helpful, because I'm about to give up on this Linux thing for good and go back to XP. It may be M$ but at least it recognizes my hw and works.
 
Old 05-26-2004, 10:44 AM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Don't give up! You can do it. Do any errors pop up about your sound card? It might be you don't have permission to write to the audio device. Try a few things. As root type
Code:
cat /dev/urandom > /dev/dsp
You should hear white noise. If not we'll look into something else. If you hear noise, post the output of
Code:
ls -l /dev/dsp*
We'll go from there.
 
Old 05-26-2004, 10:49 AM   #3
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Thank you for your help, it's much appreciated.

Here's output 1:

[root@justinian brent]# cat /dev/urandom > /dev/dsp
cat: write error: No such device

Here's output 2:

[root@justinian brent]# ls -l /dev/dsp*
lr-xr-xr-x 1 root root 9 May 26 09:21 /dev/dsp -> sound/dsp

Let me know what you think.

-B
 
Old 05-26-2004, 10:53 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Alright. Try this
Code:
cat /dev/urandom > /dev/sound/dsp
and this
Code:
ls -l /dev/sound/dsp
By the way, is the -> sound/dsp is 'ls -l /dev/dsp*' red?
 
Old 05-26-2004, 10:58 AM   #5
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Ok, here's what happened next.

Output 1:

[root@justinian brent]# cat /dev/urandom > /dev/sound/dsp
cat: write error: No such device

--This however did not give me a new prompt, so I had to open a new console session to do the next output.

Output 2:

[root@justinian brent]# ls -l /dev/sound/dsp
crw------- 1 brent audio 14, 3 Dec 31 1969 /dev/sound/dsp

--The "/dev/sound/dsp" output is yellow, not red.

-B
 
Old 05-26-2004, 11:05 AM   #6
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
The cat error might be because there is no /dev/urandom device on your machine. Try doing
Code:
cat `slocate urandom` > /dev/sound/dsp
Those are backticks in `slocate urandom`; they're usually the key right next to the '1' on the keyboard.
The symlink /dev/dsp appears to be setup correctly so you're fine there. The permissions and owner on /dev/sound/dsp look suspect but we'll try a few things first. Try above and then let me know. It might be awhile before I respond (1-2 hours). I'm going out for awhile.
 
Old 05-26-2004, 11:12 AM   #7
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Here is is.

Output 1:

[root@justinian brent]# cat `slocate urandom` > /dev/sound/dsp
cat: /sys/class/mem/urandom: Is a directory

-B
 
Old 05-26-2004, 12:11 PM   #8
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Well, this is getting difficult. Try
Code:
cat /dev/random > /dev/sound/dsp
This should produce some white noise but not as much. Try hitting keys on the keyboard and moving the mouse while this happens. Hopefully this will work. Also try this as root and try playing something as a normal user (wav, mp3):
Code:
chmod 666 /dev/sound/dsp
 
Old 05-26-2004, 02:16 PM   #9
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Ok, after typing in the first input, nothing happened, and I didn't get a command line back. I opened a new shell and typed in input 2.

Output 2:

[root@justinian brent]# chmod 666 /dev/sound/dsp
[root@justinian brent]#

--It did nothing that I could see or hear. I have heard no noise to this point, not even static or white noise.
 
Old 05-26-2004, 02:34 PM   #10
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
When you didn't get your prompt back that meant random stuff was heading to your sound card and you should have heard something. Since you didn't something is probably wrong with your drivers (I was hoping it would be something simpler). (For future info, if you ever run a command and you don't get a prompt back, you can hit ctrl-c to kill the process and get things back)

Do a 'ps ax' and if you see anything like artsd make note of the number on the left, the PID. Then do
Code:
kill -9 [the artds PID]
Now try playing something. artsd is a sound daemon that is responsible for mixing sounds together (like when you're listening to an mp3 and a chat window makes a noise). Sometimes artsd will hog /dev/dsp and not let go, meaning no sound can get through. Try that and if it doesn't work, we'll look at recompiling ALSA (don't worry, recompiling's not too hard).
 
Old 05-26-2004, 04:56 PM   #11
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Here's the output on the "ps ax"

[root@justinian brent]# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:02 init [5]
2 ? SWN 0:00 [ksoftirqd/0]
3 ? SW< 0:00 [events/0]
4 ? SW< 0:00 [kblockd/0]
5 ? SW 0:00 [kapmd]
6 ? SW 0:00 [pdflush]
7 ? SW 0:00 [pdflush]
8 ? SW 0:00 [kswapd0]
9 ? SW< 0:00 [aio/0]
11 ? SW 0:00 [kseriod]
15 ? SW 0:00 [kjournald]
113 ? S 0:00 devfsd /dev
239 ? SW 0:00 [khubd]
1236 ? S 0:00 /sbin/ifplugd -w -b -i eth0
1307 ? S 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.
1361 ? S 0:00 portmap
1385 ? S 0:00 syslogd -m 0
1393 ? S 0:00 klogd -2
1453 ? S 0:00 rpc.statd
1699 ? S 0:00 xfs -port -1 -daemon -droppriv -user xfs
1771 ? S 0:00 /usr/bin/mdkkdm -nodaemon
1797 ? S 0:00 /usr/sbin/atd
1804 ? S 0:02 /etc/X11/X -deferglyphs 16 -auth /var/run/xauth/A:0-U
1826 ? S 0:00 -:0
1842 ? SL 0:00 ntpd -A
1881 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
1922 ? S 0:00 cupsd
2154 ? S 0:00 crond
2286 tty1 S 0:00 /sbin/mingetty tty1
2287 tty2 S 0:00 /sbin/mingetty tty2
2288 tty3 S 0:00 /sbin/mingetty tty3
2289 tty4 S 0:00 /sbin/mingetty tty4
2290 tty5 S 0:00 /sbin/mingetty tty5
2291 tty6 S 0:00 /sbin/mingetty tty6
2469 ? S 0:00 /bin/sh /usr/bin/startkde
2551 ? S 0:00 magicdev
2565 ? S 0:00 /usr/lib/gconfd-2 13
2568 ? S 0:00 kdeinit: Running...
2571 ? S 0:00 kdeinit: dcopserver --nosid
2573 ? S 0:00 kdeinit: klauncher
2576 ? S 0:00 kdeinit: kded
2577 ? S 0:00 fam
2599 ? S 0:00 /usr/bin/artsd -F 10 -S 4096 -s 1 -m artsmessage -c d
2637 ? S 0:00 kdeinit: knotify
2764 ? S 0:00 kwrapper ksmserver
2766 ? S 0:00 kdeinit: ksmserver
2767 ? S 0:00 kdeinit: kwin -session 11ac10012100010855296400000003
2769 ? S 0:00 kdeinit: kdesktop
2772 ? S 0:00 kdeinit: kicker
2773 ? S 0:00 kdeinit: kio_file file /tmp/ksocket-brent/klauncherxO
2774 ? S 0:00 kdeinit: kio_file file /tmp/ksocket-brent/klauncherxO
2778 ? S 0:00 kdeinit: kio_devices devices /tmp/ksocket-brent/klaun
2780 ? S 0:00 kdeinit: klipper
2783 ? S 0:00 kdeinit: kaccess -session 11ac10012100010855361910000
2784 ? S 0:00 korgac --miniicon korganizer
2785 ? S 0:04 /usr/lib/mozilla-1.6/mozilla-bin
2797 ? S 0:00 kdeinit: konsole
2798 pts0 S 0:00 /bin/bash
2831 pts0 S 0:00 su
2834 pts0 S 0:00 bash
2867 pts0 R 0:00 ps ax

I guess I don't understand your directions after that, so if you can tell from the above what that "artsd" number is, please let me know how to type it all in.

-B
 
Old 05-26-2004, 09:21 PM   #12
SpItoS
Member
 
Registered: May 2004
Posts: 47

Rep: Reputation: 15
I'm having problems aswell with my sound, it usually works for some apps but all oss apps don't work and arts can't duplex sound... I tried all of the above and none worked for me neither. I will follow this thread and post my status here and we can try to figure this out together. If I get it to work I will tell you how I did...
 
Old 05-26-2004, 09:23 PM   #13
SpItoS
Member
 
Registered: May 2004
Posts: 47

Rep: Reputation: 15
I think tihs worked for me : chmod 777 /dev/dsp
 
Old 05-27-2004, 05:53 AM   #14
justinian1978
Member
 
Registered: Mar 2004
Location: Missouri
Distribution: Various
Posts: 47

Original Poster
Rep: Reputation: 15
Cool. I'm at work right now, but when I get some free time this evening, I'll try it. If I can tweak anything and get it to work, I'll also post here to see if we can figure this darn thing out!! It sucks having to go to Windows just to listen to my tunes!
 
Old 05-27-2004, 06:49 AM   #15
SpItoS
Member
 
Registered: May 2004
Posts: 47

Rep: Reputation: 15
Yeah I got a lot of apps not working with sound too so it sucks... But now it seems to work I'll just have to see if duplex works now..
 
  


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
Sound Problems: CD works, no system/mp3/video sound tabnaka SUSE / openSUSE 5 01-13-2006 12:33 PM
Initalizing ehci-hcd hang : Mandrake 10.0CE fopetesl Linux - Hardware 0 01-26-2005 03:54 AM
Mandrake 10.0CE secure kernel restricts RAM mpdegroat Mandriva 1 06-03-2004 07:45 PM
Mandrake 10.0CE and WLAN (Zyxel B-100) charly_k Linux - Wireless Networking 0 05-19-2004 03:45 PM
update won't work for 10.0CE whorush Mandriva 15 04-10-2004 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:05 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
Open Source Consulting | Domain Registration