mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: logitech cordless desktop deluxe optical keyboard issues
@ 2004-01-11 13:58 Andries.Brouwer
  2004-01-11 16:05 ` sven kissner
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2004-01-11 13:58 UTC (permalink / raw)
  To: Andries.Brouwer, sven.kissner; +Cc: linux-kernel

    > That is a kernel message, not showkey output.
    > (BTW - which kernel precisely? The message is not the 2.6.0 one.)
    > Maybe showkey -s never sees them?

    i'm running a vanilla 2.6.1-kernel, without any additional patches.
    you're right about the message, showkey is exiting after 10s, even
    if i keep one of the 'problematic' keys pressed..

Yes, I see. Looking at 2.6.1 things are a bit different again,
but raw mode is very broken. Instead of reporting what the
keyboard sends, as raw mode is supposed to do, the scancode
is first converted to a keycode, and in the case of an unknown
scancode it is then just thrown away. In raw mode the keycode
is later translated back to a scancode (using a correspondence
that is not 1-1), but in your case we never get that far.

Did you try using setkeycodes? Say

# setkeycodes 91 120 92 121

to map scancode 0x91 to keycode 120 and 0x92 to 121.

Andries

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: logitech cordless desktop deluxe optical keyboard issues
@ 2004-01-11 19:03 Andries.Brouwer
  2004-01-11 19:35 ` sven kissner
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2004-01-11 19:03 UTC (permalink / raw)
  To: aebr, sven.kissner; +Cc: Andries.Brouwer, linux-kernel

> i'm not a programmer and not quite sure what to do with it..  ;)

Ah, sorry. Put the text (starting with the /* line) in a file
called sk.c. Compile it using the command "cc -Wall sk.c -o sk".
Then invoke it using ./sk, for example "./sk 92 120".

Andries


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: logitech cordless desktop deluxe optical keyboard issues
@ 2004-01-11  4:05 Andries.Brouwer
  2004-01-11  8:27 ` sven kissner
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2004-01-11  4:05 UTC (permalink / raw)
  To: Andries.Brouwer, sven.kissner; +Cc: linux-kernel

    > Anyway, I released kbd-1.10 last week or so, and it ignores the
    > kernel NR_KEYS but tries to adapt dynamically to the kernel.
    > It would not come with this error message, I suppose.

    the message doesn't appear anymore, but installing is giving me
    the following:

    <-- snip -->
    Setting up kbd (1.10-1) ...
    Looking for keymap to install:
    de-latin1-nodeadkeys
    cannot open file de-latin1-nodeadkeys
    Loading /etc/console/boottime.kmap.gz
    <-- snap -->

I suppose by default you would find these under

/usr/share/kbd/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz
/usr/share/kbd/keymaps/mac/all/mac-de-latin1-nodeadkeys.map.gz

    > : atkbd.c: Unknown key pressed (translated set 2, code 0x91 on
    >
    > This is something different, a key without associated keycode.
    > That is normal. If it really has high bit set it is a bit unusual.
    > (What does showkey -s show?)

    showkey -s is giving me exactly the same:
    <-- snip -->
    atkbd.c: Unknown key pressed
    <-- snap -->

That is a kernel message, not showkey output.
(BTW - which kernel precisely? The message is not the 2.6.0 one.)
Maybe showkey -s never sees them?

Andries

^ permalink raw reply	[flat|nested] 12+ messages in thread
* (no subject)
@ 2004-01-11  0:28 Andries.Brouwer
  2004-01-11  1:53 ` logitech cordless desktop deluxe optical keyboard issues sven kissner
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2004-01-11  0:28 UTC (permalink / raw)
  To: linux-kernel, sven.kissner

: with 2.6.x:
: Loading /etc/console/boottime.kmap.gz
: KDSKBENT: Invalid argument
: failed to bind key 265 to value 638

You must be using a non-standard loadkeys, or an old loadkeys
compiled against new kernel headers.

The 2.6 situation is broken in several respects and one of
the bugs is a NR_KEYS that is 512, which the keys involved
are unsigned characters and cannot be larger than 255.

My opinion is that NR_KEYS must be decreased to 256, and maybe
I have seen patches by Vojtech somewhere that already did this,
but looking at current bk source it seems that they have not been
applied yet.

Anyway, I released kbd-1.10 last week or so, and it ignores the
kernel NR_KEYS but tries to adapt dynamically to the kernel.
It would not come with this error message, I suppose.

: with 2.4.20 & 2.4.22-ck2 the value is increasing from 128 to 511

: failed to bind key 128 to value 512

2.4 has NR_KEYS equal to 128, so key 128 and higher do not exist.

So, so far all is well understood.

: atkbd.c: Unknown key pressed (translated set 2, code 0x91 on isa0060/serio0)
: atkbd.c: Unknown key released (translated set 2, code 0x91 on isa0060/serio0)
: atkbd.c: Unknown key pressed (translated set 2, code 0x92 on isa0060/serio0)
: atkbd.c: Unknown key released (translated set 2, code 0x92 on isa0060/serio0)

This is something different, a key without associated keycode.
That is normal. If it really has high bit set it is a bit unusual.
(What does showkey -s show?)

Maybe you can make this addressable using setkeycodes.

Andries

^ permalink raw reply	[flat|nested] 12+ messages in thread
* logitech cordless desktop deluxe optical keyboard issues
@ 2004-01-10 21:30 sven kissner
  0 siblings, 0 replies; 12+ messages in thread
From: sven kissner @ 2004-01-10 21:30 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello, 

i use the keyboard mentioned in the topic attached to the ps/2 keyboard port. 
most keys can be mapped using lineak or appropriate applications but i have 
problems getting some keys to work. i tested this with 2.6.0 and 2.6.1 as 
well as with some of the 2.4 series. with wintendo xp, all keys are working 
fine using logitech's itouch software.

xev is not displaying keycodes for the special keys not working but i get 
various messages by dmesg when pressing them:

<-- snip -->
atkbd.c: Unknown key pressed (translated set 2, code 0x91 on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x91 on isa0060/serio0).
atkbd.c: Unknown key pressed (translated set 2, code 0x92 on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x92 on isa0060/serio0).
<-- snap -->

on startup, i get the following:
with 2.6.x:
<-- snip -->
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
[..]
INIT: version 2.85
Loading /etc/console/boottime.kmap.gz
KDSKBENT: Invalid argument
failed to bind key 265 to value 638
KDSKBENT: Invalid argument
failed to bind key 265 to value 638
<-- snap -->

with 2.4.20 & 2.4.22-ck2 the value is increasing from 128 to 511, restarting 
~10 times(!):
<-- snip -->
INIT: version 2.85
Loading /etc/console/boottime.kmap.gz
KDSKBENT: Invalid argument
failed to bind key 128 to value 512
[..]
failed to bind key 511 to value 512
<-- snap -->

if i connect the kb to usb, there are slightly different issues, but let's do 
it step-by-step ;). any ideas how to get this working? if you require 
additional information, just let me know.

if answering, please put me on cc for i'm not subscribed to the list.

keep on rockin, 
sven
- --
..never argue with idiots. they drag you down to their level and beat you with 
experience..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAAG8MPV/e7f4i4AERAm2aAKCXkcngzoaoVI0caZ9qCnzIx8qSxACdEJtx
VmFnQRAFUhCckPWPbf0PKD8=
=AaJH
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-01-22 22:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-11 13:58 logitech cordless desktop deluxe optical keyboard issues Andries.Brouwer
2004-01-11 16:05 ` sven kissner
2004-01-11 16:32   ` Andries Brouwer
2004-01-11 18:37     ` sven kissner
  -- strict thread matches above, loose matches on Subject: below --
2004-01-11 19:03 Andries.Brouwer
2004-01-11 19:35 ` sven kissner
2004-01-11 19:46   ` Andries Brouwer
2004-01-22 22:49     ` sven kissner
2004-01-11  4:05 Andries.Brouwer
2004-01-11  8:27 ` sven kissner
2004-01-11  0:28 Andries.Brouwer
2004-01-11  1:53 ` logitech cordless desktop deluxe optical keyboard issues sven kissner
2004-01-10 21:30 sven kissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®