You are not logged in.

#1 2021-09-29 17:12:04

tcomarchetti
Member
Registered: 2021-04-21
Posts: 36

[SOLVED] Delete key not working

Hello there,
I'm using Arch with Cinnamon as DE, it seems that the delete key is not working; does anybody can help me to fix this issue?
All others keys are working properly.
Thanks
Pietro

Last edited by tcomarchetti (2021-09-29 19:35:20)

Offline

#2 2021-09-29 17:49:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,498
Website

Re: [SOLVED] Delete key not working

What do you mean by "not working"?  Is this is a terminal emulator?  Or text editor?  How about in the tty?

Does xev show an event for the keypress?  What about showkey in the tty?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-09-29 17:57:50

tcomarchetti
Member
Registered: 2021-04-21
Posts: 36

Re: [SOLVED] Delete key not working

Trilby wrote:

What do you mean by "not working"?  Is this is a terminal emulator?  Or text editor?  How about in the tty?

Does xev show an event for the keypress?  What about showkey in the tty?


If i press "delete" in order to delete a file, for example, nothing happens;
if i press this key using the calculator, nothing happens;
it seems it's not responding.

I'm still a new Arch user wink

Offline

#4 2021-09-29 18:32:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] Delete key not working

Trilby wrote:

Does xev show an event for the keypress?  What about showkey in the tty?

Add "libinput debug-events" to the list.
"Key does not work in thing" is not a useful symptom description. Nothing happens if I press "del" in bc (at the end of some input) - what would you expect to happen in <unnamed calculator>?

Offline

#5 2021-09-29 18:41:13

tcomarchetti
Member
Registered: 2021-04-21
Posts: 36

Re: [SOLVED] Delete key not working

seth wrote:
Trilby wrote:

Does xev show an event for the keypress?  What about showkey in the tty?

Add "libinput debug-events" to the list.
"


libinput debug-events tells me : key_delete (111) pressed / released


Then, i don't understand what I have to do regarding tty.


Sorry and thanks for your patience.

Offline

#6 2021-09-29 18:45:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] Delete key not working

Wayland or X11?

echo $XDG_SESSION_TYPE

If X11, does "xev -event keyboard" report the key?
Does it work as expected in a browser (ie. in this input field, when you select all text and press "del", does it delete?)

Offline

#7 2021-09-29 18:48:28

tcomarchetti
Member
Registered: 2021-04-21
Posts: 36

Re: [SOLVED] Delete key not working

seth wrote:

Wayland or X11?

echo $XDG_SESSION_TYPE

If X11, does "xev -event keyboard" report the key?
Does it work as expected in a browser (ie. in this input field, when you select all text and press "del", does it delete?)


X11, then this is what I get if I press delete key:

sudo xev -event keyboard
Outer window is 0x6200001, inner window is 0x6200002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys:  0   0   0   0   16  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   

KeyRelease event, serial 25, synthetic NO, window 0x6200001,
    root 0x6df, subw 0x0, time 3889389, (-210,120), root:(375,423),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeymapNotify event, serial 26, synthetic NO, window 0x0,
    keys:  4294967263 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   

ClientMessage event, serial 28, synthetic YES, window 0x6200001,
    message_type 0x143 (WM_PROTOCOLS), format 32, message 0x141 (WM_DELETE_WINDOW)

Offline

#8 2021-09-29 18:58:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] Delete key not working

Please use code tags,  https://bbs.archlinux.org/help.php#bbcode

This looks like it's sucked up by some global shortcut.

xdotool key "XF86LogGrabInfo"

will print the grabbed keys into the xorg log, if you delay it ("sleep 5; ...") and make sure to keep "del" pressed while it fires, it will be listed as active shortcut.
https://wiki.archlinux.org/title/Xorg#General

Offline

#9 2021-09-29 19:06:39

tcomarchetti
Member
Registered: 2021-04-21
Posts: 36

Re: [SOLVED] Delete key not working

seth wrote:

Please use code tags,  https://bbs.archlinux.org/help.php#bbcode

This looks like it's sucked up by some global shortcut.

xdotool key "XF86LogGrabInfo"

will print the grabbed keys into the xorg log, if you delay it ("sleep 5; ...") and make sure to keep "del" pressed while it fires, it will be listed as active shortcut.
https://wiki.archlinux.org/title/Xorg#General


.....well.......the "problem" was that..... there was a Shortcut assigned to delete key......problem solved removing this shortcut.........................
thanks big_smile

Offline

#10 2021-09-29 19:11:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] Delete key not working

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB