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?

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)

1

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

kashminder
  • 1,380