kanotix.com
Hardware - Kanotix Mute
Tejas - 18.09.2011, 15:03 Uhr
Titel: Kanotix Mute
Kanotix is supposed to detect h/w like sound cards and appropriately configure it or driver if I'm not mistaken. Mint does this and I have no problem playing the Gnome Media Player. However I've failed to get any sound out of it here.
Step 1 See if your soundcard is detected
Code:
$ cat /proc/asound/cards
 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe028000 irq 21
Presume sound card detected
Step 3 Play a file:
Code:
$ play /usr/share/sounds/KDE-Im-New-Mail.ogg
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
Step 4 Check all volumes are up and nothing is muted.
Code:
$ alsamixer
Not being a sound buff  this is where I get lost     
 
Only a  Line Out to Speakers (No internal ones)
O/P of alsamixer attached:
TheOne - 18.09.2011, 15:42 Uhr
Titel: Kanotix Mute
Try to increase volume of PCM and Master channel.
besenmuckel - 18.09.2011, 22:18 Uhr
Titel: Kanotix Mute
sorry - no spreak english.
http://wiki.ubuntuusers.de/Soundkarten_ ... edirect=no
Zitat:
zless /usr/share/doc/alsa-base/driver/HD-Audio-Models.txt.gz 
Die unterstützten Audiocontroller sind auch alternativ auf der Dokumentationsseite des Linuxkernels auf kernel.org {en} nachzulesen. Mit diesen möglichen Modellnamen beginnt nun die Arbeit. Man teilt ALSA mit, welcher Chip-Typ verwendet werden soll. Dazu muss die Datei /etc/modprobe.d/alsa-base.conf in einem Editor mit Root-Rechten bearbeitet werden [3]. An das Ende dieser Datei wird - um bei obigem Beispiel (für andere siehe Tabelle unten) zu bleiben - folgende Zeile eingefügt:
options snd-hda-intel model=3stack
Nach dem Ändern der Datei kann der Rechner neu gestartet werden. ALSA erfährt dann beim Starten, welcher HDA-Typ angesprochen wird. Alternativ dazu kann mittels rmmod das snd_hda_intel-Kernelmodul entfernt werden und mittels modprobe snd-hda-intel model=xxx neu geladen werden. Parallel dazu kann in einem zweiten Fenster mittels tail -f /var/log/syslog die Kernelausgabe via syslog verfolgt werden, ob das korrekte Modell für die Soundkarte geladen wurde.
Falls es nicht funktionieren sollte, muss man sämtliche verschiedenen Modelle durchprobieren, bis man das passende gefunden hat. Eventuell ist kein Sound - trotz des richtigen Modellnamens - hörbar. Deshalb sollte man mittels Alsamixer die Einstellungen der Regler und Schalter der Soundkarte überprüfen.
Kano - 18.09.2011, 22:34 Uhr
Titel: Kanotix Mute
Usally you need to increase front too.
Tejas - 20.09.2011, 20:17 Uhr
Titel: RE: Kanotix Mute
besenmuckel hat folgendes geschrieben::
sorry - no spreak english.
No speaka da englisch? No problema    
http://wiki.ubuntuusers.de/Soundkarten_konfigurieren/HDA?redirect=no hat folgendes geschrieben::
Dazu muss die Datei /etc/modprobe.d/alsa-base.conf in einem Editor mit Root-Rechten bearbeitet werden [3]. An das Ende dieser Datei wird - um bei obigem Beispiel (für andere siehe Tabelle unten) zu bleiben - folgende Zeile eingefügt:
options snd-hda-intel model=3stack
Nach dem Ändern der Datei kann der Rechner neu gestartet werden. ALSA erfährt dann beim Starten, welcher HDA-Typ angesprochen wird.
Have followed this, but still problem persists. I tend to think it's something to do with thiis error:
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
Something seems to be either blocking access to or hogging the sound card. Kaffeine upon start-up comes up with the following:
Sorry -  Kaffeine
Cannot create audio output
before crashing.
Thanks for the link and its related links which I am  now having to wade through while waiting on more suggestions.
TheOne - 20.09.2011, 23:17 Uhr
Titel: RE: Kanotix Mute
If some application blocks your sound device, you can see that via
Code:
lsof | grep snd
If some apps that should be closed still block your device, try to kill them (killall or kill).
Regards TheOne
besenmuckel - 21.09.2011, 00:38 Uhr
Titel: RE: Kanotix Mute
Zitat:
lsof | grep snd 
or
Code:
lsof | grep pcm
for  lsof
Code:
apt-get install lsof
Tejas - 22.09.2011, 19:45 Uhr
Titel: RE: Kanotix Mute
EPILOG  ->    ->       A Sound Mystery
  ->       A Sound Mystery
To recap: 
besenmuckel hat folgendes geschrieben::
for  lsof
Code:
apt-get install lsof
TheOne hat folgendes geschrieben::
If some application blocks your sound device, you can see that via
Code:
lsof | grep snd
 
besenmuckel hat folgendes geschrieben::
Thanx
Mint hat folgendes geschrieben::
mint@mint ~ $ lsof | grep pcm 
pulseaudi  4642       mint  mem       CHR      116,3               13176 /dev/snd/pcmC0D0p
pulseaudi  4642       mint   36u      CHR      116,3      0t0      13176 /dev/snd/pcmC0D0p
plugin-co  5013       mint  mem       REG       0,16    22076      19784 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
besenmuckel hat folgendes geschrieben::
http://wiki.ubuntuusers.de/Soundkarten_konfigurieren/HDA?redirect=no hat folgendes geschrieben::
Dazu muss die Datei /etc/modprobe.d/alsa-base.conf ... folgende Zeile eingefügt:
options snd-hda-intel model=3stack
Nach dem Ändern der Datei kann der Rechner neu gestartet werden. ALSA erfährt dann beim Starten, welcher HDA-Typ angesprochen wird.
 
After restarting the problem still persisted. Well since then there has been an intervening cold start.
On getting to desktop minimised all windows and ran
Code:
kanotix@Kanotix:~$ lsof | grep pcm
lsof: WARNING: can't stat() ext2 file system /isofrom
      Output information may be incomplete.
lsof: WARNING: can't stat() squashfs file system /filesystem.squashfs
      Output information may be incomplete.
lsof: WARNING: can't stat() ext2 file system /live-rw-backing
      Output information may be incomplete.
Possibly no one blocking sound access, so ran Kaffeine, which worked   
 
Following which ran
Code:
kanotix@Kanotix:~$ lsof | grep pcm
kaffeine- 3538    kanotix  mem       CHR      116,3             10697 /dev/snd/pcmC0D0p
kaffeine- 3538    kanotix   19u      CHR      116,3       0t0   10697 /dev/snd/pcmC0D0p
TheOne hat folgendes geschrieben::
Try to increase volume of PCM and Master channel.
Kano hat folgendes geschrieben::
Usally you need to increase front too.
With Kaffeine running, ran 'alsamixer' and was able to adjust contols and eliminate unnecessary ones  -> ->  
   
    
 
  
Ran Flash Video in Iceweasel
Code:
kanotix@Kanotix:~$ lsof | grep pcm
plugin-co 3715    kanotix  mem       CHR      116,3             10697 /dev/snd/pcmC0D0p
plugin-co 3715    kanotix   22u      CHR      116,3       0t0   10697 /dev/snd/pcmC0D0p
Played a sound
Code:
kanotix@Kanotix:~$ play /usr/share/sounds/KDE-Im-New-Mail.ogg
/usr/share/sounds/KDE-Im-New-Mail.ogg:
 File Size: 23.4k     Bit Rate: 181k
  Encoding: Vorbis        
  Channels: 2 @ 16-bit   
Samplerate: 48000Hz      
Replaygain: off         
  Duration: 00:00:01.03  
In:100%  00:00:01.03 [00:00:00.00] Out:49.7k [      |      ]        Clip:0    
Done.
Ran Gnome Media Player followed by a Sound
Code:
kanotix@Kanotix:~$ lsof | grep pcm
mplayer   4712    kanotix  mem       CHR      116,3             10697 /dev/snd/pcmC0D0p
mplayer   4712    kanotix    7w      CHR      116,3       0t0   10697 /dev/snd/pcmC0D0p
kanotix@Kanotix:~$ play /usr/share/sounds/KDE-Im-New-Mail.ogg
/usr/share/sounds/KDE-Im-New-Mail.ogg:
 File Size: 23.4k     Bit Rate: 181k
  Encoding: Vorbis        
  Channels: 2 @ 16-bit   
Samplerate: 48000Hz      
Replaygain: off         
  Duration: 00:00:01.03  
In:100%  00:00:01.03 [00:00:00.00] Out:49.7k [      |      ]        Clip:0    
Done.
Had gnome audio o/p set to 'pulse' but there was no sound until reset to 'alsa'
Checked sound file device
Code:
kanotix@Kanotix:~$ lsof | grep pcm
plugin-co 4739    kanotix  mem       CHR      116,3             10697 /dev/snd/pcmC0D0p
plugin-co 4739    kanotix   20u      CHR      116,3       0t0   10697 /dev/snd/pcmC0D0p
Flash Plugin seems to always grab the sound device file, but this time appears to have relinquished it to the active process. It is this same plugin plugin-co which had the sound device file before, when nothing was happening. So it remains a puzzle as to why this plugin now seems to be behaving properly. 
  
Attached file lists all processes on m/c., and maybe s.o. can spot one which could have been responsible for locking out processes from the sound device file.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007