Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 03:12
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Audio
Onboard Sound-Card is not detected by ALSA
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
rolle

Joined: 22 Aug 2012
Posts: 14

PostPosted: Wed 22 Aug 2012, 12:17    Post subject:  Onboard Sound-Card is not detected by ALSA
Subject description: C-Media onboard sound card gives no sound, after ALSA-Wizard ALSA apparently isn't working at all
 

Hello!

This is my first Post in this Forum. Smile

I am quite new to Linux-OS and installed Puppy-Wary yesterday evening. In short: I am totally unexperienced, so far Wink

At the Moment I am running Puppy-Wary 5.3.3 on an old FSC Futuro S400 ThinClient (frugal install from am 256MB CF-Card, pupsafe about 80MB).
So far Wary Puppy works quite fine ( a little bit faster than Lucid Puppy) but my sound hardware is not recognized by ALSA.

The System detected the onboard AC97 Audio device, but I wasn't able to play any sound (Yes, I did check about Mute an Volume in the Alsamixer). So I ran the ALSA-Wizard from the Sound-Wizard Menu. Probably something went wrong, from now on ALSA couldn't detect any Sound Hardware (not the onboard sound, neither a simple ÚSB-SC-Dongle). I did many reboots, but the ALSA returns: Unable to find any Soundcard, please press Cancel. The small Loudspeaker in the lower-right-corner also disappeared.

Short Hardware Specs
-----------------------------------
CPU - AMD Geode 1GHz
RAM - 1GB, 128MB reserved for the GPU
Graphics - onboard Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
HDD - 256MB CF-Card, 80MB Pupsafe-file
Sound-1 - Silicon Integrated Systems [SiS] C-Media AC'97 Sound Controller
Sound-2 - C-Media USB-Audio-Device
Sound-3 - Edirol UA-1EX USB-Audio (later on I want to use this one for Audio-Playback)
OS - Puppy Linux Wary 5.3.3

For further information: I have atteched the full "Hardinfo System Report" and the "sys-info-report" as .txt-Files, I hope this helps (Puppy-Setup, Geany and Seamonky were running in the background whileperforming the test)

And one Last question: The System is running reasonable fast, but some times the response-time is a little bit slow like in the PentiumI/Win95 -times. Especially when browsing the Web using Seamonky. Actually I suspect the CPU beeing the 'bottleneck' of the System, Context Menus and that sort of stuff respond very quick. Do you have any suggestions to tweak Puppy-Linux to improve the overall system performance?

Thank you very much in advance!
rolle
FSCS400_SystemInformation.tar.gz
Description 
gz

 Download 
Filename  FSCS400_SystemInformation.tar.gz 
Filesize  18.92 KB 
Downloaded  282 Time(s) 
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Wed 22 Aug 2012, 15:41    Post subject:  

Quote:
ALSA lib conf.c:3425:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it

Normally Puppy uses a /etc/asound.state file that should be used if existent by /etc/init.d/[10_]alsa .

alsaconf when started removes all loaded sound modules from the kernel .

alsaconf should write something into /etc/modprobe.d/alsa.conf like

Code:
##### Changed by /sbin/pup_event_backend_modprobe #####
### Running kernel 2.6.37.4-KRG-i486-StagingDrivers-2
### Because modulename or harware had changed
### Configuration-file is /etc/modprobe.d/modprobe.conf
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
##### Mon Jan 30 07:06:35 GMT+1 2012 #####
Back to top
View user's profile Send private message Visit poster's website 
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: Wed 22 Aug 2012, 16:38    Post subject:  

I assume the sound worked on Lucid? Do you know which drivers Lucid used?
_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
rolle

Joined: 22 Aug 2012
Posts: 14

PostPosted: Wed 22 Aug 2012, 17:15    Post subject:  

So here is my alsa.conf:
Code:

alias char-major-14-* soundcore
alias char-major-116-* snd
alias sound-service-0-0 snd-mixer-oss
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-12 snd-pcm-oss
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330


The 'asound.state' file is existent and asfar as I could tell contains all settings controlled by "alsamixer".

/etc/init.d/10alsa reveals this:
Code:

#!/bin/sh
#Barry Kauler april 2009, puppylinux.com
#called from /etc/rc.d/rc.services at bootup, with 'start' param.
#called from /etc/rc.d/rc.shutdown at shutdown, with 'stop' param.
#101120, 101121 simplification.
#110111 shinobar: for reliable sound detection on HP Compac nc4010.
#110113 tweak delay. 110216 tweak delay.
#110506 /usr/sbin/alsaconf has 'restart' option, might need to reprobe modules. for now, just 'start|restart'.
#111229 add test file /etc/asound.state exists.
#120103 karl godt: fix unloading modules. refer: http://www.murga-linux.com/puppy/viewtopic.php?t=71767&start=390
#120222 revert 111229. 120223 shinobar: better fix.
#120226 01micko: added 'Master Front' entries. 120318 bumped it up, 75% to 100%.

case "$1" in
 start|restart)
  #110217 remove this test, seems to be a problem some people report file not created but snd ok...
  #if [ -f /tmp/rc_d_rc_services_alsa_ok ];then #101121 see rc.services.
   #if [ "`lsmod | grep '^snd_'`" != "" ];then
   rm -f /var/lock/subsys/alsasound 2> /dev/null #or alsa will not start.
   #sometimes these don't all load...
   modprobe snd-mixer-oss
   modprobe snd-seq-oss
   modprobe snd-pcm-oss
   for I in $(seq 4); do #110111 shinobar: for reliable sound detection on HP Compac nc4010.
    sleep 0.5 #110113 reduce 1 to 0.5. 110216 move up.
    [ -c /dev/mixer ] && break #note, /dev/mixer is deleted in /etc/rc.d/rc.sysinit.
   done
   if [ ! -f /etc/asound.state ];then
    #try and set all levels workable...
    #set_mixers #in functions4puppy4
    #101015 BK had to add ,0 after Front...
    #110823 pemasu: add this set Speaker 75 % unmute
    #120226 01micko: added 'Master Front' entries...
   amixer -s -q <<EOF
set Master 75% unmute
set Master -12dB
set 'Master Mono' 75% unmute
set 'Master Mono' -12dB
set 'Master Front' 100% unmute
set 'Master Front' -12dB
set Front,0 75% unmute
set Front,0 -12dB
set PCM 90% unmute
set PCM 0dB
set Synth 90% unmute
set Synth 0dB
set CD 90% unmute
set CD 0dB
set Mic 0% mute
set PCM,1 90% unmute
set PCM,1 0dB
set Wave 100% unmute
set Music 100% unmute
set AC97 100% unmute
set 'Master Digital' 75% unmute
set DAC 90% unmute
set DAC -12dB
set DAC,0 90% unmute
set DAC,0 -12dB
set DAC,1 90% unmute
set DAC,1 -12dB
set Headphone 75% unmute
set Headphone -12dB
set Playback 100% unmute
set "SB Live Analog/Digital Output Jack" off
set "Audigy Analog/Digital Output Jack" off
set Speaker 75% unmute
EOF
   [ $? -eq 0 ] && alsactl -f /etc/asound.state store #120223 shinobar
   else
    alsactl -f /etc/asound.state restore #from /etc/asound.state.
   fi
  #fi
 ;;
 stop)
  [ -f /etc/asound.state ] && alsactl -f /etc/asound.state store #saves to /etc/asound.state. 111229 add test file exists. 120222 revert. 120223 restore.
  # Kill processes holding open sound devices...
  fuser -k /dev/admmidi? /dev/adsp? /dev/amidi? /dev/audio* /dev/dmfm* /dev/dmmidi? /dev/dsp* /dev/dspW* /dev/midi0? /dev/mixer? /dev/music /dev/patmgr? /dev/sequencer* /dev/sndstat >/dev/null 2>&1
  [ -d /proc/asound/dev ] && fuser -k /proc/asound/dev/* >/dev/null 2>&1
  [ -d /dev/snd ] && fuser -k /dev/snd/* >/dev/null 2>&1
  # remove all sequencer connections if any
  [ -f /proc/asound/seq/clients -a -x aconnect ] && aconnect --removeall
  # mute master to avoid clicks at unload
  amixer set Master mute >/dev/null 2>&1
  # remove all sound modules... 120103...
  #lsmod | grep "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
  c=0
  while [ "`lsmod | grep 'snd_'`" ];do
   lsmod | grep "^snd" | grep '0 $' | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
   while read line
   do
    #rmmod `echo $line | cut -d ' ' -f 1`
    modprobe -rv `echo $line | cut -d ' ' -f 1`
   done
   c=$((c+1));[ "$c" = '6' ] && break #precaution if neverending loop
  done
  # remove the 2.2 soundcore module (if possible)
  rmmod soundcore 2> /dev/null
  rmmod gameport 2> /dev/null
  # remove lockfile if lockdir exists
  [ -d /var/lock/subsys ] && rm -f /var/lock/subsys/alsasound
 ;;
esac

###END###



So in the meanwhile I tried two live-systems (saluki0.23 and Wary5.3.3) without using any .2fs-file. And the Sound works flawlessly Very Happy

So....what direction to go? Repair the current ALSA configuration or reinstall the System and therefore go back to default? As I am relatively new to all this I would prefer the 'manual-repair-route'.

Thanks alot!
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Wed 22 Aug 2012, 17:55    Post subject:  

darkcity wrote:
I assume the sound worked on Lucid? Do you know which drivers Lucid used?

Code:
lsmod
should list drivers in Live Mode
Back to top
View user's profile Send private message Visit poster's website 
rolle

Joined: 22 Aug 2012
Posts: 14

PostPosted: Wed 22 Aug 2012, 18:37    Post subject:  

Results of lsmod on a live-System (screenshot)
sopunddriver.png
Description 
png

 Download 
Filename  sopunddriver.png 
Filesize  79.88 KB 
Downloaded  305 Time(s) 

Last edited by rolle on Wed 22 Aug 2012, 19:00; edited 1 time in total
Back to top
View user's profile Send private message 
rolle

Joined: 22 Aug 2012
Posts: 14

PostPosted: Wed 22 Aug 2012, 18:59    Post subject:  

Update:
Booting my system without pupsafe.2fs-file gave me a OOTB-Wary without any Sound-Problems. So I'll just start reconfiguring and saving in a brand-new pupsafe-file.

Sorry for bothering You! Your help is much appreciated!

best regards,
rolle
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Audio
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0693s ][ Queries: 13 (0.0064s) ][ GZIP on ]