Re: Input+S3: extra keycodes forgotten after suspend

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Monday, May 26, 2008 - 10:52 pm

On Friday 23 May 2008 16:57, Bruno Prémont wrote:

I see. Could you please try the patch below (in addition to the other
2 you have) and see if that 00 keycode is still reported?

Thanks! 

-- 
Dmitry

Input: atkbd - mark keyboard as disabled when suspending/unloading

This will shut off garbage that may come from KBD port during resume.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
 drivers/input/keyboard/atkbd.c |    2 ++
 1 file changed, 2 insertions(+)

Index: work/drivers/input/keyboard/atkbd.c
===================================================================
--- work.orig/drivers/input/keyboard/atkbd.c
+++ work/drivers/input/keyboard/atkbd.c
@@ -807,6 +807,8 @@ static int atkbd_activate(struct atkbd *
 static void atkbd_cleanup(struct serio *serio)
 {
 	struct atkbd *atkbd = serio_get_drvdata(serio);
+
+	atkbd_disable(atkbd);
 	ps2_command(&atkbd->ps2dev, NULL, ATKBD_CMD_RESET_BAT);
 }
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Fri May 16, 1:38 pm)
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Mon May 19, 8:50 am)
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Wed May 21, 10:55 am)
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Wed May 21, 1:38 pm)
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Thu May 22, 9:44 pm)
Re: Input+S3: extra keycodes forgotten after suspend, Dmitry Torokhov, (Mon May 26, 10:52 pm)