Jump to content

Checking Sound Script


Owyn

Recommended Posts

Wel I have not fiddled much on the sound of 9.2, because there was still a bug with playing XMMS . . . . Yes my reply had the "unknown-forum-bug" . . . reported already long ago, still no solution, but very rare ;)Working on SuSEB) Bruno

Link to comment
Share on other sites

Owyn Suse does have more or less the same for devices/services/programs, but does give a couple of errors if I do: ./soundchk.sh >soundSuse.txt sound: unknown service alsa: unknown service

soundchk.sh v1.02 - Running Sound Configuration Checks Identifying System Linux dolphin.lan 2.4.20-4GB-athlon #1 Mon Mar 17 17:56:47 UTC 2003 i686 unknown unknown GNU/Linux Checking Devices lrwxrwxrwx    1 root  root            5 2003-10-04 22:04 adsp -> adsp0 crw-------    1 bruno    audio  14,  12 2003-03-14 14:07 adsp0 crw-------    1 bruno    audio  14,  28 2003-03-14 14:07 adsp1 crw-------    1 bruno    audio  14,  44 2003-03-14 14:07 adsp2 crw-------    1 bruno    audio  14,  60 2003-03-14 14:07 adsp3 lrwxrwxrwx    1 root  root            4 2003-10-04 22:04 dsp -> dsp0 crw-------    1 bruno    audio  14, 3 2003-03-14 14:07 dsp0 crw-------    1 bruno    audio  14,  19 2003-03-14 14:07 dsp1 crw-------    1 bruno    audio  14,  35 2003-03-14 14:07 dsp2 crw-------    1 bruno    audio  14,  51 2003-03-14 14:07 dsp3 crw-rw----    1 root  root      55, 0 2003-03-14 14:07 dsp56k lrwxrwxrwx    1 root  root        16 2003-10-04 22:04 snd -> /proc/asound/dev lrwxrwxrwx    1 root  root        24 2003-10-04 22:04 sndstat -> /proc/asound/oss/sndstat Checking Driver 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50) Checking Actual Driver in Use (/etc/modules.conf) # These aliases will be changed by YaST2 sound configurator. # take a look at the files on /usr/src/linux/Documentation/sound. alias sound off # Alsa sound support.  # Warning: please don't modify comments over aliases 'snd-card-#' alias char-major-116 snd #alias sound-slot-1 nvaudio options snd-via8233 snd_ac97_clock=48000 snd_enable=1 snd_index=0 # YaST2: sound system dependent part alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-slot-1 off alias sound-service-1-0 off alias sound-slot-2 off alias sound-service-2-0 off alias sound-slot-3 off alias sound-service-3-0 off options snd snd_cards_limit=1 snd_major=116 alias snd-card-0 snd-via8233 alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-11 snd-mixer-oss alias sound-service-0-12 snd-pcm-oss Checking if Module Loaded snd-pcm-oss            50144 0  (autoclean) snd-mixer-oss          15704 0  (autoclean) [snd-pcm-oss] snd-via8233            14916 0  snd-pcm                71168 0  [snd-pcm-oss snd-via8233] snd-timer              13376 0  [snd-pcm] snd-ac97-codec      35696 0  [snd-via8233] snd-mpu401-uart      3840 0  [snd-via8233] snd-rawmidi            15584 0  [snd-mpu401-uart] snd-seq-device          4512 0  [snd-rawmidi] snd                    40900 0  [snd-pcm-oss snd-mixer-oss snd-via8233 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device] soundcore            3748 0  [snd] Checking if services configured to be run on initlevel 3 Checking if Sound services configured Checking if Alsa service configured Checking if Sound Volume muted Test not available on this system Checking which program uses the sound card End of Checks
Playing Chopin this time from CD ;);) Bruno
Link to comment
Share on other sites

Suse does have more or less the same for devices/services/programs, but does give a couple of errors if I do:./soundchk.sh >soundSuse.txtsound: unknown servicealsa: unknown service
The services problem is the same one I saw from Jason. Either they are not required in Suse or are called something different.I am starting to think that fuser is a bit brain-damaged, or at least unreliable. Will see what I can find out."fuser /dev/adsp" might work on Suse. Just guessing.Sideways Thought: Is there a way to display the devices in use by a specific process? If so, I could find artsd and go explicity from there. That also makes me wonder (again) why Ross had artsd running more than once. kdeinit should only start it once."ps -A -f | grep -i artsd | grep -v grep"Yep. I will add it to the script.
Link to comment
Share on other sites

Owyn,Will try those commands . . in the mean time here is a second output from SuSE, now playing Goa-Trance in XMMS ( a slight bit heavier :thumbsup: ):

soundchk.sh v1.02 - Running Sound Configuration ChecksIdentifying SystemLinux dolpnin.lan 2.4.20-4GB-athlon #1 Mon Mar 17 17:56:47 UTC 2003 i686 unknown unknown GNU/LinuxChecking Deviceslrwxrwxrwx    1 root  root            5 2003-10-04 22:04 adsp -> adsp0crw-------    1 bruno    audio  14,  12 2003-03-14 14:07 adsp0crw-------    1 bruno    audio  14,  28 2003-03-14 14:07 adsp1crw-------    1 bruno    audio  14,  44 2003-03-14 14:07 adsp2crw-------    1 bruno    audio  14,  60 2003-03-14 14:07 adsp3lrwxrwxrwx    1 root  root            4 2003-10-04 22:04 dsp -> dsp0crw-------    1 bruno    audio  14, 3 2003-03-14 14:07 dsp0crw-------    1 bruno    audio  14,  19 2003-03-14 14:07 dsp1crw-------    1 bruno    audio  14,  35 2003-03-14 14:07 dsp2crw-------    1 bruno    audio  14,  51 2003-03-14 14:07 dsp3crw-rw----    1 root  root      55, 0 2003-03-14 14:07 dsp56klrwxrwxrwx    1 root  root        16 2003-10-04 22:04 snd -> /proc/asound/devlrwxrwxrwx    1 root  root        24 2003-10-04 22:04 sndstat -> /proc/asound/oss/sndstatChecking DriverChecking Actual Driver in Use (/etc/modules.conf)# These aliases will be changed by YaST2 sound configurator.# take a look at the files on /usr/src/linux/Documentation/sound.alias sound off# Alsa sound support. # Warning: please don't modify comments over aliases 'snd-card-#'alias char-major-116 snd#alias sound-slot-1 nvaudiooptions snd-via8233 snd_ac97_clock=48000 snd_enable=1 snd_index=0# YaST2: sound system dependent partalias sound-slot-0 snd-card-0alias sound-service-0-0 snd-mixer-ossalias sound-slot-1 offalias sound-service-1-0 offalias sound-slot-2 offalias sound-service-2-0 offalias sound-slot-3 offalias sound-service-3-0 offoptions snd snd_cards_limit=1 snd_major=116alias snd-card-0 snd-via8233alias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-11 snd-mixer-ossalias sound-service-0-12 snd-pcm-ossChecking if Module Loadedsnd-pcm-oss            50144 1 (autoclean)snd-mixer-oss          15704 0 (autoclean) [snd-pcm-oss]snd-via8233            14916 1snd-pcm                71168 0 [snd-pcm-oss snd-via8233]snd-timer              13376 0 [snd-pcm]snd-ac97-codec      35696 0 [snd-via8233]snd-mpu401-uart      3840 0 [snd-via8233]snd-rawmidi            15584 0 [snd-mpu401-uart]snd-seq-device          4512 0 [snd-rawmidi]snd                    40900 0 [snd-pcm-oss snd-mixer-oss snd-via8233 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]soundcore            3748 0 [snd]Checking if services configured to be run on initlevel 3Checking if Sound services configuredChecking if Alsa service configuredChecking if Sound Volume mutedTest not available on this systemChecking which program uses the sound card                  USER        PID ACCESS COMMAND/dev/dsp          bruno      2056 f....  xmms                  bruno      2057 f....  xmms                  bruno      2058 f....  xmms                  bruno      2059 f....  xmms                  bruno      2062 f....  xmms                  bruno      2063 f....  xmms                  bruno      2064 f....  xmmsEnd of Checks
:unsure: Bruno
Link to comment
Share on other sites

Owyn,On Suse:ps -A -f | grep -i artsd | grep -v grep:bruno 1672 1650 0 21:25 ? 00:00:00 /opt/kde3/bin/artsd -F 10 -S 4096 -s 5 -m artsmessage -l 3 -fB) Bruno

Link to comment
Share on other sites

Owyn,On Suse:ps -A -f | grep -i artsd | grep -v grep:bruno    1672  1650  0 21:25 ?        00:00:00 /opt/kde3/bin/artsd -F 10 -S 4096 -s 5 -m artsmessage -l 3 -fB) Bruno
Thanks. I am now in Konqueror->help:artsbuilder to decode the switches. Won't change the script but will help to understand what is happening.Later.
Link to comment
Share on other sites

Version 1.02 tested on SuSE 8.2 (I'm using a kernel provided by Win4Lin for SuSE):

# ./soundchk.shsoundchk.sh v1.02 - Running Sound Configuration ChecksIdentifying SystemLinux sheridan 2.4.20-4GB #1 Tue May 13 08:07:43 PDT 2003 i686 unknown unknown GNU/LinuxChecking Deviceslrwxrwxrwx    1 root  root            5 2003-08-31 20:36 adsp -> adsp0crw-------    1 jay      audio  14,  12 2003-03-14 08:07 adsp0crw-------    1 jay      audio  14,  28 2003-03-14 08:07 adsp1crw-------    1 jay      audio  14,  44 2003-03-14 08:07 adsp2crw-------    1 jay      audio  14,  60 2003-03-14 08:07 adsp3lrwxrwxrwx    1 root  root            4 2003-08-31 20:36 dsp -> dsp0crw-------    1 jay      audio  14, 3 2003-03-14 08:07 dsp0crw-------    1 jay      audio  14,  19 2003-03-14 08:07 dsp1crw-------    1 jay      audio  14,  35 2003-03-14 08:07 dsp2crw-------    1 jay      audio  14,  51 2003-03-14 08:07 dsp3crw-rw----    1 root  root      55, 0 2003-03-14 08:07 dsp56klrwxrwxrwx    1 root  root        16 2003-08-31 20:36 snd -> /proc/asound/devlrwxrwxrwx    1 root  root        24 2003-08-31 20:36 sndstat -> /proc/asound/oss/sndstatChecking Driver00:0b.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01)Checking Actual Driver in Use (/etc/modules.conf)# These aliases will be changed by YaST2 sound configurator.# take a look at the files on /usr/src/linux/Documentation/sound.alias sound off# Alsa sound support.# Warning: please don't modify comments over aliases 'snd-card-#'alias char-major-116 snd#alias sound-slot-1 nvaudiooptions snd-cs46xx snd_enable=1 snd_external_amp=0 snd_index=0 snd_mmap_valid=0 snd_thinkpad=0# YaST2: sound system dependent partalias sound-slot-0 snd-card-0alias sound-service-0-0 snd-mixer-ossalias sound-slot-1 offalias sound-service-1-0 offalias sound-slot-2 offalias sound-service-2-0 offalias sound-slot-3 offalias sound-service-3-0 offoptions snd snd_cards_limit=1 snd_major=116# gZD2.kEZ_kK3OAS1:CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator]alias snd-card-0 snd-cs46xxalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-11 snd-mixer-ossalias sound-service-0-12 snd-pcm-ossChecking if Module Loadedsnd-pcm-oss            45888 0  (autoclean)snd-mixer-oss          13560 1  (autoclean) [snd-pcm-oss]snd-seq-midi            4448 0  (unused)snd-seq-midi-event      2984 0  [snd-seq-midi]snd-seq                39184 0  [snd-seq-midi snd-seq-midi-event]snd-cs46xx          69864 1gameport                1404 0  [snd-cs46xx]snd-pcm                62912 0  [snd-pcm-oss snd-cs46xx]snd-timer              11904 0  [snd-seq snd-pcm]snd-ac97-codec      31152 0  [snd-cs46xx]snd-rawmidi            13824 0  [snd-seq-midi snd-cs46xx]snd-seq-device          4000 0  [snd-seq-midi snd-seq snd-rawmidi]snd                    35940 0  [snd-pcm-oss snd-mixer-oss snd-seq-midi snd-seq-midi-event snd-seq snd-cs46xx snd-pcm snd-timer snd-ac97-codec snd-rawmidi snd-seq-device]soundcore            3396 0  [snd]Checking if services configured to be run on initlevel 3Checking if Sound services configuredsound: unknown serviceChecking if Alsa service configuredalsa: unknown serviceChecking if Sound Volume mutedTest not available on this systemChecking which program uses the sound cardEnd of Checks
Link to comment
Share on other sites

  • 4 weeks later...

Owyn I ran your script on Fedora this morning. Was trying to see why Fedora would not play sound. It identified my sound card and then when it asked if I heard sound and I selected no, it said sorry. Don't you just love it?

Linux localhost.localdomain 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 i686 i686 i386 GNU/Linux Checking Devicescrw-------    1 julia    root      14, 3 Sep 15 09:40 dspcrw-------    1 julia    root      14,  19 Sep 15 09:40 dsp1crw-------    1 julia    root      55, 0 Sep 15 09:40 dsp56kcrw-------    1 root  root  101, 1 Sep 15 09:40 mdsp1crw-------    1 root  root  101,  10 Sep 15 09:40 mdsp10crw-------    1 root  root  101,  11 Sep 15 09:40 mdsp11crw-------    1 root  root  101,  12 Sep 15 09:40 mdsp12crw-------    1 root  root  101,  13 Sep 15 09:40 mdsp13crw-------    1 root  root  101,  14 Sep 15 09:40 mdsp14crw-------    1 root  root  101,  15 Sep 15 09:40 mdsp15crw-------    1 root  root  101,  16 Sep 15 09:40 mdsp16crw-------    1 root  root  101, 2 Sep 15 09:40 mdsp2crw-------    1 root  root  101, 3 Sep 15 09:40 mdsp3crw-------    1 root  root  101, 4 Sep 15 09:40 mdsp4crw-------    1 root  root  101, 5 Sep 15 09:40 mdsp5crw-------    1 root  root  101, 6 Sep 15 09:40 mdsp6crw-------    1 root  root  101, 7 Sep 15 09:40 mdsp7crw-------    1 root  root  101, 8 Sep 15 09:40 mdsp8crw-------    1 root  root  101, 9 Sep 15 09:40 mdsp9crw-------    1 root  root  101, 0 Sep 15 09:40 mdspstat Checking Driver./soundchk.sh: line 25: lspci: command not found Checking Actual Driver in Use (/etc/modules.conf)alias sound-slot-0 i810_audiopost-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || : Checking if Module Loadedi810_audio          27752 2ac97_codec          17192 0  [i810_audio]soundcore            6468 2  [i810_audio] Checking if services configured to be run on initlevel 3Checking if Sound services configurederror reading information on service sound: No such file or directory Checking if Alsa service configurederror reading information on service alsa: No such file or directory Checking if Sound Volume mutedvol 67, 67pcm 67, 67speaker 67, 67line 67, 67, Pmic 0, 0, Rcd 67, 67, Ppcm2 56, 56igain 67, 67, Pline1 67, 67, Pphin 67, 67, Pphout 67, 67video 67, 67, P Checking which program uses the sound card
Link to comment
Share on other sites

Julia:I did not bother to download Fedora due to lack of support for alsa and the problems listed in the reviews.AFAIK, any working non-alsa configuration in other distros should work in Fedora.I will download Fedora today and we can review fixes if any tonight. At the minimum I can get the script customized to work in Fedora (which should also cover RH9).

Link to comment
Share on other sites

I think I am going to dump Fedora. I will look at Red Hat. I need to be prepared for questions from my daughter. Any time I try to install sndconfig it locks up and shuts down! :D Not a good sign. :w00t:

Link to comment
Share on other sites

I think I am going to dump Fedora.  I will look at Red Hat.  I need to be prepared for questions from my daughter.  Any time I try to install sndconfig it locks up and shuts down! :D Not a good sign.  :w00t:
Ok. I don't think I will bother with burning these ISOs (just got CD3 down) then. Will do minimal install of RH9 later and double check soundchk.sh. Don't think RedHat or Fedora is going to be part of my future plans.
Link to comment
Share on other sites

Thought you might find this helpful, Owyn. Was reading a book on Webmin and discovered that Webmin uses /etc/issue to determine what distro is being used. It might help to grep that when checking for particular distros.

Link to comment
Share on other sites

  • 2 weeks later...

Hi Owyn,LOL, soundchk.sh 1.03 . . . . . . is this a beta or an RC version ? When are you planning the stable 2.0 ? ;) No, seriously: good stuff owyn ! Thanks.;) Bruno

Link to comment
Share on other sites

Does this mean you have an updated script you want us to run?  If so, where do you have it posted?
The new version is in the first post for this topic. I always update the initial post for changes and then announce the change with a new post.Re-testing is not required unless you are curious about the changes.
Link to comment
Share on other sites

Rev 1.04 released. Updated script in first post for this topic.Fixed typo in lspci grep in rev 1.03Added check for artsd configurationAdded check for using cdromAnd Bruno, this is about as stable as it gets. It will continue to be enhanced as needs be. If I find something that needs to be fixed, I will fix it, but I don't know of anything else, today. Can't say anything about tomorrow. :blink:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...