Public bug reported:

This bug affects Linux Mint 15 and Ubuntu 13.04.

Upon loading, the client can play audio through vlc, totem, etc. If two
audio programs try to play audio at the same time, it crashes the sound
for the client until the thin client is rebooted ( the issue is not
fixed upon a logout/login).

After much talking on #ltsp and #pulseaudio, seeing that debian suffered
a similar issue, here is the fix.

https://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-
trunk/revision/2483/client/initscripts/ltsp-init-common

This needs to be applied to the ubuntu branch as well.

Here is the updated start_sound function with the added line highlighted
with asterisks (*)

start_sound() {
    if boolean_is_true "$SOUND" ; then
        case "$SOUND_DAEMON" in
            pulse|'') # The default when no value is set
                # Explicitly allow pulse user access to sound devices, ignore 
errors
                if [ -x /usr/bin/setfacl ]; then
                    /usr/bin/setfacl -m u:pulse:rw /dev/snd/* > /dev/null 2>&1
                fi

                # Requires 0.9.16+ which uses module-udev-detect instead of
                # module-detect and module-stream-restore instead of
                # module-volume-restore
                PULSE_DETECT=module-udev-detect
                PULSE_VOLUME_RESTORE=module-stream-restore
                /usr/bin/pulseaudio --system \
                --exit-idle-time=-1 \
                --disable-shm \
                --no-cpu-limit \
                --resample-method=trivial \
                --high-priority \
                --log-target=syslog \
                -L $PULSE_DETECT \
                -L "module-native-protocol-tcp auth-anonymous=1" \
                -L $PULSE_VOLUME_RESTORE \
                -L module-rescue-streams \
                -L "module-native-protocol-unix auth-anonymous=1" \
*****      -L module-suspend-on-idle \     *****
                -n &
                ;;
            [Ff][Aa][Ll][Ss][Ee]|[Nn]|[Nn][Oo])
                # Do not do anything if SOUND_DAEMON is False, N, or No
                true
                ;;
            *)
                warn "Unable to start unsupported sound daemon: '$SOUND_DAEMON'"
                ;;
        esac
    fi
}

** Affects: ltsp
     Importance: Undecided
         Status: New

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: pulseaudio

** Also affects: ubuntu
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1212714

Title:
  audacity causes audio to fail on client until reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ltsp/+bug/1212714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to