How to enable Ctrl+Alt+Backspace in Ubuntu 11.04

Posted: May 4, 2011 in Ubuntu
Tags: ,

Hello everybody.

Sometimes we need to make some changes in Ubuntu that require restarting the X Server.

One way to restart the X server is running the following command in the shell:

sudo /etc/init.d/gdm restart

Another way to do that is configuring a shortcut Ctrl+Alt+Backspace that is disabled by default in Ubuntu.
In the terminal, type:

setxkbmap -option terminate:ctrl_alt_bksp

Now, to test that, hold Ctrl+Alt+Backspace to restart the X Server. However, to keep this functionality working for each Ubuntu startup, open the terminal and type:


It will be opened a window like this one:

Click on add button and another window like this one will be opened:

Fill up for each field.

Name: Ctrl_Alt_Backspace
Command: setxkbmap -option terminate:ctrl_alt_bksp
Comment: Restart the X Server

Click on add button and after on close button. That’s it, all the time you start the Ubuntu and hold those keys, the X Server will be restarted.

See you next time.

  1. J says:

    ctrl+alt+backspace (approximate) equivalent is now ctrl+print screen+k

  2. J says:

    I meant alt gr+print screen+k, sorry

  3. From Argentina: very very thanks for your tip, I need it. It’s usefull

  4. elias says:

    if you use: gr+print screen+k to 12.04 for kill X server

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s