From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 071A5138247 for ; Sun, 12 Jan 2014 08:42:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3621E0D82; Sun, 12 Jan 2014 08:42:22 +0000 (UTC) Received: from mail.privatdemail.net (mail.privatdemail.net [217.139.17.156]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 175DCE0D46 for ; Sun, 12 Jan 2014 08:42:20 +0000 (UTC) Received: from localhost (mail.privatdemail.net [127.0.0.1]) by mail.privatdemail.net (Postfix) with ESMTP id 9D4CE21A83 for ; Sun, 12 Jan 2014 09:42:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=privatdemail.net; h=content-transfer-encoding:content-type:content-type:subject :subject:mime-version:user-agent:from:from:date:date:message-id; s=pdm200902; t=1389516134; x=1391330535; bh=eX/MCZ8DFssuet+/wsp zUNAZO4CuzV9XV4xI0pHR95w=; b=Yn2MmgCfTa4P8IZAehlMC19WvJvnyQsILQH R+Go6dVO09uYWawQMOpA89pfZQzlacN75lTaNcNQvoi9tzNKwYqI0cT3G4M0mktV 5H8iR+9gwRNj9JLOdnA99vYnJjanowuE5S/K9yCqD9G747ibfe72KsTzjQX+CW2i TE0x6kyU= X-Virus-Scanned: Debian amavisd-new at mail.privatdemail.net Received: from mail.privatdemail.net ([127.0.0.1]) by localhost (mail.privatdemail.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id eTeuYvnCvBI3 for ; Sun, 12 Jan 2014 09:42:14 +0100 (CET) Message-ID: <52D25563.5020605@privatdemail.net> Date: Sun, 12 Jan 2014 19:42:11 +1100 From: wraeth User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] udev Remap Extra Keys on Razer Anansi Keyboard X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: ea0cc68b-425b-46d3-9d62-b6bdde95219f X-Archives-Hash: 1fe4ce934b2974669f38718b61c86471 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Greetings; I've been trying to enable the special function keys on my Razer Anansi keyboard, and while I'm partway there, I'm getting stuck on remapping some of the keys (due to non-supported scancodes. The Razer Anansi has additional keys M1-5 and T1-7. I followed [1] which has gotten my to the point where the special keys are activated on device initialization (a utility sends an initialization signal to the keyboard), and this has allowed keys M1-4 to be mapped, however the others remain inaccessible. The post at [2] describes creating a udev rule to remap keys from their current keycode to one listed in /usr/include/linux/input.h, however this does not appear to be working correctly (my hwdb file below). The current codes as reported by `xev` in the order M5, T1-7 is: # xev | grep keysym state 0x10, keycode 197 (keysym 0x0, NoSymbol), same_screen YES state 0x10, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES state 0x10, keycode 199 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES state 0x10, keycode 200 (keysym 0x1008ffb0, XF86TouchpadOn), same_screen YES state 0x10, keycode 201 (keysym 0x1008ffb1, XF86TouchpadOff), same_screen YES state 0x10, keycode 98 (keysym 0xff26, Katakana), same_screen YES state 0x10, keycode 99 (keysym 0xff25, Hiragana), same_screen YES state 0x10, keycode 103 (keysym 0x0, NoSymbol), same_screen YES Of note, the M5 and T7 keys produce "keysym 0x0, NoSymbol", so I'm not sure how that's supposed to work. I've shortened this for compaction, but can provide full output if requested. My current hwdb file in /etc/dbus/hwdb.d/99-razer-kbd.hwdb: keyboard:usb:v1532:p010f* KEYBOARD_KEY_1008ffb2=email KEYBOARD_KEY_1008ffa9=chat KEYBOARD_KEY_1008ffb0=search KEYBOARD_KEY_1008ffb1=connect KEYBOARD_KEY_ff26=sport KEYBOARD_KEY_ff25=shop My main concern with that is whether I've identified the keypresses correctly ([2] implied a hex number without the '0x', and I've tried with 'keycode' instead with the same results (ie: none)). Not sure how to proceed, and would appreciate any advice or links. [1] http://norgelinux.blogspot.com.au/2012/02/razer-anasi-on-arch-linux.html [2] https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes Cheers, wraeth -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlLSVWMACgkQGYlqHeQRhkywrwD/WcsGGjgbzCmOcWnKqc1xxKo4 M5/JCcnrK3jBC1X2UkIA/3E2jDdGAtKUNX9Wes6yrZ5RL0FnP4xqUttwoNHDSgS7 =JYWa -----END PGP SIGNATURE-----