suspend oddities

pgf at laptop.org pgf at laptop.org
Wed Jul 30 15:53:11 EDT 2008


smith wrote:
 > 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?

i assume because he'd just disabled ps2event wakeups.

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

when you say "should follow", you mean "as implemented", i assume?

i'd argue that the keypress should definitely _not_ follow.

paul
=---------------------
 paul fox, pgf at laptop.org



More information about the Devel mailing list