Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265346AbUAKQcp (ORCPT ); Sun, 11 Jan 2004 11:32:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265378AbUAKQcp (ORCPT ); Sun, 11 Jan 2004 11:32:45 -0500 Received: from kweetal.tue.nl ([131.155.3.6]:27922 "EHLO kweetal.tue.nl") by vger.kernel.org with ESMTP id S265346AbUAKQcn (ORCPT ); Sun, 11 Jan 2004 11:32:43 -0500 Date: Sun, 11 Jan 2004 17:32:39 +0100 From: Andries Brouwer To: sven kissner Cc: Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org Subject: Re: logitech cordless desktop deluxe optical keyboard issues Message-ID: <20040111163239.GA1955@win.tue.nl> References: <200401111705.30788.sven.kissner@consistencies.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401111705.30788.sven.kissner@consistencies.net> User-Agent: Mutt/1.3.25i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 47 On Sun, Jan 11, 2004 at 05:05:06PM +0100, sven kissner wrote: > sure but it's not working: > # setkeycodes 91 120 > setkeycode: code outside bounds Hm, yes. What about this version? -------- sk.c ------- /* * call: sk scancode keycode * (where scancode is given in hexadecimal, and keycode in decimal) */ #include #include #include #include int main(int argc, char **argv) { struct kbkeycode a; char *ep; if (argc != 3) { fprintf(stderr, "Call: sk scancode keycode\n"); exit(1); } a.scancode = strtol(argv[1], &ep, 16); a.keycode = atoi(argv[2]); if (ioctl(0, KDSETKEYCODE, &a)) { perror("KDSETKEYCODE"); fprintf(stderr, "failed to set scancode 0x%x to keycode %d\n", a.scancode, a.keycode); exit(1); } return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/