[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Make caps lock LED blink tempo?
Hi Chris -
2009/3/8 chris kummerer <chris@xxxxxxxxxx>:
>> I suspect that the ctor has worked, but I don't know if the error
>> message should concern me or not. (I do have permissions on the event*
>> files.) Then when I do
>
> can you read the button events from the keyboard ?
Don't know how to do that... sorry...
>> should look for 0x0011 in order to spot LED capabilities. In the
>> objects that are posted I don't see "0x0011" (or "17") AFAIK.
>
> hmm that *should* work with a standard keyboard but IIRC I never got
> LEDs to work on my powerbook with linux, HID led support kernelwise
> only supports "well known" devices/leds, so I had to actually add a
> kernelpatch to make the LEDs work on some other HID gear I'm using.
> (libusb might have been a less brute-force approach but ...)
OK, sounds like it may be less straightforward than I hoped!
I found this in the entry for /dev/input/event5
(17 -> IdentityDictionary[ (1 -> LIDLedSlot.new), (2 ->
LIDLedSlot.new), (0 -> LIDLedSlot.new) ])
which suggests this is the device I'm looking for. But I see no LED
action when using
d.setLEDState(0x0, 1)
(or 0x1, 0x2, or setting a state of 0 as opposed to 1). The post
window just gives a "0" whatever I do (indicating success?).
I'm using an Asus Eee, maybe it's not a "well known" keyboard somehow...
Thanks
Dan
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/