geekhack

geekhack Community => Off Topic => Topic started by: mcc on Sun, 11 September 2011, 11:07:49

Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: mcc on Sun, 11 September 2011, 11:07:49
Hi,

I am running a recent Gentoo Linux with X-Windows and an IBM model M
via a Belkin PS2=>USB converter (active).
The IBM model M is a PC101 US-layut one (1390131).
I am using the evdev Interface, not hald.

The keyboard runs without problems...as it /seems/.

But running xkeycaps shows me, that some keys -- at least
in the mind of xkeycaps where recognized wrongly.

Whe using setxkbmap -v 10 -query shows me, that the system thinks
the model m has 104 keys.

I tried to set it to pc(pc101) via setxkbmap with no success.

I tried it via xorg.conf and xorg.conf.d...no success.

Is there any way to tell the system, that my IBM model m
only has 101 keys?

Thank yoiu very much in advance for any help!

Best regards,
mcc
Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: D-EJ915 on Sun, 11 September 2011, 12:07:03
It doesn't make any difference does it?
Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: mcc on Sun, 11 September 2011, 12:20:06
Hi,

thank you very much for your help D-EJ915 and Ripster!

I will try, what you have suggested.

Best regards,
mcc
Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: mcc on Mon, 12 September 2011, 12:59:21
Hi,

thanks for zour more helpful answers ! :)

But...this "I have 104 keys to offer"-behaviour is in front
of the X-server...and I had told the X-server via configs,
that it should interpret the keyboard as pc101...but it
simply ignores that.
BUT if I tell the X-server, that it would be QWERTZ instead of QWERTY
it seems no problem for it to accept this.
This seems to me a inconsistency in logic...as far as it is based on
logic at all...

At least xkeycaps get confused and therefore xmodmap will be unuseable
too as I fear (knowing that xmodmap is deprecated though)...

Or am I totally wrong here ?

Best regards and have a nice weekend!
mcc
Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: alaricljs on Mon, 12 September 2011, 13:12:41
Shouldn't matter, the difference between 101 and 104 keys is the addition of 3 specific key codes and no changes to the original 101 codes.  In what way does xkeycaps get confused?  When I run xkeycaps it tells me no keyboard type was specified and that a PC105 will be assumed.  As for xmodmap being deprecated... don't hold your breath.  It's been that way for many years.
Title: My keyboard does not have 104 keys... (Linux X11 conf)
Post by: JBert on Mon, 12 September 2011, 15:21:22
Ehr, when I run xkeycaps without arguments, it just asks me what the layout is. I only use it to test keyboards, and once you select the right layout, it works alright.