Date: Fri, 26 Nov 2010 12:56:17 +0100 From: Kai Wang <kaiwang27@gmail.com> To: Peter Jeremy <peterjeremy@acm.org> Cc: freebsd-usb@freebsd.org Subject: Re: Multimedia keys on Dell SK-8135 Message-ID: <20101126115617.GA2566@viskning> In-Reply-To: <20101126035439.GA50277@server.vk2pj.dyndns.org> References: <20101125034230.GA89666@server.vk2pj.dyndns.org> <201011250938.15470.hselasky@c2i.net> <20101126035439.GA50277@server.vk2pj.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <hselasky@c2i.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101126115617.GA2566>