Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] PulseAudio Needs restarting after Logging into kde
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Sun Jan 27, 2013 3:12 pm    Post subject: [SOLVED] PulseAudio Needs restarting after Logging into kde Reply with quote

I am using kde 4.9.5 and pulseaudio, and everything has been running flawlessly until the recent round of updates. When I log into kde, after the desktop and applications are loaded, the startup sound doesn't play. If I check the process list, pulseaudio is running with two instances. If I kill them both, one process re-spawns and once I have selected the (now available) "PulseAudio Sound Server" in the configuration list, everything starts to work properly. I have run revdep-rebuild, and also recompiled pulseaudio after the udev update. In the end I recompiled everything, but still the problem persists. Interestingly, the first instance of pulseaudio is started before X is running. I didn't think that was supposed to happen, or is this because I log a terminal in as root and therefore it starts for that instance?

Here are the pulseaudio flags:
Code:
media-sound/pulseaudio
     Available versions:  1.1-r1 2.1-r1 (~)3.0 **9999 {{+X +alsa +asyncns avahi bluetooth +caps dbus doc equalizer +gdbm +glib gnome gtk ipv6 jack libsamplerate lirc neon +orc oss realtime ssl system-wide systemd tcpd test +udev +webrtc-aec xen}}
     Installed versions:  3.0(14:44:57 27/01/13)(X alsa asyncns caps dbus gdbm glib gnome gtk ipv6 jack orc ssl tcpd udev webrtc-aec -avahi -bluetooth -doc -equalizer -libsamplerate -lirc -neon -oss -realtime -system-wide -systemd -test -xen)
     Homepage:            http://www.pulseaudio.org/
     Description:         A networked sound server with an advanced plugin system


There are a couple of other pulseaudio messages in the system log (the pids of running instances of pulseaudio were 3007 and 13229):

Code:
Jan 27 14:19:30 tristan start-stop-daemon: pam_unix(start-stop-daemon:session): session opened for user timidity b
y (uid=0)
Jan 27 14:19:30 tristan cron[2978]: (CRON) STARTUP (V5.0)
Jan 27 14:19:33 tristan pulseaudio[3004]: [pulseaudio] authkey.c: Failed to open cookie file '/var/lib/timidity/.c
onfig/pulse/cookie': No such file or directory
Jan 27 14:19:33 tristan pulseaudio[3004]: [pulseaudio] authkey.c: Failed to load authorization key '/var/lib/timid
ity/.config/pulse/cookie': No such file or directory
Jan 27 14:19:34 tristan acpid: client 2531[0:0] has disconnected
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session b
us: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (a
rgument: ""): initialization failed.
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] authkey.c: Failed to open cookie file '/var/lib/timidity/.c
onfig/pulse/cookie': No such file or directory
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] authkey.c: Failed to load authorization key '/var/lib/timid
ity/.config/pulse/cookie': No such file or directory
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] main.c: Module load failed.
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.D
Bus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jan 27 14:19:35 tristan pulseaudio[3007]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error
.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jan 27 14:19:38 tristan login[2998]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jan 27 14:19:39 tristan login[3025]: ROOT LOGIN  on '/dev/tty1'
Jan 27 14:20:01 tristan cron[3034]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 27 14:29:30 tristan acpid: client connected from 12842[0:0]
Jan 27 14:29:30 tristan acpid: 1 client rule loaded
Jan 27 14:29:30 tristan kernel: [  676.359267] nvidia: module license 'NVIDIA' taints kernel.
Jan 27 14:29:30 tristan kernel: [  676.359270] Disabling lock debugging due to kernel taint
Jan 27 14:29:30 tristan kernel: [  676.366404] vgaarb: device changed decodes: PCI:0000:02:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
Jan 27 14:29:30 tristan kernel: [  676.366568] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  313.18  Wed Jan  9 17:02:09 PST 2013
Jan 27 14:29:30 tristan acpid: client connected from 12842[0:0]
Jan 27 14:29:30 tristan acpid: 1 client rule loaded
Jan 27 14:29:38 tristan kernel: [  684.759551] kdeinit4 (12858) used greatest stack depth: 3576 bytes left
Jan 27 14:29:44 tristan kdm: :0[12854]: pam_unix(kde:session): session opened for user paul by (uid=0)
Jan 27 14:29:47 tristan acpid: client 12842[0:0] has disconnected
Jan 27 14:29:51 tristan acpid: client 12842[0:0] has disconnected
Jan 27 14:29:54 tristan login[2999]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jan 27 14:29:54 tristan login[12961]: ROOT LOGIN  on '/dev/tty2'
Jan 27 14:30:01 tristan cron[12968]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 27 14:30:03 tristan dbus[2360]: [system] Activating service name='org.freedesktop.UPower' (using servicehelper)
Jan 27 14:30:03 tristan dbus[2360]: [system] Successfully activated service 'org.freedesktop.UPower'
Jan 27 14:30:04 tristan dbus[2360]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jan 27 14:30:04 tristan dbus[2360]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jan 27 14:30:09 tristan acpid: client connected from 12842[0:0]
Jan 27 14:30:09 tristan acpid: 1 client rule loaded
Jan 27 14:30:09 tristan acpid: client connected from 12842[0:0]
Jan 27 14:30:09 tristan acpid: 1 client rule loaded
Jan 27 14:30:38 tristan pulseaudio[13319]: [pulseaudio] pid.c: Daemon already running.
Jan 27 14:30:38 tristan pulseaudio[13321]: [pulseaudio] pid.c: Daemon already running.
Jan 27 14:30:40 tristan kernel: [  746.758435] pactl (13323) used greatest stack depth: 3464 bytes left
Jan 27 14:30:42 tristan kernel: [  748.783794] uhci_hcd 0000:00:1d.0: release dev 2 ep82-INT, period 1, phase 0, 16 us


here is emerge --info output:
Code:
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.7.4-gentoo x86_64)
=================================================================
System uname: Linux-3.7.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Sat, 26 Jan 2013 23:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage lisp java-overlay science
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/lisp /var/lib/layman/java-overlay /var/lib/layman/science"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran garmin gdbm gif gimpprint git gpm gpsd gtk iconv ipv6 jack java jpeg kde kdrive kipi kpathsea lcdfilter lcms ldap libnotify lm_sensors mad mmx mng modules mozbranding mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma plugins png policykit ppds pulseaudio qt3 qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification subversion svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" NETBEANS_MODULES="*" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Last edited by paulj on Wed Jan 30, 2013 8:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Jan 30, 2013 8:12 pm    Post subject: Reply with quote

I have finally solved it. I had timidity and mpd starting as daemons in the default runlevel. These were both previously there, but actually timidity normally reported as crashed. I have previously had a couple of attempts to fix it, but left it for another day (that'll teach me! :oops: ). Anyway, I noticed that it no longer reported as "crashed" following the recent updates, and in order to run, it was staring an instance of pulseaudio. I guess this was not accessible when I logged in, so another instance of pulseaudio started, which of course couldn't access the hardware. Stopping both instances allowed mine to respawn, and setup correctly.

After removing both applications from the default runlevel, everything started properly. I am now going to put mpd back in, because that always ran previously. I will report back if the problem returns. I suppose if I want timidity, I need to run it at user level and not as a daemon.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Jan 30, 2013 8:29 pm    Post subject: Reply with quote

For completeness - mpd added back to default run level, and everything still works. I have mpd configured to output audio to alsa - I never changed it when changing to pulseaudio.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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