You are not logged in.

#1 2014-04-12 23:10:54

filk
Member
Registered: 2013-02-15
Posts: 15

[SOLVED] PulseAudio, sound only in first xsession

Hi,

After much tinkering, I can now run xmonad on vt1 and XFCE on vt2. I do this because XFCE plays much nicer with games than xmonad does. I launch XFCE like so:

startx xfce4 -- :1 vt2

However, sound only plays when I have the first session active. For example, if I start an episode of a TV show or a game in XFCE, I don't hear any audio until I switch back to xmonad, at which point I hear the audio from the XFCE session and the current session. I have no idea why this is happening, any ideas?

This is my .xinitrc:

#!/bin/sh

xsetroot -cursor_name left_ptr
setxkbmap -option caps:super
xrdb -merge ~/.Xresources

if [ -e /home/fil/.screenlayout/main.sh ]
then
    sh /home/fil/.screenlayout/main.sh
fi

# Applications to startup
pulseaudio --start
pasystray &

dropboxd &

udiskie --tray &

# Depending on WM
case $2 in
    xfce) exec startxfce4 ;;
    *)
        trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype percent --width 10 --height 12 --tint 0x000000 --transparent true --alpha 0 &
        xcompmgr -n &
        feh --bg-fill ~/Dropbox/wallpaper/close_fields-wide.jpg
        exec xmonad
    ;;
esac

*edit* I should add that I don't care if I can't hear audio across sessions, or if I can. As long as I can always hear the audio for a session in that session.

Last edited by filk (2014-04-13 06:20:28)

Offline

#2 2014-04-13 06:20:14

filk
Member
Registered: 2013-02-15
Posts: 15

Re: [SOLVED] PulseAudio, sound only in first xsession

I resolved the issue by adding myself to the "audio" group.

Offline

Board footer

Powered by FluxBB