You are not logged in.

#1 2010-08-05 08:25:18

bagheera
Member
Registered: 2009-06-13
Posts: 84

Minimize fullscreen SDL applications in KDE

Hi, is there any way to minimize fullscreen SDL application in KDE4 ?
I can open a virtual terminal CTRL+F$ keys, but none of DE keys are working.

It's Warzone2100 game, in my case.


arch linux user

Offline

#2 2010-08-05 11:05:31

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: Minimize fullscreen SDL applications in KDE

Probably not, since it grabs all the input. It is an exclusive fullscreen.

Offline

#3 2010-08-05 15:24:51

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

Re: Minimize fullscreen SDL applications in KDE

As a workaround, i usually open another X session with a little script:

slimer ~ # cat $(which xgame.sh)
#!/bin/bash
X :1 -ac -br &
export DISPLAY=:1
kwin & #Optional, and maybe using something lighter like openbox is better
xterm -e $@
kill `cat /tmp/.X1-lock`

Then i just run xgame.sh <GameExecutableHere>
So that i can switch to desktop with ctrl-alt-f7 and game with ctrl-alt-f8

Last edited by kokoko3k (2010-08-05 15:26:01)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2010-08-05 15:28:25

tum
Member
Registered: 2010-05-18
Posts: 40

Re: Minimize fullscreen SDL applications in KDE

#Warzone2100
Have you tried Alt+Enter and then minimizing it ?

#Fullscreen games
I use second Xserver for fullscreen games .

"xinit /usr/bin/warzone2100 -- :1" would help if you don't care about 40Mb of RAM .

So Ctrl+Alt+F7 is for your first Xserver and Ctrl+Alt+F8 for second (if you are using 6 tty's) .

There are more infos on arch wiki about games .

Offline

#5 2010-08-05 15:35:30

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Minimize fullscreen SDL applications in KDE

I uploaded two packages to AUR with a no keyboard grab patch that may help:
sdl (no longer maintained): http://aur.archlinux.org/packages.php?ID=23052
libx11: http://aur.archlinux.org/packages.php?ID=39351

Offline

#6 2010-08-05 22:33:13

patrickaupperle
Member
Registered: 2008-12-11
Posts: 71

Re: Minimize fullscreen SDL applications in KDE

Amazingly, being able to minimize full screen games is the thing I miss most about windows. If anyone knows a keyboard shortcut that will minimize a game, please share.

Offline

#7 2010-08-06 07:00:46

bagheera
Member
Registered: 2009-06-13
Posts: 84

Re: Minimize fullscreen SDL applications in KDE

tum wrote:

#Warzone2100
Have you tried Alt+Enter and then minimizing it ?

#Fullscreen games
I use second Xserver for fullscreen games .

"xinit /usr/bin/warzone2100 -- :1" would help if you don't care about 40Mb of RAM .

So Ctrl+Alt+F7 is for your first Xserver and Ctrl+Alt+F8 for second (if you are using 6 tty's) .

There are more infos on arch wiki about games .

Right, alt+enter, totally forget about that. It's working, but i risk crashing game, it's happen from time to time.

about xinit:

bagheera@tux:~$ xinit /home/bagheera/warzone2100/src/warzone2100 --:1


Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.


Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 

^C
xinit:  unexpected signal 2.

Which wiki page u r referring to? There's not much info on http://wiki.archlinux.org/index.php/Games

kokoko3k's workaround works just fine, thanks!


arch linux user

Offline

#8 2010-08-06 13:29:38

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

Re: Minimize fullscreen SDL applications in KDE

bagheera wrote:

about xinit:

bagheera@tux:~$ xinit /home/bagheera/warzone2100/src/warzone2100 --:1


Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.


Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 

^C
xinit:  unexpected signal 2.

I think you just forgot to add the space between "--" and ":1"
Also, for the xinit way to work for your needs, you'll have to check your .xinitrc as it will be executed at xinit startup.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#9 2010-08-06 14:39:55

tum
Member
Registered: 2010-05-18
Posts: 40

Re: Minimize fullscreen SDL applications in KDE

Odd , i thought it was more info on archlinux wiki about fullscreen games , sorry .
Anyway :
http://wiki.archlinux.org/index.php/Gaming
http://aur.archlinux.org/packages.php?d … =1&ID=4435

Offline

Board footer

Powered by FluxBB