Page 2 of 3

Re: HOWTO: Set up a seperate X-server (New)

Posted: 11 Jun 2008, 20:06
by bashar
Hobo Joe wrote: This works with or without Compiz.
Well it doesnt, at least on my ati card.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 11 Jun 2008, 20:34
by Hobo Joe
bashar wrote:
Hobo Joe wrote: This works with or without Compiz.
Well it doesnt, at least on my ati card.
I've never tried it with ATI, only nVidia.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 17 Jun 2008, 09:50
by Aztek
I got the separate x server running using det's script, but I'm having trouble launching from SpringLobby. When I tell SpringLobby to use the script it launches the separate x server, then immediately exits back to SpringLobby.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 18 Jun 2008, 05:40
by Aztek
I'm getting the following output when I try to start a game with SpringLobby executing spring.sh:

Code: Select all

/home/tim/.springlobby/script.txt: 1: [GAME]: not found
/home/tim/.springlobby/script.txt: 58: Syntax error: "}" unexpected

waiting for X server to shut down 06:38:49 PM: CLIENTSTATUS zerox_a 20
06:38:49 PM: OnUserStatus (  )
06:38:49 PM: calling m_serv.GetUser( nick ) 
06:38:49 PM: calling user.SetStatus( status ) 
06:38:49 PM: calling m_ui.OnUserStatusChanged( user ) 
06:38:49 PM: updating battles 
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.


Couldnt get a file descriptor referring to the console
06:38:50 PM: Spring closed.

Again, the script I'm using is:

Code: Select all

#!/bin/sh

if [ "$1" = "/V" ]; then
    echo "Spring 0.76b1"
else
    startx /usr/games/spring $* -- :1
fi

Re: HOWTO: Set up a seperate X-server (New)

Posted: 18 Jun 2008, 08:43
by Hobo Joe
Try the fix I posted.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 24 Jun 2008, 18:22
by clericvash
Hobo Joe wrote:To make it so you can alt-tab/switch workspaces with Spring WITHOUT a separate X server, all you have to do is put the game in windowed mode, then as soon as it starts, use your window manager hotkey to put the game into fullscreen(if it's not set, in Ubuntu, go to 'System > Preferences > Keyboard Shortcuts'). Everything works as it should, but now you can alt-tab. :)

I originally did this because Linux with dual monitors and full screen apps tends to freak out, but if you put apps into fullscreen with the window manager hotkey it'll only fullscreen them on ONE of your screens, instead of trying to stretch it across both.

This works with or without Compiz.
While this will give you alt-tab functionaility it will not help a single thing if spring crashes, and many like me lose their mouse when spring crashes.

Has anyone got an idea of how i can launch rhythmbox with spring in this seperate x-server and have it play automatically, that would rock.

Also ctrl + F7 or F9 did nothing at all, so much for switching :(

Re: HOWTO: Set up a seperate X-server (New)

Posted: 24 Jun 2008, 21:52
by bashar
clericvash wrote: Also ctrl + F7 or F9 did nothing at all, so much for switching :(
ctrl+alt+f7 or f9

Re: HOWTO: Set up a seperate X-server (New)

Posted: 24 Jun 2008, 23:38
by clericvash
bashar wrote:
clericvash wrote: Also ctrl + F7 or F9 did nothing at all, so much for switching :(
ctrl+alt+f7 or f9
That would be why, relatives post needs to be updated to reflect that.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 25 Jun 2008, 01:45
by LordMatt
clericvash wrote: Has anyone got an idea of how i can launch rhythmbox with spring in this seperate x-server and have it play automatically, that would rock.
rhythmbox-client --play

Re: HOWTO: Set up a seperate X-server (New)

Posted: 25 Jun 2008, 04:10
by Hobo Joe
clericvash wrote:
Hobo Joe wrote:To make it so you can alt-tab/switch workspaces with Spring WITHOUT a separate X server, all you have to do is put the game in windowed mode, then as soon as it starts, use your window manager hotkey to put the game into fullscreen(if it's not set, in Ubuntu, go to 'System > Preferences > Keyboard Shortcuts'). Everything works as it should, but now you can alt-tab. :)

I originally did this because Linux with dual monitors and full screen apps tends to freak out, but if you put apps into fullscreen with the window manager hotkey it'll only fullscreen them on ONE of your screens, instead of trying to stretch it across both.

This works with or without Compiz.
While this will give you alt-tab functionaility it will not help a single thing if spring crashes, and many like me lose their mouse when spring crashes.

Has anyone got an idea of how i can launch rhythmbox with spring in this seperate x-server and have it play automatically, that would rock.

Also ctrl + F7 or F9 did nothing at all, so much for switching :(
Yes, that's true. I usually just alt-ctrl-backspace in that situation, though. It's rare enough that it's not a huge deal.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 25 Jun 2008, 14:32
by clericvash
LordMatt wrote:
clericvash wrote: Has anyone got an idea of how i can launch rhythmbox with spring in this seperate x-server and have it play automatically, that would rock.
rhythmbox-client --play
Thanks but right now if i exit spring it will take my to my normal x-server, would this close as well? Or would it keep an open x-server simply for rhythmbox?

Re: HOWTO: Set up a seperate X-server (New)

Posted: 25 Jun 2008, 17:39
by LordMatt
That is the commandline interface for controling rythmbox, so it will simply start it. If you put the command in your wrapper script before the xinit, it will start in your desktop's xserver.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 25 Jun 2008, 18:37
by clericvash
What i mean is if i close spring and it goes back to my normal desktop, will another x-server still be playing rhythmbox and stealing some resources?

Re: HOWTO: Set up a seperate X-server (New)

Posted: 26 Jun 2008, 00:48
by LordMatt
LordMatt wrote:it will start in your desktop's xserver.
No.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 26 Jun 2008, 15:47
by clericvash
Now i'm confused.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 26 Jun 2008, 17:20
by LordMatt
When you start a separate x-server only spring starts with it. Your rhythmbox will start in the same x-server as your desktop and everything else.

Re: HOWTO: Set up a seperate X-server (New)

Posted: 27 Jun 2008, 08:26
by kalel90
Is there a way to get it to play a certain url?

Re: HOWTO: Set up a seperate X-server (New)

Posted: 27 Jun 2008, 08:28
by LordMatt

Code: Select all

rhythmbox-client --help

Re: HOWTO: Set up a seperate X-server (New)

Posted: 27 Jun 2008, 17:06
by bashar
About using a second X server, I still have a problem :
When Im in game and switch back to the 1st server (ctrl alt f7), it seems that my connection on the spring server drop (ie people see 'bashar lost connection" and when I get back using ctrl-alt-f9 the X server is dead).

Any clue?

Re: HOWTO: Set up a seperate X-server (New)

Posted: 27 Jun 2008, 17:18
by LordMatt
Are you sure it isn't F8 that you want? I try to minimize switching between x-servers as sometimes I can't get back into mine (and always it takes a while to switch).