View topic - ubuntu how to get back to desktop while ingame ?



All times are UTC + 1 hour


Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 23 Sep 2010, 15:41 
User avatar

Joined: 04 Jul 2006, 01:43
Location: Northern Ireland
Hi all

alt + tab or windows "super" key dont work via ubuntu..

how do I get back to desktop while ingame with ubuntu ?
(only way is to quit current game)
Cheers

Jonny


Top
 Offline Profile  
 
PostPosted: 23 Sep 2010, 16:45 
Redacted
User avatar

Joined: 11 Jul 2007, 16:47
run in a window and use your window manager method for fullscreen


Top
 Offline Profile  
 
PostPosted: 23 Sep 2010, 17:28 
Conflict Terra Developer
User avatar

Joined: 29 Aug 2009, 19:12
Location: Also Richmond
I'm new to linux and am currently having a similarish problem. Spring thinks my dinky laptop screen should be the screen it is displayed on. Not the nice giant one i have plugged into it. I am currently running in windowed mode right now to get it on the bigger screen. I don't like windowed mode though. Would what your suggesting work for my problem as well? If so could you explain it a bit more in detail please.


Top
 Offline Profile  
 
PostPosted: 23 Sep 2010, 20:07 
Lobby Developer
User avatar

Joined: 25 Sep 2006, 12:56
install a program called "devilspie", set spring to be windowed
then do those simple commands:
Code:
mkdir ~/.devilspie
cd ~/.devilspie
wget http://filebin.graasmilk.net/Spring%20Fullscreen.ds

press alt F2
in the run prompt, enter devilspie


Top
 Offline Profile  
 
PostPosted: 24 Sep 2010, 09:14 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
FAQ-ified:
http://springrts.com/wiki/FAQ:trouble#G ... n_Linux.3F


Top
 Offline Profile  
 
PostPosted: 24 Sep 2010, 10:18 

Joined: 15 Aug 2010, 12:50
What is the difference between this script and using your window manager to put the window in full screen mode like aegis said?

By the way, is there a chance Spring get rid of this ÔÇ£featureÔÇØ (the full screen lock thing)? I bet every Linux user get stuck by it at least once.

@oksnoop2: In theory you can launch an application on the screen you want by setting the DISPLAY variable. You can try this:
Code:
DISPLAY=:0.1 spring


Top
 Offline Profile  
 
PostPosted: 24 Sep 2010, 12:30 
Lobby Developer
User avatar

Joined: 25 Sep 2006, 12:56
weepee wrote:
What is the difference between this script and using your window manager to put the window in full screen mode like aegis said?

they are the same thing, my script simply automates it based on a rule on window name

weepee wrote:
By the way, is there a chance Spring get rid of this ÔÇ£featureÔÇØ (the full screen lock thing)? I bet every Linux user get stuck by it at least once.

no, the bug is in the SDL library, which I reckon is used by 99% of the games in linux, therefore all games in linux share the same flaw; SDL needs be fixed instead or an alternative be used ( highly unlikely since it'd require some major rewriting )

weepee wrote:
@oksnoop2: In theory you can launch an application on the screen you want by setting the DISPLAY variable. You can try this:
Code:
DISPLAY=:0.1 spring

this is more awkward, you'd have to switch X session which is much slower, plus you'd have to do a mix of ctrl alt Fkey + alt tab


Top
 Offline Profile  
 
PostPosted: 24 Sep 2010, 13:28 

Joined: 15 Aug 2010, 12:50
BrainDamage wrote:
no, the bug is in the SDL library, which I reckon is used by 99% of the games in linux, therefore all games in linux share the same flaw; SDL needs be fixed instead or an alternative be used ( highly unlikely since it'd require some major rewriting )
Yes indeed, my question should have been ÔÇ£Is it possible to get rid of SDL for the full screen management part?ÔÇØ.

BrainDamage wrote:
this is more awkward, you'd have to switch X session which is much slower, plus you'd have to do a mix of ctrl alt Fkey + alt tab
I was not thinking about another X session (which would require DISPLAY=:1). IsnÔÇÖt a screen plugged into a laptop seen as a second screen on the same display (or X session)?


Top
 Offline Profile  
 
PostPosted: 26 Sep 2010, 11:14 
User avatar

Joined: 04 Jul 2006, 01:43
Location: Northern Ireland
cool.

thanks for replies..

il give that a go next time I load the ubuntu box and report back..

everything seems to work nicer in windows... even tho ima major ubuntu fan..

Jonny


Top
 Offline Profile  
 
PostPosted: 16 Oct 2010, 12:10 
User avatar

Joined: 26 Dec 2008, 14:26
Location: Sweden
Instead of learning scripting and all that that the others suggested there is a much easier way.

1: Make spring windowed
Go to your "Spring Settings". Make sure that "Expert Mode" is chosen. Then go to "Render quality/Video mode" and uncheck "Run full-screen".
Now the game will run always in a window.

2: Make a shortcut to un/fullscreen
Go to System>Preferences>Keyboard Shortcuts. There under "Window Management" should be an option "Toggle fullscreen mode" and next to that there is a key shortcut that you can change to your own preferences. I have set ALT+F to be my shortcut.

So next time you run spring just press the shortcut(ALT+F in my case) and it should work. :)

p.s. now you can run fullscreen ANY program by just pressing the key shortcut

edit: by the way if that doesn't work, while you are in the "Keyboard Shortcuts" click on "Add" and as Name give something like "Toggle to Fullscreen". As command add this:
Code:
wmctrl -r :ACTIVE: -b toggle,fullscreen

That needs wmctrl that you can download from Synaptic. I just checked it and that's what I use.


Top
 Offline Profile  
 
PostPosted: 19 Jan 2011, 14:59 
User avatar

Joined: 14 Oct 2010, 14:19
Pithikos - so simple. Thanks.


Top
 Offline Profile  
 
PostPosted: 11 Feb 2011, 15:43 

Joined: 19 May 2008, 17:51
will it work if spring resolution is greater than desktop resolution ? my video driver (catalyst 11.1) does not allow switching in GL mode to a resolution higher than the current


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.