Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [keyboard-event]

The tag has no usage guidance.

1
vote
1answer
20 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
0answers
32 views

linuxmint 19.1: power button inserts letters (works fine on linuxmint 18.3)

I recently did a clean install of LinuxMint 19.1 (MATE edition) on my laptop. Since then, pressing the power button inserts a long row of dddddddddddddddddddddddddddddddddddd until I press it again, ...
0
votes
2answers
23 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
29 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
46 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 ...
3
votes
0answers
106 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 ...
3
votes
1answer
138 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
15 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 ...
2
votes
0answers
58 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
39 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 ...
11
votes
9answers
28k 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
227 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 } ...
0
votes
0answers
104 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 ...
2
votes
1answer
2k 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
65 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
80 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
361 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
130 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
134 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
900 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
74 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 ...
2
votes
0answers
69 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,...
2
votes
1answer
512 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
869 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 ...
2
votes
3answers
680 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, ...
3
votes
0answers
157 views

How to change keyboard layout with a game controller

I'm going to copy this largely from a post of mine on reddit, because I'm inhibited by a broken wrist on my dominant hand: Due to that broken wrist I've been reduced to one-handed hunt'n'peck. And ...
1
vote
1answer
82 views

Line editing (readline?) with virtual keys

I want to bind terminal behavior to hotkeys without having to define escape sequences. I understand readline binds to characters instead of actual key presses. Can it also bind to the lower level ...
3
votes
0answers
170 views

Can awesome-wm pass a key press down to the active window under certain conditions?

Normal behavior : if a certain key binding (say, Ctrl+w) is not bound in awesome globalkeys, it gets passed down to the active window. If an awesome awful.key is bound to this key, then awesome grabs ...
8
votes
1answer
2k views

How to get MS Natural Ergonomic 4000 slider work on Linux Mint?

I'm trying to make slider on MS keyboard working, but still it doesn't. What I've tried already: in /etc/udev/hwdb.d/61-keyboard-local.hwdb keyboard:usb:v045Ep00DB* KEYBOARD_KEY_c022d=up ...
0
votes
1answer
106 views

Which module in a Linux distribution is responsible for keyboard shortcuts? [duplicate]

I have a specific problem with keyboard shortcuts and haven't gotten a solution for it so far, so now i need to know which module within a Linux distribution is responsible for handling keyboard ...
2
votes
0answers
168 views

keyboard shortcut works in one layout, not in another

I use terminator on arch linux / Gnome 3 and in there I switch between the tabs with Control L + Page Up / Down. When I'm in the de or en keyboard layout, this works fine. However, I figured out that ...
0
votes
1answer
574 views

Binding keys in xbindkeysrc to type a command

I am trying to bind Alt+Up to type cd .. command using Xbindkeys. Here is what I've tried, among other things: "sleep 1 && xdotool type cd .. --delay 15 && xdotool key Return" Alt+Up ...
4
votes
1answer
799 views

How to disable JavaScript key events (and theft) in Firefox by websites?

I use Mozilla Firefox to browse the web. When I look at a site and wish to search text on the page, I use the slash / character to initiate incremental search (which is the default Firefox behaviour)....