Re: Alt key doesn't work

2016-01-08 Thread sikerbela

If it changes console with Alt then it is getting the keypress.
You might try out getting its keycode with xev and mapping it to proper
Alt with xmodmap.

On 2016-01-09 03:54, Teng Zhang wrote:

hi,
the Alt key doesn't work on my machine in most cases except for
changing console(Crtl+Alt+F_number). So, what key i can use to replace 
Alt.




How do I ignore all keystrokes with a particular keycode?

2016-01-05 Thread sikerbela

Hello beoble, it is my first mail to this mailing list.

I just installed OpenBSD 5.8 and it is working nicely with one problem,
I can't hold keys down. It goes for a second and then gets interrupted-
apparently by another keypress.

I fired up xev to see what is happening and it gave this output, looks
like there is a keystroke sent every second, with a keycode of 119.

KeyRelease event, serial 32, synthetic NO, window 0x241,
root 0x9d, subw 0x0, time 19928102, (-360,542), root:(444,560),
state 0x0, keycode 119 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

If it was on Linux, I would just map it to "void" using
# setkeycodes 0x77 255
and not care about it again. I googled and
asked on U stackexchange for an equivalent of this and found 
wsconsctl,

and tried out
# wsconsctl keyboard.map+="keycode 119=voidSymbol"
and
# wsconsctl keyboard.map+="keycode 119=a"

to see if it does anything after all, but no love. I am quite lost since
even if I knew how to map it, I don't know where to map it in order to 
make

it ignored after all.

Not sure if it will help, but here is the output of wsconsctl 
keyboard.map:


keyboard.map=
keycode 119 = a A

so I know it is setting the variable.

There is no relevant output in xconsole or dmesg.

Thanks in advance,
Sikerb Ela