xobs / fernly

Fernvale research OS
BSD 2-Clause "Simplified" License
143 stars 52 forks source link

cmd-keypad: Exit also on key press on serial/USB connection. #19

Closed pfalcon closed 9 years ago

pfalcon commented 9 years ago

"keypad" command so far assumes rather adhoc keyboard map, and effectively locks up otherwise. Allow to break out of it from host connection.

pfalcon commented 9 years ago

@thesourcerer8: FYI

thesourcerer8 commented 9 years ago

Great! Thanks for the improvement!

pfalcon commented 9 years ago

@thesourcerer8 : Of related question, did you get power key detected? The datasheet says it should have a (repeated) bit in KBD_MEM* regs. I modified cmd-keypad to dump raw register contents, but nothing. My device (smartwatch) has only 1 key. It would be logical for that key to be PWRKEY, but - nothing. Of course, and explanation of that can be that my key is just on some GPIO (but why?)

thesourcerer8 commented 9 years ago

Bunnie said that the power key is specially handled, not by the keypad controller. I forgot to continue the investigation ...

pfalcon commented 9 years ago

@thesourcerer8 , if you can provide more info, or reference, I'd appreciate. (I don't know if it's better to do it here or on forum.)

xobs commented 9 years ago

I'm guessing the power key is wired through the RTC/PMU, which needs to be started up in order to receive PWRKEY presses. But I haven't managed to get that working yet.