We changed our privacy policy. Read more.

Questions tagged [keyboard-event]

The tag has no usage guidance.

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

Audio and Video Play pauses Rapidly

While playing a video in any browser or in any of my laptop player, the video play-pauses automatically and very rapidly. This problem used to exist earlier when I used Windows. Thinking it's a OS ...
1
vote
0answers
33 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 -...
0
votes
1answer
22 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 ...
0
votes
0answers
17 views

How to capture Power Down event from keyboard?

I'm running Raspbian version 2021-03-04 on a Raspberry Pi 3 Model B+. I have a Ponybro Mini Keyboard that has a little power button on it. It's very close to the "left mouse click" button, ...
0
votes
0answers
20 views

How can I create the lowest level keyboard bindings in linux?

Is there a way that I can bind Alt+j to be translated to Left arrow key so that the OS interprets this exactly as if it were a Left key? So far it seems to be impossible without a programmable ...
0
votes
0answers
14 views

Crossplatform library that can handle keyboard events (including keyup/kedown) without X similar to the way SDL does it

I know there are ways to manually check keyboard events and check if it's keyup/down (regardless whether in framebuffer or window system) such as /dev/input/events* or ioctl, at least on Linux, like ...
1
vote
0answers
27 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 ...
1
vote
1answer
35 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 ...
3
votes
1answer
89 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 ...
2
votes
0answers
92 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 ...
0
votes
1answer
24 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 ...
0
votes
0answers
89 views

Keyboard not working with X11 forwarding - same keycode 8 for almost every key

I am using X11 forwarding over SSH from a Ubuntu 18.04 server to a Windows 10 client using ssh -Y user@server The keyboard is not working properly. Using xev, I see that while some keystrokes such as ...
1
vote
1answer
40 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 ...
0
votes
1answer
102 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?
3
votes
0answers
31 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)
0
votes
1answer
59 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 ...
1
vote
1answer
319 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?
1
vote
1answer
1k 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 ...
1
vote
0answers
349 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 ...
1
vote
0answers
79 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 ...
2
votes
0answers
336 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 ...
0
votes
1answer
507 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/...
1
vote
2answers
348 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?
1
vote
2answers
86 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 ...
3
votes
1answer
272 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 ...
0
votes
1answer
352 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 ...
1
vote
1answer
1k 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 ...
0
votes
2answers
194 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 ...
0
votes
1answer
55 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 ...
-4
votes
1answer
59 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 ...
4
votes
1answer
865 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 ...
2
votes
1answer
949 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 ...
1
vote
0answers
20 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 ...
3
votes
1answer
152 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, ...
0
votes
1answer
98 views

What is the intention of KEY_NEXT compared to KEY_NEXTSONG?

I'm in the process of mapping IR remote buttons in LIRC. I looked through input-event-codes.h and came across KEY_NEXT and KEY_NEXTSONG, so I did some searching but I couldn't find descriptions for ...
53
votes
14answers
145k views

Ubuntu 18.04 won't wake after screen lock and blank / suspend / sleep

I am trying to run Ubuntu 18.04 on a laptop with an AMD A12 processor and Radeon R7 graphics. I am having nothing but problems and am very discouraged with Ubuntu though I used 12.04 for years without ...
2
votes
2answers
609 views

Update ZSH PS1 / prompt on keypress

Part of my ZSH prompt is a caps lock indicator. function Capslock(){ x=$(xset -q | grep Caps) 2> /dev/null || exit 0 x=${x:22:1} if [[ $x == "n" ]]; then echo "" fi } ...
1
vote
0answers
344 views

Some keys only send a KeyRelease event

For some reason some keys only send a KeyRelease event and not a KeyPress one: This is what I get when I press Print Screen. This makes the Print Screen key unusuable for remapping to keys that send ...
5
votes
2answers
8k views

KeyBoard Monitoring without display

Working on a project that uses a little keyboard and an E-ink display which will run on a raspberry pi Zero. I have tried a couple of keyboard packages for python (pynput, pyxhook) and have written/...
1
vote
1answer
331 views

Debug/fix a key autorepeat issue?

I'm using Caps Lock as a Control key, configured with the following command (I'm running Gnome): gsettings set org.gnome.desktop.input-sources xkb-options \ "['caps:ctrl_modifier']" Sometimes when ...
0
votes
0answers
197 views

Microsoft keyboard media keys and USB hub

I have a puzzle: 1) Debian 4.9.65 system 2) Microsoft Natural Keyboard 4000 3) Acer monitor working as USB hub When the keyboard is plugged to the monitor's USB hub, it mostly works, visible in lsusb ...
1
vote
1answer
893 views

System keeps registering key presses I do not press - Linux 4.13

I am on elementaryOS (which is based on Ubuntu 16.04.3 LTS). After latest kernel update, key repeat stopped working. I mean the behaviour which types 'ffffffff' when I hold the 'f' key. I discovered, ...
0
votes
0answers
287 views

X11: mirror input to multiple windows

There is a nice tool called xlax which allows keyboard input to be mirrored to multiple X11 windows. One problem that I encountered during the use of this tool is that the two windows can ...
0
votes
0answers
233 views

Disabling virtual terminal while grabbing /dev/input/event*

On an embedded system (running Raspbian Stretch without X) I have a C++ application that sometimes "grabs" the raw keyboard inputs from /dev/input/event*. When this happens (I set a flag in my code, ...
2
votes
1answer
3k views

Keys are not detected in Xorg using xev

I have a new mechanical keyboard and I want to use some custom key build-in (C1, C2, C3, C4, C5). The problem I encounter is that those keys are not detected in Xorg when I run xev. I am able to see ...
1
vote
0answers
136 views

XFCE Focus/Event Handling

In XFCE I defined Ctrl+Shift+Space to open the system menu. After installing Intellij I noticed that it uses that shortcut in a useful way. However, if I press it the system menu pops up. This is ...
1
vote
0answers
157 views

Something strange happens while keypress [duplicate]

I have meka g-unit keyboard. This keyboard has 12 additional keys. I found scancodes of this keys via evtest and mapped these codes to f13-24 key codes. Everything works fine, but some keys(F20,21,22,...
3
votes
1answer
2k views

How to investigate X11 not seeing a key press?

I just installed Debian 9 (Stretch) this morning and I can't get my Meta key working. It used to work completely fine in Debian 8 (Jessie) and I don't remember having any problem. The X server seems ...
4
votes
2answers
2k views

How to prevent the keyboard from being interpreted by the current application?

I have 3 USB-keyboards attached to the Linux. Normally, when writing on any one, the characters "going" to the currently active application, e.g. to terminal or any other app. But, me reading the ...
3
votes
3answers
1k views

Redragon Asura USB keyboard maps all Ctrl, Alt, Win keys to Shift_L

Status: This is fixed as of Kernel 4.18, see the accepted answer for details. I just started using a Redragon Asura USB Keyboard. The keyboard works at a basic level, but unfortunately all the Ctrl, ...