Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [keyboard-event]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

PyQt5 How to ignoriere /dev/input/eventX events and only use one specific event device?

I have some issues with my PyQt5 GUI running on my Raspberry Pi. I sometimes need to plug in a USB Audio card into my raspberry pi while operating the GUI. When I touch the screen while plugging/...
manintree's user avatar
0 votes
0 answers
38 views

Any possible methods to make the X86WebCam button work on Linux, just like on Windows, to enable/disable camera?

I am using a laptop with a camera switch in the keyboard, triggered by Fn. In most cases, since I am using dual boot with Windows 11, the camera is disabled using it. A red LED on the keyboard is on ...
szw0407's user avatar
0 votes
0 answers
34 views

Ctrl+z combination(s) not working anylonger

Since a few days the undo action via Ctrl+z are not working any longer. My system is Kubuntu 23.10 x86_64 with Plasma 5.27.8 as DE. The problem is only occuring on X11 and not on Wayland. At this ...
woernsn's user avatar
0 votes
1 answer
724 views

How to disable/enable keyboard?

Is there a command line (CLI) command to disable all keyboards on a machine, and then also a CLI command to re-enable them? I'm on a laptop with an internal and external keyboard, I need to disable/...
01AutoMonkey's user avatar
0 votes
0 answers
31 views

Passthough special keys from keyboard to guest OS?

I have a MS Natural Keyboard 4000 and I want to use its special keys in my guest OS. Both are Linux Mint. Without any additional configuration some keys are passed (Home, Mail, Volume, Fav, etc.) but ...
user22942146's user avatar
0 votes
0 answers
19 views

Prevent session from stealing input events?

I'm debugging Hyprland and unfortunately it blocks all your input at some stage of initiatlization blocking all input events. Unfortunately this is also the moment I am trying to debug from another ...
Daniel Krajnik's user avatar
1 vote
0 answers
61 views

keyboard FN keys send ctrl+a, ctrl+c, ctrl+v instead of unique events

I have a keyboard whose F2, F3, F4 keys send ctrl+a, ctrl+c, ctrl+v events respectively instead of a unique keycode which could be remapped easily using xmodmap keycode mapping. My goal is to use the ...
ealfonso's user avatar
  • 953
0 votes
0 answers
205 views

Read physical state of keyboard modifiers in Linux (preferably in C or C++)

Is there a way to programmatically read, detect or get notified about the actual physical state of a modifier key, without requiring root level access rights? I tried X11, XCB and XKB, but their event ...
psq3000's user avatar
0 votes
0 answers
68 views

Keyboard ignores first key pressed on Manjaro Gnome

After one or two minutes, the first key I press is ignored. Which key doesn’t matter, Meta, Alt, Space, Shift, numbers, letters. It is as if the keyboard goes on a dormant mode after about 90 seconds ...
Jesse's user avatar
  • 351
1 vote
0 answers
449 views

keyboard layout switching with ibus

I've had to leave xim behind because of various graphical issues. And I'm trying to set up ibus but having trouble getting it to cycle through keyboards. Other info: Debian Testing Awesome WM This ...
David Purton's user avatar
2 votes
1 answer
149 views

Razer keyboard : Use keyboard as mouse under X

OP entirely re-edited. My Razer Cynosa chroma is one physical device (basically no more than a PC_105 keyboard) offering the particularity to offer 3 interfaces (1) one of them for simultaneously ...
MC68020's user avatar
  • 8,259
2 votes
0 answers
71 views

How to prevent the browser from seeing my keystrokes?

My browser (chrome but I think it doesn't matter) receives events for keystrokes which are not intended for it. For example, I'm doing alt+tab in Mate and then I press escape (while still holding the ...
Martin Kunev's user avatar
0 votes
0 answers
50 views

Keepass causes immediate Linux logout when using auto-type

Today I had to restart my computer after a total freeze of Linux. After that I now have the problem that KeepassXC 2.7.1 leads to a immediate logout of my Linux system as soon as I try to use the auto-...
Michael Hutter's user avatar
2 votes
0 answers
549 views

/dev/input/event doesn't report keys being pressed

I have an usb keyboard connected to a linux box. I need to capture all keys that have been pressed and released. My keyboard n-key rollover meaning that it doesn't have limits on number of ...
Misha Mikhail's user avatar
2 votes
1 answer
143 views

Block multiple keypress events that has same timestamp

I have a faulty keyboard that will fire additional keys when i press a single key. for example, when i click letter "D" on keyboard it will send "D5" $xev -event keyboard ...
shashi srinath's user avatar
1 vote
0 answers
2k views

X11 key names to Linux keycodes

My program uses the X11 key names like exclam and XF86Forward but internally uses the Linux keycodes found in /usr/include/linux/input-event-codes.h. It's just an awk program, and I've written an ...
geb's user avatar
  • 83
0 votes
1 answer
52 views

executing hotkeys from a script into an application

Is it possible to open an application, then execute some hotkeys associated with that application using a script? For example if I wanted to open Firefox (using Firefox & for example)then I wanted ...
Solaire's user avatar
1 vote
0 answers
1k views

How to access gpio-keys from a shell script

In my embedded linux system, I defined some GPIOs as keys in the device tree so I can use them as keys in my application. This works fine so far. Now I want to add an early startup script to respond ...
Philippos's user avatar
  • 13.5k
2 votes
0 answers
1k views

Keyboard input N-Key Rollover

Question Is there any way to programmatically negotiate and enable NKRO (N-Key Rollover) for plugged keyboards when that feature is available? Also, how to properly distinguish between "standard ...
Gethiox's user avatar
  • 21
0 votes
1 answer
67 views

What is this popup in Gnome 40?

I'm trying to understand the meaning of those popups: Those are triggered by a button of a remote which evtest interprets as F21: Event: time 1635529094.562219, type 17 (EV_LED), code 0 (LED_NUML), ...
jfk's user avatar
  • 45
1 vote
0 answers
271 views

Make xkb produce two symbols on one key press (e.g. make `ctrl`+`+` & `ctrl`+`=` produce same (combined) effect to get rid of `Shift` for zooming in)

Some apps use ctrl++ and some ctrl+= to zoom in. Only some allow to customize. If all used same, I would just remap the keyboard not to use Shift. Can I make apps receive signals that both ...
Martian2020's user avatar
  • 1,219
0 votes
0 answers
196 views

Duplicate events from Logitech G613 Bluetooth keyboard

For some tiime (sic!) now, I've been getting random duplicate events from my Logitech G613 Bluetooth keyboard. I've no idea how it's happening, and iit (again!) seems to happen with all keyboard keys -...
l0b0's user avatar
  • 51.9k
1 vote
2 answers
48 views

Change what user writes anywhere on the screen to another string

So I'd like to understand this problem that I'm trying to solve and see if it's even possible to do it, realistically. I want to write a script, or something like that, that would change some string ...
Kibartas's user avatar
  • 121
1 vote
0 answers
105 views

X11: Some applications misunderstand xkb keymap

I want to remap my keys in the following way: ctrl+j/k -> left/right and ctrl+h/l -> ctrl+left/right. So I got the default xkb file and added the following contents into it. First, I defined a ...
Simon's user avatar
  • 170
1 vote
1 answer
112 views

Overide delete(-rm) event to move to(-mv) folder

I have a trouble with deleting files on my company's LAN network. I have 5x5TB shared disks where data is stored. About 20 clients (PC Users) have access to the disks. The big problem is when someone ...
Sahasrar's user avatar
3 votes
1 answer
2k views

What device drivers are needed to fully recognize a USB Keyboard?

My problem is I have an embedded system normally headless. It has a serial console I use for debugging, but will not be present in production. It has no vga/graphics/monitor/whatever. It doesn't have ...
ZioByte's user avatar
  • 880
2 votes
0 answers
437 views

Unable to send keypress to Xvfb display using XTestFakeKeyEvent in C

Using this short snipped of code I am able to capture events from the keyboard (/dev/input/event1) and print them properly. However, sending them to the Xvfb display using XTestFakeKeyEvent does not ...
Az ayd's user avatar
  • 21
0 votes
1 answer
220 views

In Vim on KDE Ctrl-w no longer works to changes panes

Normally, when I have two panels (windows?) open in vim, I use c-w c-w to switch between them. This suddenly stopped working. So one would think the problem could be with vim, with the terminal ...
kr37's user avatar
  • 101
0 votes
1 answer
136 views

Navigating Text...Is there a way to go back and/or forward N characters or jump to next/previous non-alphanumeric character?

I'm talking in terms of keyboard navigation shortcuts, that would apply to any text box/editor/etc...Sometimes I'd like to just have a faster means of jumping to a particular location in a string, but ...
neuroDiverse's user avatar
0 votes
1 answer
291 views

Are the keycodes of modifier characters independent of keyboard layout and keyboard model?

For example, is the keycode of left control always 37? Where can I find a list of such keycodes?
jarno's user avatar
  • 640
3 votes
0 answers
96 views

Disable repeat keys only for function keys e.g. (fn + f10)

Sometimes function keys e.g. Fn+F10 gets stuck. How do I disable repeat keys only for these type of keys e.g. Fn+any function key)
vib_29's user avatar
  • 114
0 votes
1 answer
524 views

Simultaneous keystrokes - emulating mouse movements with keyboard

I'm trying to emulate mouse movements and actions with keyboard, and I succeeded in remapping everything (e.g.: hjkl to movements), with xkb (in particular using xkbset -m) and xmodmap. The problem ...
Annibale's user avatar
  • 101
2 votes
1 answer
2k views

`xev` doesn't register my `Fn+F4` keypress? How to bind this combination?

My question is simple. xev isn't registering Fn+F4 keypress on my Asus FX505DT running Kubuntu 19.10. So, how shall I proceed with solving this issue?
Utkarsh Verma's user avatar
2 votes
1 answer
5k views

Disable a specific key on a specific keyboard

I suspect this can't be done, but I would like to disable a specific key (namely '6' on the top row) on a specific keyboard (namely my laptop internal keyboard). The key is spamming 6s but is ...
Andrew McLeod's user avatar
1 vote
0 answers
771 views

How can I translate keycodes from /dev/input/event* to ASCII in Embedded Linux?

I'm building an embedded linux image with yocto. I can see the keys coming in over /dev/input/event0. I can view them using showkey -k but not showkey -a. I've also tried with an ncurses program I ...
willpnw's user avatar
  • 111
2 votes
0 answers
272 views

type string as if it were a keyboard

I have a bunch of unicode symbols in a file and a script to select and copy one of them (dmenuunicode script in this repository which I've forked). But instead pasting them I would like to save one ...
Jouni's user avatar
  • 121
3 votes
0 answers
748 views

setkeycodes: ioctl KDSETKEYCODE: Invalid argument

I'm trying to map Win + Left-Arrow to Home. When I run showkey --scancodes (on console) and press Win + Left-Arrow, I get: 0xe0 0x5b 0xe0 0x4b 0xe0 0xdb 0xe0 0xcb showkey (also at console) tells ...
Tom Hale's user avatar
  • 31.3k
0 votes
1 answer
937 views

Shell script loop while not reading [closed]

I'm trying to figure out the best way to halt a running script using a keyboard shortcut while the terminal is not the active window. This led me to learn about watching keyboard events with cat /dev/...
notsoslimshady's user avatar
1 vote
2 answers
1k views

Why are ctrl-m and return keys the same \r char? [duplicate]

Anyone know why ctrl-m and return are the same control chars?
user avatar
1 vote
2 answers
266 views

Keyboard key "s" not triggered [closed]

I recently installed XFCE over my arch - used gnome before. After some time using XFCE i discovered that my keypress "s" does not work as expected (works first in XFCE without problems). Output of ...
eXe's user avatar
  • 131
3 votes
2 answers
691 views

Merge two usb ports/two keyboards into one

I use two keypads (Koolertron AE-SMKD72 Type A), that I use as one split keyboard. But they are recognized as two separate keyboards, what causes some problems: I use an alternative keyboard layout ...
MaxGyver's user avatar
  • 319
0 votes
1 answer
642 views

Double Key Click Event?

My X60T has several buttons designed to be used in tablet mode. To try and optimize the buttons, I was wondering if there is any way to recognize double clicks to trigger a command? They behave just ...
Erik's user avatar
  • 1,102
1 vote
1 answer
4k views

Read keyboard inputs in Linux

I am making a Ruby program so I can play different sounds when a key is pressed. Key A will make different sound from key S and so on. I want to get raw inputs rather than using some ruby gems. For ...
15 Volts's user avatar
  • 2,119
0 votes
2 answers
409 views

Showkey with timestamp

How can I record keyboard actions with the timestamp, either to console, or preferably to a file? I have showkey output like: keycode 28 release keycode 30 press keycode 30 release keycode 48 ...
Reed's user avatar
  • 141
0 votes
1 answer
147 views

configure non-modifier as a modifier key

This question is similar to: https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key ...
ealfonso's user avatar
  • 953
-4 votes
1 answer
77 views

How are wide chars handled atomically? [closed]

Some languages have wide chars. A wide char can have multiple bytes. When you type a wide char in console or X, you are actually sending several bytes. A single-byte char is by itself atomic, in the ...
Cyker's user avatar
  • 4,364
4 votes
1 answer
2k views

setxkbmap conflicting with xmodmap

So initially I had the following in my ~/.Xmodmap which mapped CapsLock+HJKL to left/down/up/right like in vim: keycode 66 = Mode_switch keysym h = h H Left keysym j = j J Down keysym k = k K Up ...
gav.newalkar's user avatar
4 votes
1 answer
2k views

BASH question: using read, can I capture a single char OR arrow key (on keyup)

So here's my deal: working in BASH, I have already built out a function which works just fine that accepts an array or any number of parameters, and spits out an interactive menu, navigable by arrows ...
ZenAtWork's user avatar
1 vote
0 answers
31 views

Fix Numlock for one specific keyboard only (leaving the behaviour of other devices untouched)

My question is basically identical to this U&L Q&A titled: Enable numlock only for external keyboard, with a slight difference. I have the solution running to enable Numlock whenever an ...
Peter Nerlich's user avatar
3 votes
1 answer
246 views

Can emacs running under urxvt recognize the Hyper modifier key?

Can emacs running under urxvt be made to recognize Hyper? From what I can tell, it doesn't distinguish hyper+something from just plain unmodified something. urxvt itself does recognize the modifier, ...
Toothrot's user avatar
  • 3,485