suspend oddities

Deepak Saxena dsaxena at laptop.org
Wed Jul 30 15:02:47 EDT 2008


On Jul 30 2008, at 15:45, Richard A. Smith was caught saying:
> 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?

B/c I disabled wakeup on ps2event.

> >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.

Right, but in this case I had disabled the wakeup on gamekey. From what
I can tell, everything is working as expected.

~Deepak

-- 
Deepak Saxena - Kernel Developer - dsaxena at laptop.org



More information about the Devel mailing list