3

When I launch an application / a game and while I'm using it, it hangs up and I can't quit to return to desktop by Alt+Tab or something like this.

I want to return to desktop, open a terminal and kill the app / game.

Do you have any solution?

Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183

2 Answers2

5

You can open a TTY by pressing Ctrl+Alt+F1.

It'll look like a terminal, just login as usual with your login name and password.

Then two options to stop the game:

  • type ps -aef to identify the process id of your game (it should be one of the last entries) and kill it with kill -9 <pid>
  • type pkill <game name>

Once the game process is killed, you can reopen the Desktop session by pressing Ctrl+Alt+F7. (Note that opening a TTY did not stop or close your active sesssion)

Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183
1

You can use the Ubuntu "Desktop" shortcut. Press Ctrl+Super+d on your keyboard.

Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183
kashminder
  • 1,360
  • 1
  • 10
  • 16
  • 1
    What if one doesn't have a "super" key on the keyboard? – Brian Knoblauch Oct 14 '14 at 14:03
  • 1
    The 'Super' key is (usually) the Windows key on a Windows keyboard, or the Command key on a Mac. There's also [these options](http://askubuntu.com/questions/18120/an-alternative-to-the-super-key-on-an-old-keyboard) if your keyboard lacks any kind of Super key – Kai Oct 14 '14 at 15:14