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…
@ 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.
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!!!
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.
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.
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.
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
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.
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
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.
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).
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.
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.
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…
How do you get it to execute at the beginning of each session?
@ 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.
Thanks a lot… This is really awful
thanks!!!! god that “feature” is a pain…. Now if only there was a way to make this a perminant alteration….
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!!!
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.
@ 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?
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.
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.
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
I get the exact same issue as effi
I have tryed creating the .Xmodmap file, but it does not help
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.
Thank You, This has been pissing me off for about a week.
xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server”
that is what worked for me….i am using ubuntu edgy eft
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.
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!
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.
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
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"
Andi:
Use single quotes, the key located next to Enter on most keyboards:
‘ not “
You saved my life.. Thanks!!
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!
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
Erase de quotes, single or double, put them back using your keyboard
This was driving me nuts. Thanks.
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 …