can't play sound if two sound softwares are open [Solved]

Hardware Related Issues

Moderator: Moderators

can't play sound if two sound softwares are open [Solved]

Postby 22decembre » Fri Mar 12, 2010 17:22

Hello

I am new to sabayon and improving it every day yet.
Currently, my problem concern the audio. When I run several audio programs, I can only hear one of them.

An example would be more explicit :
I will have a look on a youtube page. If ten minutes after any sound finish, I open Amarok, no sound get out ! I will have to close the youtube page (whereas it doesn't makes any sound yet !)

For me, it looks like oss. But I don't know because I think I have never use it !

I have alsa compiled in the kernel, but no oss, and a intel inside card (acer laptop)

This is my /etc/modprobe.d/alsa.conf

Code: Select all
# ALSA portion
# OSS/Free portion

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

option snd-hda-intel model=acer

# OSS/Free portion - card #1
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.22 ---
alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
# --- END: Generated by ALSACONF, do not edit. ---
22decembre
Young Hen
 
Posts: 20
Joined: Fri Mar 12, 2010 8:21
Location: France

Re: can't play sound if two sound softwares are open

Postby Darksurf » Fri Mar 12, 2010 21:46

Ur audio issue may be related to the fact that everything is using pulseaudio now, and then goes into alsa.

try as root in a terminal "equo install pavucontrol paman" and use pavucontrol to change audio settings for pulse as per application. So apps that rely on KDE for audio privileges and not directly on alsa or pulse, now go to pulseaudio.
~ Y </0 5+Up1</ P30p[Ez +Ry 2 R34</ D1s? ~
User avatar
Darksurf
Old Dear Hen
 
Posts: 766
Joined: Sat Sep 16, 2006 4:01

Re: can't play sound if two sound softwares are open

Postby wolfden » Sat Mar 13, 2010 1:12

Make sure you are updated with latest stuff, a lot of changes from a fresh install

See also
viewtopic.php?f=56&t=19995
User avatar
wolfden
Sharecropper
 
Posts: 7830
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: can't play sound if two sound softwares are open

Postby Fitzcarraldo » Sat Mar 13, 2010 19:20

22decembre, most of the posts in the thread mentioned by wolfden tell you how to disable PulseAudio, which wouldn't solve your problem. if you're still not successful, have a look at the thread Getting PulseAudio to cooperate, which also shows some screen dumps of the PulseAudio configuration.

If you're lucky, PulseAudio works well: for example as I type this I am talking to someone on Skype with my headphones and at the same time I'm watching YouTube videos (about what we're discussing) that I can hear but he can't (i.e. it works as intended). I can also play music using a media player at the same time and can hear that too (but he can't). So PulseAudio does have its uses. We're discussing various sporting activities and watching different YouTube videos as we talk on Skype; PulseAudio makes this possible and allows us to do it simultaneously.
Sabayon Linux amd64, kernel 2.6.34-sabayon (dual-boot Windows 7)
KDE 4.4.4
Mesh Edge DX
- Intel Core i7 720QM (1.6 GHz)
- 4 GB DDR3
- 15.6" LCD (1920x1080)
- ATI Mobility Radeon HD 5650, 1 GB GDDR3
- 320 GB HDD
- Intel WiFi Link 5300
- Broadcom BT
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 3711
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: can't play sound if two sound softwares are open

Postby 22decembre » Sun Mar 14, 2010 15:26

By looking lshal, I have found several Oss entry, should it be ok ?

In another thing, should I erase some sections from the make.conf ?

Code: Select all
15:23:50 root@luciole:/var/lib/entropy/logs # emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 14 Mar 2010 11:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA LOKI-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -msse4 -mcx16 -msahf -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/kde/share/config/kdm /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -msse4 -mcx16 -msahf -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distcc distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-s -j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sabayon"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7Zip X a52 aac aalib accessibility acpi aiglx aim akonadi alsa amd64 artswrappersuid audiofile avahi bash-completion bidi bluetooth bzip2 cairo cdda cddb cdr chm cli config_wizard consolekit cpudetection cracklib crypt css cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi emboss encode extramodules fam fame fat ffmpeg fftw firefox firefox3 flac flash foomatic-db fortran freetype gcj gdbm gif gimpprint gnutls gphoto2 gpm gs gsm hal iconv icq imap inotify ipod ipv6 irc jabber jack jingle jpeg kde kdehiddenvisibility kickoff kipi kontact lame lastfm lcd libnotify live lm_sensors logitech-mouse lzo mad mail matroska mikmod mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mtp mudflap multilib musepack musicbrainz ncurses network new-login nfs nls nptl nptlonly nsplugin ntfs nvidia ogg openal openexr opengl openmp pam pcmcia pcre pda pdf perl png povray ppds pppd pulseaudio python qt3support qt4 quicktime rar readline reflection rss scanner sdl semantic-desktop session sip slp speex spell spl sse sse2 ssl startup-notification stream svg sysfs tcpd theora thunar tiff tracker truetype udev unicode upnp usb v4l v4l2 visualization voice vorbis wav weather wifi wmf x264 xcb xine xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
22decembre
Young Hen
 
Posts: 20
Joined: Fri Mar 12, 2010 8:21
Location: France

Re: can't play sound if two sound softwares are open

Postby 22decembre » Sun Mar 14, 2010 23:53

Solved : simply mv pulseaudio executable... !
22decembre
Young Hen
 
Posts: 20
Joined: Fri Mar 12, 2010 8:21
Location: France

Re: can't play sound if two sound softwares are open

Postby Darksurf » Mon Mar 15, 2010 0:12

lol, thats not solving anything, thats just an ugly hack with no fix in sight.

Oh, well. When 5.2 is released, you can just backup your important data and install 5.2 and this will be fixed.
We fixed this thanx to some great Sabayon Staff ;) , and now alsa and pulse play nice and work properly together as they should.

Of course this is just one route, this isn't the only way to fix ur issue.

Be sure to thank them for all the hard work and time they donate to fix issues like this to serve you up a great rolling release. ;)
~ Y </0 5+Up1</ P30p[Ez +Ry 2 R34</ D1s? ~
User avatar
Darksurf
Old Dear Hen
 
Posts: 766
Joined: Sat Sep 16, 2006 4:01

Re: can't play sound if two sound softwares are open

Postby 22decembre » Wed Mar 17, 2010 17:19

Every thing's really good now !

I have created /etc/asound.conf, which seems to be needed but not created natively !

By the way, I have compiled a kernel without oss in the alsa section. Do you think it's a good idea ? Really ? Pulseaudio doesn't makes another oss emulation layer, does it ?

Of course, I keep my previous kernel in the corner...
22decembre
Young Hen
 
Posts: 20
Joined: Fri Mar 12, 2010 8:21
Location: France

Re: can't play sound if two sound softwares are open

Postby Fitzcarraldo » Wed Mar 17, 2010 17:37

So 'PulseAudio Volume Meter (Capture)' and 'PulseAudio Volume Meter (Playback)' both show a moving bar when you are recording or playing audio now?

Regarding OSS, no need to disable anything in the kernel. I didn't and everything works fine.
Sabayon Linux amd64, kernel 2.6.34-sabayon (dual-boot Windows 7)
KDE 4.4.4
Mesh Edge DX
- Intel Core i7 720QM (1.6 GHz)
- 4 GB DDR3
- 15.6" LCD (1920x1080)
- ATI Mobility Radeon HD 5650, 1 GB GDDR3
- 320 GB HDD
- Intel WiFi Link 5300
- Broadcom BT
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 3711
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: can't play sound if two sound softwares are open

Postby 22decembre » Wed Mar 17, 2010 18:47

Yes, all is ok...

I will get back to my previous kernel... It was a try, in appearance nothing change !
22decembre
Young Hen
 
Posts: 20
Joined: Fri Mar 12, 2010 8:21
Location: France


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest