Jan 11, 2013

openSUSE Forums: separate X server & sound

openSUSE Forums
openSUSE Forums
separate X server & sound
Jan 11th 2013, 08:27

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)

Code:

#!/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

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: