Disable Shift-Backspace from Restarting XGL

This has become sooo annoying. I am always accidentally pressing Shit Backspace. Here’s how you can turn off this ‘feature’

xmodmap -e ‘keycode 22 = BackSpace BackSpace Terminate_Server’


30 Responses to “Disable Shift-Backspace from Restarting XGL”


  1. 1 Ken McLennan Friday December 15, 2006 at 1:30 am

    Yup, very annoying indeed! Cheers for that. I should point out to anyone cutting and pasting the above that they’ll need to change the quote characters to get it to work… and it needs to be executed at the start of each session too…

  2. 2 Dave Saturday December 16, 2006 at 3:26 pm

    How do you get it to execute at the beginning of each session?

  3. 3 Sutekh Sunday December 17, 2006 at 8:41 pm

    @ Ken. For me it worked with those quote characters. And you are right, you do need to use the command at the start of each session.

    I eventually ditched XGL altogether for AIGLX.

    @ Dave. Just thinking off the top of my head; You should be able to add the command to a startup script. You might be able to incorporate it with the session file (if using a login manager, GDM, etc) or simply as a bash script that is run on startup. I might try one of these myself.

    You could always consider AIGLX instead.

  4. 4 KeKeSeB Friday December 22, 2006 at 9:57 am

    Thanks a lot… This is really awful

  5. 5 zabador Monday December 25, 2006 at 3:28 pm

    thanks!!!! god that “feature” is a pain…. Now if only there was a way to make this a perminant alteration….

  6. 6 Andrew Tuesday January 2, 2007 at 6:50 am

    I always hit Shift+Backspace while typing. To make this a permanent fix, you can easily add this to ${HOME}/.bashrc. Voila! No more Shift+Backspace problems!!!

  7. 7 Leon Monday January 8, 2007 at 9:24 pm

    Ok, this is how i do it

    enter the following

    xmodmap -e “keycode 22 = BackSpace BackSpace”

    then to make it a permanent change create or edit the ~/.Xmodmap file to contain the following

    keycode 22 = BackSpace BackSpace

    and your done. Another method would be if your using Gnome or a wm that lets you setup the keyboard layout all you have to do is setup your keyboard to match your country’s or preferred layout

    so in Gnome you would go system–>keyboard–>Layouts the select your layout from there. or if you chose you could use xmodmap for that too.

    xmodmap /usr/share/xmodmap/xmodmap. country code would be “uk” or “us” or which other layout you prefer.

  8. 8 Sutekh Wednesday January 10, 2007 at 4:08 pm

    @ Andrew. That’s the solution I was thinking. I still use XGL at work, and that has saved me repeated typing, thanks for that!

    @ Leon. I don’t have an Xmodmap file, can that command be simply pasted in a new one, or is there any formatting required?

  9. 9 Opie Thursday January 11, 2007 at 10:42 am

    I am having the same problem when I type ShiFt Backspace, as opposed to what the author of the post says he types. But I’ll see if this fixes my problem too.

  10. 10 wh0rd Tuesday January 23, 2007 at 8:48 pm

    I went to Menu > System > Preferences > Keyboard and selected the Layout tab. I then switched the Keyboard Model from Generic 101-key PC to Generic 105-key (Intl) PC. I no longer have the Shift + Backspace issue.

    -Thanks to w116tjb on the Ubuntu forums.

  11. 11 effi Tuesday February 13, 2007 at 10:08 pm

    when i enter,
    xmodmap -e “keycode 22 = BackSpace BackSpace”
    i get this message:
    xmodmap: unknown command on line commandline:1
    xmodmap: unable to open file ‘22′ for reading
    xmodmap: unable to open file ‘=’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘BackSpace”’ for reading
    xmodmap: 5 errors encountered, aborting.

    seems like somethins really damages..
    whatever
    bye

  12. 12 Cyrus Jones Thursday February 15, 2007 at 3:24 am

    I get the exact same issue as effi
    I have tryed creating the .Xmodmap file, but it does not help

  13. 13 Cyrus Jones Thursday February 15, 2007 at 3:31 am

    I tried it again with the following:
    xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server”

    And it works! No more Shift-Backspace issue.

    So I entered: keycode 22 = BackSpace BackSpace Terminate_Server
    into the .Xmodmap file that I created in my home directory.

    And i have no more problems with Shift-Backspace and I do not need to reenter anything every time I login. :-)

  14. 14 Mudfly Wednesday February 21, 2007 at 10:36 am

    Thank You, This has been pissing me off for about a week.

  15. 15 Anonymous Friday February 23, 2007 at 11:10 am

    xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server”

    that is what worked for me….i am using ubuntu edgy eft

  16. 16 Kurt Wednesday February 28, 2007 at 8:12 am

    thank you very much for this post. I’m also using Ubuntu Edgy Eft and had recently installed Beryl and kept logging of XGL on accident while typing. Great post.

  17. 17 Sutekh Wednesday February 28, 2007 at 9:06 pm

    I’m all for keyboard shortcuts, but I think this one is just plain silly.

    The number of times I was too slow bringing my finger of a shift key and pressing backspace… it was killing me!

  18. 18 Stephen Samson Friday March 2, 2007 at 7:09 am

    I was having the same issue, for those of you getting

    xmodmap: unknown command on line commandline:1
    xmodmap: unable to open file ‘22′ for reading
    xmodmap: unable to open file ‘=’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘Terminate_Server”’ for reading
    xmodmap: 6 errors encountered, aborting

    you have to put this in

    xmodmap -e ‘keycode 22 = BackSpace BackSpace Terminate_Server’

    note the single quotes.

    Also if you are running KDE create a file Autostart dir under your /homedir/.kde/Autostart make sure its executable and this will go away.

  19. 19 Andi Thursday March 15, 2007 at 4:24 am

    Stephen Samson… still doesnt work for me man….

    xmodmap: unknown command on line commandline:1
    xmodmap: unable to open file ‘22′ for reading
    xmodmap: unable to open file ‘=’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘Terminate_Server’’ for reading
    xmodmap: 6 errors encountered, aborting.

    mehhh

  20. 20 AlwaysLearning Sunday March 18, 2007 at 10:49 am

    Guys, be careful with the quotes!

    It seems that this Blog like to use so-called Smartquotes, like Microsoft Word. When pasting the command into your Terminal make sure that you replace them with the quote character on your keyboard (42).

    xmodmap -e "keycode 22 = BackSpace BackSpace"

  21. 21 wh0rd Tuesday March 20, 2007 at 4:12 am

    Andi:
    Use single quotes, the key located next to Enter on most keyboards:
    ‘ not “

  22. 22 Muthu Kannan Sunday April 15, 2007 at 1:38 pm

    You saved my life.. Thanks!!

  23. 23 Dom Tuesday May 8, 2007 at 10:43 am

    xmodmap -e “keycode 22 = BackSpace BackSpace”

    AlwaysLearning’s fix worked for me.

    Using Ubuntu Feisty Fawn with Beryl
    THANK YOU SO MUCH!…I can finally type again!

  24. 24 geezus Saturday May 12, 2007 at 7:35 am

    Hey,

    when i enter the command on the terminal, it works fine. But when restart the terminal it gives me

    xmodmap: unknown command on line commandline:1
    xmodmap: unable to open file ‘22′ for reading
    xmodmap: unable to open file ‘=’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘Terminate_Server’’ for reading
    xmodmap: 6 errors encountered, aborting.

    So i guess the problem is with what I am entering in the .Xmodmap file.
    I entered the following (without any quotes in the .Xmodmap file):

    keycode 22 = BackSpace BackSpace Terminate_Server

    Am I doing something wrong? Thanks for helping out guyz .. this shortcut is really annoying.

    geezus

  25. 25 Marcel Saturday June 23, 2007 at 2:58 am

    Erase de quotes, single or double, put them back using your keyboard

  26. 26 Anonymous Wednesday February 13, 2008 at 2:53 am

    This was driving me nuts. Thanks.

  27. 27 vinayak Tuesday July 15, 2008 at 4:53 am

    Ohh gosh …
    This was the most awful & annoying feature I have ever seen in my whole 6-7 years of experience with Xserver/xgl !
    I hated it very much… Is it a bug or feature provide by some Idiot.

    Thanks a lot …

  1. 1 pakapblog! » the quick brown fox jumped over the lazy dog… » Removing Shift+Backspace Trackback on Wednesday January 10, 2007 at 7:28 pm
  2. 2 Desenfrenada’s » New plaything Trackback on Thursday January 18, 2007 at 8:32 am
  3. 3 scatterbrains » Blog Archive » links for 2007-04-13 Trackback on Friday April 13, 2007 at 3:30 pm

Leave a Reply




My Photos

James getting dragged up the hill

Another insane run

img_0104

Insane run

More Photos

How many times has this site been visited?

  • 135,001 apparently

Site Stats