From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Otfwr-0004QN-Ez for garchives@archives.gentoo.org; Thu, 09 Sep 2010 12:09:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57F55E0912; Thu, 9 Sep 2010 12:09:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 19491E0912 for ; Thu, 9 Sep 2010 12:09:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B9D481B41BD for ; Thu, 9 Sep 2010 12:09:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 required=5.5 tests=[BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sUD2BjJ2iisc for ; Thu, 9 Sep 2010 12:09:12 +0000 (UTC) Received: from matrix.inten.pl (matrix.inten.pl [91.200.187.34]) by smtp.gentoo.org (Postfix) with ESMTP id B0E611B429C for ; Thu, 9 Sep 2010 12:09:08 +0000 (UTC) Received: from ai.localnet (unknown [91.200.187.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by matrix.inten.pl (Postfix) with ESMTPSA id 92B25A1D873 for ; Thu, 9 Sep 2010 14:09:06 +0200 (CEST) From: Kacper =?utf-8?q?Kopczy=C5=84ski?= To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] psi+ and aplay/paplay lock up (?) Date: Thu, 9 Sep 2010 14:09:03 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-tuxonice-r1; KDE/4.4.5; i686; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201009091409.04147.capsel@matrix.inten.pl> X-Archives-Salt: 09285d9c-ac55-4fb1-abcb-90929ed58648 X-Archives-Hash: a4a71a3dbfdbed9ea7120b616920b6b3 Hi, =46or a long time now I experience strange behaviour of sound player config= ured=20 in Psi (jabber communicator). Psi for every sound starts /usr/bin/aplay. Sometimes that program blocks so= und=20 device so that nothing else can play, and every other program started just= =20 locks up. So that number of 'aplay' grows with every event from psi. After = I=20 kill them all everything works fine until another lockup. Sometimes I need = to=20 kill flash, mplayer and other programs playing to "fix" this. I thought that the problem is related to access to soundcard - "there can b= e=20 only one" program playing, and I have made ~/.asoundrc : =2D----------------------------------------------- pcm.!default { type plug slave.pcm "mixall" } ctl.!default { type hw card 0 } pcm.dsp0 { type plug slave.pcm "mixall" } pcm.dsp1 { type plug slave.pcm "mixall" } pcm.mixall { type asym playback { pcm "mixout" } capture { pcm "mixin" } } pcm.mixin { type dsnoop ipc_key 678929 ipc_key_add_uid true slave { pcm "hw:0,0" channels 2 periods 0 period_time 0 period_size 1024 buffer_size 16384 rate 44100 } #bindings { #0 0 #0 1 #} } ctl.mixin { type hw card 0 } pcm.mixout { type dmix ipc_key 882921 ipc_key_add_uid true slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 16384 rate 44100 } #bindings { #0 0 #1 1 #} } ctl.mixout { type hw card 0 } =2D----------------------------- but it did not solve my problem. Another idea was to recompile my system wi= th=20 support for pulseaudio and ~/.asoundrc is: =2D----------------------------- pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type hw } =2D-------------------------- (I am in groups pulse and pulse-access groups) With same results. (ctl.!default with type hw instead of pulse because mixe= r=20 under xfce was "jumping" with sound level for every sound played) My next idea was to change aplay to paplay... then to change paplay with=20 aplay -Dpulse -N (non blocking mode...), and nothing... I haven't found anything on google... or I don't know what to look for :) My temporary solution is to pkill -9 aplay from cron every minute. I have tried to recreate this situation on my own in terminal with: for i in `seq 10`; do (aplay /usr/share/psi/sound/ft_complete.wav &); done but with no luck. lsmod: =2D--------------------------------------------------- Module Size Used by michael_mic 1484 8=20 hidp 9100 2=20 hid 34494 1 hidp rfcomm 24833 0=20 l2cap 26115 8 hidp,rfcomm bluetooth 41286 3 hidp,rfcomm,l2cap ipv6 207660 24=20 nf_conntrack_ipv4 8696 1=20 nf_defrag_ipv4 965 1 nf_conntrack_ipv4 iptable_filter 1154 1=20 ipt_addrtype 1398 0=20 xt_DSCP 1441 0=20 xt_dscp 1097 0=20 xt_string 890 0=20 xt_owner 782 0=20 xt_NFQUEUE 1523 0=20 xt_multiport 1217 0=20 xt_mark 795 0=20 xt_iprange 1062 0=20 xt_hashlimit 5147 0=20 xt_conntrack 1966 1=20 xt_connmark 1291 0=20 ip_tables 7935 1 iptable_filter snd_seq_dummy 1138 0=20 snd_seq_oss 20110 0=20 snd_seq_midi_event 5046 1 snd_seq_oss snd_seq 37161 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 4872 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 26034 0=20 snd_mixer_oss 10104 1 snd_pcm_oss snd_hda_codec_realtek 196127 1=20 usb_storage 28352 0=20 usb_libusual 9069 1 usb_storage snd_hda_intel 18465 3=20 snd_hda_codec 65149 2 snd_hda_codec_realtek,snd_hda_intel snd_hwdep 4232 1 snd_hda_codec snd_pcm 52948 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec ehci_hcd 27353 0=20 uhci_hcd 16412 0=20 r8187se 115923 0=20 snd_timer 14696 2 snd_seq,snd_pcm r8169 30385 0=20 snd_page_alloc 6110 2 snd_hda_intel,snd_pcm usbcore 115692 4 usb_storage,usb_libusual,ehci_hcd,uhci_hcd i2c_i801 6522 0=20 sg 18051 0=20 eeprom_93cx6 1272 1 r8187se mii 3765 1 r8169 joydev 7009 0=20 rtc_cmos 7151 0=20 rtc_core 11303 1 rtc_cmos rtc_lib 1962 1 rtc_core =2D--------------------------------------------- and USE flags for alsa: capsel@ai ~ $ emerge alsa-utils psi alsa-lib -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/alsa-lib-1.0.21a USE=3D"python -alisp -debug -d= oc"=20 ALSA_PCM_PLUGINS=3D"adpcm alaw asym copy dmix dshare dsnoop empty extplug=20 file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi n= ull=20 plug rate route share shm softvol" 790 kB [ebuild R ] net-im/psi-0.14-r1 USE=3D"crypt dbus extras jingle spell s= sl=20 webkit xscreensaver -debug -doc" LINGUAS=3D"pl -be -cs -de -fr -it -ja -pt_= BR - ru -sl -sv -ur_PK -zh_TW" 7,880 kB [ebuild R ] media-sound/alsa-utils-1.0.21-r1 USE=3D"nls -doc -minimal"= =20 1,050 kB I've runned out of ideas, please help me :) =2D-=20 Kacper Kopczy=C5=84ski