Bruno Posted January 22, 2005 Share Posted January 22, 2005 Changes in soundchk script !!Because "udev" makes changes in the way /proc is handled the old script gives errors.I am changing the script to suit the new kernel ( 2.6 ) and /sys ( udev )There is a temporary adapted version posted here: http://forums.scotsnewsletter.com/index.php?showtopic=10524But the ones in The Tips and on brunolinux.com are not yet adapted ( have to run tests first ) !! Bruno Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 22, 2005 Author Share Posted January 22, 2005 PS: if you want to help and run a test on your distro, please try this one: #!/bin/sh# soundchk.sh# Rev 1.00 2003-10-13 Initial Release - Mandrake 9.1 specific# Rev 1.01 2003-10-13 Added Checking Devices#           Added grep steps to restrict output. Really needed for Knoppix.#           Add file exists tests to find correct tools#           Completed port to Knoppix 3.3. Should also be much better for UNKNOWN.# Rev 1.02 2003-10-14 Added test -x for aumix#           Fix bug in lspci greps# Rev 1.03 2003-11-24 Add additional tests from alsa aadebug script# Rev 1.04 2003-11-25 Fix typo in 1.03 lspci grep#           Add check for artsd#           Add check for using cdrom# Rev 1.05 2005-01-22 Adapted to udev and kernel 2.6 by Brunoecho "soundchk.sh v1.04 - Running Sound Configuration Checks"echoecho Identifying Systemuname -acat /proc/cpuinfo | grep -i "model name"cat /proc/cpuinfo | grep -i "cpu mhz"cat /proc/meminfo | grep -i memtotalcat /proc/meminfo | grep -i swaptotalechoecho Checking Devicesls -l /dev | egrep -i dsp\|soundechoecho Checking Driverif test -x /usr/bin/lspcidrake; then   lspcidrake -v | egrep -i "(audio|multimedia|host bridge)"else   lspci -v | egrep -i "(audio|multimedia|host bridge)"fiechoecho Checking Actual Driver in Use "(/etc/modules.conf)"if test -f /etc/modules.conf; then   cat /etc/modules.conf | egrep -i snd\|soundelse   echo Test not available on this systemfi# added for kernel 2.6 by Brunoechoecho Checking Actual Driver in Use "(/etc/modprobe.conf)"if test -f /etc/modprobe.conf; then   cat /etc/modprobe.conf | egrep -i snd\|soundelse   echo Test not available on this systemfi# removed lines because of udev by Bruno:# if test -d /proc/asound; then#   echo#   echo Checking alsa /proc/asound#   cat /proc/asound/{version,cards,devices,hwdep,pcm}#fiif test -d /dev/snd; then   echo   echo Checking alsa /dev/snd   ls --color=none /dev/sndfiechoecho Checking if Module Loaded/sbin/lsmod | egrep -i snd\|sound\|audio\|gameechoecho Checking if services configured to be run on initlevel 3if test -x /sbin/chkconfig; then   echo Checking if Sound services configured   /sbin/chkconfig --list sound   echo   echo Checking if Alsa service configured   /sbin/chkconfig --list alsaelse   echo Test not available on this systemfiechoecho Checking if Sound Volume mutedif test -x /usr/bin/aumix; then   aumix -qelse   echo Test not available on this systemfiechoecho Checking artsd setupps -A -f | grep -i artsd | grep -v grepechoecho Checking which program uses the sound card or cdromif test -x /sbin/fuser; then   /sbin/fuser -v /dev/dsp   /sbin/fuser -v /dev/cdromelse   /bin/fuser -v /dev/dsp   /bin/fuser -v /dev/cdromfi# Extra test added by Brunoechoecho test wav file/usr/bin/play /usr/share/sounds/KDE_Startup.wav echoecho End of Checks Bruno Quote Link to comment Share on other sites More sharing options...
ross549 Posted January 22, 2005 Share Posted January 22, 2005 [adam@localhost adam]$ ./soundcheck.shsoundchk.sh v1.04 - Running Sound Configuration ChecksIdentifying SystemLinux localhost 2.6.7-2.tmb.6mdk #1 Fri Dec 10 17:50:19 CST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz unknown GNU/Linuxmodel name : Intel(R) Pentium(R) 4 CPU 2.53GHzcpu MHz : 2540.318MemTotal: 906544 kBSwapTotal: 987956 kBChecking Devicescrw-rw---- 1 adam audio 14, 12 Jan 19 20:05 adspcrw-rw---- 1 adam audio 14, 3 Jan 19 20:05 dspdrwxr-xr-x 2 root root 240 Jan 19 20:05 soundChecking Driverintel-agp : Intel Corp.|82865G [Springdale-G] Chipset Host Bridge [BRIDGE_HOST] (vendor:8086 device:2570 subv:1297 subd:fb65)snd-emu10k1 : Creative Labs|EMU10K2 Audigy Audio Processor [MULTIMEDIA_AUDIO] (vendor:1102 device:0004 subv:1102 subd:1002)Checking Actual Driver in Use (/etc/modules.conf)Checking Actual Driver in Use (/etc/modprobe.conf)alias sound-slot-0 snd-emu10k1Checking alsa /dev/sndcontrolC0 hwC0D2 midiC0D1 midiC0D3 pcmC0D0p pcmC0D2c seqhwC0D0 midiC0D0 midiC0D2 pcmC0D0c pcmC0D1c pcmC0D3p timerChecking if Module Loadedsnd-seq-midi 8320 0snd-emu10k1-synth 7232 0snd-emux-synth 37120 1 snd-emu10k1-synthsnd-seq-virmidi 7424 1 snd-emux-synthsnd-seq-midi-emul 8000 1 snd-emux-synthsnd-seq-oss 32160 0snd-seq-midi-event 7776 3 snd-seq-midi,snd-seq-virmidi,snd-seq-osssnd-seq 52080 8 snd-seq-midi,snd-emux-synth,snd-seq-virmidi,snd-seq-midi-emul,snd-seq-oss,snd-seq-midi-eventsnd-pcm-oss 53096 0snd-mixer-oss 18368 1 snd-pcm-osssnd-emu10k1 87944 2 snd-emu10k1-synthsnd-rawmidi 24960 3 snd-seq-midi,snd-seq-virmidi,snd-emu10k1snd-pcm 94916 2 snd-pcm-oss,snd-emu10k1snd-timer 25764 2 snd-seq,snd-pcmsnd-seq-device 8104 7 snd-seq-midi,snd-emu10k1-synth,snd-emux-synth,snd-seq-oss,snd-seq,snd-emu10k1,snd-rawmidisnd-ac97-codec 66468 1 snd-emu10k1snd-page-alloc 11496 2 snd-emu10k1,snd-pcmsnd-util-mem 4576 2 snd-emux-synth,snd-emu10k1snd-hwdep 9152 2 snd-emux-synth,snd-emu10k1snd 55716 18 snd-seq-midi,snd-emux-synth,snd-seq-virmidi,snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-emu10k1,snd-rawmidi,snd-pcm,snd-timer,snd-seq-device,snd-ac97-codec,snd-util-mem,snd-hwdepsoundcore 10048 2 snd,bttvChecking if services configured to be run on initlevel 3Checking if Sound services configuredsound 0:off 1:off 2:on 3:on 4:on 5:on 6:offChecking if Alsa service configuredalsa 0:off 1:off 2:on 3:on 4:on 5:on 6:offChecking if Sound Volume mutedTest not available on this systemChecking artsd setupadam 3801 3782 0 Jan19 ? 00:01:43 /usr/bin/artsd -F 10 -S 4096 -s60 -m artsmessage -c drkonqi -l 3 -fadam 3808 3801 0 Jan19 ? 00:00:00 /usr/bin/artsd -F 10 -S 4096 -s60 -m artsmessage -c drkonqi -l 3 -fChecking which program uses the sound card or cdromtest wav fileEnd of Checks From PCLos P8 Quote Link to comment Share on other sites More sharing options...
trigggl Posted January 22, 2005 Share Posted January 22, 2005 From Slackware Current (2.4.28 kernel) greg@fangorn:~$ ./soundchk.shsoundchk.sh v1.04 - Running Sound Configuration ChecksIdentifying SystemLinux fangorn 2.4.28 #6 Tue Dec 14 14:41:15 PST 2004 i686 unknown unknown GNU/Linuxmodel name : Celeron (Coppermine)cpu MHz : 1009.460MemTotal: 321024 kBSwapTotal: 409208 kBChecking Deviceslrwxrwxrwx 1 root root 5 2004-07-17 09:46 adsp -> adsp0crw-rw--w- 1 root sys 14, 12 2003-08-29 07:47 adsp0crw-rw--w- 1 root sys 14, 28 2003-08-29 07:47 adsp1crw-rw--w- 1 root sys 14, 44 2003-08-29 07:47 adsp2crw-rw--w- 1 root sys 14, 60 2003-08-29 07:47 adsp3lrwxrwxrwx 1 root root 4 2004-07-17 09:46 dsp -> dsp0crw-rw-rw- 1 root audio 14, 3 2003-08-29 07:47 dsp0crw-rw--w- 1 root audio 14, 19 2003-08-29 07:47 dsp1crw-rw--w- 1 root audio 14, 35 2003-08-29 07:47 dsp2crw-rw--w- 1 root audio 14, 51 2003-08-29 07:47 dsp3Checking Driver./soundchk.sh: line 37: lspci: command not foundChecking Actual Driver in Use (/etc/modules.conf)alias char-major-116 sndalias char-major-14 soundcorealias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-ossalias snd-card-0 snd-emu10k1alias sound-slot-0 snd-emu10k1Checking Actual Driver in Use (/etc/modprobe.conf)Checking alsa /dev/sndcontrolC0 hwC2D0 midiC0D4 midiC2D0 midiC3D4 pcmC0D4c pcmC1D2c pcmC2D0c pcmC2D6c pcmC3D4ccontrolC1 hwC2D1 midiC0D5 midiC2D1 midiC3D5 pcmC0D4p pcmC1D2p pcmC2D0p pcmC2D6p pcmC3D4pcontrolC2 hwC2D2 midiC0D6 midiC2D2 midiC3D6 pcmC0D5c pcmC1D3c pcmC2D1c pcmC2D7c pcmC3D5ccontrolC3 hwC2D3 midiC0D7 midiC2D3 midiC3D7 pcmC0D5p pcmC1D3p pcmC2D1p pcmC2D7p pcmC3D5phwC0D0 hwC3D0 midiC1D0 midiC2D4 pcmC0D0c pcmC0D6c pcmC1D4c pcmC2D2c pcmC3D0c pcmC3D6chwC0D1 hwC3D1 midiC1D1 midiC2D5 pcmC0D0p pcmC0D6p pcmC1D4p pcmC2D2p pcmC3D0p pcmC3D6phwC0D2 hwC3D2 midiC1D2 midiC2D6 pcmC0D1c pcmC0D7c pcmC1D5c pcmC2D3c pcmC3D1c pcmC3D7chwC0D3 hwC3D3 midiC1D3 midiC2D7 pcmC0D1p pcmC0D7p pcmC1D5p pcmC2D3p pcmC3D1p pcmC3D7phwC1D0 midiC0D0 midiC1D4 midiC3D0 pcmC0D2c pcmC1D0c pcmC1D6c pcmC2D4c pcmC3D2c seqhwC1D1 midiC0D1 midiC1D5 midiC3D1 pcmC0D2p pcmC1D0p pcmC1D6p pcmC2D4p pcmC3D2p timerhwC1D2 midiC0D2 midiC1D6 midiC3D2 pcmC0D3c pcmC1D1c pcmC1D7c pcmC2D5c pcmC3D3chwC1D3 midiC0D3 midiC1D7 midiC3D3 pcmC0D3p pcmC1D1p pcmC1D7p pcmC2D5p pcmC3D3pChecking if Module Loadedsnd-pcm-oss 37056 0snd-mixer-oss 12280 0 [snd-pcm-oss]snd-emu10k1 65252 1snd-hwdep 4324 0 [snd-emu10k1]snd-util-mem 1136 0 [snd-emu10k1]snd-ac97-codec 51424 0 [snd-emu10k1]snd-pcm 55176 0 [snd-pcm-oss snd-emu10k1 snd-ac97-codec]snd-timer 13444 0 [snd-emu10k1 snd-pcm]snd-rawmidi 12320 0 [snd-emu10k1]snd-seq-device 3812 0 [snd-emu10k1 snd-rawmidi]snd 30884 1 [snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-hwdep snd-util-mem snd-ac97-codec snd-pcm snd-timer snd-rawmidi snd-seq-device]soundcore 3396 6 [snd]snd-page-alloc 4712 0 [snd-mixer-oss snd-emu10k1 snd-hwdep snd-pcm snd-timer snd-rawmidi snd-seq-device snd]gameport 1420 0 [emu10k1-gp]Checking if services configured to be run on initlevel 3Test not available on this systemChecking if Sound Volume mutedvol 89, 89, Pbass 50, 50treble 50, 50synth 100, 100pcm 90, 90speaker 80, 80line 84, 84, Pmic 0, 0, Rcd 81, 81, Ppcm2 100, 100igain 80, 80line1 84, 84, Pdig1 0, 0phin 0, 0, Pphout 100, 100, Pvideo 81, 81, PChecking artsd setupgreg 21109 21092 0 06:32 ? 00:00:00 /opt/kde/bin/artsd -F 10 -S 4096 -a alsa -s 60 -m artsmessage -c drkonqi -l 3 -fgreg 21118 21109 0 06:33 ? 00:00:00 /opt/kde/bin/artsd -F 10 -S 4096 -a alsa -s 60 -m artsmessage -c drkonqi -l 3 -fChecking which program uses the sound card or cdrom./soundchk.sh: line 105: /bin/fuser: No such file or directory./soundchk.sh: line 106: /bin/fuser: No such file or directorytest wav filesox: Can't open input file '/usr/share/sounds/k3b_success1.wav': No such file or directoryEnd of Checks Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 22, 2005 Author Share Posted January 22, 2005 Thanks guys !!Greg can you do this command and see if you hear anything ? /usr/bin/play /usr/share/sounds/KDE_Startup.wav Bruno Quote Link to comment Share on other sites More sharing options...
trigggl Posted January 22, 2005 Share Posted January 22, 2005 (edited) greg@fangorn:~$ /usr/bin/play /usr/share/sounds/KDE_Startup.wavsox: Can't open input file '/usr/share/sounds/KDE_Startup.wav': No such file or directorygreg@fangorn:~$ I suspect it's located somewhere else. I'll look into it.EDIT:greg@fangorn:/usr/share/sounds$ ls -ltotal 2080-rw-r--r-- 1 root root 691952 2003-07-01 11:04 card_shuffle.wav-rw-r--r-- 1 root root 22782 2003-07-01 11:04 email.wav-rw-r--r-- 1 root root 25034 2003-07-01 11:04 error.wavdrwxr-xr-x 2 root root 4096 2005-01-02 03:59 gaim/drwxr-xr-x 2 root root 4096 2004-05-16 23:47 gataxx/-rw-r--r-- 1 root root 20236 2003-07-01 11:04 generic.wavdrwxr-xr-x 2 root root 4096 2004-05-16 23:47 gnibbles/drwxr-xr-x 2 root root 4096 2004-05-16 23:47 gnobots2/drwxr-xr-x 2 root root 4096 2004-05-16 23:47 gnome-stones/drwxr-xr-x 2 root root 4096 2004-05-13 06:18 gnomeicu/drwxr-xr-x 2 root root 4096 2003-07-01 11:04 gtk-events/drwxr-xr-x 2 root root 4096 2004-05-16 23:47 iagno/-rw-r--r-- 1 root root 56876 2003-07-01 11:04 info.wavlrwxrwxrwx 1 root root 12 2004-07-17 12:04 login.wav -> startup3.wavlrwxrwxrwx 1 root root 13 2004-07-17 12:04 logout.wav -> shutdown1.wavdrwxr-xr-x 2 root root 4096 2003-07-01 11:04 panel/-rw-r--r-- 1 root root 455544 2003-07-01 11:04 phone.wav-rw-r--r-- 1 root root 4189 2003-07-01 11:04 question.wav-rw-r--r-- 1 root root 321280 2003-07-01 11:04 shutdown1.wav-rw-r--r-- 1 root root 441484 2003-07-01 11:04 startup3.wav-rw-r--r-- 1 root root 13804 2003-07-01 11:04 warning.wavgreg@fangorn:/usr/share/sounds$ Also, the login and logout waves are not what I hear when I log in and out. Edited January 22, 2005 by trigggl Quote Link to comment Share on other sites More sharing options...
trigggl Posted January 22, 2005 Share Posted January 22, 2005 I found it. greg@fangorn:/usr/share/sounds$ slocate KDE_Startup.wav/opt/kde/share/sounds/KDE_Startup.wavgreg@fangorn:/usr/share/sounds$ Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 22, 2005 Author Share Posted January 22, 2005 I found it.Aie . . Slack puts it there . . . . . well nothing I can do about that, all other distros put it in /usr/share . . . :DB) Bruno Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 22, 2005 Author Share Posted January 22, 2005 I could make it: /usr/bin/play /usr/share/sounds/logout.wav That should work on Slack and Mnadrake . . . will have to check PCLos . . . UPDATE: No-Go . . . PCLos has none of those sounds . . . . and seen that Slack users are more advanced, I will leave the script as it is now with /usr/bin/play /usr/share/sounds/KDE_Startup.wavB) Bruno Quote Link to comment Share on other sites More sharing options...
steel Posted January 22, 2005 Share Posted January 22, 2005 (edited) i am on mandrake this works /usr/bin/play /usr/share/sounds/KDE_Startup.wav but i dont get any sound on this /usr/bin/play /usr/share/sounds/logout.waveditedsorry it does i couldnt hear it over Enigma Edited January 22, 2005 by steel Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 22, 2005 Author Share Posted January 22, 2005 i am on mandrake this works /usr/bin/play /usr/share/sounds/KDE_Startup.wav but i dont get any sound on this /usr/bin/play /usr/share/sounds/logout.waveditedsorry it does i couldnt hear it over EnigmaBut it does not in PCLos ( /usr/share/sounds/logout.wav ) . . . and at this moment we have the most problems in PCLos . . . ;) Bruno Quote Link to comment Share on other sites More sharing options...
linuxdude32 Posted January 23, 2005 Share Posted January 23, 2005 Tested on SUSE 9.1: jason@linux:~/scripts> ./soundchk.shsoundchk.sh v1.04 - Running Sound Configuration ChecksIdentifying SystemLinux linux 2.6.5-7.111.30-default #1 Fri Jan 14 12:58:46 UTC 2005 i686 i686 i386 GNU/Linuxmodel name   : Celeron (Mendocino)cpu MHz    : 534.702MemTotal:   256428 kBSwapTotal:   248996 kBChecking Deviceslrwxrwxrwx 1 root root     5 2004-12-24 02:04 adsp -> adsp0crw------- 1 jason audio  14, 12 2004-04-06 09:27 adsp0crw------- 1 jason audio  14, 28 2004-04-06 09:27 adsp1crw------- 1 jason audio  14, 44 2004-04-06 09:27 adsp2crw------- 1 jason audio  14, 60 2004-04-06 09:27 adsp3lrwxrwxrwx 1 root root     4 2004-12-24 02:04 dsp -> dsp0crw------- 1 jason audio  14, 3 2004-04-06 09:27 dsp0crw------- 1 jason audio  14, 19 2004-04-06 09:27 dsp1crw------- 1 jason audio  14, 35 2004-04-06 09:27 dsp2crw------- 1 jason audio  14, 51 2004-04-06 09:27 dsp3crw-rw---- 1 root root  55, 0 2004-04-06 09:27 dsp56klrwxrwxrwx 1 root root     24 2004-12-24 02:04 sndstat -> /proc/asound/oss/sndstatChecking Driver./soundchk.sh: line 37: lspci: command not foundChecking Actual Driver in Use (/etc/modules.conf)Checking Actual Driver in Use (/etc/modprobe.conf)# These aliases will be changed by YaST2 sound configurator.# take a look at the files on /usr/src/linux/Documentation/sound.install sound /bin/true# remove this if sound is configured#alias sound-slot-1 nvaudioChecking alsa /dev/sndcontrolC0 hwC4D2  midiC1D4 midiC4D6 pcmC0D0c pcmC1D5c pcmC3D2c pcmC4D7c pcmC6D4ccontrolC1 hwC4D3  midiC1D5 midiC4D7 pcmC0D0p pcmC1D5p pcmC3D2p pcmC4D7p pcmC6D4pcontrolC2 hwC5D0  midiC1D6 midiC5D0 pcmC0D1c pcmC1D6c pcmC3D3c pcmC5D0c pcmC6D5ccontrolC3 hwC5D1  midiC1D7 midiC5D1 pcmC0D1p pcmC1D6p pcmC3D3p pcmC5D0p pcmC6D5pcontrolC4 hwC5D2  midiC2D0 midiC5D2 pcmC0D2c pcmC1D7c pcmC3D4c pcmC5D1c pcmC6D6ccontrolC5 hwC5D3  midiC2D1 midiC5D3 pcmC0D2p pcmC1D7p pcmC3D4p pcmC5D1p pcmC6D6pcontrolC6 hwC6D0  midiC2D2 midiC5D4 pcmC0D3c pcmC2D0c pcmC3D5c pcmC5D2c pcmC6D7ccontrolC7 hwC6D1  midiC2D3 midiC5D5 pcmC0D3p pcmC2D0p pcmC3D5p pcmC5D2p pcmC6D7phwC0D0  hwC6D2  midiC2D4 midiC5D6 pcmC0D4c pcmC2D1c pcmC3D6c pcmC5D3c pcmC7D0chwC0D1  hwC6D3  midiC2D5 midiC5D7 pcmC0D4p pcmC2D1p pcmC3D6p pcmC5D3p pcmC7D0phwC0D2  hwC7D0  midiC2D6 midiC6D0 pcmC0D5c pcmC2D2c pcmC3D7c pcmC5D4c pcmC7D1chwC0D3  hwC7D1  midiC2D7 midiC6D1 pcmC0D5p pcmC2D2p pcmC3D7p pcmC5D4p pcmC7D1phwC1D0  hwC7D2  midiC3D0 midiC6D2 pcmC0D6c pcmC2D3c pcmC4D0c pcmC5D5c pcmC7D2chwC1D1  hwC7D3  midiC3D1 midiC6D3 pcmC0D6p pcmC2D3p pcmC4D0p pcmC5D5p pcmC7D2phwC1D2  midiC0D0 midiC3D2 midiC6D4 pcmC0D7c pcmC2D4c pcmC4D1c pcmC5D6c pcmC7D3chwC1D3  midiC0D1 midiC3D3 midiC6D5 pcmC0D7p pcmC2D4p pcmC4D1p pcmC5D6p pcmC7D3phwC2D0  midiC0D2 midiC3D4 midiC6D6 pcmC1D0c pcmC2D5c pcmC4D2c pcmC5D7c pcmC7D4chwC2D1  midiC0D3 midiC3D5 midiC6D7 pcmC1D0p pcmC2D5p pcmC4D2p pcmC5D7p pcmC7D4phwC2D2  midiC0D4 midiC3D6 midiC7D0 pcmC1D1c pcmC2D6c pcmC4D3c pcmC6D0c pcmC7D5chwC2D3  midiC0D5 midiC3D7 midiC7D1 pcmC1D1p pcmC2D6p pcmC4D3p pcmC6D0p pcmC7D5phwC3D0  midiC0D6 midiC4D0 midiC7D2 pcmC1D2c pcmC2D7c pcmC4D4c pcmC6D1c pcmC7D6chwC3D1  midiC0D7 midiC4D1 midiC7D3 pcmC1D2p pcmC2D7p pcmC4D4p pcmC6D1p pcmC7D6phwC3D2  midiC1D0 midiC4D2 midiC7D4 pcmC1D3c pcmC3D0c pcmC4D5c pcmC6D2c pcmC7D7chwC3D3  midiC1D1 midiC4D3 midiC7D5 pcmC1D3p pcmC3D0p pcmC4D5p pcmC6D2p pcmC7D7phwC4D0  midiC1D2 midiC4D4 midiC7D6 pcmC1D4c pcmC3D1c pcmC4D6c pcmC6D3c seqhwC4D1  midiC1D3 midiC4D5 midiC7D7 pcmC1D4p pcmC3D1p pcmC4D6p pcmC6D3p timerChecking if Module Loadedsnd_seq_oss      31232 0snd_pcm_oss      57512 0snd_mixer_oss     18944 2 snd_pcm_osssnd_seq_midi      9120 0snd_seq_midi_event   7680 2 snd_seq_oss,snd_seq_midisnd_seq        54928 6 snd_seq_oss,snd_seq_midi,snd_seq_midi_eventsnd_cs46xx      91528 5snd_rawmidi      25508 2 snd_seq_midi,snd_cs46xxsnd_seq_device     8456 4 snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidisnd_ac97_codec    62468 1 snd_cs46xxsnd_pcm        97032 2 snd_pcm_oss,snd_cs46xxsnd_timer       25860 2 snd_seq,snd_pcmsnd          61444 21 snd_seq_oss,snd_pcm_oss,snd_mixer_oss,snd_seq_midi,snd_seq_midi_event,snd_seq,snd_cs46xx,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timersoundcore       9056 2 sndsnd_page_alloc    11528 2 snd_cs46xx,snd_pcmgameport        4736 1 snd_cs46xxChecking if services configured to be run on initlevel 3Checking if Sound services configuredsound: unknown serviceChecking if Alsa service configuredalsa: unknown serviceChecking if Sound Volume mutedvol 43, 43, Rpcm 81, 81speaker 0, 0line 0, 0, Pmic 0, 0, Pcd 68, 68, Ppcm2 75, 75igain 0, 0line1 0, 0, Pphin 0, 0, Pphout 0, 0, Pvideo 0, 0, PChecking artsd setupjason  4222 4204 0 Jan22 ?    00:00:00 /opt/kde3/bin/artsd -F 128 -S 8192 -s 5 -m artsmessage -c drkonqi -l 3 -fChecking which program uses the sound card or cdromtest wav filesox: Can't open input file '/usr/share/sounds/KDE_Startup.wav': No such file or directoryEnd of ChecksIn SUSE the startup file is in /opt/kde3/share/sounds/KDE_Startup.wav.I found it with "find / -name KDE_Startup.wav". Perhaps you could add that to the script and then execute the output of it. Any distro with KDE is going to have it somewhere, at least for now.lspci is on my system but it's not in the regular user path. It's in /sbin/lspci anyway.My system doesn't have the service alsa or sound. It uses alsasound (that's why the chkconfig failed for my system on both checks). Quote Link to comment Share on other sites More sharing options...
Neil P Posted January 23, 2005 Share Posted January 23, 2005 (edited) lspci is on my system but it's not in the regular user path. It's in /sbin/lspci anyway.Is it in /sbin/ for everyone? Could you make it /sbin/lspci by default?(I had to change it to /sbin/lspci to get it to work in Fedora) Edited January 23, 2005 by steeler_fan Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 Thanks Jason and Neil !But as Owyn wrote at the time of making it: "Known problems with missing tests on Suse" . . . . I made changes in the script because of the changes udev made in handling /proc and /sys and that caused the script to go in a not ending loop.The lspci is sometimes in /sbin/lspci and other times in /bin/lspci or /usr/bin/lspci ( I tried it in various ways ) so that makes it nearly impossible to get the correct output on every system.The sound in the last line of the script "KDE_Startup.wav" is just a gimmick I added to have some kind of proof that there was sound . . . also here: there is too much difference between distos to get this right all the time. But the general idea of the script --to troubleshoot sound issues-- is not really harmed by that ;) BrunoPS: I found it with "find / -name KDE_Startup.wav". Perhaps you could add that to the script and then execute the output of it. If you could tell me how . . and we could have that tested on multiple distros I would change the scipt again . . . . maybe we could do the same trick for "lspci" ?Get the latest version of the script Here Quote Link to comment Share on other sites More sharing options...
Neil P Posted January 23, 2005 Share Posted January 23, 2005 The lspci is sometimes in /sbin/lspci and other times in /bin/lspci or /usr/bin/lspci ( I tried it in various ways ) so that makes it nearly impossible to get the correct output on every system.Ah, ok.I thought it was in /sbin for everyone, and just some systems didn't include /sbin in the PATH.:w00tx100:Neil Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 Ah, ok.I thought it was in /sbin for everyone, and just some systems didn't include /sbin in the PATH.:w00tx100:NeilHi Neil/sbin is usually in the path of root and not for the user . . . that would make that you would have to run the script as root . . . and for sound-checking that does not help us much ;) Bruno Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 I think I found something . . . could you people please test this: ( should work on SUSE, Slack and Drake for the lspci and the wav file ) #!/bin/shecho echo Checking Knotify cat ~/.kde/share/config/knotifyrcecho echo Checking Driverif test -f /sbin/lspcithen /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)"elif test -f /bin/lspcithen /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)"elif test -f /usr/bin/lspcithen /usr/bin/lspci -v | egrep -i "(audio|multimedia|host bridge)"else echo Test not available on this systemfiecho echo test wav file . . . . can you hear it ?? if test -f /opt/kde3/share/sounds/KDE_Startup.wav then  /usr/bin/play /opt/kde3/share/sounds/KDE_Startup.wavelif test -f /opt/kde/share/sounds/KDE_Startup.wav  then   /usr/bin/play /opt/kde/share/sounds/KDE_Startup.wavelif test -f /usr/share/sounds/KDE_Startup.wav  then   /usr/bin/play /usr/share/sounds/KDE_Startup.wavelse  echo Test not available on this systemfiechoecho End of ChecksAnd report if you see/hear the results ?? I did add a knotify test too . . ( Don't forget to make it executable and run the script it as normal user ) Bruno Quote Link to comment Share on other sites More sharing options...
BarryB Posted January 23, 2005 Share Posted January 23, 2005 (edited) Works on Suse 9.2 pro w/ 64 bit Bruno)...sorry...forgot to add..both as root and normal userecho Checking DriverChecking Driverbarryb@SuSE64Box:~>barryb@SuSE64Box:~> if test -f /sbin/lspci> then /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)">> elif test -f /bin/lspci> then /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)">> elif test -f /usr/bin/lspci> then /usr/bin/lspci -v | egrep -i "(audio|multimedia|host bridge)">> else> echo Test not available on this system>> fi0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01) Subsystem: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) Subsystem: Giga-byte Technology GA-7VAX Onboard Audio (Realtek ALC650)0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Controlbarryb@SuSE64Box:~>barryb@SuSE64Box:~>barryb@SuSE64Box:~> echobarryb@SuSE64Box:~> echo test wav file . . . . can you hear it ??test wav file . . . . can you hear it ??barryb@SuSE64Box:~>barryb@SuSE64Box:~> if test -f /opt/kde3/share/sounds/KDE_Startup.wav> then> /usr/bin/play /opt/kde3/share/sounds/KDE_Startup.wav>> elif test -f /opt/kde/share/sounds/KDE_Startup.wav> then> /usr/bin/play /opt/kde/share/sounds/KDE_Startup.wav>> elif test -f /usr/share/sounds/KDE_Startup.wav> then> /usr/bin/play /usr/share/sounds/KDE_Startup.wav>> else> echo Test not available on this system>> fibarryb@SuSE64Box:~>barryb@SuSE64Box:~> echobarryb@SuSE64Box:~> echo End of ChecksEnd of Checks And Yes I heard it Edited January 23, 2005 by BarryB Quote Link to comment Share on other sites More sharing options...
teacher Posted January 23, 2005 Share Posted January 23, 2005 Gentoo User: soundchk.sh v1.04 - Running Sound Configuration ChecksIdentifying SystemLinux tux 2.6.7-gentoo-r11 #2 SMP Fri Oct 15 16:32:33 Local time zone must be set--see zic i686 Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linuxmodel name : Intel(R) Pentium(R) 4 CPU 3.06GHzmodel name : Intel(R) Pentium(R) 4 CPU 3.06GHzcpu MHz : 3066.788cpu MHz : 3066.788MemTotal: 905212 kBSwapTotal: 1783172 kBChecking Deviceslr-xr-xr-x 1 root root 10 Jan 23 03:14 adsp -> sound/adsplr-xr-xr-x 1 root root 11 Jan 23 03:14 audio -> sound/audiolr-xr-xr-x 1 root root 9 Jan 23 03:14 dsp -> sound/dsplr-xr-xr-x 1 root root 11 Jan 23 03:14 mixer -> sound/mixerlr-xr-xr-x 1 root root 15 Jan 23 03:14 sequencer -> sound/sequencerlr-xr-xr-x 1 root root 16 Jan 23 03:14 sequencer2 -> sound/sequencer2drwxr-xr-x 1 root root 0 Dec 31 1969 soundChecking Driver./soundchk.sh: line 38: lspci: command not foundChecking Actual Driver in Use (/etc/modules.conf)# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $alias char-major-116 sndalias char-major-14 soundcore## You need to customise this section for your specific sound card(s)## alias snd-card-0 snd-interwave## alias snd-card-1 snd-ens1371## alias sound-slot-0 snd-card-0## alias sound-slot-1 snd-card-1alias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-oss## alias sound-service-1-0 snd-mixer-oss## alias sound-service-1-3 snd-pcm-oss## alias sound-service-1-12 snd-pcm-ossalias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-ossoptions snd cards_limit=1Checking Actual Driver in Use (/etc/modprobe.conf)alias char-major-14-* soundcorealias char-major-116-* sndalias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-ossalias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-ossoptions snd cards_limit=1Checking alsa /dev/sndcontrolC0 pcmC0D0p pcmC0D2c pcmC0D4p timerpcmC0D0c pcmC0D1c pcmC0D3c seqChecking if Module LoadedChecking if services configured to be run on initlevel 3Test not available on this systemChecking if Sound Volume mutedTest not available on this systemChecking artsd setupjulia 5828 5808 0 08:15 ? 00:00:01 //usr/kde/3.3/bin/artsd -F 13 -S 4096 -a alsa -d -b 16 -m artsmessage -c drkonqi -l 3 -fjulia 5835 5828 0 08:15 ? 00:00:00 //usr/kde/3.3/bin/artsd -F 13 -S 4096 -a alsa -d -b 16 -m artsmessage -c drkonqi -l 3 -fChecking which program uses the sound card or cdromtest wav filesox: Can't open input file '/usr/share/sounds/KDE_Startup.wav': No such file ordirectoryEnd of Checks Quote Link to comment Share on other sites More sharing options...
teacher Posted January 23, 2005 Share Posted January 23, 2005 Bruno my startup file for KDE is in /usr/kde/3.3/share/sounds! Quote Link to comment Share on other sites More sharing options...
trigggl Posted January 23, 2005 Share Posted January 23, 2005 Bruno my startup file for KDE is in /usr/kde/3.3/share/sounds!Each system knows where to find it's own default waves, perhaps a startup script could be read to find it on each system. Then again, those are all probably in different places also. I'm sure it could be done, but it would be a rather large program that rkhunter would complain about. Who's got the time? Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 Okay . . very last revision ! :DEven the Gentoo of Julia is included in the edits #!/bin/sh # soundchk.sh # Rev 1.00 2003-10-13 Initial Release - Mandrake 9.1 specific # Rev 1.01 2003-10-13 Added Checking Devices #           Added grep steps to restrict output. Really needed for Knoppix. #           Add file exists tests to find correct tools #           Completed port to Knoppix 3.3. Should also be much better for UNKNOWN. # Rev 1.02 2003-10-14 Added test -x for aumix #           Fix bug in lspci greps # Rev 1.03 2003-11-24 Add additional tests from alsa aadebug script # Rev 1.04 2003-11-25 Fix typo in 1.03 lspci grep #           Add check for artsd #           Add check for using cdrom # Rev 1.05 2005-01-22 Adapted to udev and kernel 2.6 by Bruno # Rev 1.06 2005-01-23 Adapted by Bruno to better suit SUSE and Slackware echo echo "soundchk.sh v1.06 - Running Sound Configuration Checks" echo echo # time and user date=$(date) echo "Today is $date" me=$(whoami) echo "Sound tested by $me" echo echo echo "== Identifying System ==" uname -s -r -v -p -o cat /proc/cpuinfo | grep -i "model name" cat /proc/cpuinfo | grep -i "cpu mhz" cat /proc/meminfo | grep -i memtotal cat /proc/meminfo | grep -i swaptotal echo echo "== Checking dsp devices ==" ls -l /dev | egrep -i dsp\|sound echo echo "== Checking mixer devices ==" ls -l /dev | egrep -i dsp\|mixer echo echo "== Checking Knotify ==" cat ~/.kde/share/config/knotifyrc # adapted to suit SUSE and Slack echo echo "== Checking Driver =="  if test -f /usr/bin/lspcidrake then /usr/bin/lspcidrake -v | egrep -i "(audio|multimedia|host bridge)"elif test -f /sbin/lspcithen /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)"elif test -f /bin/lspcithen /sbin/lspci -v | egrep -i "(audio|multimedia|host bridge)"elif test -f /usr/bin/lspcithen /usr/bin/lspci -v | egrep -i "(audio|multimedia|host bridge)"else echo "==> Test not available on this system !"fi echo echo "== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4 ==" if test -f /etc/modules.conf; then    cat /etc/modules.conf | egrep -i snd\|sound else    echo "==> Test not available on this system !" fi # added for kernel 2.6 by Bruno echo echo "== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6 ==" if test -f /etc/modprobe.conf; then    cat /etc/modprobe.conf | egrep -i snd\|sound else    echo "==> Test not available on this system !" fi if test -d /dev/snd; then    echo    echo "== Checking alsa /dev/snd =="    ls --color=none /dev/snd fi echo echo "== Checking if Module Loaded ==" /sbin/lsmod | egrep -i snd\|sound\|audio\|game echo  if test -x /sbin/chkconfig; then    echo "== Checking in what level Sound service is configured to run =="    /sbin/chkconfig --list sound    echo    echo "== Checking in what level Alsa service is configured to run =="    /sbin/chkconfig --list alsa else    echo "==> Test for run levels not available on this system !" fi echo echo "== Checking if Sound Volume muted ==" if test -x /usr/bin/aumix; then    aumix -q else    echo "==> Test not available on this system !" fi echo echo "== Checking artsd setup ==" ps -A -f | grep -i artsd | grep -v grep echo echo "== Checking which program uses the sound card or cdrom ==" echo "         (no output is okay)" if test -x /sbin/fuser; then    /sbin/fuser -v /dev/dsp    /sbin/fuser -v /dev/cdrom else    /bin/fuser -v /dev/dsp    /bin/fuser -v /dev/cdrom fi # Extra test added by Bruno echo echo "== Test wav file . . . . . please wait =="if test -f /opt/kde3/share/sounds/KDE_Startup.wav  then  /usr/bin/play /opt/kde3/share/sounds/KDE_Startup.wavelif test -f /opt/kde/share/sounds/KDE_Startup.wav  then  /usr/bin/play /opt/kde/share/sounds/KDE_Startup.wavelif test -f /usr/share/sounds/KDE_Startup.wav  then  /usr/bin/play /usr/share/sounds/KDE_Startup.wav  elif test -f /usr/kde/3.3/share/sounds/KDE_Startup.wav  then  /usr/bin/play /usr/kde/3.3/share/sounds/KDE_Startup.wavelse  echo "==> Test not available on this system !"fi echo -n "Did you hear the soundfile Yes/NO ?:"read answer# the user did not enter anything:while [ -z "$answer" ]; doecho "You did not tell me Yes or No !!!"echo -n "Did you hear the soundfile Yes/NO ?:"read answerdoneecho "You typed:  $answer  Thanks !" sleep 2 echo echo "== End of Checks;-)" echo I even made it more readable by adding "==" at the echo's of what that particular check is about and losts of other little tweaks ;)For those you do not know how to handle the script: 1) Select all the text in the code block above. Copy the text.2) In a console type the command "vi soundchk.sh"3) In vi- Press "I" (without the quotes) to go to insert mode- Select Edit->Paste from the console menu- Press the escape key to leave insert mode- Press "ZZ" to save the new file4) In the console, su first and type the command "chmod +x soundchk.sh"5) Log out as root in the console with Ctrl+D6) Then type "./soundchk.sh" to run the scriptHave Fun ! Bruno Quote Link to comment Share on other sites More sharing options...
BarryB Posted January 23, 2005 Share Posted January 23, 2005 Ok...soundchk.sh v1.06 - Running Sound Configuration ChecksToday is Sun Jan 23 09:49:46 EST 2005Sound tested by barryb== Identifying System ==Linux 2.6.8-24.11-default #1 Fri Jan 14 13:01:26 UTC 2005 x86_64 GNU/Linuxmodel name : AMD Athlon 64 Processor 3200+cpu MHz : 800.000MemTotal: 1024636 kBSwapTotal: 1044184 kB== Checking dsp devices ==lrwxrwxrwx 1 root root 5 2005-01-12 07:57 adsp -> adsp0crw------- 1 barryb audio 14, 12 2004-12-03 13:45 adsp0crw------- 1 barryb audio 14, 28 2004-12-03 13:45 adsp1crw------- 1 barryb audio 14, 44 2004-12-03 13:45 adsp2crw------- 1 barryb audio 14, 60 2004-12-03 13:45 adsp3lrwxrwxrwx 1 root root 4 2005-01-12 07:57 dsp -> dsp0crw------- 1 barryb audio 14, 3 2004-12-03 13:45 dsp0crw------- 1 barryb audio 14, 19 2004-12-03 13:45 dsp1crw------- 1 barryb audio 14, 35 2004-12-03 13:45 dsp2crw------- 1 barryb audio 14, 51 2004-12-03 13:45 dsp3crw-rw---- 1 root root 55, 0 2004-12-03 13:45 dsp56klrwxrwxrwx 1 root root 24 2005-01-12 07:57 sndstat -> /proc/asound/oss/sndstat== Checking mixer devices ==lrwxrwxrwx 1 root root 5 2005-01-12 07:57 adsp -> adsp0crw------- 1 barryb audio 14, 12 2004-12-03 13:45 adsp0crw------- 1 barryb audio 14, 28 2004-12-03 13:45 adsp1crw------- 1 barryb audio 14, 44 2004-12-03 13:45 adsp2crw------- 1 barryb audio 14, 60 2004-12-03 13:45 adsp3lrwxrwxrwx 1 root root 4 2005-01-12 07:57 dsp -> dsp0crw------- 1 barryb audio 14, 3 2004-12-03 13:45 dsp0crw------- 1 barryb audio 14, 19 2004-12-03 13:45 dsp1crw------- 1 barryb audio 14, 35 2004-12-03 13:45 dsp2crw------- 1 barryb audio 14, 51 2004-12-03 13:45 dsp3crw-rw---- 1 root root 55, 0 2004-12-03 13:45 dsp56klrwxrwxrwx 1 root root 6 2005-01-12 07:57 mixer -> mixer0crw------- 1 barryb audio 14, 0 2004-12-03 13:45 mixer0crw------- 1 barryb audio 14, 16 2004-12-03 13:45 mixer1crw------- 1 barryb audio 14, 32 2004-12-03 13:45 mixer2crw------- 1 barryb audio 14, 48 2004-12-03 13:45 mixer3== Checking Knotify ==[Misc]External player=LastConfiguredApp=KDE System NotificationsUse external player=falseVolume=95[startProgress]Arts Init=trueKNotify Init=trueUse Arts=true== Checking Driver ==0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01) Subsystem: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) Subsystem: Giga-byte Technology GA-7VAX Onboard Audio (Realtek ALC650)0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4 ==== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6 ==# remove this if sound is configured== Checking alsa /dev/snd ==controlC0 hwC5D2 midiC2D4 midiC6D2 pcmC1D0c pcmC2D7c pcmC4D6c pcmC6D5ccontrolC1 hwC5D3 midiC2D5 midiC6D3 pcmC1D0p pcmC2D7p pcmC4D6p pcmC6D5pcontrolC2 hwC6D0 midiC2D6 midiC6D4 pcmC1D1c pcmC3D0c pcmC4D7c pcmC6D6ccontrolC3 hwC6D1 midiC2D7 midiC6D5 pcmC1D1p pcmC3D0p pcmC4D7p pcmC6D6pcontrolC4 hwC6D2 midiC3D0 midiC6D6 pcmC1D2c pcmC3D1c pcmC5D0c pcmC6D7ccontrolC5 hwC6D3 midiC3D1 midiC6D7 pcmC1D2p pcmC3D1p pcmC5D0p pcmC6D7pcontrolC6 hwC7D0 midiC3D2 midiC7D0 pcmC1D3c pcmC3D2c pcmC5D1c pcmC7D0ccontrolC7 hwC7D1 midiC3D3 midiC7D1 pcmC1D3p pcmC3D2p pcmC5D1p pcmC7D0phwC0D0 hwC7D2 midiC3D4 midiC7D2 pcmC1D4c pcmC3D3c pcmC5D2c pcmC7D1chwC0D1 hwC7D3 midiC3D5 midiC7D3 pcmC1D4p pcmC3D3p pcmC5D2p pcmC7D1phwC0D2 midiC0D0 midiC3D6 midiC7D4 pcmC1D5c pcmC3D4c pcmC5D3c pcmC7D2chwC0D3 midiC0D1 midiC3D7 midiC7D5 pcmC1D5p pcmC3D4p pcmC5D3p pcmC7D2phwC1D0 midiC0D2 midiC4D0 midiC7D6 pcmC1D6c pcmC3D5c pcmC5D4c pcmC7D3chwC1D1 midiC0D3 midiC4D1 midiC7D7 pcmC1D6p pcmC3D5p pcmC5D4p pcmC7D3phwC1D2 midiC0D4 midiC4D2 pcmC0D0c pcmC1D7c pcmC3D6c pcmC5D5c pcmC7D4chwC1D3 midiC0D5 midiC4D3 pcmC0D0p pcmC1D7p pcmC3D6p pcmC5D5p pcmC7D4phwC2D0 midiC0D6 midiC4D4 pcmC0D1c pcmC2D0c pcmC3D7c pcmC5D6c pcmC7D5chwC2D1 midiC0D7 midiC4D5 pcmC0D1p pcmC2D0p pcmC3D7p pcmC5D6p pcmC7D5phwC2D2 midiC1D0 midiC4D6 pcmC0D2c pcmC2D1c pcmC4D0c pcmC5D7c pcmC7D6chwC2D3 midiC1D1 midiC4D7 pcmC0D2p pcmC2D1p pcmC4D0p pcmC5D7p pcmC7D6phwC3D0 midiC1D2 midiC5D0 pcmC0D3c pcmC2D2c pcmC4D1c pcmC6D0c pcmC7D7chwC3D1 midiC1D3 midiC5D1 pcmC0D3p pcmC2D2p pcmC4D1p pcmC6D0p pcmC7D7phwC3D2 midiC1D4 midiC5D2 pcmC0D4c pcmC2D3c pcmC4D2c pcmC6D1c seqhwC3D3 midiC1D5 midiC5D3 pcmC0D4p pcmC2D3p pcmC4D2p pcmC6D1p timerhwC4D0 midiC1D6 midiC5D4 pcmC0D5c pcmC2D4c pcmC4D3c pcmC6D2chwC4D1 midiC1D7 midiC5D5 pcmC0D5p pcmC2D4p pcmC4D3p pcmC6D2phwC4D2 midiC2D0 midiC5D6 pcmC0D6c pcmC2D5c pcmC4D4c pcmC6D3chwC4D3 midiC2D1 midiC5D7 pcmC0D6p pcmC2D5p pcmC4D4p pcmC6D3phwC5D0 midiC2D2 midiC6D0 pcmC0D7c pcmC2D6c pcmC4D5c pcmC6D4chwC5D1 midiC2D3 midiC6D1 pcmC0D7p pcmC2D6p pcmC4D5p pcmC6D4p== Checking if Module Loaded ==snd_seq 60864 2snd_pcm_oss 63912 0snd_mixer_oss 21120 1 snd_pcm_osssnd_ioctl32 18432 0snd_via82xx 30180 4snd_ac97_codec 81952 1 snd_via82xxsnd_pcm 110220 4 snd_pcm_oss,snd_ioctl32,snd_via82xx,snd_ac97_codecsnd_timer 26632 2 snd_seq,snd_pcmsnd_page_alloc 11664 2 snd_via82xx,snd_pcmgameport 4992 1 snd_via82xxsnd_mpu401_uart 8576 1 snd_via82xxsnd_rawmidi 27812 1 snd_mpu401_uartsnd_seq_device 10128 2 snd_seq,snd_rawmidisnd 67336 21 snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ioctl32,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_devicesoundcore 10912 1 snd== Checking if services configured to be run on initlevel 3 ==== Checking how Sound services configured ==sound: unknown service== Checking how Alsa service configured ==alsa: unknown service== Checking if Sound Volume muted ==vol 81, 81, Ppcm 68, 68speaker 0, 0line 0, 0, Pmic 0, 0, Rcd 68, 68, Pigain 0, 0line1 0, 0, Pdig1 100, 100phin 0, 0, Pphout 74, 74, Pvideo 100, 100, P== Checking artsd setup ==barryb 6135 6112 0 07:55 ? 00:00:00 /opt/kde3/bin/artsd -F 10 -S 4096 -n -s 5 -m artsmessage -c drkonqi -l 3 -f== Checking which program uses the sound card or cdrom ==== Test wav file . . . . . can you hear it ?? ==== End of Checks ;-) Quote Link to comment Share on other sites More sharing options...
Manitoban Posted January 23, 2005 Share Posted January 23, 2005 Bruno, Here is my contribution. Bill.[william@blk-222-118-14 william]$ ./soundchk.shsoundchk.sh v1.06 - Running Sound Configuration ChecksToday is Sun Jan 23 10:58:54 AST 2005Sound tested by william== Identifying System ==Linux 2.6.8.1-12mdk-i586-up-1GB #1 Fri Oct 1 12:36:44 CEST 2004 AMD-K6 3D processor GNU/Linuxmodel name : AMD-K6 3D processorcpu MHz : 501.212MemTotal: 386616 kBSwapTotal: 995948 kB== Checking dsp devices ==crw-rw---- 1 william audio 14, 3 Jan 23 10:18 dspcrw-rw---- 1 william audio 14, 19 Jan 23 10:18 dsp1drwxr-xr-x 2 root root 120 Jan 23 10:18 sound== Checking mixer devices ==crw-rw---- 1 william audio 14, 3 Jan 23 10:18 dspcrw-rw---- 1 william audio 14, 19 Jan 23 10:18 dsp1crw-rw---- 1 william audio 14, 0 Jan 23 10:18 mixer== Checking Knotify ==[Misc]LastConfiguredApp=KMail[startProgress]Arts Init=falseKNotify Init=trueUse Arts=false== Checking Driver ==es1371 : Ensoniq|CT5880 [MULTIMEDIA_AUDIO] (vendor:1274 device:5880 subv:1274 subd:2003)== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4 ==== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6 ==alias sound-slot-0 es1371== Checking if Module Loaded ==soundcore 6560 2 es1371gameport 3264 1 es1371== Checking if services configured to be run on initlevel 3 ==== Checking how Sound services configured ==sound 0:off 1:off 2:on 3:on 4:on 5:on 6:off== Checking how Alsa service configured ==alsa 0:off 1:off 2:off 3:off 4:off 5:off 6:off== Checking if Sound Volume muted ====> Test not available on this system !== Checking artsd setup ==william 4649 4625 0 10:22 ? 00:00:01 /usr/bin/artsd -F 10 -S 4096 -s 1 -m artsmessage -c drkonqi -l 3 -f== Checking which program uses the sound card or cdrom ==== Test wav file . . . . . can you hear it ?? ==y== End of Checks ;-)[william@blk-222-118-14 william]$ y Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 Thanks Bill !!Looks like you are running Drake . . . . . do you have systemsounds ??Thanks Barry ! !But can you do 2 more commands on that SUSE box ? ( one time as user and one time as root if the user one fails ) /sbin/chkconfig --list BrunoPS: I added a bit of interactivity at the end of the script Quote Link to comment Share on other sites More sharing options...
quint Posted January 23, 2005 Share Posted January 23, 2005 Thanks for this, Bruno! quint@jaws:~$ ./soundchk.shsoundchk.sh v1.06 - Running Sound Configuration ChecksToday is Sun Jan 23 13:51:58 EST 2005Sound tested by quint== Identifying System ==Linux 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 unknown GNU/Linuxmodel name : AMD Athlon XP 2500+cpu MHz : 1830.029MemTotal: 774760 kBSwapTotal: 1389540 kB== Checking dsp devices ==lrwxrwxrwx 1 root root 5 2004-10-09 19:30 adsp -> adsp0crw-rw--w- 1 root sys 14, 12 2003-08-29 03:47 adsp0crw-rw--w- 1 root sys 14, 28 2003-08-29 03:47 adsp1crw-rw--w- 1 root sys 14, 44 2003-08-29 03:47 adsp2crw-rw--w- 1 root sys 14, 60 2003-08-29 03:47 adsp3lrwxrwxrwx 1 root root 4 2004-10-09 19:30 dsp -> dsp0crw-rw--w- 1 root audio 14, 3 2003-08-29 03:47 dsp0crw-rw--w- 1 root audio 14, 19 2003-08-29 03:47 dsp1crw-rw--w- 1 root audio 14, 35 2003-08-29 03:47 dsp2crw-rw--w- 1 root audio 14, 51 2003-08-29 03:47 dsp3== Checking mixer devices ==lrwxrwxrwx 1 root root 5 2004-10-09 19:30 adsp -> adsp0crw-rw--w- 1 root sys 14, 12 2003-08-29 03:47 adsp0crw-rw--w- 1 root sys 14, 28 2003-08-29 03:47 adsp1crw-rw--w- 1 root sys 14, 44 2003-08-29 03:47 adsp2crw-rw--w- 1 root sys 14, 60 2003-08-29 03:47 adsp3crw-rw-rw- 1 root sys 14, 11 2003-08-29 03:47 amixer0crw-rw-rw- 1 root sys 14, 27 2003-08-29 03:47 amixer1crw-rw-rw- 1 root sys 14, 43 2003-08-29 03:47 amixer2crw-rw-rw- 1 root sys 14, 59 2003-08-29 03:47 amixer3lrwxrwxrwx 1 root root 4 2004-10-09 19:30 dsp -> dsp0crw-rw--w- 1 root audio 14, 3 2003-08-29 03:47 dsp0crw-rw--w- 1 root audio 14, 19 2003-08-29 03:47 dsp1crw-rw--w- 1 root audio 14, 35 2003-08-29 03:47 dsp2crw-rw--w- 1 root audio 14, 51 2003-08-29 03:47 dsp3lrwxrwxrwx 1 root root 6 2004-10-09 19:30 mixer -> mixer0crw-rw-rw- 1 root audio 14, 0 2003-08-29 03:47 mixer0crw-rw-rw- 1 root audio 14, 16 2003-08-29 03:47 mixer1crw-rw-rw- 1 root audio 14, 32 2003-08-29 03:47 mixer2crw-rw-rw- 1 root audio 14, 48 2003-08-29 03:47 mixer3crw-r--r-- 1 root root 13, 0 1997-04-29 19:04 pcmixer== Checking Knotify ==[Misc]LastConfiguredApp=KDE System Notifications[startProgress]Arts Init=trueKNotify Init=trueUse Arts=true== Checking Driver ==00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)01:07.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4 ==== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6 ==== Checking alsa /dev/snd ==controlC0 hwC1D3 midiC0D2 midiC1D5 midiC3D0 pcmC0D1p pcmC0D7c pcmC1D4p pcmC2D2c pcmC2D7p pcmC3D5ccontrolC1 hwC2D0 midiC0D3 midiC1D6 midiC3D1 pcmC0D2c pcmC0D7p pcmC1D5c pcmC2D2p pcmC3D0c pcmC3D5pcontrolC2 hwC2D1 midiC0D4 midiC1D7 midiC3D2 pcmC0D2p pcmC1D0c pcmC1D5p pcmC2D3c pcmC3D0p pcmC3D6ccontrolC3 hwC2D2 midiC0D5 midiC2D0 midiC3D3 pcmC0D3c pcmC1D0p pcmC1D6c pcmC2D3p pcmC3D1c pcmC3D6phwC0D0 hwC2D3 midiC0D6 midiC2D1 midiC3D4 pcmC0D3p pcmC1D1c pcmC1D6p pcmC2D4c pcmC3D1p pcmC3D7chwC0D1 hwC3D0 midiC0D7 midiC2D2 midiC3D5 pcmC0D4c pcmC1D1p pcmC1D7c pcmC2D4p pcmC3D2c pcmC3D7phwC0D2 hwC3D1 midiC1D0 midiC2D3 midiC3D6 pcmC0D4p pcmC1D2c pcmC1D7p pcmC2D5c pcmC3D2p seqhwC0D3 hwC3D2 midiC1D1 midiC2D4 midiC3D7 pcmC0D5c pcmC1D2p pcmC2D0c pcmC2D5p pcmC3D3c timerhwC1D0 hwC3D3 midiC1D2 midiC2D5 pcmC0D0c pcmC0D5p pcmC1D3c pcmC2D0p pcmC2D6c pcmC3D3phwC1D1 midiC0D0 midiC1D3 midiC2D6 pcmC0D0p pcmC0D6c pcmC1D3p pcmC2D1c pcmC2D6p pcmC3D4chwC1D2 midiC0D1 midiC1D4 midiC2D7 pcmC0D1c pcmC0D6p pcmC1D4c pcmC2D1p pcmC2D7c pcmC3D4p== Checking if Module Loaded ==gameport 1420 0 [emu10k1-gp]sound 55656 0 [emu10k1]soundcore 3396 7 [emu10k1 sound]==> Test for run levels not available on this system !== Checking if Sound Volume muted ==vol 67, 67pcm 67, 67speaker 67, 67line 67, 67, Pmic 0, 0, Rcd 67, 67, Pigain 1, 1, Pogain 67, 67line1 67, 67, Pdig1 67, 67phin 67, 67, Pphout 67, 67video 67, 67, P== Checking artsd setup ==quint 12217 12200 0 12:54 ? 00:00:04 artsd -F 10 -S 4096 -s 60 -m artsmessage -c drkonqi -l 3 -f== Checking which program uses the sound card or cdrom == (no output is okay)./soundchk.sh: line 129: /bin/fuser: No such file or directory./soundchk.sh: line 130: /bin/fuser: No such file or directory== Test wav file . . . . . please wait ==Did you hear the soundfile Yes/NO ?:YesYou typed: Yes Thanks !== End of Checks;-)quint@jaws:~$ ...tested on "Slackware 10.1b1". Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 You typed: Yes Thanks !Nice one Quint !! :DB) Bruno Quote Link to comment Share on other sites More sharing options...
charlie Posted January 23, 2005 Share Posted January 23, 2005 Ok here , Charlie [harry:~/bin]$ ./soundchk.sh soundchk.sh v1.06 - Running Sound Configuration ChecksToday is Sun Jan 23 15:28:16 AST 2005Sound tested by harry== Identifying System ==Linux 2.6.8.1-10mdk #1 Wed Sep 8 17:00:52 CEST 2004 Intel® Celeron® CPU 1.70GHz GNU/Linuxmodel name : Intel® Celeron® CPU 1.70GHzcpu MHz : 1715.958MemTotal: 516036 kBSwapTotal: 522064 kB== Checking dsp devices ==crw-rw---- 1 harry audio 14, 3 Jan 23 2005 dspdrwxr-xr-x 2 root root 80 Jan 23 2005 sound== Checking mixer devices ==crw-rw---- 1 harry audio 14, 3 Jan 23 2005 dspcrw-rw---- 1 harry audio 14, 0 Jan 23 2005 mixer== Checking Knotify ==[Misc]LastConfiguredApp=Automatic Proxy Configuration[startProgress]Arts Init=trueKNotify Init=trueUse Arts=true== Checking Driver ==intel-agp : Intel Corp.|82845 845 (Brookdale) Chipset Host Bridge [bRIDGE_HOST] (vendor:8086 device:1a30 subv:1019 subd:0a20)i810_audio : Intel Corp.|ICH2 810 Chipset AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:8086 device:2445 subv:1019 subd:0a20)== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4 ==== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6 ==alias sound-slot-0 i810_audio== Checking if Module Loaded ==i810_audio 33236 1ac97_codec 16844 1 i810_audiosoundcore 7008 2 i810_audio== Checking in what level Sound service is configured to run ==sound 0:off 1:off 2:on 3:on 4:on 5:on 6:off== Checking in what level Alsa service is configured to run ==alsa 0:off 1:off 2:on 3:on 4:on 5:on 6:off== Checking if Sound Volume muted ====> Test not available on this system !== Checking artsd setup ==harry 5276 5252 0 14:22 ? 00:00:00 /usr/bin/artsd -F 10 -S 4096 -s 1 -m artsmessage -c drkonqi -l 3 -f== Checking which program uses the sound card or cdrom == (no output is okay)== Test wav file . . . . . please wait ==sox: Sound card appears to only support 2 channels. Overriding formatsox: Unable to set audio speed to 22050 (set to 21793)Did you hear the soundfile Yes/NO ?:yesYou typed: yes Thanks !== End of Checks;-) Quote Link to comment Share on other sites More sharing options...
teacher Posted January 23, 2005 Share Posted January 23, 2005 I waited about five minutes and am still waiting. bash-2.05b$ ./soundchk.shsoundchk.sh v1.06 - Running Sound Configuration ChecksToday is Sun Jan 23 14:48:11 EST 2005Sound tested by julia== Identifying System ==Linux 2.6.7-gentoo-r11 #2 SMP Fri Oct 15 16:32:33 Local time zone must be set--see zic Intel(R) Pentium(R) 4 CPU 3.06GHz GNU/Linuxmodel name : Intel(R) Pentium(R) 4 CPU 3.06GHzmodel name : Intel(R) Pentium(R) 4 CPU 3.06GHzcpu MHz : 3066.843cpu MHz : 3066.843MemTotal: 905212 kBSwapTotal: 1783172 kB== Checking dsp devices ==lr-xr-xr-x 1 root root 10 Jan 23 09:41 adsp -> sound/adsplr-xr-xr-x 1 root root 11 Jan 23 09:41 audio -> sound/audiolr-xr-xr-x 1 root root 9 Jan 23 09:41 dsp -> sound/dsplr-xr-xr-x 1 root root 11 Jan 23 09:41 mixer -> sound/mixerlr-xr-xr-x 1 root root 15 Jan 23 09:41 sequencer -> sound/sequencerlr-xr-xr-x 1 root root 16 Jan 23 09:41 sequencer2 -> sound/sequencer2drwxr-xr-x 1 root root 0 Dec 31 1969 sound== Checking mixer devices ==lr-xr-xr-x 1 root root 10 Jan 23 09:41 adsp -> sound/adsplr-xr-xr-x 1 root root 9 Jan 23 09:41 dsp -> sound/dsplr-xr-xr-x 1 root root 11 Jan 23 09:41 mixer -> sound/mixer== Checking Knotify ==[Misc]LastConfiguredApp=Konsole[StartProgress]Arts Init=trueKNotify Init=trueUse Arts=true== Checking Driver ==0000:00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 02)0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)== Checking Actual Driver in Use (/etc/modules.conf) kernel 2.4==# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $alias char-major-116 sndalias char-major-14 soundcore## You need to customise this section for your specific sound card(s)## alias snd-card-0 snd-interwave## alias snd-card-1 snd-ens1371## alias sound-slot-0 snd-card-0## alias sound-slot-1 snd-card-1alias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-oss## alias sound-service-1-0 snd-mixer-oss## alias sound-service-1-3 snd-pcm-oss## alias sound-service-1-12 snd-pcm-ossalias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-ossoptions snd cards_limit=1== Checking Actual Driver in Use (/etc/modprobe.conf) kernel 2.6==alias char-major-14-* soundcorealias char-major-116-* sndalias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-ossalias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-ossoptions snd cards_limit=1== Checking alsa /dev/snd ==controlC0 pcmC0D0p pcmC0D2c pcmC0D4p timerpcmC0D0c pcmC0D1c pcmC0D3c seq== Checking if Module Loaded ====> Test for run levels not available on this system !== Checking if Sound Volume muted ====> Test not available on this system !== Checking artsd setup ==julia 5825 5805 0 14:42 ? 00:00:01 //usr/kde/3.3/bin/artsd -F 13 -S 4096 -a alsa -d -b 16 -m artsmessage -c drkonqi -l 3 -fjulia 5832 5825 0 14:42 ? 00:00:00 //usr/kde/3.3/bin/artsd -F 13 -S 4096 -a alsa -d -b 16 -m artsmessage -c drkonqi -l 3 -f== Checking which program uses the sound card or cdrom == (no output is okay)== Test wav file . . . . . please wait == Quote Link to comment Share on other sites More sharing options...
Bruno Posted January 23, 2005 Author Share Posted January 23, 2005 Thanks Charlie !!Hi JuliaDo Ctrl+C to stop the script . . and please check if you have:/usr/bin/playand /usr/kde/3.3/share/sounds/KDE_Startup.wav?? BrunoPS: I suspect it is the /usr/bin/play . . . maybe try play /usr/kde/3.3/share/sounds/KDE_Startup.wav Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.