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.
59
questions
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 ...
11
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/....
10
votes
1
answer
937
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 ...
7
votes
1
answer
9k
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: ...
5
votes
1
answer
572
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 ...
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 ...
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 ...
5
votes
0
answers
11k
views
How to fix an error relating to no keyboard input accepted in gnome desktop, though keycode shows scancodes? [closed]
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 ...
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 ...
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 ...
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 ...
3
votes
0
answers
441
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, ...
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 ...
2
votes
1
answer
692
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
677
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 ...
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 ...
2
votes
2
answers
439
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 ...
2
votes
1
answer
664
views
Fixing Two key events on single key press by xmodmap
I'm using a Dell Latitude D620. Whenever I press the space key, the down arrow key is also triggered to perform its action. Here is the log:
KeyPress event, serial 30, synthetic NO, window 0x3200001,
...
2
votes
1
answer
686
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
4k
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 ...
2
votes
1
answer
591
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 ...
2
votes
1
answer
720
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:...
2
votes
0
answers
313
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 ...
2
votes
0
answers
462
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-...
2
votes
0
answers
400
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)=...
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: ...
2
votes
0
answers
631
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/...
2
votes
1
answer
585
views
HP Pavilion G6 numpad not working in Ubuntu 13.04
I have just done a fresh install of Ubuntu 13.04 on a HP Pavilion G6 and having a little bit of difficulty getting Ubuntu to recognise the numpad. So far I have tried running numlockx on with no luck ...
2
votes
0
answers
1k
views
Volume control slider isn't working on Sony Vaio VGN CS170F [closed]
I have just installed Ubuntu 12.04, I'm taking the big step, the problem is that I am new with Linux systems and I am really having a hard time getting it work with all the options of my Vaio machine.
...
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 ...
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 ...
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. ...
1
vote
2
answers
502
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 ...
1
vote
1
answer
231
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, ...
1
vote
1
answer
243
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 ...
1
vote
1
answer
693
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
372
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
220
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
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,
...
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 ...
1
vote
1
answer
804
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 = ...
1
vote
1
answer
681
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". ...
1
vote
1
answer
269
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
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, ...
1
vote
1
answer
883
views
If a key press doesn't trigger anything in xev, is it still possible to use it for a key binding?
I'd like to register keypresses that aren't visible on xev. These are basically "special" keys on my keyboard. If the event does show up on xev, is it possible to get at?
0
votes
1
answer
1k
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 | ...
0
votes
1
answer
578
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
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 ...
0
votes
0
answers
284
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 ...
0
votes
1
answer
110
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 ...