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.

When xev has been invoked in the terminal and, say the f key is pressed, the following useful information is presented about the configuration of the key. This can be helpful for developers or for when a user's keys are responding in an unexpected manner.

KeyRelease event, serial 33, synthetic NO, window 0x2800001,
    root 0x142, subw 0x0, time 33302102, (138,433), root:(141,484),
    state 0x0, keycode 41 (keysym 0x66, f), same_screen YES,
    XLookupString gives 1 bytes: (66) "f"
    XFilterEvent returns: False

The full description of xev is found by entering man xev in the terminal or by visiting the Ubuntu manpages.

60 questions
14
votes
3 answers

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 mouse, though, is that it has a special…
user223544
  • 163
  • 1
  • 1
  • 9
11
votes
1 answer

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/.config/openbox/lubuntu-rc.xml, as the following…
chelder
  • 479
10
votes
1 answer

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 actually use any of those, but I would like to make…
7
votes
1 answer

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: 2 0 0 0 0 0 0 0 0 0 0 0 0 …
A.B.
  • 92,125
5
votes
0 answers

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 mouse moves with the tablet but also poorly, the pen nip…
Arsen
  • 51
5
votes
1 answer

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 NEXT KEY with key code 117, so I disabled it using…
5
votes
0 answers

How to fix an error relating to no keyboard input accepted in gnome desktop, though keycode shows scancodes?

Running Ubuntu 11.04 x86 guest under VirtualBox 4.2.6 in a Win7 X64 host. Bear with me... this is a strange one. Once booted into Ubuntu nothing inside the Ubuntu guest seems to recognize keyboard input: Login screen, Gnome Terminal, gedit, etc. I…
5
votes
1 answer

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 obtaining a keycode for the combination is…
Rasmus
  • 8,655
4
votes
1 answer

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 going into standby most of the time. I have seen…
oligofren
  • 679
  • 1
  • 9
  • 24
3
votes
0 answers

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 functions to the extra mouse buttons, but I…
3
votes
0 answers

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, serial 37, synthetic NO, window 0x1e00001, …
silgon
  • 320
3
votes
0 answers

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 increasingly difficult if I wish to use my external…
3
votes
1 answer

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 keyboard and pressing PrtSc, but getting something…
2
votes
0 answers

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)=125 <=> key(125)=MetaKey
2
votes
0 answers

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: mouse3 This should trigger on focused…
1
2 3 4