From owner-freebsd-usb@FreeBSD.ORG Wed Feb 10 08:18:50 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 45B3A106566C for ; Wed, 10 Feb 2010 08:18:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id CC6718FC1C for ; Wed, 10 Feb 2010 08:18:49 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=2pcmNBIq_LQA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=YGjApbqVAAAA:8 a=xNf9USuDAAAA:8 a=fGO4tVQLAAAA:8 a=jkFHbTZ_2TWToCWA1aMA:9 a=d3hMZ15Jg5VL-ToyIKY0SxxjmDcA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1201733737; Wed, 10 Feb 2010 09:18:47 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 10 Feb 2010 09:17:21 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201002100159.54463.christof.schulze@gmx.com> In-Reply-To: <201002100159.54463.christof.schulze@gmx.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201002100917.21185.hselasky@c2i.net> Cc: Christof Schulze Subject: Re: Driver for LEDs on Logitech MX610 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: Wed, 10 Feb 2010 08:18:50 -0000 On Wednesday 10 February 2010 01:59:49 Christof Schulze wrote: > Hello everyone, > > currently I own a logitech mx610 which is a mouse that registers as two > separate USB devices (lsusb -vvv output [3]). One for the regular mouse > usage, > the other for controlling the LEDs that are on the mouse. They do register > as ugen and ums device on FreeBSD. Since I find it cool I would like to > use those > LEDs for various notification purposes. > There is a hack to make use of these LEDs on Linux available [1] which is > not written with portability in mind from what I can tell. So I would like > to get this working on FreeBSD and looked into the matter. It seems like I > want to control those LEDs using usbhid. The manpage however is quite > sketchy and I cannot make heads or tails of it. > I would greatly appreciate some help in getting this to work. I'd like to > know > what I have to do to the device to send the commands needed which are > represented by the control char array given in [1]. > > Thank you very much in advance. > > [1] http://www.kdedevelopers.org/node/2029 > [2] http://lists.alioth.debian.org/pipermail/nut-upsdev/2008- > January/002820.html > [3] http://pastebin.com/f1c76b219 > > kind regards > > Christof > Have you looked at libusb? What version of FreeBSD are you using? --HPS