Re: PC keyboard unknown scancodes (Power, Sleep, Wake)

Guest section DW (dwguest@win.tue.nl)
Sun, 12 Aug 2001 15:26:25 +0200


On Sun, Aug 12, 2001 at 09:21:02AM +0200, Andrzej Krzysztofowicz wrote:
> > On Sat, Aug 11, 2001 at 08:51:46PM +0200, Marek Michalkiewicz wrote:
> >
> > > these three keys (on a cheap no-name "Designed for Win*" keyboard ;)
> > > produce "unknown scancode" kernel messages when pressed or released.
> > >
> > > Power - e0 5e
> > > Sleep - e0 5f
> > > Wake - e0 63
> >
> > You can use the setkeycodes command to tell the kernel about them.
>
> It doesn't seem to fix the problem:
>
> # dmesg -c
> # setkeycodes e05f 127
> # setkeycodes e05e 127
> # dmesg -c
> [ pressing some keys here ]
> # dmesg -c
> keyboard: unknown scancode e0 5e
> keyboard: unknown scancode e0 5e
> keyboard: unknown scancode e0 5f
> keyboard: unknown scancode e0 5f
>
> Am I doing something wrong ?

Maybe you are using console-tools instead of kbd?
Check with strace that it does the KDSETKEYCODE ioctl.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/