From owner-freebsd-drivers@FreeBSD.ORG Sun Aug 23 00:39:03 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5BAE106568C for ; Sun, 23 Aug 2009 00:39:03 +0000 (UTC) (envelope-from mrkotfw@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id A3DA38FC0C for ; Sun, 23 Aug 2009 00:39:03 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id d14so505556and.13 for ; Sat, 22 Aug 2009 17:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=TvGz6AuGtuNOQieV52KxRJNqkPYNWjYy5NkmjBZOpz8=; b=V2ygQIkE3teoHQJLuH6tI9sSG1O35w6q0fJ2iaE7oC5HIrWM4ixvlwlnSNBsnNEoLg HLtbaR2kG0JC2IfZstPxwtbp/VQ+xaLePX7ajqdXvcidEN2j4h5dzh4sxRXEXbt6L+mk p+KfUmeGBf/WSkDkk9OyvJyP45IM5LFjcncxY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=u0fAfAMqpe+txsglcqHuLHhvOmVoTwPfnQw9WgM/yqqrCZbjneNfs6PXhOwCEUOIVQ 060uBHyc/x8iHPy41rUW0nZ2Kdql3/1Ka4+W1q6/jvcf88+k7NGa6ZOAvOyV3P1QFk4f Posw31hDF0q19S/1OX7uoB7BJwNzvRqvBSdPM= MIME-Version: 1.0 Received: by 10.101.39.6 with SMTP id r6mr2870372anj.166.1250986421301; Sat, 22 Aug 2009 17:13:41 -0700 (PDT) Date: Sat, 22 Aug 2009 17:13:41 -0700 Message-ID: <5cd4c4cd0908221713y5d396946h5e4000ee11a48e0c@mail.gmail.com> From: Israel Jacques To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Dell USB keyboard X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2009 00:39:04 -0000 Hello all. I have the following keyboard: http://support.dell.com/support/edocs/acc/P76379/sk8135.jpg and I would like to add support for the hot keys and the multimedia buttons including the knob. dmesg: uhub1: on uhub0 uhub1: 3 ports with 2 removable, bus powered ukbd0: on uhub1 kbd2 at ukbd0 uhid0: on uhub1 usbdevs -v: port 2 addr 3: full speed, power 100 mA, config 1, Dell USB Keyboard Hub(0x1003), Dell(0x413c), rev 2.00 port 1 addr 4: full speed, power 50 mA, config 1, Dell USB Keyboard(0x2010), Dell(0x413c), rev 2.00 I tried xev and nothing worked. My question is, how do I go about writing a userland application to access the extra buttons? Would I have to use ioctl(2) to poll /dev/ukbd0? I would like to write the userland application in order to map them to: XF86Back XF86Forward XF86Stop XF86Refresh XF86HomePage XF86Mail XF86MyComputer XF86Calculator XF86AudioMute XF86AudioStop XF86AudioPrev XF86AudioNext XF86AudioPlay XF86AudioLowerVolume XF86AudioRaiseVolume Any suggestions?