Richard A. Smith
richard at laptop.org
Wed Jul 30 15:45:33 EDT 2008
Deepak Saxena wrote:
> The gamekeys go through PS2 so I'm guessing the EC is queeing that event for
> us. I can reproduce the same sort of behaviour with by switching to console
> on the XO, sleeping via /sys/power/state on serial console, and then hitting
> a keyboard key to wake up. On wakeup, the character appears on the shell.
Gamekeys show up as virtual keys. They should behave identical to the
keyboard. The EC reads them and injects them into the keyboard stream.
> However, I just did the following here:
> echo 0 > /sys/power/wakeup_events/ps2event
> echo mem > /sys/power/state
> hit a key
> hit power button
Why did you need to hit the power button?
> And I don't see the character on console, which means it did not get
> queued during suspend when wakeup on keypress is disabled.
The process is the same. If you get a wakeup from gamekey then the
keypress should follow. Turn on your ps2 debugging and verify that
indeed you do not get key events.
Richard Smith <richard at laptop.org>
One Laptop Per Child
More information about the Devel