Make the smart cover thing work.  This was originally by Roman Birg <rom...

...an@cyngn.com>

by way of Slayher for another device.