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
0 answers
227 views

Remapping of key with xmodmap is detected by xev but not by other apps?

So as I bought a laptop with a foreign keyboard (qwerty but I type in azerty most of the time) I don't have any dedicated key for chevrons (<>). That's annoying, so I want to remap my right ...
rznrd's user avatar
  • 1
0 votes
1 answer
98 views

Keyboard keys switch

A few months ago I switched right AlgGr key with Super_R. The reason for this was that I was using my Ubuntu laptop with an apple keyboard, and wanted the similar key placement as I was used to on a ...
sigmund's user avatar
1 vote
1 answer
193 views

Key mapping issue with Left 'CTRL' key

My Left CTRL works with some apps but not others. I did a 'xev' to check it out and got back a strange result. Xev The right ctrl key works with all apps KeyPress event, serial 38, synthetic NO, ...
Rick T's user avatar
  • 2,213
0 votes
1 answer
484 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 ...
John Straight's user avatar
0 votes
0 answers
106 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 "...
xoa991x's user avatar
1 vote
2 answers
1k 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. ...
liu_dong's user avatar
0 votes
1 answer
51 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, ...
vfbraton's user avatar
0 votes
0 answers
86 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 ...
Aditya Gitte's user avatar
2 votes
1 answer
505 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 ...
Leonardo Petrucci's user avatar
1 vote
0 answers
211 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 ...
Maxim Hermez's user avatar
1 vote
0 answers
613 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/...
Stephen Boston's user avatar
2 votes
1 answer
644 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.” ...
Francis Gernet's user avatar
2 votes
1 answer
670 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 ...
Sebastian Stumpf's user avatar
1 vote
2 answers
442 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 ...
rsonx's user avatar
  • 111
1 vote
1 answer
336 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, ...
Tanburi Ney's user avatar
0 votes
1 answer
256 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'...
Partack's user avatar
  • 101
5 votes
1 answer
549 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 ...
Rasmus's user avatar
  • 8,345
2 votes
1 answer
697 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:...
SET's user avatar
  • 195
0 votes
0 answers
149 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 ...
Mutante's user avatar
  • 123
2 votes
0 answers
307 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 ...
lara michaels's user avatar
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 ...
Nibble's user avatar
  • 11
0 votes
2 answers
42 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
228 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 ...
dlynch's user avatar
  • 31
0 votes
1 answer
671 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 ...
Jack Finan's user avatar
1 vote
1 answer
772 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 = ...
Andrea's user avatar
  • 153
1 vote
1 answer
354 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, ...
Jakey Snakey's user avatar
2 votes
0 answers
445 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-...
Badr Hari's user avatar
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 ...
Arsen's user avatar
  • 51
1 vote
1 answer
678 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". ...
Nik-Sch's user avatar
  • 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 ...
Eclipser's user avatar
5 votes
1 answer
1k 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 ...
user260214's user avatar
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 ...
oligofren's user avatar
  • 630
1 vote
1 answer
245 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, ...
diamondburned's user avatar
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 ...
kale's user avatar
  • 11
2 votes
0 answers
387 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)=...
user7309776's user avatar
10 votes
1 answer
897 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 ...
igorsantos07's user avatar
2 votes
0 answers
47 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: ...
Seppo Erviälä's user avatar
0 votes
1 answer
985 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 | ...
DK Bose's user avatar
  • 42.4k
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 ...
Kos's user avatar
  • 141
7 votes
1 answer
8k 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: ...
A.B.'s user avatar
  • 90.3k
2 votes
0 answers
626 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/...
Gamoonbi's user avatar
  • 121
3 votes
0 answers
425 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, ...
silgon's user avatar
  • 320
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, ...
toliveira's user avatar
  • 349
3 votes
0 answers
240 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 ...
Renamon Toast Crunch's user avatar
10 votes
1 answer
7k 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/....
chelder's user avatar
  • 449
14 votes
3 answers
18k 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 ...
user223544's user avatar
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 ...
Moonwalker's user avatar
2 votes
2 answers
413 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 ...
William Everett's user avatar
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 ...
miphe's user avatar
  • 159