From f821b2833dd2a2cefa77c4d07ebd5c9b8dab39da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 23 Oct 2005 11:32:52 +0000 Subject: [PATCH] Don't issue KBD_LINE_TEST, the results are unreliable. Fixes reopen of #688. svn path=/trunk/; revision=18699 --- reactos/drivers/input/i8042prt/i8042prt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/drivers/input/i8042prt/i8042prt.c b/reactos/drivers/input/i8042prt/i8042prt.c index b555ef23fce..30cdbf2c411 100644 --- a/reactos/drivers/input/i8042prt/i8042prt.c +++ b/reactos/drivers/input/i8042prt/i8042prt.c @@ -577,12 +577,12 @@ static NTSTATUS STDCALL I8042BasicDetect(PDEVICE_EXTENSION DevExt) return FALSE; } - if (I8042Write(DevExt, I8042_CTRL_PORT, KBD_LINE_TEST)) - { - Status = I8042ReadDataWait(DevExt, &Value); - if (NT_SUCCESS(Status) && Value == 0) - DevExt->KeyboardExists = TRUE; - } + /* + * We used to send a KBD_LINE_TEST command here, but on at least HP + * Pavilion notebooks the response to that command was incorrect. + * So now we just assume that a keyboard is attached. + */ + DevExt->KeyboardExists = TRUE; if (I8042Write(DevExt, I8042_CTRL_PORT, MOUSE_LINE_TEST)) {