From owner-freebsd-usb@FreeBSD.ORG Fri Nov 26 12:27:10 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CFF51065670 for ; Fri, 26 Nov 2010 12:27:10 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A30198FC14 for ; Fri, 26 Nov 2010 12:27:09 +0000 (UTC) Received: by ewy24 with SMTP id 24so929308ewy.13 for ; Fri, 26 Nov 2010 04:27:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=JgSJ5B6+j14R44Ub55WYsloyUBldY0j+chQ/a0kgBTA=; b=BDB/lg7ej8r4BCeDYxWUJztT04mx/zJ9IKqPpB9X7qeMJPr8keEfv0Yci7rkyeOjQ4 EGrSKdEai0wiiEU5rA02xS0HP1gnEpP3rC3pm51B+sTiCYmJTsjYFc1mFB/LmMhTm+1U RhAQJc+8aYQW06daJqZjybXE0O7OvYGzwgwNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=nxfQ+KAILUN/hyTt3SqyFo/6/Lzq20hhO1HONo0LwrhrdnbwWIDHjEyIBrGIftpgK8 eXcFj597f0dz4STDfk++uRlKzWeu1A/HY36M93lc7ivxiJNLziR3XgXn1kP4soyk4HzL 4SaCoSrca2DWtRHU09nCJu/W8RRBDzRtNj5ro= Received: by 10.213.3.66 with SMTP id 2mr671672ebm.82.1290772581531; Fri, 26 Nov 2010 03:56:21 -0800 (PST) Received: from localhost (81-233-38-26-no36.tbcn.telia.com [81.233.38.26]) by mx.google.com with ESMTPS id b52sm1684353eei.1.2010.11.26.03.56.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Nov 2010 03:56:19 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PLwuX-0000i0-Q9; Fri, 26 Nov 2010 12:56:17 +0100 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id oAQBuHVd002727; Fri, 26 Nov 2010 12:56:17 +0100 (CET) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Fri, 26 Nov 2010 12:56:17 +0100 From: Kai Wang To: Peter Jeremy Message-ID: <20101126115617.GA2566@viskning> References: <20101125034230.GA89666@server.vk2pj.dyndns.org> <201011250938.15470.hselasky@c2i.net> <20101126035439.GA50277@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101126035439.GA50277@server.vk2pj.dyndns.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@freebsd.org Subject: Re: Multimedia keys on Dell SK-8135 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2010 12:27:10 -0000 Hi Peter, On Fri, Nov 26, 2010 at 02:54:39PM +1100, Peter Jeremy wrote: > [adding kaiw@ as per the wiki page] > > On 2010-Nov-25 09:38:15 +0100, Hans Petter Selasky wrote: > >On Thursday 25 November 2010 04:42:30 Peter Jeremy wrote: > >> I have a Dell SK-8135 keyboard which has multimedia keys in addition > ... > >http://wiki.freebsd.org/uhidd > > Thanks. I didn't think to search for multimedia keyboards in general. > I've tried uhidd and, using it to manage the multimedia keys, it > mostly works. I want to use ukbd because I want a functioning > keyboard in single-user mode and my mouse didn't get cleanly handled > so I switched back to ums (which handles all my mouse functions). > > The bit that doesn't work is the volume control: The knob returns > a HID code and a 7-bit 2-complement number defining the direction > and rate (ie '1' is one click up, '127' is one click down). > Unfortunately, xev shows that as soon as I move the volume control, > I start receiving a continuous stream of alternating KeyPress and > KeyRelease events until I kill uhidd. Some time ago, We added support for this SK-8135 keyboard's linear volume control by simulating VOLUME_UP and VOLUME_DOWN events. However the code is not released yet; if you want to test it, you can check out the source from our svn: % svn checkout http://uhidd.googlecode.com/svn/trunk/ uhidd % cd uhidd/uhidd % make # ./uhidd -vvv /.../ugenXXX Also you need to change the configuration file: > # Dell SK-8135 > 0x413c:0x2010={ > cc_keymap={ > Scan_Next_Track="0x7A" > Scan_Previous_Track="0x75" > Stop="0x74" > Play/Pause="0x7C" > Volume="0x64" Remove "Volume" and use "Volume_Increment" and "Volume_Decrement" here instead. Kai