Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My delete key does not work in ubuntu, it does nothing. I understand that this is a common problem, but I could not solve it with the information I found elsewhere.

I ran xev. Pressing the 'a' key gives:

KeyRelease event, serial 30, synthetic NO, window 0x2c00001,
    root 0x1a6, subw 0x0, time 7255643, (-113,-107), root:(425,300),
    state 0x2010, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

Pressing 'Delete' gives:

FocusOut event, serial 30, synthetic NO, window 0x2c00001,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 30, synthetic NO, window 0x2c00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 30, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

From there I don't know what to do. Help?

--- Edit ---

More details: Ubuntu Hardy, studio edition.

The keyboard is a Logitech UltraX (967498), wireless. I couldn't find it on logitech's page, but here it is: UltraX

--- Edit 2 ---

Pressing Delete in a virtual terminal after showkey -s:

0xe0 0x53
0xe0 0xd3

After showkey -k:


(First rows at press down, second row at release).

--- Edit 3 ---

gauthier@ubuntu:~$ xmodmap -pke | grep -i delete
keycode  91 = KP_Delete KP_Decimal KP_Delete KP_Separator
keycode 107 = Delete
gauthier@ubuntu:~$ sudo dumpkeys | grep -i remove
[sudo] password for gauthier: 
keycode 111 = Remove          
string Remove = "\033[3~"

0x6f is 111, but I can't see any other relations with what I wrote earlier.

--- EDIT 4 ---

Interesting, Ctrl-v then delete makes the cursor flash once, then nothing is displayed. Pressing Enter after that gives ^M then nothing (not even a new prompt).

Enter once more yields : command not found.

I'm not sure about gnome, I'm on ubuntu studio, Hardy.

share|improve this question
how about more details? like keyboard type, linux distribution... – bbaja42 Apr 9 '10 at 9:52
What do showkey -s and showkey -k show when run from a virtual terminal? – Dennis Williamson Apr 9 '10 at 15:50
What does xmodmap -pke | grep -i delete show when run from a terminal in the X window system (gnome-terminal, xterm, or equivalent)? – Dennis Williamson Apr 10 '10 at 7:55
Also what does sudo dumpkeys | grep -i remove show? – Dennis Williamson Apr 10 '10 at 19:27
Verify that you have the correct keyboard layout selected. Go to System -> Preferences -> Keyboard, select the Layout options tab. Also check to see if there is a Logitech Ultra-X Cordless / regular keyboard model available. They are listed in Ubuntu Karmic Koala (9.10). – mctylr Apr 11 '10 at 17:28

Considering that the output of showkey -s is as expected, and yet xev doesn't show any keypress, one possibility is that the key has been defined as a shortcut in your window manager/desktop environment.

Does the problem arise if you log in as a different user? If not, you've probably inadvertently defined Delete as a shortcut for something that doesn't have an obvious effect.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .