separate X server & sound

hi,

so i’ve upgraged to 11.2 and wanted to play good ol’ Tiberium Sun. since it’s only capable of low resolutions i’ve always used the script below to start a separate X-Server and run it through schedtool and ck-launch-session. however with 11.2 i’ve got 2 problems which weren’t there before:

  1. no sound on the new X. the sound is only outputted on the main X (when i switch back)
  2. can’t switch back to the new X with strg+alt+F8 (or any other combination). where did it go?

ideas anyone?

running openSuse 11.2
with kernel 3.7.1-1-desktop from factory
with NVIDIA drivers
on XFCE (with Gnome3 it’s the same)


#!/bin/sh
# run $1 in new x with wine
# if $2 given $1 is prefix

# run on one [specific] processor core
# /usr/sbin/schedtool -a 0x2

# https://wiki.archlinux.org/index.php/ConsoleKit#ck-launch-session
# initiate X session with ConsoleKit
# This starts $1 with proper environment variables so it and
# its children are able to use ConsoleKit. 
# /usr/bin/ck-launch-session $1

if  -n "$2" ]; then
    WINEPREFIX=$1 xinit /usr/sbin/schedtool -a 0x2 -e /usr/bin/ck-launch-session /usr/bin/wine "$1$2" -- :1
else
    xinit /usr/sbin/schedtool -a 0x2 -e /usr/bin/ck-launch-session /usr/bin/wine "$1" -- :1
fi

I hope you mean 12.2 (or you have acess to a Tardis perhaps :))

and wanted to play good ol’ Tiberium Sun. since it’s only capable of low resolutions i’ve always used the script below to start a separate X-Server and run it through schedtool and ck-launch-session. however with 11.2 i’ve got 2 problems which weren’t there before:

  1. no sound on the new X. the sound is only outputted on the main X (when i switch back)

Are you using PulseAudio?

 man pax11publish

Maybe this will work

pax11publish -D :1 -e

On 2013-01-11 09:36, brian j wrote:
>
> hi,
>
> so i’ve upgraged to 11.2 and wanted to play good ol’ Tiberium Sun.

You mean downgraded. 11.2 is obsolete.

> running openSuse 11.2

So, you are really using 11.2, not 12.1.


Cheers/Saludos
Carlos E. R. (12.1 test at Minas-Anor)

**** it. sorry i meant 12.2

yeah, meant 12.2

yep

nope. makes mplayer playback freeze though.

Some reading for you:

freedesktop.org - Software/PulseAudio/Documentation/User/SystemWide

but do note some security issues

Running PulseAudio in system-wide mode has some limitations:

  • All users with access to the sound server cann kill/modify all sinks/sources and streams of all other connected clients
  • There is only a single namespace for cached sound samples, i.e. there can be only a single Gnome event sound profile active at the same time

It has some disadvantages:

  • Worse security, because the user can now command a server app running under another user name. He could even load/unload modules from that sound server
  • Settings like the stored volume levels managed by module-volume-restore are no longer per-user but system-wide

freedesktop.org - Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide