General keyboard topics, including keyboard hardware and keyboard functionality in software.

learn more… | top users | synonyms

4
votes
1answer
155 views

Set window manager's meta key depending on connected Xserver

Situation A linux server is running an xdm supporting XDMCP, it is connected to from various different Linux and OS X boxes using XDMCP via an X -query <server> command. Once the user is ...
4
votes
3answers
946 views

Enabling Numeric Keypad

I have trouble with the numeric keypad (NumLock keys) being unusable while typing. While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it ...
4
votes
1answer
231 views

Diacritics do not work in GTK+ applications running on Mac OS X Snow Leopard

I am using some GTK+ applications in Mac OS X Snow Leopard. My MacBook is configured for using the Brazilian layout, which allows it to enter diacritics as dead keys (so I can write á typing ' and ...
3
votes
3answers
3k views

Does the Fn Lock (FnLk) on Thinkpad T440s work well with Linux?

I'm considering to buy a Lenovo Thinkpad T440s and to install Linux on it. According to the user guide and photos of T440s, to use F1-F12 you have to hold down the Fn key, or use Fn+Esc to enable "Fn ...
3
votes
1answer
5k views

How to change keyboard keymap

I accidentally set my keyboard type to US during installation, but it actually is UK type. How do I change it? [note] I use Debian Squeeze.
3
votes
1answer
70 views

How to find out the escape sequence my keyboards sends to terminal?

Let's say we have a generic keyboard with some unknown keys which may send escape sequences to terminal. The keyboard is connected to an xterm terminal emulator running on a generic BSD/Linux. To ...
3
votes
2answers
123 views

Multi-function CapsLock without X

I would like to remap CapsLock to Esc when pressed by itself and Ctrl when pressed with another key without using X. This is similar to a previous question ( Remap CapsLock to Escape and Control ...
3
votes
1answer
154 views

Switch to TTYs without Function keys

At the moment I have a keyboard which lacks function keys (F1 through F12), and I was wondering - is there a way I could switch to textual TTYs (and back, which might prove to be a problem if I were ...
3
votes
1answer
469 views

How to distinguish input from different keyboards?

I want to write an application in Python that you can use with your default keyboard and a specially designed one for the application. I will design it simply by using a small numerical keyboard with ...
3
votes
2answers
327 views

The key codes for Caps Lock, Shift, Left Control and FN key?

Can somebody please provide the key codes for these keys: Caps Lock Left Shift Left Control Option key FN The key code I'm talking about is something along the lines of \<Esc>[200~, although ...
3
votes
1answer
36 views

How do I generate the sequence “\e[Z” in a terminal?

It is bound to menu-complete in GNU readline. $ bind -p|grep menu "\e[Z": menu-complete # menu-complete-backward (not bound) # old-menu-complete (not bound) I think it's Meta-something.
3
votes
3answers
1k views

Ubuntu 12.04 Gnome 3 “freezes” randomly - not a normal freeze though

Since upgrading to 12.04, I've randomly experienced this strange phenomenon where my mouse mostly doesn't work and keyboard mostly does. I have not been able to identify a cause for this. Sometimes it ...
3
votes
1answer
563 views

Unix User Level Keylogger

I need to record my own keystroke data for some academic research. I wrote a regular keylogger for Windows, but now I need to write one for a Unix environment, with the constraint that I have only ...
3
votes
1answer
574 views

sysrq won't reboot with a keystroke, but will with echo “b” > /proc/sysrq-trigger

CentOS 6.2, 2.6.32-220.el6.x86_64 laptop. SysRQ is enabled for keyboard input, as is witnessed by: $ cat /proc/sys/kernel/sysrq 1 Common Magic SysRQ Keys are working such as alt-sysrq-h. However, ...
3
votes
2answers
1k views

Is there a way to remap the AltGr key to Ctrl with setxkbmap?

I've already checked the option section in /usr/share/X11/xkb/rules/base.lst but I didn't find an entry for AltGr...
3
votes
2answers
1k views

Some keys are invalid on emacs when using German keyboard

When I am using emacs 23.3 on KDE, I can not input ^, ´ and ~ from my German keyboard. If I press these keys, then emacs says that <dead-circumflex>, <dead-acute> and <dead-tilde> ...
3
votes
4answers
1k views

Matlab gets “crazy” after type special characters

I'm using a computer running Ubuntu and I'm connected through ssh to a RedHat machine where I use Matlab in command line mode (matlab -nodesktop). Matlab version is 7.10.0.499 (R2010a). My problem ...
3
votes
2answers
4k views

'd' Key on VNC Viewer Minimises All Windows

I'm running vnc4server on an Ubuntu 10.10 box, and connecting to it from an Ubuntu 8.04 machine using TightVNC Viewer 1.3.9. I'm unable to type anything with the character d within the VNC session, as ...
3
votes
1answer
228 views

Map Super+[Left|Right] to Home/End

How do I map key "Super" so, when combined with Left/Right, it produces keycode Home/End? My current setxkbmap: setxkbmap \ -model pc105 \ -layout 'us(dvorak-intl),us(alt-intl)' \ -option \ ...
3
votes
1answer
705 views

Create and set custom keyboard layout

I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content: partial default alphanumeric_keys xkb_symbols "basic" { include "latin(type4)" ...
3
votes
1answer
848 views

Disabling caps lock by setxkbmap makes it Shift key in Emacs

I'm using GNU Emacs 23.2.1. within Xfce 4.8.0 (both coming from the Ubuntu Natty repository). I disable the CapsLock by running /usr/bin/setxkbmap -option "ctrl:nocaps" at the beginning of the Xfce ...
3
votes
1answer
201 views

Keyboard bindings from bash to zsh?

I have the following entries on my .inputrc for bash: "\C-p": history-search-backward "\C-n": history-search-forward "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": ...
3
votes
1answer
435 views

Keyboard input not displayed on the screen?

We use the `exceed tool to connect to our UNIX servers, but sometimes the command-line behaves erratically. When I am typing some command on the command-line, nothing happens -- nothing is displayed ...
3
votes
2answers
496 views

Why does US International Keyboard break Alt_R

All adding the U.S. English International (with dead keys) keyboard layout breaks my Alt_R key. Any ideas why? I'm working on RHEL 5.5 using GNOME. The problem disappears if I remove the additional ...
3
votes
1answer
859 views

The caps lock and scroll lock lights are flashing and everything is frozen

I was using a small Linux distro that was running X11 with JWM as its window manager. I was browsing a directory when all of a sudden the mouse froze and the keyboard became unresponsive. The caps ...
3
votes
1answer
80 views

How to regain control of my computer?

I am running a database server on my computer. Sometimes it takes up so much memory resources that the system stop responding to keyboard and mouse inputs. Although I can move the mouse pointer and ...
3
votes
1answer
45 views

Since I execute 'stty erase ~' I can't type / anymore in Putty

Yesterday I was fed up with being forced to type Caps+Backspace to erase character in Putty, because a Backspace was printing a ~. I found some info on internet saying you should type stty erase ~, or ...
3
votes
1answer
211 views

How to get the actual keyboard device given the output of /proc/bus/input/devices?

When I run: cat /proc/bus/input/devices ...I receive the following output: ... I: Bus=0003 Vendor=040b Product=2000 Version=0110 N: Name="Generic USB Keyboard" P: Phys=usb-0000:00:1d.0-1/input0 ...
3
votes
1answer
66 views

How to clear keybinding

I'm in Linux (if it's relevant: Fedora 17 x86_64, 3.6.11) and my laptop's PageUp key has gone ultrasensitive on me. I'd like to disable it (remap it to nothing at all) as I've never liked it where it ...
3
votes
1answer
431 views

Getting keyboard to work in debian 6.0 in order to unlock root partition

I just installed Debian 6.0, encrypted / and now I'm trying to boot. When GRUB comes up, I select Debian, it loads the initrd and asks for the root password, however I can't enter anything, because ...
3
votes
1answer
109 views

How to use the Meta/Alt Key with tput?

I want to redefine keybindings for the commandline of a lisp dialect. The commandline is actually modeled after Vi and implemented with tput/terminfo. I want an alternative version with Emacs ...
3
votes
4answers
665 views

How to print keypresses in .inputrc format?

Which application can I use to figure out what to put in .inputrc for any custom keyboard shortcut? I've tried a few, and none of them seem to be usable: showkey, showkey -a and read just print ' if ...
3
votes
2answers
1k views

What does this output from xev mean?

I'm interested in remapping some keys on my keyboard. In particular, I want to hold down the Function key, press the F1 key, and have this trigger a script. I know that xev is useful for figuring out ...
3
votes
2answers
1k views

Disable scroll lock

We have a shell/tty based application that has ~1,000 users. It is running in an environment where X Server is not available. If a user accidently turns on the Scroll Lock, it makes it seem as if the ...
3
votes
2answers
331 views

Uppercase input turns on periodically

I have some problem. Every 3-5 second everything, that I input from keyboard became UPPERCASE only. I also have two keyboard layouts: us and ua. And when uppercase happens - I can't switch my keyboard ...
3
votes
1answer
2k views

Keyboard Problem with Debian testing and gdm3

I'm driving a Debian testing machine that is running fine. But since testing includes Linux Kernel 3 I have the following problem: While booting all is working (I mean especially the keyboard) - ...
3
votes
1answer
777 views

Automating typing strings in xmacro

Could you show me how to write macro in xmacro (that will work in whole desktop environment) that is able to expand strings? E.g. I will type "thx" and it will expand to "thank you".
3
votes
1answer
2k views

How to change the USB keyboard layout in an OpenBSD console?

I may be abusing the word console but I mean the mode without X i.e. pressing ^+Alt F1 and then log as other user where I want to use my chosen layout with USB keyboard. X works, it configures the ...
3
votes
1answer
112 views

How to turn on Keyboard Autorepeat permanently on VMware instances of CentOS 6?

In my lab we have about 40-50 machines, all cloned with the same image of CentOS 6. For some reason the keyboard auto repeat function decides to randomly turn itself off. Typically we just have ...
3
votes
1answer
284 views

Have Sun keyboard moon key (116) not shut down my computer

On my Sun keyboard, the top-rightmost key (with a moon image, right above the keypad) shuts down my computer. I'd like it not to, as I hit it by mistake now and then. In /etc/default/keyboard, I only ...
3
votes
1answer
203 views

Archlinux gizmod

I've recently installed Archlinux on my laptop and it's been doing everything I needed except one thing: key bindings. I wanted to be able to use the volume buttons (including when in a full screen ...
3
votes
1answer
456 views

How do I remap my caps lock key to ctrl+x within x.org?

I've seen some setxkbmap stuff when talking about key mappings, but ctrl-c isn't a single key. Ideally, I would love to make it a copy/paste key but that seems impossible on Linux. Is there a way ...
3
votes
1answer
704 views

Keyboard (mostly) doesn't work in Wine

When I run any program in wine (e.g. notepad), I can use the keyboard just fine until I click the mouse. As soon as I click the mouse for any reason, the keyboard stops working entirely. I'm using ...
3
votes
0answers
54 views

OS X-like deadkeys behavior on Linux

I'm on Debian (actually Crunchbang), and my notebook has a default US layout keyboard. My native language is Brazilian Portuguese (pt-BR), so I've changed my layout with setxkbmap -layout us -variant ...
3
votes
0answers
104 views

xmodmap for key combination

With Logitech K290 keyboard via USB, F. keys are not accessible by default, and I need to press Fn before using them, which is not really usable. The Fn key alone does not fire any event in xev. ...
3
votes
0answers
111 views

First key pressed repeates forever

I just installed CentOS 6.4 on an old machine I acquired for a development box, but I am running into keyboard issues I can't get around. I start the machine and go to type a user name in and ...
3
votes
1answer
263 views

Laptop keyboard occasionally stops working

I have a dirty solution that is to plug a USB keyboard in and execute the following command: setxkbmap -rules evdev -layout us -model evdev Afterward my keyboard will work. This solution only ...
3
votes
0answers
369 views

How to load HID kernel module from the kernel command line?

While upgrading a server from kernel 3.2.9 to kernel 3.5 I had a problem with the network (ifconfig eth0 up won't work) so I updated the system to get a newer userspace, but in the process something ...
3
votes
1answer
1k views

Apple Bluetooth Keyboard

I have an Apple bluetooth keyboard and want to use it with Fedora 15. I turn on the bluetooth on the both devices. Click 'Setup new device' via Gnome3's GUI. The computer detects the keyboard but it ...
3
votes
0answers
325 views

Gnome3/Archlinux move windows with keys?

Looking for an app that will allow me to move my Gnome3 windows with keys like "Ctrl+Alt+Home" to move to top left corner of the screen. Essentially, this is what Winsplit revolution does on windows. ...