keyboard leds

Discussions about using Linux guests in VirtualBox.
Post Reply
datosar
Posts: 2
Joined: 9. Apr 2013, 14:31

keyboard leds

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: keyboard leds

Post by mpack »

How do you know there's no effect on the keyboard LEDs? AFAIK the virtual keyboard LEDs are not displayed anywhere.
datosar
Posts: 2
Joined: 9. Apr 2013, 14:31

Re: keyboard leds

Post 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
Post Reply