Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2009 14:09:06 +0800
From:      Henry Hu <henry.hu.sh@gmail.com>
To:        Israel Jacques <mrkotfw@gmail.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: Dell USB keyboard
Message-ID:  <53a1e0710908222309x78b04000t40e31fbee495355c@mail.gmail.com>
In-Reply-To: <200908230216.CAA12582@sopwith.solgatos.com>
References:  <5cd4c4cd0908221713y5d396946h5e4000ee11a48e0c@mail.gmail.com> <200908230216.CAA12582@sopwith.solgatos.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 23, 2009 at 10:16 AM, Dieter<freebsd@sopwith.solgatos.com> wrot=
e:
>> 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
> ...
>> XF86AudioRaiseVolume
>>
>> Any suggestions?
>
> Can xmodmap(1) do what you need? =A0Appears to be in ports.
> _______________________________________________
> freebsd-drivers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org=
"
>
You might try usbhidaction and usbhidctl on the uhid device.
Once I was using a microsoft keyboard, and I hacked the programs a
bit, and wrote a configuration file for usbhidaction, and finally I
can use the multimedia keys.
These programs have problems parsing the Report ID field. You might
have to refer to the HID standard to modify them a bit.

Good luck.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53a1e0710908222309x78b04000t40e31fbee495355c>