Questions tagged [xev]

Xev is a program that creates an x window, records any input from the x server within that window and then displays it in the terminal. It is an important tool used for debugging purposes and for deciphering the misconfiguation of input devices such as keyboards.

Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

How to remap keyboard keys using xev with ALT-R or ALT-L

I am still a newbie on Linux, but there is something that I find really annoying: my keyboard, whatever I do, does not have the layout I want it to have. I tried many solutions, but I use a French ...
0 votes
0 answers
13 views

Holding either Shift, Alt or Ctrl keys as a modifier give random keypress and keyrelease on 20.04.4

I need help troubleshooting a keyboard issue. Both Shift keys, Alt and Ctrl keys, when held down as a modifier, seem to randomly keypress and keyrelease as shown in this xev output. This shows the ...
0 votes
0 answers
62 views

Disabling Caps Lock doesn't work: still results in 0x2 state (running in VMware)

I am running an Ubuntu 21.10 guest in VMware, with a Windows 11 host. I would like to disable all Caps Lock functionality, and use the key as Meta_R. I've tried disabling it with xmodmap -e "...
1 vote
2 answers
384 views

Multimedia keyboard remapping

I have a G7BTS remote controller, which has both keyboard and multimedia buttons. Most of its buttons work well except "OK" button. The OK button has a keycode 353, which means KEY_SELECT. ...
0 votes
0 answers
211 views

ctrl not seen in xev

i use xubuntu 20.04 my hardware is : 700-15ISK Laptop (ideapad) - Type 80RU One day (maybe after an update, i can't remember) the ctrl button seemed to act strangely, then it suddenly did not work ...
  • 11
0 votes
1 answer
34 views

when I press the button y the control key is pressed and y is not digta

I'm using a hp 246 g6 notebook and when I press the y key it says I pressed the ctrl as shown in the xev log below KeyPress event, serial 79, synthetic NO, window 0x4400001, root 0x78c, subw 0x0, ...
0 votes
0 answers
80 views

One of the media keys( next track ) is stuck and is making the keyboard useless. I want to disable it but I'm not getting the keycode using xev

The next track key is stuck and the screen is continously showing not allowed sign. None of the other keys work when this key gets pressed automatically I want to disable this particular key but I'm ...
1 vote
1 answer
253 views

Finding correct input of FN+F11 to use as shortcut

I'm currently setting up gestures using Touchegg. Most of them are fairly easy, but I want to bind Fn+F11 which is causing me some trouble. As far as I understand it FN is not an actual key, but more ...
1 vote
0 answers
145 views

How to ignore a specific character input from your keyboard?

My laptop's keyboard has malfunctioned, and so whenever I press spacebar the computer gets input as if I pressed spacebar and page-down at the same time. I tried using xev to figure out which ...
1 vote
0 answers
247 views

Disable keyboard lock key

My keyboard has a LockScreen key positioned where I often inadvertently hit it. I want to disable or remap that button. I have looked in /usr/share/X11/xkb/symbols/pc and in /usr/share/X11/xkb/...
2 votes
1 answer
376 views

Using xev in an existing window with the -id option

The xev man page states: “You can also attach it to an existing window... The '-id windowid' option specifies that the window with the given id should be monitored, instead of creating a new window.” ...
2 votes
1 answer
576 views

Why are the extra buttons on my Logitech mouse no longer working under 20.04?

I've got a Logitech G700s mouse. Using the extra buttons under Eon worked just fine. Now I've updated to Focal and suddenly all the extra buttons aren't working. Button 1 and 2 and the scroll wheel ...
1 vote
2 answers
275 views

use some other key on the keyboard to replace the non-functioning shift key

this laptop is old and my both shift keys and the caps lock key are no longer working. all the other keys are however still working. i dont know what caused this. maybe it is the layout problem or the ...
  • 111
1 vote
1 answer
287 views

special character key comes with noname instead of letter on xev

KeyRelease event, serial 37, synthetic NO, window 0x2600001, root 0x269, subw 0x0, time 25839746, (517,242), root:(622,350), state 0x0, keycode 254 (keysym 0x11f, (no name)), same_screen YES, ...
0 votes
1 answer
202 views

" ] " and " [ " are not being mapped properly with xsetwacom

i'm trying to map my drawing tablet buttons and the command to do that for my particular scenario is: xsetwacom --set 'Tablet Monitor Pad pad' Button 1 "key a" xsetwacom --set 'Tablet Monitor Pad pad'...
  • 101
5 votes
1 answer
430 views

Determine if Fn + Key can be made to produce keycode if xev provides none

In relation to the comments on this answer, I am curious about the following: If one does not get a keycode output in the xev Event Tester when pressing Fn + Key, are there ways to determine whether ...
  • 7,663
2 votes
1 answer
578 views

problem binding arrow keys with xbindkeys

I'm trying to bind ctrl+win+p to act as an "UP" arrow key. I'm going to use xbindkeys so first of all I start xbindkeys -k to see the code for this combination. It gives me such an output: set@set001:...
  • 195
0 votes
0 answers
138 views

Pop up keeps appearing in Ubuntu 18.04.2 LTS

I have bound my mouse buttons to certain actions (changing music tracks) using xbindkeys. This pop up appears only when vlc is not running and I click one of the mouse buttons.
user avatar
2 votes
1 answer
3k views

Mapping Left/Right side-buttons using xev

I'm trying to configure my mouse side-buttons to go back/forward on Firefox and Ubuntu. When i run xev | grep ', button' I get the same button code for both side-buttons and scroll. So I clicked ...
  • 123
2 votes
0 answers
260 views

binding left + right mouse button click to different action from middle button?

I want to bind a different action (for example, using xbindkeys) to the simultaneous clicking of my left and right mouse buttons than I get by clicking the middle button. Is this possible? I have ...
1 vote
1 answer
2k views

How can I bind logitech mx anywhere side scroll button press to raise and lower volume

I have a logitech MX anywhere (on a thinkpad t480s if that matters) and I have tried following guides like this but I can't seem to get it working. I basically want to control volume down and volume ...
  • 11
0 votes
2 answers
37 views

Somehow mapped "-" to escape and can't figure out how to map it back

Really stupid question, how would I remap "-" to its default value (and to turn it into an underscore when I press it with shift). Output of key event with xev: KeyRelease event, serial 34, ...
user avatar
1 vote
1 answer
162 views

xdotool Up displaying extra characters

I'm trying to use xdotool to configure touchpad gestures on Ubuntu 18.04 with Gnome. This works fine: xdotool key ctrl+alt+Down However this: xdotool key ctrl+alt+Up does not change workspaces ...
  • 31
0 votes
1 answer
582 views

xev doesn't record keycode of lock screen key

I just got a lenovo ideapad 720s and installed Ubuntu. It has no media control keys (play/pause, next/prev track), so I wanted to remap some keys I don't use including the lock screen key. But when I ...
1 vote
1 answer
651 views

AltGr not working on system but correct output in xev (18.04)

I'm using Xubuntu 18.04 and I'm using an Italian keyboard layout. Until 17.10, I had to manually set up the Alt Gr key with the xmodmap command with the following command: xmodmap -e "keycode 108 = ...
  • 133
1 vote
1 answer
315 views

Xubuntu broken/slow mouse scroll

Since I installed Xubuntu onto my laptop, my mouse has been unable to scroll correctly. On xev, it takes around 5 scrolls of the wheel to register one input, while on mousepad and other applications, ...
1 vote
0 answers
356 views

Something is holding ctrl-shift-P combo hostage

ctrl-shift-P is used by Sublime Text for command palette. Something is holding the keyboard shortcut hostage in my Ubuntu. I have disabled all the keyboard shortcuts I could possibly find. ctrl-shift-...
5 votes
0 answers
2k views

Configuring non wacom drawing tablet

I am a linux user and I am a total newbie when it comes to input devices and drivers. I have recently bought xp-pen star 06 tablet tablet specifactions the tablet works poorly with evdev. The ...
  • 51
1 vote
1 answer
642 views

After upgrading to 17.10 all function keys map to "XF86WakeUp"

I am using a Lenovo Thinkpad E330 and just upgraded to Ubuntu 17.10 using Unity. Before the upgrade there were no problems with my media keys but now they all seem to be mapped to "XF86WakeUp". ...
  • 11
3 votes
0 answers
2k views

Extra mouse button not recognized

I have an ASUS mouse (ROG Gladius 2) but the extra mouse buttons are not recognized as mouse buttons in Ubuntu. With the software from ASUS (while working in Windows), I can assign a keyboard or mouse ...
5 votes
1 answer
939 views

How to disable next key (keycode 117) which is constantly being triggered?

In the past few days whenever I type rapidly a ~ symbol continuously pops up in the terminal window. To resolve the issue I tried running xev -event keyboard This told me that the problem is the ...
4 votes
1 answer
2k views

Keyboard shortcuts stop working intermittently

edit: As can be seen from the answer, this actually had nothing to do with standby or hibernation, but rather that it correlated with me often closing the app window (which triggered the bug) before ...
  • 578
1 vote
1 answer
177 views

Chinese Keyboard returned different keycode when pressing F1

Since I don't have much data, I'll just keep this in short. So I bought a mechanical keyboard. Everytime I press F1 the window defocuses. F2 works. Pressing F1 in xev: FocusOut event, serial 48, ...
1 vote
3 answers
1k views

Trackpoint middle button not recognized by xev

So I just got a thinkpad e570. Even though the middle trackpoint button was recognized and working out of the box in windows as scroll it can't even be seen in any linux distro. xev returns no ...
  • 11
2 votes
0 answers
344 views

How to convert keycodes to key?

It's easy to get the keycode of a given key (showkey,xev etc) but how can one convert this keycode back to a key, for different keyboard layouts? (key->keycode, and back) For example: keycode(MetaKey)=...
10 votes
1 answer
761 views

How to remap a key that's not captured by xev?

I have a mechanical keyboard (by Duck) that includes a Fn key used with F10 to trigger Win-lock (disables Windows key so it doesn't bother when playing) and N-Key rollover. As a programmer, I don't ...
2 votes
0 answers
40 views

System wide rocker gesture for Ubuntu

Is it possible to add system wide rocker gesture for Ubuntu? Rocker gesture is basically a following sequence of events : ButtonPress event: mouse1 ButtonPress event: mouse3 ButtonRelease event: ...
0 votes
1 answer
815 views

Cleaning up the output of xev

OS: Openbox session of Lubuntu 14.04 Let's say I run xev and press the Super key, I get a lot of output (>100 lines) and the relevant information is way down the output as seen when I run xev | ...
  • 39.5k
2 votes
1 answer
2k views

How to debug keyboard shortcuts not working?

I'm on XUbuntu 15.10. I noticed that some keyboard shortcuts don't reach my application (Sublime Text). Ctrl+Alt+p is not visible by the application, while for example Ctrl+Alt+i is recognised ...
  • 141
7 votes
1 answer
7k views

Meaning of the output of "xev"

I need some clarification: When I start xev in a terminal, and use Super, I get the following output. What is the meaning of this? KeymapNotify event, serial 36, synthetic NO, window 0x0, keys: ...
  • 87k
2 votes
0 answers
584 views

xev Alt key change, but Alt key doesn't work

I want to chage special key alt, crtl, hanja(in the multy language) because I Used ibus, I try to change my keymap by Xkb not xmap. after searching on internet I just to exchange my keycode on /usr/...
  • 121
3 votes
0 answers
394 views

Multiple keycodes not working at the same time

I'm using xubuntu 14.04. I'm having a problem when pressing some keybinds (specifically with some keycodes). Thus, show you the result of xev when pressing first Alt_R and then Alt_L. KeyPress event, ...
  • 300
1 vote
1 answer
3k views

Enabling Logitech G400 mouse DPI buttons

I am trying to use a Logitech G400 Mouse on a PC with Ubuntu 14.04. However, I can't make Ubuntu recognise two of its buttons (DPI+ and DPI-). How can I make these buttons recognised? Apparently, ...
  • 309
3 votes
0 answers
230 views

Can I make a script to prevent mouse bounce clicks?

Recently my mouse has started bounce clicking, single clicks act as double and even tipple clicks most if the time. Holding left click tends to spam click and trying to do anything has become ...
10 votes
1 answer
6k views

Some keys are not detected in my keyboard (multimedia keys?) by either xev or xbindkeys or keytouch: how to detect them?

It is one more attempt to get Fn keys to volume up/down, brightness, etc. working. Those controls are simply not working in my non-branded ultrabook. I want to detect them to modify /home/username/....
  • 439
14 votes
3 answers
17k views

Remap side touch button on Microsoft Sculpt Comfort Mouse

I recently purchased a Microsoft Sculpt Comfort Mouse. It uses Bluetooth to connect to my laptop and all regular mouse buttons work perfect under both Linux and Windows 7. What's different about this ...
3 votes
1 answer
4k views

Trying to remap PrtSc key in laptop, no keycode

I'm trying to remap PrtSc key to Insert (to use it in vim), with /usr/bin/xmodmap -e "keycode XXX = Insert" for it, I need to figure out what keycode for PrtSc is. I'm doing xev -event ...
2 votes
2 answers
358 views

How can I identify which device/keycode is being used?

I am trying to reassign the functions on the buttons of my Logitech G700 mouse. Using xinput --list, I see that this counts as two devices (four if you include the wired/wireless differences). 48 ...
1 vote
2 answers
4k views

How can I set a certain keycode to a key and bind it to the right action?

I have a laptop with Swedish keyboard layout, everything works well with the keyboard. Due to injuries I am using an external ergonomic USB keyboard, this is where I am experiencing difficulties. The ...
  • 159
0 votes
1 answer
1k views

back/forward buttons don't show up in xev (pcmanfm doesn't work)

xinput test 9 results in the buttons being identified as 8 and 9. However, the results in xev are the following: LeaveNotify event, serial 33, synthetic NO, window 0x2e00001, root 0xa2, subw ...