0

When I had windows my windows button worked like if you was in a game and needed to read somting or something else not in game you could press the windows button, and you did not close the whole game, in ubuntu when you take a screenshot or press the windows button, I can't get in game again. I have to restart the game, is there anny possibilty to change it, so it works just the same as in windows? I like ubuntu, wont change.

2
  • 1
    Hi & welcome. Be more constructive, don't mind than is Ubuntu like game.
    – user45853
    Feb 15, 2013 at 22:02
  • What game(s) are you playing? What happens when you press Super (Windows logo) key? Feb 16, 2013 at 0:27

1 Answer 1

0

Well there is no effective solution to this problem. It happens because the graphics back-end of Linux--the X window system--is very old software and was not built with this capability. It seems that a new graphics back-end is being developed, but until so, people have resigned to using workarounds.

The workaround

You can run the game in an X window other than the desktop's, and change between one and the other with the X window hotkeys, that go from ControlAltF1..F9 (or so it seems).

To open a new X window, you can follow these steps:

  1. Press ControlAltF1
  2. Run xinit -- :1. This will open a new X window in display :1 (your desktop is currently addressed with display :0). You will be now taken to a black screen, with a small white terminal.
  3. Now run ck-launch-session, this will enable audio.
  4. Optionally you can use the setxkbmap program to use your keyboard settings in the new window, but you'll have to look into that yourself. I use setxkbmap -layout "us" -variant "altgr-intel", but that's me.
  5. Now run your game through the terminal.

    • You can return to your desktop pressing ControlAltF7
    • You can return to your game pressing ControlAltF8

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .