I've looked again at the patch  and while the lid switch
implementation seems straightforward I have a doubt about external
power on/off key on corgi.
It looks to me this key is managed by matrix-kbd driver on corgi.
301 #define CORGI_KEY_OFF KEY_SUSPEND
In fact, pressing that key when in console shows a question mark (?)
so it is not ignored.
Though, pressing it while in the kexecboot initramfs (w/out loading
keymaps) has no effect.
I'll have to debug the input events and see what comes out
Zaurus-devel mailing list