Comment 18 for bug 215496

Revision history for this message
Jamie Bainbridge (superjamie) wrote :

It seems 'xkbset m' and Ctrl+Alt+Shift+Numlock both toggle mousekeys on the numpad. I imagine most laptop users wouldn't see this behaviour, due to their integrated Fn+ key numpads. A sideffect for me is that Ins0 Numpad5 and Numpad+ become right click whilst this state is active. 'xev' confirms Pointer_Button3 is registered on those keypresses.

However, I found 'setxkbmap' does fix the "XKB not supported" error, you specify a language for layout. Here's the script I use to make a keyboard button do middle-click paste:

#!/bin/bash
setxkbmap -layout us
xkbset m
xkbset exp =m
xmodmap -e "keycode 135 = Pointer_Button2"

I'd say either features in X or xkbset changed, and 'setxkbmap' is the correct way of using 'xkbset'.

-- Ubuntu 8.04.1, xorg 7.3+10ubuntu10.2, xkbset 0.5-5.1

Out of interest, 'xkbset' runs without 'setxkbmap' on Intrepid on my Dell Vostro 1200 laptop with Intel 965 video. I have not tried Intrepid on my desktop with nVidia FX5200 video and Microsoft Comfort Curve 2000 keyboard.