Dell USB keyboard

Henry Hu henry.hu.sh at gmail.com
Tue Aug 25 05:02:38 UTC 2009


On Mon, Aug 24, 2009 at 1:10 PM, Israel Jacques<mrkotfw at gmail.com> wrote:
> I have the following in my ~/.xmodmaprc:
>
> keycode 234 = XF86Back
> keycode 233 = XF86Forward
> keycode 232 = XF86Stop
> keycode 231 = XF86Refresh
> keycode 130 = XF86HomePage
> keycode 236 = XF86Mail
> keycode 198 = XF86MyComputer
> keycode 161 = XF86Calculator
> keycode 160 = XF86AudioMute
> keycode 164 = XF86AudioStop
> keycode 144 = XF86AudioPrev
> keycode 153 = XF86AudioNext
> keycode 162 = XF86AudioPlay
> keycode 129 = XF86AudioMedia
> keycode 174 = XF86AudioLowerVolume
> keycode 176 = XF86AudioRaiseVolume
>
> And it doesn't work with my WM.
If the messages of the multimedia keys are sent through the uhid
device, then you need to write a configuration file for the
usbhidaction, specify the keys and corresponding commands, and run
usbhidaction when keyboard inserted.
Can you see anything when a key is pressed with usbhidctl -alrv -f /dev/uhid0 ?
>
> Thanks for the tip.
>
> So far, I ran (as root):
>
> # usbhidctl -anrv -f /dev/uhid0
> Report descriptor:
> Total   input size 0 bytes
> Total  output size 1 bytes
> Total feature size 1 bytes
>
> On Sat, Aug 22, 2009 at 11:09 PM, Henry Hu<henry.hu.sh at gmail.com> wrote:
>> On Sun, Aug 23, 2009 at 10:16 AM, Dieter<freebsd at sopwith.solgatos.com> wrote:
>>>> 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?  Appears to be in ports.
>>> _______________________________________________
>>> freebsd-drivers at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
>>> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe at 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.
>>
> _______________________________________________
> freebsd-drivers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe at freebsd.org"
>


More information about the freebsd-drivers mailing list