Page 1 of 1

keyboard leds

Posted: 9. Apr 2013, 14:42
by datosar
Hi
I'm sending via ioctl a command to turn keyboard lights on (Linux kernel module on kernel 2.6.32 - CentOs). The resulting behavior is that
1. There is no influence on the led ligts
2. Something goes wrong with uppercase/lowercase: typing lowercase sometimes results in uppercase letter and sometimes in lowercase.

The code of the module is ok since it works just perfectly on vmware player (on the same 2.6.32 CentOs kernel ) and on CentOs installed directly.

Is something related with virtual box keyboard drivers? I have a simple and common Dell USB keyboard.

And also what is the preferable way to see how virtual box treats the ioctl command sent to the keyboard (or any other virtual/physical device)?

Thanks
David

Re: keyboard leds

Posted: 9. Apr 2013, 14:52
by mpack
How do you know there's no effect on the keyboard LEDs? AFAIK the virtual keyboard LEDs are not displayed anywhere.

Re: keyboard leds

Posted: 9. Apr 2013, 20:56
by datosar
I want leds flushing on a read keyboard. Loading the module on vmware turns led lights on and off just as expected.

(my_driver->ioctl) (vc_cons[fg_console].d->vc_tty, NULL, KDSETLED,
0x07);
(my_driver->ioctl) (vc_cons[fg_console].d->vc_tty, NULL, KDSETLED,
0xFF);

But On virtual box KDSETLED turns on off the lower and upper case mode.

All above happanes on the last version of virtual box.

Any ideas? Maybe some vxbox driver that fixes the mapping issue?
Thanks