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

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

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

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

Post by bashar »

Hobo Joe wrote: This works with or without Compiz.
Well it doesnt, at least on my ati card.
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

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

Post 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.
Aztek
Posts: 36
Joined: 10 Jun 2008, 04:53

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

Post 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.
Aztek
Posts: 36
Joined: 10 Jun 2008, 04:53

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

Post 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
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

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

Post by Hobo Joe »

Try the fix I posted.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

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

Post 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 :(
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

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

Post by bashar »

clericvash wrote: Also ctrl + F7 or F9 did nothing at all, so much for switching :(
ctrl+alt+f7 or f9
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

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

Post 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.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post 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
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

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

Post 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.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

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

Post 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?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post 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.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

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

Post 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?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post by LordMatt »

LordMatt wrote:it will start in your desktop's xserver.
No.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

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

Post by clericvash »

Now i'm confused.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post 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.
User avatar
kalel90
Posts: 12
Joined: 23 Jul 2007, 06:29

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

Post by kalel90 »

Is there a way to get it to play a certain url?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post by LordMatt »

Code: Select all

rhythmbox-client --help
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

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

Post 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?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

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

Post 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).
Post Reply

Return to “Linux”