Return-Path: <Olivier.Bornet@puck.ch>
Received: from mail.axiom.ch [213.221.158.30]
	by localhost with IMAP (fetchmail-6.1.0)
	for bol@localhost (single-drop); Tue, 28 Oct 2003 09:28:46 +0100 (CET)
Received: from obelix.spectraweb.ch (mailrelay03.sunrise.ch [194.158.229.31])
	by pop.axiomail.ch (8.11.6/8.11.6) with ESMTP id h9S8RPa28776
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:25 +0100
Received: from delta (adsl-62-167-40-36.adslplus.ch [62.167.40.36])
	by obelix.spectraweb.ch (8.12.9/8.12.6) with ESMTP id h9S8RXwZ024827
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:33 +0100
Received: from bol by delta with local (Exim 3.36 #1 (Debian))
	id 1AEPBz-0003W8-00
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:07 +0100
Resent-From: Olivier.Bornet@puck.ch
Resent-Date: Tue, 28 Oct 2003 09:27:07 +0100
Resent-Message-ID: <20031028082707.GD27228@puck.ch>
Resent-To: olivier.bornet@smartdata.ch
Received: from puck.ch [153.109.180.3]
	by localhost with IMAP (fetchmail-5.9.11)
	for bol@localhost (single-drop); Tue, 14 Oct 2003 09:14:39 +0200 (CEST)
Received: from duba05h05-0.dplanet.ch ([212.35.36.52])
	by puck.ch with esmtp (Exim 3.36 #1)
	id 1A9JMH-0006ks-00
	for Olivier.Bornet@puck.ch; Tue, 14 Oct 2003 09:14:02 +0200
Received: from delta (adsl-62-167-38-5.adslplus.ch [62.167.38.5])
	by duba05h05-0.dplanet.ch (8.12.10/8.12.10/2.00dplanet-smtp) with ESMTP id h9E7CeA1009314
	for <Olivier.Bornet@puck.ch>; Tue, 14 Oct 2003 09:12:40 +0200
Received: from bol by delta with local (Exim 3.36 #1 (Debian))
	id 1A9JME-0002Pq-00
	for <Olivier.Bornet@puck.ch>; Tue, 14 Oct 2003 09:12:38 +0200
Resent-From: Olivier.Bornet@puck.ch
Resent-Date: Tue, 14 Oct 2003 09:12:38 +0200
Resent-Message-ID: <20031014071238.GF21217@puck.ch>
Resent-To: Olivier Bornet <Olivier.Bornet@puck.ch>
Date: Tue, 14 Oct 2003 09:08:43 +0200
From: Olivier Bornet <Olivier.Bornet@puck.ch>
To: Peter Klausler <peter@klausler.com>
Cc: Olivier Bornet <Olivier.Bornet@puck.ch>
Subject: Re: bthid 0.6 with logitech keyboard/mouse
Message-ID: <20031014070843.GE21217@puck.ch>
References: <20031012232755.GA21217@puck.ch>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="0z5c7mBtSy1wdr4F"
Content-Disposition: inline
In-Reply-To: <20031012232755.GA21217@puck.ch>
X-From: Olivier Bornet <Olivier.Bornet@puck.ch>
X-Url: http://puck.ch/
User-Agent: Mutt/1.5.4i
X-Virus-Scan: Scanned by TrashScan v0.09 running on delta
Resent-Sender: Olivier Bornet <Olivier.Bornet@puck.ch>
X-Spam-Status: No, hits=-6.2 required=5.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,REFERENCES,RESENT_TO,
	      USER_AGENT_MUTT
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)


--0z5c7mBtSy1wdr4F
Content-Type: multipart/mixed; boundary="ULyIDA2m8JTe+TiX"
Content-Disposition: inline


--ULyIDA2m8JTe+TiX
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

On Mon, Oct 13, 2003 at 01:27:55AM +0200, Olivier Bornet wrote:
> Another problem I have is the key < and > are not working. The layout of
> my keyboard is fr_CH (Swiss French), and the key with < and > is on the
> bottom line.

I have find a solution for this problem: use the same array as the usb
one (hid_keyboard from /usr/src/linux/drivers/usb/hid-input.c). This is
working great for me will all the "normal" keys. (don't know how to
enable hotkeys).

The patch for this is attached.

Good day.

		Olivier
--=20
Olivier Bornet                 |      fran=E7ais : http://puck.ch/f
Swiss Ice Hockey Results       |      english  : http://puck.ch/e
http://puck.ch/                |      deutsch  : http://puck.ch/g
Olivier.Bornet@puck.ch         |      italiano : http://puck.ch/i
Get my PGP-key at http://puck.ch/pgp or at http://wwwkeys.pgp.net

--ULyIDA2m8JTe+TiX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-bthid-0.6-for-lt-kbd-sf.txt"
Content-Transfer-Encoding: quoted-printable

--- bthid-0.6-orig/hid.c	2003-04-29 22:00:53.000000000 +0200
+++ bthid-0.6/hid.c	2003-10-14 08:58:25.000000000 +0200
@@ -369,46 +369,26 @@
 static	int	any_keyboard;
=20
=20
-static	int	hid_to_linux [256] =3D {
-
-/* 0x00 */	0 /* no event */, 0 /* rollover error */, 0 /* POST fail */,
-		0 /* undefined error */, KEY_A, KEY_B, KEY_C, KEY_D,
-/* 0x08 */	KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L,
-/* 0x10 */	KEY_M, KEY_N, KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T,
-/* 0x18 */	KEY_U, KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z, KEY_1, KEY_2,
-/* 0x20 */	KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0,
-/* 0x28 */	KEY_ENTER, KEY_ESC, KEY_BACKSPACE, KEY_TAB,
-		KEY_SPACE, KEY_MINUS, KEY_EQUAL, KEY_LEFTBRACE,
-/* 0x30 */	KEY_RIGHTBRACE, KEY_BACKSLASH, 0, KEY_SEMICOLON,
-		KEY_APOSTROPHE, KEY_GRAVE, KEY_COMMA, KEY_DOT,
-/* 0x38 */	KEY_SLASH, KEY_CAPSLOCK, KEY_F1, KEY_F2,
-		KEY_F3, KEY_F4, KEY_F5, KEY_F6,
-/* 0x40 */	KEY_F7, KEY_F8, KEY_F9, KEY_F10,
-		KEY_F11, KEY_F12, KEY_SYSRQ, KEY_SCROLLLOCK,
-/* 0x48 */	KEY_PAUSE, KEY_INSERT, KEY_HOME, KEY_PAGEUP,
-		KEY_DELETE, KEY_END, KEY_PAGEDOWN, KEY_RIGHT,
-/* 0x50 */	KEY_LEFT, KEY_DOWN, KEY_UP, KEY_NUMLOCK,
-		KEY_KPSLASH, KEY_KPASTERISK, KEY_KPMINUS, KEY_KPPLUS,
-/* 0x58 */	KEY_KPENTER, KEY_KP1, KEY_KP2, KEY_KP3,
-		KEY_KP4, KEY_KP5, KEY_KP6, KEY_KP7,
-/* 0x60 */	KEY_KP8, KEY_KP9, KEY_KP0, KEY_KPDOT, 0, 0, 0, 0,
-/* pmk!! fill these in, even though my keyboard doesn't use them... */
-/* 0x68 */	0, 0, 0, 0, 0, 0, 0, 0,
-/* 0x70 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0x80 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0x90 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xa0 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xb0 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xc0 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xd0 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xe0 */	KEY_LEFTCTRL, KEY_LEFTSHIFT, KEY_LEFTALT,
-		KEY_LEFTMETA,	/* Would COMPOSE be better? */
-		KEY_RIGHTCTRL, KEY_RIGHTSHIFT, KEY_RIGHTALT, 0,
-/* 0xe8 */	0, 0, 0, 0, 0, 0, 0, 0,
-/* 0xf0 */	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+#define unk     KEY_UNKNOWN
+static unsigned char hid_to_linux [256] =3D {
+          0,  0,  0,  0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,
+         50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 21, 44,  2,  3,
+          4,  5,  6,  7,  8,  9, 10, 11, 28,  1, 14, 15, 57, 12, 13, 26,
+         27, 43, 84, 39, 40, 41, 51, 52, 53, 58, 59, 60, 61, 62, 63, 64,
+         65, 66, 67, 68, 87, 88, 99, 70,119,110,102,104,111,107,109,106,
+        105,108,103, 69, 98, 55, 74, 78, 96, 79, 80, 81, 75, 76, 77, 71,
+         72, 73, 82, 83, 86,127,116,117, 85, 89, 90, 91, 92, 93, 94, 95,
+        120,121,122,123,134,138,130,132,128,129,131,137,133,135,136,113,
+        115,114,unk,unk,unk,124,unk,181,182,183,184,185,186,187,188,189,
+        190,191,192,193,194,195,196,197,198,unk,unk,unk,unk,unk,unk,unk,
+        unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,
+        unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,
+        unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,
+        unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,
+         29, 42, 56,125, 97, 54,100,126,164,166,165,163,161,115,114,113,
+        150,158,159,128,136,177,178,176,142,152,173,140,unk,unk,unk,unk
 };
=20
-
 static	int	hid_dvorak_to_linux [256] =3D {
=20
 /* 0x00 */	0 /* no event */, 0 /* rollover error */, 0 /* POST fail */,

--ULyIDA2m8JTe+TiX--

--0z5c7mBtSy1wdr4F
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/i6D7dj3R/MU9khgRAlcQAJ41MNNu/y/XoOunRa+W5giTC0HYmwCgkVqh
2TYpDE+aGkXHDBp2fP+c6+k=
=ff9S
-----END PGP SIGNATURE-----

--0z5c7mBtSy1wdr4F--

