23

Right now I'm running Trine, which is a game using OpenGL running in fullscreen, in Ubuntu 10.10.

What I would like to be able to do is Alt+Tab out of the game to be able to browse the web, check any IM messages, etc. while paused.

However, just Alt+Tab'ing doesn't do anything, so I have to quit the game every time I want to check something.

Is there any way that I can minimize a fullscreen game? I know I can probably run it in windowed mode, but then I would have to hide the panels when playing - since the game would otherwise be hidden underneath. Plus, that's just an ugly solution.

Braiam
  • 66,947
  • 30
  • 177
  • 264
Tommy Brunn
  • 9,603
  • 6
  • 32
  • 38

7 Answers7

10

You can move to another desktop by clicking CTRL+ALT+ or .

It will not minimize the game, but it should move you to another desktop where you can surf.

Octavian Helm
  • 14,265
  • 8
  • 56
  • 62
enedene
  • 1,639
  • 4
  • 19
  • 31
5

If you run it in windowed mode, you can set it to always on top and the same size as your desktop so the panels are not showing, but allows easy alt+tab. This is essentially borderless windowed mode.Try wmctrl. Something like:

#!/bin/bash
trine &
#resize to 1024x768 (or whatever size you want)
wmctrl -r 'Trine' -e 1,0,0,1024,768
#make it on top
wmctrl -r 'Trine' -b add,above
#activate it
wmctrl -a 'Trine'
balloons
  • 1,499
  • 10
  • 27
  • Interesting, but won't the Alt + Tab keypress be captured by the game itself? – Oxwivi Nov 05 '11 at 18:08
  • I suppose it's possible the game will still eat the commands. I used to do this for another game that would crash when I alt+tab in fullscreen mode (it was also opengl), so I just ran it in this configuration and had no more issues. Another problem with full screen mode for me was it would often blank my second monitor. This also prevented that from occurring. – balloons Nov 05 '11 at 18:23
3

Start it in new x-server, and switch desktop by keys CTRL+ALT+F7 or CTRL+ALT+F8.

Type xinit /path/to/the/game/executable -- :1 into a terminal.

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
r.1
  • 92
  • 5
  • 5
    Why not provide short instructions please? – turbo Jul 08 '11 at 23:10
  • 4
    This is useless without instructions. – RolandiXor Aug 28 '11 at 19:21
  • 1
    Have to agree on not having instructions kinda sucks. – Bruno Pereira Nov 10 '11 at 16:26
  • Fails for me: `X: user not authorized to run the X server, aborting.` – Sparhawk Feb 08 '14 at 00:14
  • @Sparhawk this guy gave good instructions http://ubuntuforums.org/showthread.php?t=2101504 – Jerinaw Dec 24 '14 at 18:06
  • I have to also say that this only partial works for me. I use Steam, and tried playing Dota2. I ran the command from the command line, everything seemed to work until I got in game and for w.e reason some keys were not working. I could not use w,a,s,d to move the camera around. The mouse would not more the camera around. Everything else seemed to work. No idea what the problem could be. I checked key mappings in the game, even tried to remap them but nothing worked. – Jerinaw Dec 24 '14 at 18:09
1

I have found a very dirty solution for this problem. Insert a USB-Stick, a window with the file manager will pop up, your fullscreen application will be inactive. (Works only if it's not configured to do nothing instead...)

Anonymous
  • 11
  • 1
1

The game has a bug that you need to report.

psusi
  • 37,033
  • 2
  • 68
  • 106
0

Should be able to do CTRL+ALT+ or CTRL+ALT+ if that doesn't work then something might be wrong with your game.

snoop
  • 4,030
  • 8
  • 39
  • 58
zkriesse
  • 1,425
  • 13
  • 25
0

I used to face this problem way too regularly and as far as I know it's a problem that needs to be addressed however it may be possible to use Alt+Enter to take the game out of fullscreen mode and then Alt+Tab. Pressing Alt+Enter again when the game has focus should then put it back into fullscreen mode.

gman
  • 2,206
  • 4
  • 26
  • 39
Clueless
  • 53
  • 1
  • 5