Hi

My platform is NSC Geode GX1 and Windows CE .NET 4.1.

I want to add a feature, it's let user to choose the numlock status
after the machine power on.

It's very same as the NUMLOCK ON setting in PC's BIOS.

I read throught all of codes in ps2_8042 floder, then the following
codes into ps2keybd.c.

BOOL
Ps2Keybd::
Initialize(
Ps2Port *pp2p
)
{
...
v_pp2k -> m_pp2p -> KeyboardLights(0x2);
...
}

I think those codes will let keyboard light the numlock LED while it's
initializing.

But I got nothing.

Why?

Anyone can help me?

---------------------------------------------
Bula Cheung

Re: PS/2 Keyboard Numlock On/Off by Steve

Steve
Thu Sep 25 13:00:49 CDT 2003

Setting the LED like that should work, but it is not the right way to do it
since the keyboard driver bases the LEDs on the current internal state.

What you should probably do is have something call keybd_event(VK_NUMLOCK,
... key down) at boot. This could even be the keyboard driver calling it.
This will set both the internal NumLock state and the LEDs to match.

--
Steve Schrock
Windows CE Device Drivers

This posting is provided "AS IS" with no warranties, and confers no rights.

"Zhang Zhiqun" <zhangzhiqun@vip.sina.com> wrote in message
news:jmk5nvg9ggatr0h7j4i6v40ri1vqe206iv@4ax.com...
> Hi
>
> My platform is NSC Geode GX1 and Windows CE .NET 4.1.
>
> I want to add a feature, it's let user to choose the numlock status
> after the machine power on.
>
> It's very same as the NUMLOCK ON setting in PC's BIOS.
>
> I read throught all of codes in ps2_8042 floder, then the following
> codes into ps2keybd.c.
>
> BOOL
> Ps2Keybd::
> Initialize(
> Ps2Port *pp2p
> )
> {
> ...
> v_pp2k -> m_pp2p -> KeyboardLights(0x2);
> ...
> }
>
> I think those codes will let keyboard light the numlock LED while it's
> initializing.
>
> But I got nothing.
>
> Why?
>
> Anyone can help me?
>
> ---------------------------------------------
> Bula Cheung
>
>



Re: PS/2 Keyboard Numlock On/Off by Zhang

Zhang
Fri Sep 26 09:13:12 CDT 2003

Yes, Yes, Yes

I did this task for 3 days.

Then use 1 command to solve it.

Thanks

On Thu, 25 Sep 2003 11:00:49 -0700, "Steve Schrock [MS]"
<sschrock@online.microsoft.com> wrote:

>Setting the LED like that should work, but it is not the right way to do it
>since the keyboard driver bases the LEDs on the current internal state.
>
>What you should probably do is have something call keybd_event(VK_NUMLOCK,
>... key down) at boot. This could even be the keyboard driver calling it.
>This will set both the internal NumLock state and the LEDs to match.