Questions tagged [keyboard-event]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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?
0
votes
0answers
19 views

Fn key works on one machine, but triggers Scroll_Lock events on another

I recently got my hands on a Koolertron SMKD62 split keyboard and have been trying it out on different PCs. One interesting behavior I observed is that on one particular Linux machine the Fn hot key ...
0
votes
0answers
19 views

XF86BrightnessUp/Down events stopped appearing in xev

I am running manjaro 18.1.5 using intel_backlight and have previously been able to remap the brightness keys but recently noticed that XF86BrightnessUp/Down events are no longer registered in xev as ...
1
vote
1answer
28 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 ...
0
votes
0answers
50 views

How to get xbindkeys to run command after key combination is released?

Assumptions I assume xbindkeys handels keys events as follows: Periodical checks for state of keys. If key combination is down then execute command. Which implies if a key combination is held down ...
0
votes
0answers
18 views

Keyboard not getting a keyboard not getting input id, udev rule to do this?

Can I setup a udev rule to assign my keyboard a /dev/input/by-id/ identifier? I can get this from cat /proc/bus/input/devices so it is being recognized at least somewhat correctly. I: Bus=0003 ...
0
votes
0answers
81 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
42 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 ...
1
vote
0answers
118 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
211 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/...
0
votes
2answers
135 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
47 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 ...
0
votes
0answers
64 views

Keyboard media key events not being received by Spotify desktop app

I have a strange issue in which the Spotify desktop client on my Debian computer doesn't receive events from the media keys on my keyboard. Restarting the computer sometimes makes it work but not ...
3
votes
1answer
73 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
62 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 ...
0
votes
0answers
17 views

Is there a way to monitor/log control characters in a terminal window?

Despite the generality of the question in the title, my goal is to be able to tell when the up and down arrows in my Bash shell are used. Having some sort of signal (like alert or writing to a file) ...
0
votes
0answers
12 views

Avoid “;3~” when task-switching away from a Virtualbox'ed bash terminal

Context: Debian running in a Virtualbox VM on a Windows 10 host. Everything works fine, including all keyboard stuff (i.e., dead keys, German layout etc.). When I press Alt-Tab, there appear the ...
1
vote
1answer
518 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
58 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
40 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
54 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
1answer
347 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
377 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
18 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
112 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
62 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 ...
33
votes
13answers
80k 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
438 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
217 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 ...
3
votes
1answer
5k 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
155 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
165 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
571 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
179 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
166 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
1k 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
112 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
120 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
800 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
1k 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
897 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
204 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
105 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 ...
2
votes
0answers
243 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 ...
7
votes
1answer
3k 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
121 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
174 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
640 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
1k 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)....